]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fixed configure script so scripts/dvd-freespace/writepart are created at configure...
[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 AWK ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-working-dir=PATH        specify path of Bacula working directory
888   --with-scriptdir=PATH    specify path of Bacula scripts directory
889   --with-dump-email=EMAIL        dump email address
890   --with-job-email=EMAIL         job output email address
891   --with-smtp-host=HOST          SMTP mail host address
892   --with-pid-dir=PATH            specify location of Bacula pid files
893   --with-subsys-dir=PATH         specify location of Bacula subsys file
894   --with-baseport=PORT           specify base port address for daemons
895   --with-dir-password=PASSWORD   specify Director's password
896   --with-fd-password=PASSWORD    specify Client's password
897   --with-sd-password=PASSWORD    specify Storage daemon's password
898   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
899   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
900   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
901   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
902   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
903   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
904   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
905   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
906   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
907   --with-dir-user=USER           specify user for Director daemon
908   --with-dir-group=GROUP                 specify group for Director daemon
909   --with-sd-user=USER            specify user for Storage daemon
910   --with-sd-group=GROUP          specify group for Storage daemon
911   --with-fd-user=USER            specify user for File daemon
912   --with-fd-group=GROUP          specify group for File daemon
913   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
914   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
915                           base install directory, defaults to /usr/local/pgsql
916
917   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
922                           install directory, default is to search through
923                           a number of common places for the MySQL files.
924
925   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
926                           install directory, default is to search through
927                           a number of common places for the SQLite files.
928   --with-x                use the X Window System
929
930 Some influential environment variables:
931   CC          C compiler command
932   CFLAGS      C compiler flags
933   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
934               nonstandard directory <lib dir>
935   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
936               headers in a nonstandard directory <include dir>
937   CXX         C++ compiler command
938   CXXFLAGS    C++ compiler flags
939   CPP         C preprocessor
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
982 *)
983   case "$ac_dir" in
984   .) ac_abs_builddir=`pwd`;;
985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *)
992   case ${ac_top_builddir}. in
993   .) ac_abs_top_builddir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1000 *)
1001   case $ac_srcdir in
1002   .) ac_abs_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *)
1010   case $ac_top_srcdir in
1011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014   esac;;
1015 esac
1016
1017     cd $ac_dir
1018     # Check for guested configure; otherwise get Cygnus style configure.
1019     if test -f $ac_srcdir/configure.gnu; then
1020       echo
1021       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1022     elif test -f $ac_srcdir/configure; then
1023       echo
1024       $SHELL $ac_srcdir/configure  --help=recursive
1025     elif test -f $ac_srcdir/configure.ac ||
1026            test -f $ac_srcdir/configure.in; then
1027       echo
1028       $ac_configure --help
1029     else
1030       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031     fi
1032     cd $ac_popdir
1033   done
1034 fi
1035
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038   cat <<\_ACEOF
1039
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044   exit 0
1045 fi
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1050
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59.  Invocation command line was
1053
1054   $ $0 $@
1055
1056 _ACEOF
1057 {
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1062
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1071
1072 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1073 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1076 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1077 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1078 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1079
1080 _ASUNAME
1081
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1084 do
1085   IFS=$as_save_IFS
1086   test -z "$as_dir" && as_dir=.
1087   echo "PATH: $as_dir"
1088 done
1089
1090 } >&5
1091
1092 cat >&5 <<_ACEOF
1093
1094
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1098
1099 _ACEOF
1100
1101
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1113 do
1114   for ac_arg
1115   do
1116     case $ac_arg in
1117     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119     | -silent | --silent | --silen | --sile | --sil)
1120       continue ;;
1121     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123     esac
1124     case $ac_pass in
1125     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126     2)
1127       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128       if test $ac_must_keep_next = true; then
1129         ac_must_keep_next=false # Got value, back to normal.
1130       else
1131         case $ac_arg in
1132           *=* | --config-cache | -C | -disable-* | --disable-* \
1133           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135           | -with-* | --with-* | -without-* | --without-* | --x)
1136             case "$ac_configure_args0 " in
1137               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138             esac
1139             ;;
1140           -* ) ac_must_keep_next=true ;;
1141         esac
1142       fi
1143       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144       # Get rid of the leading space.
1145       ac_sep=" "
1146       ;;
1147     esac
1148   done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log.  We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159   # Save into config.log some information that might help in debugging.
1160   {
1161     echo
1162
1163     cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168     echo
1169     # The following way of writing the cache mishandles newlines in values,
1170 {
1171   (set) 2>&1 |
1172     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173     *ac_space=\ *)
1174       sed -n \
1175         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177       ;;
1178     *)
1179       sed -n \
1180         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181       ;;
1182     esac;
1183 }
1184     echo
1185
1186     cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191     echo
1192     for ac_var in $ac_subst_vars
1193     do
1194       eval ac_val=$`echo $ac_var`
1195       echo "$ac_var='"'"'$ac_val'"'"'"
1196     done | sort
1197     echo
1198
1199     if test -n "$ac_subst_files"; then
1200       cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205       echo
1206       for ac_var in $ac_subst_files
1207       do
1208         eval ac_val=$`echo $ac_var`
1209         echo "$ac_var='"'"'$ac_val'"'"'"
1210       done | sort
1211       echo
1212     fi
1213
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h | sort
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379 BUILD_DIR=`pwd`
1380 cd ..
1381 TOP_DIR=`pwd`
1382 cd ${BUILD_DIR}
1383
1384 ac_aux_dir=
1385 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1386   if test -f $ac_dir/install-sh; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/install-sh -c"
1389     break
1390   elif test -f $ac_dir/install.sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install.sh -c"
1393     break
1394   elif test -f $ac_dir/shtool; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/shtool install -c"
1397     break
1398   fi
1399 done
1400 if test -z "$ac_aux_dir"; then
1401   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1403    { (exit 1); exit 1; }; }
1404 fi
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408
1409           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1410
1411
1412
1413
1414
1415 for ac_prog in true
1416 do
1417   # Extract the first word of "$ac_prog", so it can be a program name with args.
1418 set dummy $ac_prog; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   case $TRUEPRG in
1425   [\\/]* | ?:[\\/]*)
1426   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1427   ;;
1428   *)
1429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   for ac_exec_ext in '' $ac_executable_extensions; do
1435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438     break 2
1439   fi
1440 done
1441 done
1442
1443   ;;
1444 esac
1445 fi
1446 TRUEPRG=$ac_cv_path_TRUEPRG
1447
1448 if test -n "$TRUEPRG"; then
1449   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1450 echo "${ECHO_T}$TRUEPRG" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456   test -n "$TRUEPRG" && break
1457 done
1458 test -n "$TRUEPRG" || TRUEPRG=":"
1459
1460 for ac_prog in false
1461 do
1462   # Extract the first word of "$ac_prog", so it can be a program name with args.
1463 set dummy $ac_prog; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   case $FALSEPRG in
1470   [\\/]* | ?:[\\/]*)
1471   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1472   ;;
1473   *)
1474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477   IFS=$as_save_IFS
1478   test -z "$as_dir" && as_dir=.
1479   for ac_exec_ext in '' $ac_executable_extensions; do
1480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483     break 2
1484   fi
1485 done
1486 done
1487
1488   ;;
1489 esac
1490 fi
1491 FALSEPRG=$ac_cv_path_FALSEPRG
1492
1493 if test -n "$FALSEPRG"; then
1494   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1495 echo "${ECHO_T}$FALSEPRG" >&6
1496 else
1497   echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501   test -n "$FALSEPRG" && break
1502 done
1503 test -n "$FALSEPRG" || FALSEPRG=":"
1504
1505
1506 #AC_CANONICAL_HOST
1507
1508 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1509 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1510 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1511 echo "configuring for bacula $VERSION ($DATE)"
1512
1513
1514
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 if test -n "$ac_tool_prefix"; then
1521   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$CC"; then
1529   ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549   echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552   echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 fi
1557 if test -z "$ac_cv_prog_CC"; then
1558   ac_ct_CC=$CC
1559   # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$ac_ct_CC"; then
1567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_ac_ct_CC="gcc"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594   CC=$ac_ct_CC
1595 else
1596   CC="$ac_cv_prog_CC"
1597 fi
1598
1599 if test -z "$CC"; then
1600   if test -n "$ac_tool_prefix"; then
1601   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$CC"; then
1609   ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_CC="${ac_tool_prefix}cc"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629   echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636 fi
1637 if test -z "$ac_cv_prog_CC"; then
1638   ac_ct_CC=$CC
1639   # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$ac_ct_CC"; then
1647   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     ac_cv_prog_ac_ct_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 fi
1664 fi
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1669 else
1670   echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674   CC=$ac_ct_CC
1675 else
1676   CC="$ac_cv_prog_CC"
1677 fi
1678
1679 fi
1680 if test -z "$CC"; then
1681   # Extract the first word of "cc", so it can be a program name with args.
1682 set dummy cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   if test -n "$CC"; then
1689   ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691   ac_prog_rejected=no
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695   IFS=$as_save_IFS
1696   test -z "$as_dir" && as_dir=.
1697   for ac_exec_ext in '' $ac_executable_extensions; do
1698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1700        ac_prog_rejected=yes
1701        continue
1702      fi
1703     ac_cv_prog_CC="cc"
1704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705     break 2
1706   fi
1707 done
1708 done
1709
1710 if test $ac_prog_rejected = yes; then
1711   # We found a bogon in the path, so make sure we never use it.
1712   set dummy $ac_cv_prog_CC
1713   shift
1714   if test $# != 0; then
1715     # We chose a different compiler from the bogus one.
1716     # However, it has the same basename, so the bogon will be chosen
1717     # first if we set CC to just the basename; use the full file name.
1718     shift
1719     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1720   fi
1721 fi
1722 fi
1723 fi
1724 CC=$ac_cv_prog_CC
1725 if test -n "$CC"; then
1726   echo "$as_me:$LINENO: result: $CC" >&5
1727 echo "${ECHO_T}$CC" >&6
1728 else
1729   echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733 fi
1734 if test -z "$CC"; then
1735   if test -n "$ac_tool_prefix"; then
1736   for ac_prog in cl
1737   do
1738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   if test -n "$CC"; then
1746   ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   for ac_exec_ext in '' $ac_executable_extensions; do
1754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757     break 2
1758   fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 CC=$ac_cv_prog_CC
1765 if test -n "$CC"; then
1766   echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6
1768 else
1769   echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773     test -n "$CC" && break
1774   done
1775 fi
1776 if test -z "$CC"; then
1777   ac_ct_CC=$CC
1778   for ac_prog in cl
1779 do
1780   # Extract the first word of "$ac_prog", so it can be a program name with args.
1781 set dummy $ac_prog; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test -n "$ac_ct_CC"; then
1788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   for ac_exec_ext in '' $ac_executable_extensions; do
1796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797     ac_cv_prog_ac_ct_CC="$ac_prog"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1810 else
1811   echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815   test -n "$ac_ct_CC" && break
1816 done
1817
1818   CC=$ac_ct_CC
1819 fi
1820
1821 fi
1822
1823
1824 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: no acceptable C compiler found in \$PATH
1827 See \`config.log' for more details." >&2;}
1828    { (exit 1); exit 1; }; }
1829
1830 # Provide some information about the compiler.
1831 echo "$as_me:$LINENO:" \
1832      "checking for C compiler version" >&5
1833 ac_compiler=`set X $ac_compile; echo $2`
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835   (eval $ac_compiler --version </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840   (eval $ac_compiler -v </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845   (eval $ac_compiler -V </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h.  */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h.  */
1856
1857 int
1858 main ()
1859 {
1860
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 ac_clean_files_save=$ac_clean_files
1866 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867 # Try to create an executable without -o first, disregard a.out.
1868 # It will help us diagnose broken compilers, and finding out an intuition
1869 # of exeext.
1870 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874   (eval $ac_link_default) 2>&5
1875   ac_status=$?
1876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877   (exit $ac_status); }; then
1878   # Find the output, starting from the most likely.  This scheme is
1879 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # resort.
1881
1882 # Be careful to initialize this variable, since it used to be cached.
1883 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1884 ac_cv_exeext=
1885 # b.out is created by i960 compilers.
1886 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1887 do
1888   test -f "$ac_file" || continue
1889   case $ac_file in
1890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891         ;;
1892     conftest.$ac_ext )
1893         # This is the source file.
1894         ;;
1895     [ab].out )
1896         # We found the default executable, but exeext='' is most
1897         # certainly right.
1898         break;;
1899     *.* )
1900         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901         # FIXME: I believe we export ac_cv_exeext for Libtool,
1902         # but it would be cool to find out if it's true.  Does anybody
1903         # maintain Libtool? --akim.
1904         export ac_cv_exeext
1905         break;;
1906     * )
1907         break;;
1908   esac
1909 done
1910 else
1911   echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: C compiler cannot create executables
1917 See \`config.log' for more details." >&2;}
1918    { (exit 77); exit 77; }; }
1919 fi
1920
1921 ac_exeext=$ac_cv_exeext
1922 echo "$as_me:$LINENO: result: $ac_file" >&5
1923 echo "${ECHO_T}$ac_file" >&6
1924
1925 # Check the compiler produces executables we can run.  If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1930 # If not cross compiling, check that we can run a simple program.
1931 if test "$cross_compiling" != yes; then
1932   if { ac_try='./$ac_file'
1933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934   (eval $ac_try) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }; }; then
1938     cross_compiling=no
1939   else
1940     if test "$cross_compiling" = maybe; then
1941         cross_compiling=yes
1942     else
1943         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1944 If you meant to cross compile, use \`--host'.
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950     fi
1951   fi
1952 fi
1953 echo "$as_me:$LINENO: result: yes" >&5
1954 echo "${ECHO_T}yes" >&6
1955
1956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1957 ac_clean_files=$ac_clean_files_save
1958 # Check the compiler produces executables we can run.  If not, either
1959 # the compiler is broken, or we cross compile.
1960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1963 echo "${ECHO_T}$cross_compiling" >&6
1964
1965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968   (eval $ac_link) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; then
1972   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1973 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1974 # work properly (i.e., refer to `conftest.exe'), while it won't with
1975 # `rm'.
1976 for ac_file in conftest.exe conftest conftest.*; do
1977   test -f "$ac_file" || continue
1978   case $ac_file in
1979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981           export ac_cv_exeext
1982           break;;
1983     * ) break;;
1984   esac
1985 done
1986 else
1987   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1990 See \`config.log' for more details." >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 rm -f conftest$ac_cv_exeext
1995 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996 echo "${ECHO_T}$ac_cv_exeext" >&6
1997
1998 rm -f conftest.$ac_ext
1999 EXEEXT=$ac_cv_exeext
2000 ac_exeext=$EXEEXT
2001 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003 if test "${ac_cv_objext+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   cat >conftest.$ac_ext <<_ACEOF
2007 /* confdefs.h.  */
2008 _ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h.  */
2012
2013 int
2014 main ()
2015 {
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 rm -f conftest.o conftest.obj
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023   (eval $ac_compile) 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); }; then
2027   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028   case $ac_file in
2029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2030     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2031        break;;
2032   esac
2033 done
2034 else
2035   echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2041 See \`config.log' for more details." >&2;}
2042    { (exit 1); exit 1; }; }
2043 fi
2044
2045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 fi
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT=$ac_cv_objext
2050 ac_objext=$OBJEXT
2051 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   cat >conftest.$ac_ext <<_ACEOF
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>conftest.er1
2077   ac_status=$?
2078   grep -v '^ *+' conftest.er1 >conftest.err
2079   rm -f conftest.er1
2080   cat conftest.err >&5
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -z "$ac_c_werror_flag"
2084                          || test ! -s conftest.err'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_compiler_gnu=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_compiler_gnu=no
2102 fi
2103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2112 CFLAGS="-g"
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h.  */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h.  */
2124
2125 int
2126 main ()
2127 {
2128
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135   (eval $ac_compile) 2>conftest.er1
2136   ac_status=$?
2137   grep -v '^ *+' conftest.er1 >conftest.err
2138   rm -f conftest.er1
2139   cat conftest.err >&5
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); } &&
2142          { ac_try='test -z "$ac_c_werror_flag"
2143                          || test ! -s conftest.err'
2144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145   (eval $ac_try) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; } &&
2149          { ac_try='test -s conftest.$ac_objext'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; }; then
2155   ac_cv_prog_cc_g=yes
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_cv_prog_cc_g=no
2161 fi
2162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2166 if test "$ac_test_CFLAGS" = set; then
2167   CFLAGS=$ac_save_CFLAGS
2168 elif test $ac_cv_prog_cc_g = yes; then
2169   if test "$GCC" = yes; then
2170     CFLAGS="-g -O2"
2171   else
2172     CFLAGS="-g"
2173   fi
2174 else
2175   if test "$GCC" = yes; then
2176     CFLAGS="-O2"
2177   else
2178     CFLAGS=
2179   fi
2180 fi
2181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   ac_cv_prog_cc_stdc=no
2187 ac_save_CC=$CC
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h.  */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h.  */
2194 #include <stdarg.h>
2195 #include <stdio.h>
2196 #include <sys/types.h>
2197 #include <sys/stat.h>
2198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2199 struct buf { int x; };
2200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2201 static char *e (p, i)
2202      char **p;
2203      int i;
2204 {
2205   return p[i];
2206 }
2207 static char *f (char * (*g) (char **, int), char **p, ...)
2208 {
2209   char *s;
2210   va_list v;
2211   va_start (v,p);
2212   s = g (p, va_arg (v,int));
2213   va_end (v);
2214   return s;
2215 }
2216
2217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2218    function prototypes and stuff, but not '\xHH' hex character constants.
2219    These don't provoke an error unfortunately, instead are silently treated
2220    as 'x'.  The following induces an error, until -std1 is added to get
2221    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2222    array size at least.  It's necessary to write '\x00'==0 to get something
2223    that's true only with -std1.  */
2224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2225
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2230 int argc;
2231 char **argv;
2232 int
2233 main ()
2234 {
2235 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 # Don't try gcc -ansi; that turns off useful extensions and
2241 # breaks some systems' header files.
2242 # AIX                   -qlanglvl=ansi
2243 # Ultrix and OSF/1      -std1
2244 # HP-UX 10.20 and later -Ae
2245 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2246 # SVR4                  -Xc -D__EXTENSIONS__
2247 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2248 do
2249   CC="$ac_save_CC $ac_arg"
2250   rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>conftest.er1
2253   ac_status=$?
2254   grep -v '^ *+' conftest.er1 >conftest.err
2255   rm -f conftest.er1
2256   cat conftest.err >&5
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); } &&
2259          { ac_try='test -z "$ac_c_werror_flag"
2260                          || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287   x|xno)
2288     echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290   *)
2291     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293     CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C.  Since we use `exit',
2297 # in C++ we need to declare it.  In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302   choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"
2315                          || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   for ac_declaration in \
2328    '' \
2329    'extern "C" void std::exit (int) throw (); using std::exit;' \
2330    'extern "C" void std::exit (int); using std::exit;' \
2331    'extern "C" void exit (int) throw ();' \
2332    'extern "C" void exit (int);' \
2333    'void exit (int);'
2334 do
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 $ac_declaration
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_c_werror_flag"
2361                          || test ! -s conftest.err'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   :
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 continue
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381   cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387 $ac_declaration
2388 int
2389 main ()
2390 {
2391 exit (42);
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398   (eval $ac_compile) 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -z "$ac_c_werror_flag"
2406                          || test ! -s conftest.err'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   break
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 rm -f conftest*
2427 if test -n "$ac_declaration"; then
2428   echo '#ifdef __cplusplus' >>confdefs.h
2429   echo $ac_declaration      >>confdefs.h
2430   echo '#endif'             >>confdefs.h
2431 fi
2432
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 fi
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445 ac_ext=cc
2446 ac_cpp='$CXXCPP $CPPFLAGS'
2447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2452   do
2453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_CXX+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CXX"; then
2461   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476
2477 fi
2478 fi
2479 CXX=$ac_cv_prog_CXX
2480 if test -n "$CXX"; then
2481   echo "$as_me:$LINENO: result: $CXX" >&5
2482 echo "${ECHO_T}$CXX" >&6
2483 else
2484   echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 fi
2487
2488     test -n "$CXX" && break
2489   done
2490 fi
2491 if test -z "$CXX"; then
2492   ac_ct_CXX=$CXX
2493   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2494 do
2495   # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$ac_ct_CXX"; then
2503   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512     ac_cv_prog_ac_ct_CXX="$ac_prog"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518
2519 fi
2520 fi
2521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2522 if test -n "$ac_ct_CXX"; then
2523   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2524 echo "${ECHO_T}$ac_ct_CXX" >&6
2525 else
2526   echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2528 fi
2529
2530   test -n "$ac_ct_CXX" && break
2531 done
2532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2533
2534   CXX=$ac_ct_CXX
2535 fi
2536
2537
2538 # Provide some information about the compiler.
2539 echo "$as_me:$LINENO:" \
2540      "checking for C++ compiler version" >&5
2541 ac_compiler=`set X $ac_compile; echo $2`
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2543   (eval $ac_compiler --version </dev/null >&5) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2548   (eval $ac_compiler -v </dev/null >&5) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }
2552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2553   (eval $ac_compiler -V </dev/null >&5) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }
2557
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573 #ifndef __GNUC__
2574        choke me
2575 #endif
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583   (eval $ac_compile) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } &&
2590          { ac_try='test -z "$ac_cxx_werror_flag"
2591                          || test ! -s conftest.err'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   ac_compiler_gnu=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 ac_compiler_gnu=no
2609 fi
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2612
2613 fi
2614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2616 GXX=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CXXFLAGS=${CXXFLAGS+set}
2618 ac_save_CXXFLAGS=$CXXFLAGS
2619 CXXFLAGS="-g"
2620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cxx_g+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_cxx_werror_flag"
2650                          || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 ac_cv_prog_cxx_g=no
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674   CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-g -O2"
2678   else
2679     CXXFLAGS="-g"
2680   fi
2681 else
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-O2"
2684   else
2685     CXXFLAGS=
2686   fi
2687 fi
2688 for ac_declaration in \
2689    '' \
2690    'extern "C" void std::exit (int) throw (); using std::exit;' \
2691    'extern "C" void std::exit (int); using std::exit;' \
2692    'extern "C" void exit (int) throw ();' \
2693    'extern "C" void exit (int);' \
2694    'void exit (int);'
2695 do
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 #include <stdlib.h>
2704 int
2705 main ()
2706 {
2707 exit (42);
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_cxx_werror_flag"
2722                          || test ! -s conftest.err'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   :
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 continue
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742   cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 $ac_declaration
2749 int
2750 main ()
2751 {
2752 exit (42);
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -z "$ac_cxx_werror_flag"
2767                          || test ! -s conftest.err'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779   break
2780 else
2781   echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 fi
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 rm -f conftest*
2788 if test -n "$ac_declaration"; then
2789   echo '#ifdef __cplusplus' >>confdefs.h
2790   echo $ac_declaration      >>confdefs.h
2791   echo '#endif'             >>confdefs.h
2792 fi
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800 if test "x$CC" != xcc; then
2801   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2802 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2803 else
2804   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2805 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2806 fi
2807 set dummy $CC; ac_cc=`echo $2 |
2808                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2809 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 # Make sure it works both with $CC and with simple cc.
2828 # We do the test twice because some compilers refuse to overwrite an
2829 # existing .o file with -o, though they will create one.
2830 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2831 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); };
2841 then
2842   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2843   if test "x$CC" != xcc; then
2844     # Test first that cc exists at all.
2845     if { ac_try='cc -c conftest.$ac_ext >&5'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2852       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } &&
2857          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); };
2862       then
2863         # cc works too.
2864         :
2865       else
2866         # cc exists but doesn't like -o.
2867         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2868       fi
2869     fi
2870   fi
2871 else
2872   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873 fi
2874 rm -f conftest*
2875
2876 fi
2877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2878   echo "$as_me:$LINENO: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883
2884 cat >>confdefs.h <<\_ACEOF
2885 #define NO_MINUS_C_MINUS_O 1
2886 _ACEOF
2887
2888 fi
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2899   CPP=
2900 fi
2901 if test -z "$CPP"; then
2902   if test "${ac_cv_prog_CPP+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905       # Double quotes because CPP needs to be expanded
2906     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907     do
2908       ac_preproc_ok=false
2909 for ac_c_preproc_warn_flag in '' yes
2910 do
2911   # Use a header file that comes with gcc, so configuring glibc
2912   # with a fresh cross-compiler works.
2913   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914   # <limits.h> exists even on freestanding compilers.
2915   # On the NeXT, cc -E runs the code through the compiler's parser,
2916   # not just through cpp. "Syntax error" is here to catch this case.
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 #ifdef __STDC__
2924 # include <limits.h>
2925 #else
2926 # include <assert.h>
2927 #endif
2928                      Syntax error
2929 _ACEOF
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } >/dev/null; then
2938   if test -s conftest.err; then
2939     ac_cpp_err=$ac_c_preproc_warn_flag
2940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2941   else
2942     ac_cpp_err=
2943   fi
2944 else
2945   ac_cpp_err=yes
2946 fi
2947 if test -z "$ac_cpp_err"; then
2948   :
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953   # Broken: fails on valid input.
2954 continue
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958   # OK, works on sane cases.  Now check whether non-existent headers
2959   # can be detected and how.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #include <ac_nonexistent.h>
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   # Broken: success on invalid input.
2987 continue
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992   # Passes both tests.
2993 ac_preproc_ok=:
2994 break
2995 fi
2996 rm -f conftest.err conftest.$ac_ext
2997
2998 done
2999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3000 rm -f conftest.err conftest.$ac_ext
3001 if $ac_preproc_ok; then
3002   break
3003 fi
3004
3005     done
3006     ac_cv_prog_CPP=$CPP
3007
3008 fi
3009   CPP=$ac_cv_prog_CPP
3010 else
3011   ac_cv_prog_CPP=$CPP
3012 fi
3013 echo "$as_me:$LINENO: result: $CPP" >&5
3014 echo "${ECHO_T}$CPP" >&6
3015 ac_preproc_ok=false
3016 for ac_c_preproc_warn_flag in '' yes
3017 do
3018   # Use a header file that comes with gcc, so configuring glibc
3019   # with a fresh cross-compiler works.
3020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021   # <limits.h> exists even on freestanding compilers.
3022   # On the NeXT, cc -E runs the code through the compiler's parser,
3023   # not just through cpp. "Syntax error" is here to catch this case.
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #ifdef __STDC__
3031 # include <limits.h>
3032 #else
3033 # include <assert.h>
3034 #endif
3035                      Syntax error
3036 _ACEOF
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } >/dev/null; then
3045   if test -s conftest.err; then
3046     ac_cpp_err=$ac_c_preproc_warn_flag
3047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3048   else
3049     ac_cpp_err=
3050   fi
3051 else
3052   ac_cpp_err=yes
3053 fi
3054 if test -z "$ac_cpp_err"; then
3055   :
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060   # Broken: fails on valid input.
3061 continue
3062 fi
3063 rm -f conftest.err conftest.$ac_ext
3064
3065   # OK, works on sane cases.  Now check whether non-existent headers
3066   # can be detected and how.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #include <ac_nonexistent.h>
3074 _ACEOF
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } >/dev/null; then
3083   if test -s conftest.err; then
3084     ac_cpp_err=$ac_c_preproc_warn_flag
3085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3086   else
3087     ac_cpp_err=
3088   fi
3089 else
3090   ac_cpp_err=yes
3091 fi
3092 if test -z "$ac_cpp_err"; then
3093   # Broken: success on invalid input.
3094 continue
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099   # Passes both tests.
3100 ac_preproc_ok=:
3101 break
3102 fi
3103 rm -f conftest.err conftest.$ac_ext
3104
3105 done
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.err conftest.$ac_ext
3108 if $ac_preproc_ok; then
3109   :
3110 else
3111   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115    { (exit 1); exit 1; }; }
3116 fi
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125 echo "$as_me:$LINENO: checking for egrep" >&5
3126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3127 if test "${ac_cv_prog_egrep+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3131     then ac_cv_prog_egrep='grep -E'
3132     else ac_cv_prog_egrep='egrep'
3133     fi
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3137  EGREP=$ac_cv_prog_egrep
3138
3139
3140 if test $ac_cv_c_compiler_gnu = yes; then
3141     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3142 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3143 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146     ac_pattern="Autoconf.*'x'"
3147   cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153 #include <sgtty.h>
3154 Autoconf TIOCGETP
3155 _ACEOF
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3158   ac_cv_prog_gcc_traditional=yes
3159 else
3160   ac_cv_prog_gcc_traditional=no
3161 fi
3162 rm -f conftest*
3163
3164
3165   if test $ac_cv_prog_gcc_traditional = no; then
3166     cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <termio.h>
3173 Autoconf TCGETA
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 fi
3179 rm -f conftest*
3180
3181   fi
3182 fi
3183 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3184 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3185   if test $ac_cv_prog_gcc_traditional = yes; then
3186     CC="$CC -traditional"
3187   fi
3188 fi
3189
3190 if test "x$CC" = xgcc
3191 then
3192    cat >>confdefs.h <<\_ACEOF
3193 #define HAVE_GCC 1
3194 _ACEOF
3195
3196 fi
3197
3198 # Find a good install program.  We prefer a C program (faster),
3199 # so one script is as good as another.  But avoid the broken or
3200 # incompatible versions:
3201 # SysV /etc/install, /usr/sbin/install
3202 # SunOS /usr/etc/install
3203 # IRIX /sbin/install
3204 # AIX /bin/install
3205 # AmigaOS /C/install, which installs bootblocks on floppy discs
3206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209 # OS/2's system install, which has a completely different semantic
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3212 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222   # Account for people who put trailing slashes in PATH elements.
3223 case $as_dir/ in
3224   ./ | .// | /cC/* | \
3225   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3227   /usr/ucb/* ) ;;
3228   *)
3229     # OSF1 and SCO ODT 3.0 have their own names for install.
3230     # Don't use installbsd from OSF since it installs stuff as root
3231     # by default.
3232     for ac_prog in ginstall scoinst install; do
3233       for ac_exec_ext in '' $ac_executable_extensions; do
3234         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3235           if test $ac_prog = install &&
3236             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237             # AIX install.  It has an incompatible calling convention.
3238             :
3239           elif test $ac_prog = install &&
3240             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241             # program-specific install script used by HP pwplus--don't use.
3242             :
3243           else
3244             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245             break 3
3246           fi
3247         fi
3248       done
3249     done
3250     ;;
3251 esac
3252 done
3253
3254
3255 fi
3256   if test "${ac_cv_path_install+set}" = set; then
3257     INSTALL=$ac_cv_path_install
3258   else
3259     # As a last resort, use the slow shell script.  We don't cache a
3260     # path for INSTALL within a source directory, because that will
3261     # break other packages using the cache if that directory is
3262     # removed, or if the path is relative.
3263     INSTALL=$ac_install_sh
3264   fi
3265 fi
3266 echo "$as_me:$LINENO: result: $INSTALL" >&5
3267 echo "${ECHO_T}$INSTALL" >&6
3268
3269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3270 # It thinks the first close brace ends the variable substitution.
3271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3272
3273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3274
3275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3276
3277 if test -n "$ac_tool_prefix"; then
3278   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_RANLIB+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$RANLIB"; then
3286   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301
3302 fi
3303 fi
3304 RANLIB=$ac_cv_prog_RANLIB
3305 if test -n "$RANLIB"; then
3306   echo "$as_me:$LINENO: result: $RANLIB" >&5
3307 echo "${ECHO_T}$RANLIB" >&6
3308 else
3309   echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 fi
3312
3313 fi
3314 if test -z "$ac_cv_prog_RANLIB"; then
3315   ac_ct_RANLIB=$RANLIB
3316   # Extract the first word of "ranlib", so it can be a program name with args.
3317 set dummy ranlib; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   if test -n "$ac_ct_RANLIB"; then
3324   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331   for ac_exec_ext in '' $ac_executable_extensions; do
3332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333     ac_cv_prog_ac_ct_RANLIB="ranlib"
3334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338 done
3339
3340   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3341 fi
3342 fi
3343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3344 if test -n "$ac_ct_RANLIB"; then
3345   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3347 else
3348   echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350 fi
3351
3352   RANLIB=$ac_ct_RANLIB
3353 else
3354   RANLIB="$ac_cv_prog_RANLIB"
3355 fi
3356
3357 # Extract the first word of "mv", so it can be a program name with args.
3358 set dummy mv; ac_word=$2
3359 echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361 if test "${ac_cv_path_MV+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   case $MV in
3365   [\\/]* | ?:[\\/]*)
3366   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3367   ;;
3368   *)
3369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374   for ac_exec_ext in '' $ac_executable_extensions; do
3375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381 done
3382
3383   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3384   ;;
3385 esac
3386 fi
3387 MV=$ac_cv_path_MV
3388
3389 if test -n "$MV"; then
3390   echo "$as_me:$LINENO: result: $MV" >&5
3391 echo "${ECHO_T}$MV" >&6
3392 else
3393   echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3395 fi
3396
3397 # Extract the first word of "rm", so it can be a program name with args.
3398 set dummy rm; ac_word=$2
3399 echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401 if test "${ac_cv_path_RM+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   case $RM in
3405   [\\/]* | ?:[\\/]*)
3406   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3407   ;;
3408   *)
3409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422
3423   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3424   ;;
3425 esac
3426 fi
3427 RM=$ac_cv_path_RM
3428
3429 if test -n "$RM"; then
3430   echo "$as_me:$LINENO: result: $RM" >&5
3431 echo "${ECHO_T}$RM" >&6
3432 else
3433   echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 fi
3436
3437 # Extract the first word of "cp", so it can be a program name with args.
3438 set dummy cp; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_CP+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   case $CP in
3445   [\\/]* | ?:[\\/]*)
3446   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3447   ;;
3448   *)
3449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454   for ac_exec_ext in '' $ac_executable_extensions; do
3455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461 done
3462
3463   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3464   ;;
3465 esac
3466 fi
3467 CP=$ac_cv_path_CP
3468
3469 if test -n "$CP"; then
3470   echo "$as_me:$LINENO: result: $CP" >&5
3471 echo "${ECHO_T}$CP" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476
3477 # Extract the first word of "sed", so it can be a program name with args.
3478 set dummy sed; ac_word=$2
3479 echo "$as_me:$LINENO: checking for $ac_word" >&5
3480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481 if test "${ac_cv_path_SED+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   case $SED in
3485   [\\/]* | ?:[\\/]*)
3486   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3487   ;;
3488   *)
3489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   for ac_exec_ext in '' $ac_executable_extensions; do
3495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501 done
3502
3503   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3504   ;;
3505 esac
3506 fi
3507 SED=$ac_cv_path_SED
3508
3509 if test -n "$SED"; then
3510   echo "$as_me:$LINENO: result: $SED" >&5
3511 echo "${ECHO_T}$SED" >&6
3512 else
3513   echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3515 fi
3516
3517 # Extract the first word of "awk", so it can be a program name with args.
3518 set dummy awk; ac_word=$2
3519 echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521 if test "${ac_cv_path_AWK+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   case $AWK in
3525   [\\/]* | ?:[\\/]*)
3526   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3527   ;;
3528   *)
3529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534   for ac_exec_ext in '' $ac_executable_extensions; do
3535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541 done
3542
3543   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3544   ;;
3545 esac
3546 fi
3547 AWK=$ac_cv_path_AWK
3548
3549 if test -n "$AWK"; then
3550   echo "$as_me:$LINENO: result: $AWK" >&5
3551 echo "${ECHO_T}$AWK" >&6
3552 else
3553   echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3555 fi
3556
3557 # Extract the first word of "echo", so it can be a program name with args.
3558 set dummy echo; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_path_ECHO+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   case $ECHO in
3565   [\\/]* | ?:[\\/]*)
3566   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3567   ;;
3568   *)
3569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582
3583   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3584   ;;
3585 esac
3586 fi
3587 ECHO=$ac_cv_path_ECHO
3588
3589 if test -n "$ECHO"; then
3590   echo "$as_me:$LINENO: result: $ECHO" >&5
3591 echo "${ECHO_T}$ECHO" >&6
3592 else
3593   echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595 fi
3596
3597 # Extract the first word of "cmp", so it can be a program name with args.
3598 set dummy cmp; ac_word=$2
3599 echo "$as_me:$LINENO: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_path_CMP+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   case $CMP in
3605   [\\/]* | ?:[\\/]*)
3606   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3607   ;;
3608   *)
3609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614   for ac_exec_ext in '' $ac_executable_extensions; do
3615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618     break 2
3619   fi
3620 done
3621 done
3622
3623   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3624   ;;
3625 esac
3626 fi
3627 CMP=$ac_cv_path_CMP
3628
3629 if test -n "$CMP"; then
3630   echo "$as_me:$LINENO: result: $CMP" >&5
3631 echo "${ECHO_T}$CMP" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637 # Extract the first word of "tbl", so it can be a program name with args.
3638 set dummy tbl; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_path_TBL+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   case $TBL in
3645   [\\/]* | ?:[\\/]*)
3646   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3647   ;;
3648   *)
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654   for ac_exec_ext in '' $ac_executable_extensions; do
3655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661 done
3662
3663   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3664   ;;
3665 esac
3666 fi
3667 TBL=$ac_cv_path_TBL
3668
3669 if test -n "$TBL"; then
3670   echo "$as_me:$LINENO: result: $TBL" >&5
3671 echo "${ECHO_T}$TBL" >&6
3672 else
3673   echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3675 fi
3676
3677 # Extract the first word of "ar", so it can be a program name with args.
3678 set dummy ar; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_path_AR+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   case $AR in
3685   [\\/]* | ?:[\\/]*)
3686   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3687   ;;
3688   *)
3689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694   for ac_exec_ext in '' $ac_executable_extensions; do
3695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701 done
3702
3703   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3704   ;;
3705 esac
3706 fi
3707 AR=$ac_cv_path_AR
3708
3709 if test -n "$AR"; then
3710   echo "$as_me:$LINENO: result: $AR" >&5
3711 echo "${ECHO_T}$AR" >&6
3712 else
3713   echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717 # Extract the first word of "openssl", so it can be a program name with args.
3718 set dummy openssl; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_path_OPENSSL+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   case $OPENSSL in
3725   [\\/]* | ?:[\\/]*)
3726   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3727   ;;
3728   *)
3729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for ac_exec_ext in '' $ac_executable_extensions; do
3735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741 done
3742
3743   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3744   ;;
3745 esac
3746 fi
3747 OPENSSL=$ac_cv_path_OPENSSL
3748
3749 if test -n "$OPENSSL"; then
3750   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3751 echo "${ECHO_T}$OPENSSL" >&6
3752 else
3753   echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3755 fi
3756
3757 # Extract the first word of "mtx", so it can be a program name with args.
3758 set dummy mtx; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_path_MTX+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   case $MTX in
3765   [\\/]* | ?:[\\/]*)
3766   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3767   ;;
3768   *)
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781 done
3782
3783   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3784   ;;
3785 esac
3786 fi
3787 MTX=$ac_cv_path_MTX
3788
3789 if test -n "$MTX"; then
3790   echo "$as_me:$LINENO: result: $MTX" >&5
3791 echo "${ECHO_T}$MTX" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797 # Extract the first word of "mkisofs", so it can be a program name with args.
3798 set dummy mkisofs; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_path_MKISOFS+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   case $MKISOFS in
3805   [\\/]* | ?:[\\/]*)
3806   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3807   ;;
3808   *)
3809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3824   ;;
3825 esac
3826 fi
3827 MKISOFS=$ac_cv_path_MKISOFS
3828
3829 if test -n "$MKISOFS"; then
3830   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3831 echo "${ECHO_T}$MKISOFS" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835 fi
3836
3837 # Extract the first word of "python", so it can be a program name with args.
3838 set dummy python; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_path_PYTHON+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   case $PYTHON in
3845   [\\/]* | ?:[\\/]*)
3846   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3847   ;;
3848   *)
3849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852   IFS=$as_save_IFS
3853   test -z "$as_dir" && as_dir=.
3854   for ac_exec_ext in '' $ac_executable_extensions; do
3855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858     break 2
3859   fi
3860 done
3861 done
3862
3863   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3864   ;;
3865 esac
3866 fi
3867 PYTHON=$ac_cv_path_PYTHON
3868
3869 if test -n "$PYTHON"; then
3870   echo "$as_me:$LINENO: result: $PYTHON" >&5
3871 echo "${ECHO_T}$PYTHON" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877 # Extract the first word of "growisofs", so it can be a program name with args.
3878 set dummy growisofs; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   case $GROWISOFS in
3885   [\\/]* | ?:[\\/]*)
3886   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3887   ;;
3888   *)
3889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902
3903   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3904   ;;
3905 esac
3906 fi
3907 GROWISOFS=$ac_cv_path_GROWISOFS
3908
3909 if test -n "$GROWISOFS"; then
3910   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3911 echo "${ECHO_T}$GROWISOFS" >&6
3912 else
3913   echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3918 set dummy dvd+rw-mediainfo; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $DVDRWMEDIAINFO in
3925   [\\/]* | ?:[\\/]*)
3926   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3927   ;;
3928   *)
3929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3944   ;;
3945 esac
3946 fi
3947 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3948
3949 if test -n "$DVDRWMEDIAINFO"; then
3950   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3951 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957 # Extract the first word of "pkg-config", so it can be a program name with args.
3958 set dummy pkg-config; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   case $PKGCONFIG in
3965   [\\/]* | ?:[\\/]*)
3966   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3967   ;;
3968   *)
3969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981 done
3982
3983   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3984   ;;
3985 esac
3986 fi
3987 PKGCONFIG=$ac_cv_path_PKGCONFIG
3988
3989 if test -n "$PKGCONFIG"; then
3990   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3991 echo "${ECHO_T}$PKGCONFIG" >&6
3992 else
3993   echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3995 fi
3996
3997 # Extract the first word of "wx-config", so it can be a program name with args.
3998 set dummy wx-config; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   case $WXCONFIG in
4005   [\\/]* | ?:[\\/]*)
4006   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4007   ;;
4008   *)
4009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
4024   ;;
4025 esac
4026 fi
4027 WXCONFIG=$ac_cv_path_WXCONFIG
4028
4029 if test -n "$WXCONFIG"; then
4030   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4031 echo "${ECHO_T}$WXCONFIG" >&6
4032 else
4033   echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035 fi
4036
4037 # Extract the first word of "cdrecord", so it can be a program name with args.
4038 set dummy cdrecord; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_path_CDRECORD+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   case $CDRECORD in
4045   [\\/]* | ?:[\\/]*)
4046   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4047   ;;
4048   *)
4049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4064   ;;
4065 esac
4066 fi
4067 CDRECORD=$ac_cv_path_CDRECORD
4068
4069 if test -n "$CDRECORD"; then
4070   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4071 echo "${ECHO_T}$CDRECORD" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077 # Extract the first word of "pidof", so it can be a program name with args.
4078 set dummy pidof; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_path_PIDOF+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   case $PIDOF in
4085   [\\/]* | ?:[\\/]*)
4086   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4087   ;;
4088   *)
4089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098     break 2
4099   fi
4100 done
4101 done
4102
4103   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4104   ;;
4105 esac
4106 fi
4107 PIDOF=$ac_cv_path_PIDOF
4108
4109 if test -n "$PIDOF"; then
4110   echo "$as_me:$LINENO: result: $PIDOF" >&5
4111 echo "${ECHO_T}$PIDOF" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117
4118 test -n "$ARFLAG" || ARFLAGS="cr"
4119
4120
4121 MAKE_SHELL=/bin/sh
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131 # Make sure we can run config.sub.
4132 $ac_config_sub sun4 >/dev/null 2>&1 ||
4133   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4134 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4135    { (exit 1); exit 1; }; }
4136
4137 echo "$as_me:$LINENO: checking build system type" >&5
4138 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4139 if test "${ac_cv_build+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   ac_cv_build_alias=$build_alias
4143 test -z "$ac_cv_build_alias" &&
4144   ac_cv_build_alias=`$ac_config_guess`
4145 test -z "$ac_cv_build_alias" &&
4146   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4147 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4148    { (exit 1); exit 1; }; }
4149 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4150   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4151 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4152    { (exit 1); exit 1; }; }
4153
4154 fi
4155 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4156 echo "${ECHO_T}$ac_cv_build" >&6
4157 build=$ac_cv_build
4158 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4159 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4160 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4161
4162
4163
4164 echo "$as_me:$LINENO: checking host system type" >&5
4165 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4166 if test "${ac_cv_host+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   ac_cv_host_alias=$host_alias
4170 test -z "$ac_cv_host_alias" &&
4171   ac_cv_host_alias=$ac_cv_build_alias
4172 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4173   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4174 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4175    { (exit 1); exit 1; }; }
4176
4177 fi
4178 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4179 echo "${ECHO_T}$ac_cv_host" >&6
4180 host=$ac_cv_host
4181 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4182 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4183 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4184
4185
4186 case $host_os in
4187   *cygwin* ) CYGWIN=yes;;
4188          * ) CYGWIN=no;;
4189 esac
4190
4191 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4192 then
4193
4194
4195 if $TRUEPRG; then
4196   HAVE_SUN_OS_TRUE=
4197   HAVE_SUN_OS_FALSE='#'
4198 else
4199   HAVE_SUN_OS_TRUE='#'
4200   HAVE_SUN_OS_FALSE=
4201 fi
4202         cat >>confdefs.h <<\_ACEOF
4203 #define HAVE_SUN_OS 1
4204 _ACEOF
4205
4206 else
4207
4208
4209 if $FALSEPRG; then
4210   HAVE_SUN_OS_TRUE=
4211   HAVE_SUN_OS_FALSE='#'
4212 else
4213   HAVE_SUN_OS_TRUE='#'
4214   HAVE_SUN_OS_FALSE=
4215 fi
4216 fi
4217
4218 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4219 then
4220
4221
4222 if $TRUEPRG; then
4223   HAVE_OSF1_OS_TRUE=
4224   HAVE_OSF1_OS_FALSE='#'
4225 else
4226   HAVE_OSF1_OS_TRUE='#'
4227   HAVE_OSF1_OS_FALSE=
4228 fi
4229         cat >>confdefs.h <<\_ACEOF
4230 #define HAVE_OSF1_OS 1
4231 _ACEOF
4232
4233 else
4234
4235
4236 if $FALSEPRG; then
4237   HAVE_OSF1_OS_TRUE=
4238   HAVE_OSF1_OS_FALSE='#'
4239 else
4240   HAVE_OSF1_OS_TRUE='#'
4241   HAVE_OSF1_OS_FALSE=
4242 fi
4243 fi
4244
4245 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4246 then
4247
4248
4249 if $TRUEPRG; then
4250   HAVE_AIX_OS_TRUE=
4251   HAVE_AIX_OS_FALSE='#'
4252 else
4253   HAVE_AIX_OS_TRUE='#'
4254   HAVE_AIX_OS_FALSE=
4255 fi
4256         cat >>confdefs.h <<\_ACEOF
4257 #define HAVE_AIX_OS 1
4258 _ACEOF
4259
4260 else
4261
4262
4263 if $FALSEPRG; then
4264   HAVE_AIX_OS_TRUE=
4265   HAVE_AIX_OS_FALSE='#'
4266 else
4267   HAVE_AIX_OS_TRUE='#'
4268   HAVE_AIX_OS_FALSE=
4269 fi
4270 fi
4271
4272 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4273 then
4274
4275
4276 if $TRUEPRG; then
4277   HAVE_HPUX_OS_TRUE=
4278   HAVE_HPUX_OS_FALSE='#'
4279 else
4280   HAVE_HPUX_OS_TRUE='#'
4281   HAVE_HPUX_OS_FALSE=
4282 fi
4283         cat >>confdefs.h <<\_ACEOF
4284 #define HAVE_HPUX_OS 1
4285 _ACEOF
4286
4287 else
4288
4289
4290 if $FALSEPRG; then
4291   HAVE_HPUX_OS_TRUE=
4292   HAVE_HPUX_OS_FALSE='#'
4293 else
4294   HAVE_HPUX_OS_TRUE='#'
4295   HAVE_HPUX_OS_FALSE=
4296 fi
4297 fi
4298
4299 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4300 then
4301
4302
4303 if $TRUEPRG; then
4304   HAVE_LINUX_OS_TRUE=
4305   HAVE_LINUX_OS_FALSE='#'
4306 else
4307   HAVE_LINUX_OS_TRUE='#'
4308   HAVE_LINUX_OS_FALSE=
4309 fi
4310         cat >>confdefs.h <<\_ACEOF
4311 #define HAVE_LINUX_OS 1
4312 _ACEOF
4313
4314 else
4315
4316
4317 if $FALSEPRG; then
4318   HAVE_LINUX_OS_TRUE=
4319   HAVE_LINUX_OS_FALSE='#'
4320 else
4321   HAVE_LINUX_OS_TRUE='#'
4322   HAVE_LINUX_OS_FALSE=
4323 fi
4324 fi
4325
4326 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4327 then
4328
4329
4330 if $TRUEPRG; then
4331   HAVE_FREEBSD_OS_TRUE=
4332   HAVE_FREEBSD_OS_FALSE='#'
4333 else
4334   HAVE_FREEBSD_OS_TRUE='#'
4335   HAVE_FREEBSD_OS_FALSE=
4336 fi
4337         cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_FREEBSD_OS 1
4339 _ACEOF
4340
4341 else
4342
4343
4344 if $FALSEPRG; then
4345   HAVE_FREEBSD_OS_TRUE=
4346   HAVE_FREEBSD_OS_FALSE='#'
4347 else
4348   HAVE_FREEBSD_OS_TRUE='#'
4349   HAVE_FREEBSD_OS_FALSE=
4350 fi
4351 fi
4352
4353 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4354 then
4355
4356
4357 if $TRUEPRG; then
4358   HAVE_NETBSD_OS_TRUE=
4359   HAVE_NETBSD_OS_FALSE='#'
4360 else
4361   HAVE_NETBSD_OS_TRUE='#'
4362   HAVE_NETBSD_OS_FALSE=
4363 fi
4364         cat >>confdefs.h <<\_ACEOF
4365 #define HAVE_NETBSD_OS 1
4366 _ACEOF
4367
4368 else
4369
4370
4371 if $FALSEPRG; then
4372   HAVE_NETBSD_OS_TRUE=
4373   HAVE_NETBSD_OS_FALSE='#'
4374 else
4375   HAVE_NETBSD_OS_TRUE='#'
4376   HAVE_NETBSD_OS_FALSE=
4377 fi
4378 fi
4379
4380 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4381 then
4382
4383
4384 if $TRUEPRG; then
4385   HAVE_OPENBSD_OS_TRUE=
4386   HAVE_OPENBSD_OS_FALSE='#'
4387 else
4388   HAVE_OPENBSD_OS_TRUE='#'
4389   HAVE_OPENBSD_OS_FALSE=
4390 fi
4391         cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_OPENBSD_OS 1
4393 _ACEOF
4394
4395 else
4396
4397
4398 if $FALSEPRG; then
4399   HAVE_OPENBSD_OS_TRUE=
4400   HAVE_OPENBSD_OS_FALSE='#'
4401 else
4402   HAVE_OPENBSD_OS_TRUE='#'
4403   HAVE_OPENBSD_OS_FALSE=
4404 fi
4405 fi
4406
4407 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4408 then
4409
4410
4411 if $TRUEPRG; then
4412   HAVE_BSDI_OS_TRUE=
4413   HAVE_BSDI_OS_FALSE='#'
4414 else
4415   HAVE_BSDI_OS_TRUE='#'
4416   HAVE_BSDI_OS_FALSE=
4417 fi
4418         cat >>confdefs.h <<\_ACEOF
4419 #define HAVE_BSDI_OS 1
4420 _ACEOF
4421
4422 else
4423
4424
4425 if $FALSEPRG; then
4426   HAVE_BSDI_OS_TRUE=
4427   HAVE_BSDI_OS_FALSE='#'
4428 else
4429   HAVE_BSDI_OS_TRUE='#'
4430   HAVE_BSDI_OS_FALSE=
4431 fi
4432 fi
4433
4434 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4435 then
4436
4437
4438 if $TRUEPRG; then
4439   HAVE_SGI_OS_TRUE=
4440   HAVE_SGI_OS_FALSE='#'
4441 else
4442   HAVE_SGI_OS_TRUE='#'
4443   HAVE_SGI_OS_FALSE=
4444 fi
4445         cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_SGI_OS 1
4447 _ACEOF
4448
4449 else
4450
4451
4452 if $FALSEPRG; then
4453   HAVE_SGI_OS_TRUE=
4454   HAVE_SGI_OS_FALSE='#'
4455 else
4456   HAVE_SGI_OS_TRUE='#'
4457   HAVE_SGI_OS_FALSE=
4458 fi
4459 fi
4460
4461 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4462 then
4463
4464
4465 if $TRUEPRG; then
4466   HAVE_IRIX_OS_TRUE=
4467   HAVE_IRIX_OS_FALSE='#'
4468 else
4469   HAVE_IRIX_OS_TRUE='#'
4470   HAVE_IRIX_OS_FALSE=
4471 fi
4472         cat >>confdefs.h <<\_ACEOF
4473 #define HAVE_IRIX_OS 1
4474 _ACEOF
4475
4476 else
4477
4478
4479 if $FALSEPRG; then
4480   HAVE_IRIX_OS_TRUE=
4481   HAVE_IRIX_OS_FALSE='#'
4482 else
4483   HAVE_IRIX_OS_TRUE='#'
4484   HAVE_IRIX_OS_FALSE=
4485 fi
4486 fi
4487
4488 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4489 then
4490
4491
4492 if $TRUEPRG; then
4493   HAVE_DARWIN_OS_TRUE=
4494   HAVE_DARWIN_OS_FALSE='#'
4495 else
4496   HAVE_DARWIN_OS_TRUE='#'
4497   HAVE_DARWIN_OS_FALSE=
4498 fi
4499     cat >>confdefs.h <<\_ACEOF
4500 #define HAVE_DARWIN_OS 1
4501 _ACEOF
4502
4503 else
4504
4505
4506 if $FALSEPRG; then
4507   HAVE_DARWIN_OS_TRUE=
4508   HAVE_DARWIN_OS_FALSE='#'
4509 else
4510   HAVE_DARWIN_OS_TRUE='#'
4511   HAVE_DARWIN_OS_FALSE=
4512 fi
4513 fi
4514
4515
4516 # -----------------------------------------------------------
4517 # ----------------------------------------------------------
4518 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4519 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4520 if test "x$DISTNAME" != "x"
4521 then
4522         echo "distname set to $DISTNAME"
4523 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4524 then
4525         DISTNAME=alpha
4526 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4527 then
4528         DISTNAME=aix
4529 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4530 then
4531         DISTNAME=hpux
4532 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4533 then
4534         DISTNAME=solaris
4535 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4536 then
4537         DISTNAME=freebsd
4538 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4539 then
4540         DISTNAME=netbsd
4541 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4542 then
4543         DISTNAME=openbsd
4544 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4545 then
4546         DISTNAME=irix
4547 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4548 then
4549         DISTNAME=bsdi
4550 elif test -f /etc/SuSE-release
4551 then
4552         DISTNAME=suse
4553 elif test -d /etc/SuSEconfig
4554 then
4555         DISTNAME=suse5
4556 elif test -f /etc/mandrake-release
4557 then
4558         DISTNAME=mandrake
4559 elif test -f /etc/whitebox-release
4560 then
4561        DISTNAME=redhat
4562 elif test -f /etc/redhat-release
4563 then
4564         DISTNAME=redhat
4565 elif test -f /etc/gentoo-release
4566 then
4567         DISTNAME=gentoo
4568 elif test -f /etc/debian_version
4569 then
4570         DISTNAME=debian
4571 elif test -f /etc/slackware-version
4572 then
4573         DISTNAME=slackware
4574 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4575 then
4576     DISTNAME=darwin
4577 elif test -f /etc/engarde-version
4578 then
4579         DISTNAME=engarde
4580 elif test "$CYGWIN" = yes
4581 then
4582         DISTNAME=cygwin
4583         cat >>confdefs.h <<\_ACEOF
4584 #define HAVE_CYGWIN 1
4585 _ACEOF
4586
4587 else
4588         DISTNAME=unknown
4589 fi
4590 echo "$as_me:$LINENO: result: done" >&5
4591 echo "${ECHO_T}done" >&6
4592
4593
4594 # -----------------------------------------------------------
4595 # ----------------------------------------------------------
4596
4597
4598
4599 if false; then
4600   INSIDE_GNOME_COMMON_TRUE=
4601   INSIDE_GNOME_COMMON_FALSE='#'
4602 else
4603   INSIDE_GNOME_COMMON_TRUE='#'
4604   INSIDE_GNOME_COMMON_FALSE=
4605 fi
4606
4607         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4608
4609         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4610
4611
4612 # ------------------------------------------------------------------
4613 #  If the user has not set --prefix, we set our default to nothing.
4614 #  In this case, if the user has not set --sysconfdir, we set it
4615 #  to the package default of /etc/bacula.  If either --prefix or
4616 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4617 # ------------------------------------------------------------------
4618 if test x${prefix} = xNONE ; then
4619     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4620         sysconfdir=/etc/bacula
4621     fi
4622     prefix=
4623 fi
4624 sysconfdir=`eval echo ${sysconfdir}`
4625
4626 # -------------------------------------------------------------------------
4627 #  If the user has not set --exec-prefix, we default to ${prefix}
4628 # -------------------------------------------------------------------------
4629 if test x${exec_prefix} = xNONE ; then
4630     exec_prefix=${prefix}
4631 fi
4632
4633 # ------------------------------------------------------------------
4634 # If the user has not set --sbindir, we set our default as /sbin
4635 # ------------------------------------------------------------------
4636 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4637     sbindir=${exec_prefix}/sbin
4638 fi
4639 sbindir=`eval echo ${sbindir}`
4640
4641 # ------------------------------------------------------------------
4642 # All list of languages for which a translation exist. Each
4643 #  language is separated by a space.
4644 # ------------------------------------------------------------------
4645 ALL_LINGUAS=""
4646
4647 for ac_prog in msgfmt
4648 do
4649   # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_MSGFMT+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $MSGFMT in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   ;;
4676 esac
4677 fi
4678 MSGFMT=$ac_cv_path_MSGFMT
4679
4680 if test -n "$MSGFMT"; then
4681   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682 echo "${ECHO_T}$MSGFMT" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4686 fi
4687
4688   test -n "$MSGFMT" && break
4689 done
4690 test -n "$MSGFMT" || MSGFMT="no"
4691
4692 if test "$MSGFMT" = "no"
4693 then
4694    echo 'msgfmt program not found, disabling NLS !'
4695    USE_NLS=no
4696    USE_INCLUDED_LIBINTL=no
4697 #else
4698 #   AM_GNU_GETTEXT
4699 fi
4700
4701
4702 support_mysql=no
4703 support_sqlite=no
4704 support_postgresql=no
4705 support_smartalloc=yes
4706 support_readline=yes
4707 support_conio=yes
4708 support_gnome=no
4709 support_wx_console=no
4710 gnome_version=
4711 support_static_tools=no
4712 support_static_fd=no
4713 support_static_sd=no
4714 support_static_dir=no
4715 support_static_cons=no
4716 support_python=no
4717 build_client_only=no
4718 cats=
4719 db_name=Internal
4720 DB_NAME=bdb
4721
4722
4723 # -------------------------------------------
4724 # gnome (default off)
4725 # -------------------------------------------
4726 # Check whether --enable-gnome or --disable-gnome was given.
4727 if test "${enable_gnome+set}" = set; then
4728   enableval="$enable_gnome"
4729   if test x$enableval = xyes; then
4730     support_gnome=yes
4731   fi
4732 fi;
4733
4734 GNOME_DIR=
4735 if test x$support_gnome = xyes; then
4736   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4737   pkg=$?
4738   if test $pkg = 0; then
4739      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4740      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4741      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4742      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4743
4744
4745
4746
4747      GNOME_DIR=src/gnome2-console
4748      gnome_version="Version 2.x"
4749   else
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4762 if test "${with_gnome_includes+set}" = set; then
4763   withval="$with_gnome_includes"
4764
4765         CFLAGS="$CFLAGS -I$withval"
4766
4767 fi;
4768
4769
4770 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4771 if test "${with_gnome_libs+set}" = set; then
4772   withval="$with_gnome_libs"
4773
4774         LDFLAGS="$LDFLAGS -L$withval"
4775         gnome_prefix=$withval
4776
4777 fi;
4778
4779
4780 # Check whether --with-gnome or --without-gnome was given.
4781 if test "${with_gnome+set}" = set; then
4782   withval="$with_gnome"
4783   if test x$withval = xyes; then
4784                         want_gnome=yes
4785                                                                         :
4786                 else
4787                         if test "x$withval" = xno; then
4788                                 want_gnome=no
4789                         else
4790                                 want_gnome=yes
4791                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4792                                 CFLAGS="$CFLAGS -I$withval/include"
4793                                 gnome_prefix=$withval/lib
4794                         fi
4795                 fi
4796 else
4797   want_gnome=yes
4798 fi;
4799
4800         if test "x$want_gnome" = xyes; then
4801
4802             # Extract the first word of "gnome-config", so it can be a program name with args.
4803 set dummy gnome-config; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   case $GNOME_CONFIG in
4810   [\\/]* | ?:[\\/]*)
4811   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4812   ;;
4813   *)
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827
4828   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4829   ;;
4830 esac
4831 fi
4832 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4833
4834 if test -n "$GNOME_CONFIG"; then
4835   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4836 echo "${ECHO_T}$GNOME_CONFIG" >&6
4837 else
4838   echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842             if test "$GNOME_CONFIG" = "no"; then
4843               no_gnome_config="yes"
4844             else
4845               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4846 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4847               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4848                 echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850
4851
4852         # Extract the first word of "orbit-config", so it can be a program name with args.
4853 set dummy orbit-config; ac_word=$2
4854 echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   case $ORBIT_CONFIG in
4860   [\\/]* | ?:[\\/]*)
4861   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4862   ;;
4863   *)
4864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877
4878   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4879   ;;
4880 esac
4881 fi
4882 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4883
4884 if test -n "$ORBIT_CONFIG"; then
4885   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4886 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4887 else
4888   echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4890 fi
4891
4892         # Extract the first word of "orbit-idl", so it can be a program name with args.
4893 set dummy orbit-idl; ac_word=$2
4894 echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   case $ORBIT_IDL in
4900   [\\/]* | ?:[\\/]*)
4901   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4902   ;;
4903   *)
4904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917
4918   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4919   ;;
4920 esac
4921 fi
4922 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4923
4924 if test -n "$ORBIT_IDL"; then
4925   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4926 echo "${ECHO_T}$ORBIT_IDL" >&6
4927 else
4928   echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4933 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4934 if test "${gnome_cv_orbit_found+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937
4938                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4939                         gnome_cv_orbit_found=no
4940                 else
4941                         gnome_cv_orbit_found=yes
4942                 fi
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4946 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4947
4948
4949 if test x$gnome_cv_orbit_found = xyes; then
4950   HAVE_ORBIT_TRUE=
4951   HAVE_ORBIT_FALSE='#'
4952 else
4953   HAVE_ORBIT_TRUE='#'
4954   HAVE_ORBIT_FALSE=
4955 fi
4956         if test x$gnome_cv_orbit_found = xyes; then
4957
4958                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4959                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4960
4961
4962         else
4963                 if test xfail = xfailure; then
4964                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4965 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4966    { (exit 1); exit 1; }; }
4967                 fi
4968         fi
4969
4970         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4971 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4972 if test "${gnome_cv_gnorba_found+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975
4976                 gnome_cv_gnorba_found=no
4977                 if test x$gnome_cv_orbit_found = xyes; then
4978                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4979                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4980                         if test -n "$GNORBA_LIBS"; then
4981                                 gnome_cv_gnorba_found=yes
4982                         fi
4983                 fi
4984
4985 fi
4986 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4987 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4988
4989
4990 if test x$gnome_cv_gnorba_found = xyes; then
4991   HAVE_GNORBA_TRUE=
4992   HAVE_GNORBA_FALSE='#'
4993 else
4994   HAVE_GNORBA_TRUE='#'
4995   HAVE_GNORBA_FALSE=
4996 fi
4997         if test x$gnome_cv_orbit_found = xyes; then
4998
4999                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5000                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5001
5002
5003         else
5004                 if test xfail = xfailure; then
5005                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5006 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5007    { (exit 1); exit 1; }; }
5008                 fi
5009         fi
5010
5011                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5012                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5013                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5014                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5015                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5016                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5017                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5018
5019               else
5020                 echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5022                 no_gnome_config="yes"
5023               fi
5024             fi
5025
5026             if test x$exec_prefix = xNONE; then
5027                 if test x$prefix = xNONE; then
5028                     gnome_prefix=$ac_default_prefix/lib
5029                 else
5030                     gnome_prefix=$prefix/lib
5031                 fi
5032             else
5033                 gnome_prefix=`eval echo \`echo $libdir\``
5034             fi
5035
5036             if test "$no_gnome_config" = "yes"; then
5037               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5038 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5039               if test -f $gnome_prefix/gnomeConf.sh; then
5040                 echo "$as_me:$LINENO: result: found" >&5
5041 echo "${ECHO_T}found" >&6
5042                 echo "loading gnome configuration from" \
5043                      "$gnome_prefix/gnomeConf.sh"
5044                 . $gnome_prefix/gnomeConf.sh
5045
5046               else
5047                 echo "$as_me:$LINENO: result: not found" >&5
5048 echo "${ECHO_T}not found" >&6
5049                 if test xfail = xfail; then
5050                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5051 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5052    { (exit 1); exit 1; }; }
5053                 fi
5054               fi
5055             fi
5056         fi
5057
5058         if test -n ""; then
5059           n=""
5060           for i in $n; do
5061             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5062 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5063             case $i in
5064               applets)
5065
5066                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5067                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5068 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5069               docklets)
5070
5071                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5072                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5073 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5074               capplet)
5075
5076                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5077                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5078 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5079               *)
5080                 echo "$as_me:$LINENO: result: unknown library" >&5
5081 echo "${ECHO_T}unknown library" >&6
5082             esac
5083             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5084             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5085           done
5086         fi
5087
5088
5089      GNOME_DIR=src/gnome-console
5090      gnome_version="Version 1.4"
5091   fi
5092 fi
5093
5094
5095
5096 # -------------------------------------------
5097 # wx-console (default off)
5098 # -------------------------------------------
5099 # Check whether --enable-wx-console or --disable-wx-console was given.
5100 if test "${enable_wx_console+set}" = set; then
5101   enableval="$enable_wx_console"
5102   if test x$enableval = xyes; then
5103     support_wx_console=yes
5104   fi
5105 fi;
5106
5107 WX_DIR=
5108 if test x$support_wx_console = xyes; then
5109   abc=`$WXCONFIG --cppflags`
5110   pkg=$?
5111   if test $pkg = 0; then
5112      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5113      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5114
5115
5116      WX_DIR=src/wx-console
5117   else
5118      echo " "
5119      echo "wx-config program not found. wx-console disabled."
5120      echo " "
5121      support_wx_console=no
5122   fi
5123 fi
5124
5125
5126
5127 # -------------------------------------------
5128 # tray-monitor (default off)
5129 # -------------------------------------------
5130 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5131 if test "${enable_tray_monitor+set}" = set; then
5132   enableval="$enable_tray_monitor"
5133   if test x$enableval = xyes; then
5134     support_tray_monitor=yes
5135   fi
5136 fi;
5137
5138 TRAY_MONITOR_DIR=
5139 if test x$support_tray_monitor = xyes; then
5140   abc=`$PKGCONFIG --exists gtk+-2.0`
5141   pkg=$?
5142   if test $pkg = 0; then
5143      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5144      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5145
5146
5147      TRAY_MONITOR_DIR=src/tray-monitor
5148      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5149      pkg=$?
5150      if test $pkg = 0; then
5151         cat >>confdefs.h <<\_ACEOF
5152 #define HAVE_GTK_2_4 1
5153 _ACEOF
5154
5155      fi
5156   fi
5157 fi
5158
5159
5160 # -------------------------------------------
5161 # smartalloc (default off)
5162 # -------------------------------------------
5163 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5164 if test "${enable_smartalloc+set}" = set; then
5165   enableval="$enable_smartalloc"
5166   if test x$enableval = xno; then
5167     support_smartalloc=no
5168   fi
5169 fi;
5170
5171 if test x$support_smartalloc = xyes; then
5172    cat >>confdefs.h <<\_ACEOF
5173 #define SMARTALLOC 1
5174 _ACEOF
5175
5176 fi
5177
5178 # -------------------------------------------
5179 # static-tools (default off)
5180 # -------------------------------------------
5181 # Check whether --enable-static-tools or --disable-static-tools was given.
5182 if test "${enable_static_tools+set}" = set; then
5183   enableval="$enable_static_tools"
5184   if test x$enableval = xyes; then
5185      support_static_tools=yes
5186    fi
5187 fi;
5188
5189 TTOOL_LDFLAGS=
5190 if test x$support_static_tools = xyes; then
5191    TTOOL_LDFLAGS="-static"
5192 fi
5193
5194
5195 # -------------------------------------------
5196 # static-fd    (default off)
5197 # -------------------------------------------
5198 # Check whether --enable-static-fd or --disable-static-fd was given.
5199 if test "${enable_static_fd+set}" = set; then
5200   enableval="$enable_static_fd"
5201   if test x$enableval = xyes; then
5202      support_static_fd=yes
5203    fi
5204 fi;
5205
5206 STATIC_FD=
5207 if test x$support_static_fd = xyes; then
5208    STATIC_FD="static-bacula-fd"
5209 fi
5210
5211
5212 # -------------------------------------------
5213 # static-sd    (default off)
5214 # -------------------------------------------
5215 # Check whether --enable-static-sd or --disable-static-sd was given.
5216 if test "${enable_static_sd+set}" = set; then
5217   enableval="$enable_static_sd"
5218   if test x$enableval = xyes; then
5219      support_static_sd=yes
5220    fi
5221 fi;
5222
5223 STATIC_SD=
5224 if test x$support_static_sd = xyes; then
5225    STATIC_SD="static-bacula-sd"
5226 fi
5227
5228
5229 # -------------------------------------------
5230 # static-dir   (default off)
5231 # -------------------------------------------
5232 # Check whether --enable-static-dir or --disable-static-dir was given.
5233 if test "${enable_static_dir+set}" = set; then
5234   enableval="$enable_static_dir"
5235   if test x$enableval = xyes; then
5236      support_static_dir=yes
5237    fi
5238 fi;
5239
5240 STATIC_DIR=
5241 if test x$support_static_dir = xyes; then
5242    STATIC_DIR="static-bacula-dir"
5243 fi
5244
5245
5246 # -------------------------------------------
5247 # static-cons  (default off)
5248 # -------------------------------------------
5249 # Check whether --enable-static-cons or --disable-static-cons was given.
5250 if test "${enable_static_cons+set}" = set; then
5251   enableval="$enable_static_cons"
5252   if test x$enableval = xyes; then
5253      support_static_cons=yes
5254    fi
5255 fi;
5256
5257 STATIC_CONS=
5258 STATIC_GNOME_CONS=
5259 STATIC_WX_CONS=
5260 if test x$support_static_cons = xyes; then
5261    STATIC_CONS="static-bconsole"
5262    STATIC_GNOME_CONS="static-gnome-console"
5263    STATIC_WX_CONS="static-wx-console"
5264 fi
5265
5266
5267
5268
5269 # -------------------------------------------
5270 # client_only  (default off)
5271 # -------------------------------------------
5272 # Check whether --enable-client-only or --disable-client-only was given.
5273 if test "${enable_client_only+set}" = set; then
5274   enableval="$enable_client_only"
5275   if test x$enableval = xyes; then
5276      build_client_only=yes
5277     db_name=None
5278     DB_NAME=none
5279    fi
5280 fi;
5281 if test x$build_client_only = xno; then
5282    ALL_DIRS="subdirs"
5283 else
5284    ALL_DIRS=""
5285 fi
5286
5287
5288 # ---------------------------------------------------
5289 # Check for conio (Bacula readline substitute)(
5290 # ---------------------------------------------------
5291 # this allows you to turn it completely off
5292 # Check whether --enable-conio or --disable-conio was given.
5293 if test "${enable_conio+set}" = set; then
5294   enableval="$enable_conio"
5295   if test x$enableval = xno; then
5296     support_conio=no
5297   fi
5298 fi;
5299
5300 got_conio="no"
5301 if test x$support_conio = xyes; then
5302    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5303 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5304 if test "${ac_cv_header_stdc+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 #include <stdlib.h>
5314 #include <stdarg.h>
5315 #include <string.h>
5316 #include <float.h>
5317
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   ac_cv_header_stdc=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_header_stdc=no
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356
5357 if test $ac_cv_header_stdc = yes; then
5358   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5359   cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 #include <string.h>
5366
5367 _ACEOF
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369   $EGREP "memchr" >/dev/null 2>&1; then
5370   :
5371 else
5372   ac_cv_header_stdc=no
5373 fi
5374 rm -f conftest*
5375
5376 fi
5377
5378 if test $ac_cv_header_stdc = yes; then
5379   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5380   cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 #include <stdlib.h>
5387
5388 _ACEOF
5389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5390   $EGREP "free" >/dev/null 2>&1; then
5391   :
5392 else
5393   ac_cv_header_stdc=no
5394 fi
5395 rm -f conftest*
5396
5397 fi
5398
5399 if test $ac_cv_header_stdc = yes; then
5400   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5401   if test "$cross_compiling" = yes; then
5402   :
5403 else
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410 #include <ctype.h>
5411 #if ((' ' & 0x0FF) == 0x020)
5412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5414 #else
5415 # define ISLOWER(c) \
5416                    (('a' <= (c) && (c) <= 'i') \
5417                      || ('j' <= (c) && (c) <= 'r') \
5418                      || ('s' <= (c) && (c) <= 'z'))
5419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5420 #endif
5421
5422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5423 int
5424 main ()
5425 {
5426   int i;
5427   for (i = 0; i < 256; i++)
5428     if (XOR (islower (i), ISLOWER (i))
5429         || toupper (i) != TOUPPER (i))
5430       exit(2);
5431   exit (0);
5432 }
5433 _ACEOF
5434 rm -f conftest$ac_exeext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436   (eval $ac_link) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   :
5446 else
5447   echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ( exit $ac_status )
5452 ac_cv_header_stdc=no
5453 fi
5454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 fi
5457 fi
5458 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5459 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5460 if test $ac_cv_header_stdc = yes; then
5461
5462 cat >>confdefs.h <<\_ACEOF
5463 #define STDC_HEADERS 1
5464 _ACEOF
5465
5466 fi
5467
5468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5479                   inttypes.h stdint.h unistd.h
5480 do
5481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5482 echo "$as_me:$LINENO: checking for $ac_header" >&5
5483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493 $ac_includes_default
5494
5495 #include <$ac_header>
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499   (eval $ac_compile) 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag"
5507                          || test ! -s conftest.err'
5508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509   (eval $ac_try) 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; } &&
5513          { ac_try='test -s conftest.$ac_objext'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; }; then
5519   eval "$as_ac_Header=yes"
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 eval "$as_ac_Header=no"
5525 fi
5526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5527 fi
5528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531   cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 fi
5536
5537 done
5538
5539
5540 if test "${ac_cv_header_termcap_h+set}" = set; then
5541   echo "$as_me:$LINENO: checking for termcap.h" >&5
5542 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5543 if test "${ac_cv_header_termcap_h+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 fi
5546 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5547 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5548 else
5549   # Is the header compilable?
5550 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5551 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h.  */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h.  */
5558 $ac_includes_default
5559 #include <termcap.h>
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563   (eval $ac_compile) 2>conftest.er1
5564   ac_status=$?
5565   grep -v '^ *+' conftest.er1 >conftest.err
5566   rm -f conftest.er1
5567   cat conftest.err >&5
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } &&
5570          { ac_try='test -z "$ac_c_werror_flag"
5571                          || test ! -s conftest.err'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; } &&
5577          { ac_try='test -s conftest.$ac_objext'
5578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; }; then
5583   ac_header_compiler=yes
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 ac_header_compiler=no
5589 fi
5590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5592 echo "${ECHO_T}$ac_header_compiler" >&6
5593
5594 # Is the header present?
5595 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5596 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 #include <termcap.h>
5604 _ACEOF
5605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } >/dev/null; then
5613   if test -s conftest.err; then
5614     ac_cpp_err=$ac_c_preproc_warn_flag
5615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616   else
5617     ac_cpp_err=
5618   fi
5619 else
5620   ac_cpp_err=yes
5621 fi
5622 if test -z "$ac_cpp_err"; then
5623   ac_header_preproc=yes
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628   ac_header_preproc=no
5629 fi
5630 rm -f conftest.err conftest.$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5632 echo "${ECHO_T}$ac_header_preproc" >&6
5633
5634 # So?  What about this header?
5635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5636   yes:no: )
5637     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5638 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5639     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5640 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5641     ac_header_preproc=yes
5642     ;;
5643   no:yes:* )
5644     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5645 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5647 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5649 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5650     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5651 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5652     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5653 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5654     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5655 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5656     (
5657       cat <<\_ASBOX
5658 ## ------------------------------------------ ##
5659 ## Report this to the AC_PACKAGE_NAME lists.  ##
5660 ## ------------------------------------------ ##
5661 _ASBOX
5662     ) |
5663       sed "s/^/$as_me: WARNING:     /" >&2
5664     ;;
5665 esac
5666 echo "$as_me:$LINENO: checking for termcap.h" >&5
5667 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5668 if test "${ac_cv_header_termcap_h+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   ac_cv_header_termcap_h=$ac_header_preproc
5672 fi
5673 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5674 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5675
5676 fi
5677 if test $ac_cv_header_termcap_h = yes; then
5678    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5679 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5680 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   ac_check_lib_save_LIBS=$LIBS
5684 LIBS="-ltermcap  $LIBS"
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h.  */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h.  */
5691
5692 /* Override any gcc2 internal prototype to avoid an error.  */
5693 #ifdef __cplusplus
5694 extern "C"
5695 #endif
5696 /* We use char because int might match the return type of a gcc2
5697    builtin and then its argument prototype would still apply.  */
5698 char tgetent ();
5699 int
5700 main ()
5701 {
5702 tgetent ();
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709   (eval $ac_link) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_c_werror_flag"
5717                          || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest$ac_exeext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_lib_termcap_tgetent=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_cv_lib_termcap_tgetent=no
5735 fi
5736 rm -f conftest.err conftest.$ac_objext \
5737       conftest$ac_exeext conftest.$ac_ext
5738 LIBS=$ac_check_lib_save_LIBS
5739 fi
5740 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5741 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5742 if test $ac_cv_lib_termcap_tgetent = yes; then
5743    CONS_LIBS="-ltermcap"
5744          CONS_OBJ="conio.o"
5745          CONS_SRC="conio.c"
5746          got_conio="yes"
5747          support_readline=no
5748
5749 cat >>confdefs.h <<\_ACEOF
5750 #define HAVE_CONIO 1
5751 _ACEOF
5752
5753
5754 else
5755    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5756 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5757 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   ac_check_lib_save_LIBS=$LIBS
5761 LIBS="-lncurses  $LIBS"
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768
5769 /* Override any gcc2 internal prototype to avoid an error.  */
5770 #ifdef __cplusplus
5771 extern "C"
5772 #endif
5773 /* We use char because int might match the return type of a gcc2
5774    builtin and then its argument prototype would still apply.  */
5775 char tgetent ();
5776 int
5777 main ()
5778 {
5779 tgetent ();
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext conftest$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786   (eval $ac_link) 2>conftest.er1
5787   ac_status=$?
5788   grep -v '^ *+' conftest.er1 >conftest.err
5789   rm -f conftest.er1
5790   cat conftest.err >&5
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } &&
5793          { ac_try='test -z "$ac_c_werror_flag"
5794                          || test ! -s conftest.err'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_lib_ncurses_tgetent=yes
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_cv_lib_ncurses_tgetent=no
5812 fi
5813 rm -f conftest.err conftest.$ac_objext \
5814       conftest$ac_exeext conftest.$ac_ext
5815 LIBS=$ac_check_lib_save_LIBS
5816 fi
5817 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5818 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5819 if test $ac_cv_lib_ncurses_tgetent = yes; then
5820    CONS_LIBS="-lncurses"
5821            CONS_OBJ="conio.o"
5822            CONS_SRC="conio.c"
5823            got_conio="yes"
5824            support_readline=no
5825
5826 cat >>confdefs.h <<\_ACEOF
5827 #define HAVE_CONIO 1
5828 _ACEOF
5829
5830
5831 fi
5832
5833
5834 fi
5835
5836
5837 else
5838
5839
5840 for ac_header in curses.h
5841 do
5842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5844   echo "$as_me:$LINENO: checking for $ac_header" >&5
5845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 fi
5849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5851 else
5852   # Is the header compilable?
5853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 $ac_includes_default
5862 #include <$ac_header>
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866   (eval $ac_compile) 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag"
5874                          || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest.$ac_objext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   ac_header_compiler=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_header_compiler=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5895 echo "${ECHO_T}$ac_header_compiler" >&6
5896
5897 # Is the header present?
5898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 #include <$ac_header>
5907 _ACEOF
5908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } >/dev/null; then
5916   if test -s conftest.err; then
5917     ac_cpp_err=$ac_c_preproc_warn_flag
5918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5919   else
5920     ac_cpp_err=
5921   fi
5922 else
5923   ac_cpp_err=yes
5924 fi
5925 if test -z "$ac_cpp_err"; then
5926   ac_header_preproc=yes
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931   ac_header_preproc=no
5932 fi
5933 rm -f conftest.err conftest.$ac_ext
5934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5935 echo "${ECHO_T}$ac_header_preproc" >&6
5936
5937 # So?  What about this header?
5938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5939   yes:no: )
5940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5944     ac_header_preproc=yes
5945     ;;
5946   no:yes:* )
5947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5959     (
5960       cat <<\_ASBOX
5961 ## ------------------------------------------ ##
5962 ## Report this to the AC_PACKAGE_NAME lists.  ##
5963 ## ------------------------------------------ ##
5964 _ASBOX
5965     ) |
5966       sed "s/^/$as_me: WARNING:     /" >&2
5967     ;;
5968 esac
5969 echo "$as_me:$LINENO: checking for $ac_header" >&5
5970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   eval "$as_ac_Header=\$ac_header_preproc"
5975 fi
5976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5978
5979 fi
5980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5981   cat >>confdefs.h <<_ACEOF
5982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983 _ACEOF
5984
5985 fi
5986
5987 done
5988
5989          echo "$as_me:$LINENO: checking for term.h" >&5
5990 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5991 if test "${ac_cv_header_term_h+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #if HAVE_CURSES_H
6001 #include <curses.h>
6002 #endif
6003
6004
6005 #include <term.h>
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009   (eval $ac_compile) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"
6017                          || test ! -s conftest.err'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; } &&
6023          { ac_try='test -s conftest.$ac_objext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   ac_cv_header_term_h=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ac_cv_header_term_h=no
6035 fi
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6039 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6040 if test $ac_cv_header_term_h = yes; then
6041    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6042 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6043 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   ac_check_lib_save_LIBS=$LIBS
6047 LIBS="-lcurses  $LIBS"
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054
6055 /* Override any gcc2 internal prototype to avoid an error.  */
6056 #ifdef __cplusplus
6057 extern "C"
6058 #endif
6059 /* We use char because int might match the return type of a gcc2
6060    builtin and then its argument prototype would still apply.  */
6061 char tgetent ();
6062 int
6063 main ()
6064 {
6065 tgetent ();
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6072   (eval $ac_link) 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } &&
6079          { ac_try='test -z "$ac_c_werror_flag"
6080                          || test ! -s conftest.err'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; } &&
6086          { ac_try='test -s conftest$ac_exeext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_lib_curses_tgetent=yes
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 ac_cv_lib_curses_tgetent=no
6098 fi
6099 rm -f conftest.err conftest.$ac_objext \
6100       conftest$ac_exeext conftest.$ac_ext
6101 LIBS=$ac_check_lib_save_LIBS
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6104 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6105 if test $ac_cv_lib_curses_tgetent = yes; then
6106    CONS_LIBS="-lcurses"
6107                    CONS_OBJ="conio.o"
6108                    CONS_SRC="conio.c"
6109                    got_conio="yes"
6110                    support_readline=no
6111
6112 cat >>confdefs.h <<\_ACEOF
6113 #define HAVE_CONIO 1
6114 _ACEOF
6115
6116
6117 fi
6118
6119
6120 else
6121    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6122 fi
6123
6124
6125
6126 fi
6127
6128
6129 fi
6130
6131
6132 # ---------------------------------------------------
6133 # Check for readline support/directory (default off)
6134 # ---------------------------------------------------
6135 # this allows you to turn it completely off
6136 # Check whether --enable-readline or --disable-readline was given.
6137 if test "${enable_readline+set}" = set; then
6138   enableval="$enable_readline"
6139   if test x$enableval = xno; then
6140     support_readline=no
6141   fi
6142 fi;
6143
6144 got_readline="no"
6145 READLINE_SRC=
6146 if test x$support_readline = xyes; then
6147
6148 # Check whether --with-readline or --without-readline was given.
6149 if test "${with_readline+set}" = set; then
6150   withval="$with_readline"
6151
6152         case "$with_readline" in
6153         no) : ;;
6154         yes|*)
6155           if test "$with_readline" != "yes"; then
6156             CONS_INC="-I${with_readline}"
6157             CONS_LDFLAGS="-L$with_readline"
6158           else
6159              with_readline="/usr/include/readline"
6160           fi
6161           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6163   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6164 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 fi
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 else
6171   # Is the header compilable?
6172 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6173 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180 $ac_includes_default
6181 #include <${with_readline}/readline.h>
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185   (eval $ac_compile) 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -z "$ac_c_werror_flag"
6193                          || test ! -s conftest.err'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_header_compiler=yes
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_header_compiler=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6214 echo "${ECHO_T}$ac_header_compiler" >&6
6215
6216 # Is the header present?
6217 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6218 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 #include <${with_readline}/readline.h>
6226 _ACEOF
6227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } >/dev/null; then
6235   if test -s conftest.err; then
6236     ac_cpp_err=$ac_c_preproc_warn_flag
6237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6238   else
6239     ac_cpp_err=
6240   fi
6241 else
6242   ac_cpp_err=yes
6243 fi
6244 if test -z "$ac_cpp_err"; then
6245   ac_header_preproc=yes
6246 else
6247   echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250   ac_header_preproc=no
6251 fi
6252 rm -f conftest.err conftest.$ac_ext
6253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6254 echo "${ECHO_T}$ac_header_preproc" >&6
6255
6256 # So?  What about this header?
6257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6258   yes:no: )
6259     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6260 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6261     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6262 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6263     ac_header_preproc=yes
6264     ;;
6265   no:yes:* )
6266     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6271 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6272     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6273 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6274     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6275 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6276     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6277 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6278     (
6279       cat <<\_ASBOX
6280 ## ------------------------------------------ ##
6281 ## Report this to the AC_PACKAGE_NAME lists.  ##
6282 ## ------------------------------------------ ##
6283 _ASBOX
6284     ) |
6285       sed "s/^/$as_me: WARNING:     /" >&2
6286     ;;
6287 esac
6288 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6289 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   eval "$as_ac_Header=\$ac_header_preproc"
6294 fi
6295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6297
6298 fi
6299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6300    cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_READLINE 1
6302 _ACEOF
6303
6304                CONS_LIBS="-lreadline -ltermcap"
6305                got_readline="yes"
6306
6307 else
6308    echo " "
6309                echo "readline.h not found. readline turned off ..."
6310                echo " "
6311
6312
6313 fi
6314
6315
6316           ;;
6317         esac
6318
6319 else
6320
6321        # check for standard readline library
6322        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6323   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6324 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6325 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 fi
6328 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6329 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6330 else
6331   # Is the header compilable?
6332 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6333 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 $ac_includes_default
6341 #include </usr/include/readline/readline.h>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -z "$ac_c_werror_flag"
6353                          || test ! -s conftest.err'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   ac_header_compiler=yes
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_header_compiler=no
6371 fi
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6374 echo "${ECHO_T}$ac_header_compiler" >&6
6375
6376 # Is the header present?
6377 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6378 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 #include </usr/include/readline/readline.h>
6386 _ACEOF
6387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6389   ac_status=$?
6390   grep -v '^ *+' conftest.er1 >conftest.err
6391   rm -f conftest.er1
6392   cat conftest.err >&5
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } >/dev/null; then
6395   if test -s conftest.err; then
6396     ac_cpp_err=$ac_c_preproc_warn_flag
6397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6398   else
6399     ac_cpp_err=
6400   fi
6401 else
6402   ac_cpp_err=yes
6403 fi
6404 if test -z "$ac_cpp_err"; then
6405   ac_header_preproc=yes
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410   ac_header_preproc=no
6411 fi
6412 rm -f conftest.err conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6414 echo "${ECHO_T}$ac_header_preproc" >&6
6415
6416 # So?  What about this header?
6417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6418   yes:no: )
6419     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6420 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6421     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6422 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6423     ac_header_preproc=yes
6424     ;;
6425   no:yes:* )
6426     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6427 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6428     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6429 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6430     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6431 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6432     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6433 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6434     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6435 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6436     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6437 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6438     (
6439       cat <<\_ASBOX
6440 ## ------------------------------------------ ##
6441 ## Report this to the AC_PACKAGE_NAME lists.  ##
6442 ## ------------------------------------------ ##
6443 _ASBOX
6444     ) |
6445       sed "s/^/$as_me: WARNING:     /" >&2
6446     ;;
6447 esac
6448 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6449 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6450 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6454 fi
6455 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6456 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6457
6458 fi
6459 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6460    cat >>confdefs.h <<\_ACEOF
6461 #define HAVE_READLINE 1
6462 _ACEOF
6463
6464            got_readline="yes"
6465            CONS_INC="-I/usr/include/readline"
6466            CONS_LIBS="-lreadline -ltermcap"
6467
6468 else
6469
6470            # Did not find standard library, so try Bacula's default
6471             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6474 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 fi
6478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6480 else
6481   # Is the header compilable?
6482 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6483 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490 $ac_includes_default
6491 #include <${TOP_DIR}/depkgs/readline/readline.h>
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495   (eval $ac_compile) 2>conftest.er1
6496   ac_status=$?
6497   grep -v '^ *+' conftest.er1 >conftest.err
6498   rm -f conftest.er1
6499   cat conftest.err >&5
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } &&
6502          { ac_try='test -z "$ac_c_werror_flag"
6503                          || test ! -s conftest.err'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; } &&
6509          { ac_try='test -s conftest.$ac_objext'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; }; then
6515   ac_header_compiler=yes
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ac_header_compiler=no
6521 fi
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6524 echo "${ECHO_T}$ac_header_compiler" >&6
6525
6526 # Is the header present?
6527 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6528 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535 #include <${TOP_DIR}/depkgs/readline/readline.h>
6536 _ACEOF
6537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6539   ac_status=$?
6540   grep -v '^ *+' conftest.er1 >conftest.err
6541   rm -f conftest.er1
6542   cat conftest.err >&5
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } >/dev/null; then
6545   if test -s conftest.err; then
6546     ac_cpp_err=$ac_c_preproc_warn_flag
6547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6548   else
6549     ac_cpp_err=
6550   fi
6551 else
6552   ac_cpp_err=yes
6553 fi
6554 if test -z "$ac_cpp_err"; then
6555   ac_header_preproc=yes
6556 else
6557   echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560   ac_header_preproc=no
6561 fi
6562 rm -f conftest.err conftest.$ac_ext
6563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6564 echo "${ECHO_T}$ac_header_preproc" >&6
6565
6566 # So?  What about this header?
6567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6568   yes:no: )
6569     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6570 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6571     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6572 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6573     ac_header_preproc=yes
6574     ;;
6575   no:yes:* )
6576     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6577 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6578     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6579 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6580     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6581 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6583 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6584     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6585 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6586     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6587 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6588     (
6589       cat <<\_ASBOX
6590 ## ------------------------------------------ ##
6591 ## Report this to the AC_PACKAGE_NAME lists.  ##
6592 ## ------------------------------------------ ##
6593 _ASBOX
6594     ) |
6595       sed "s/^/$as_me: WARNING:     /" >&2
6596     ;;
6597 esac
6598 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6599 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603   eval "$as_ac_Header=\$ac_header_preproc"
6604 fi
6605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607
6608 fi
6609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610    cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_READLINE 1
6612 _ACEOF
6613
6614                  got_readline="yes"
6615                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6616                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6617                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6618                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6619
6620 else
6621    echo " "
6622                 echo "readline.h not found. readline turned off ..."
6623                 echo " "
6624
6625
6626 fi
6627
6628
6629
6630
6631 fi
6632
6633
6634
6635
6636 fi;
6637 fi
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648 # Minimal stuff for readline Makefile configuration
6649 MAKE_SHELL=/bin/sh
6650
6651 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6652 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6653 if test "${ac_cv_header_stat_broken+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 #include <sys/types.h>
6663 #include <sys/stat.h>
6664
6665 #if defined(S_ISBLK) && defined(S_IFDIR)
6666 # if S_ISBLK (S_IFDIR)
6667 You lose.
6668 # endif
6669 #endif
6670
6671 #if defined(S_ISBLK) && defined(S_IFCHR)
6672 # if S_ISBLK (S_IFCHR)
6673 You lose.
6674 # endif
6675 #endif
6676
6677 #if defined(S_ISLNK) && defined(S_IFREG)
6678 # if S_ISLNK (S_IFREG)
6679 You lose.
6680 # endif
6681 #endif
6682
6683 #if defined(S_ISSOCK) && defined(S_IFREG)
6684 # if S_ISSOCK (S_IFREG)
6685 You lose.
6686 # endif
6687 #endif
6688
6689 _ACEOF
6690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6691   $EGREP "You lose" >/dev/null 2>&1; then
6692   ac_cv_header_stat_broken=yes
6693 else
6694   ac_cv_header_stat_broken=no
6695 fi
6696 rm -f conftest*
6697
6698 fi
6699 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6700 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6701 if test $ac_cv_header_stat_broken = yes; then
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define STAT_MACROS_BROKEN 1
6705 _ACEOF
6706
6707 fi
6708
6709
6710
6711
6712
6713
6714 ac_header_dirent=no
6715 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6716   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6717 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6718 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 #include <sys/types.h>
6729 #include <$ac_hdr>
6730
6731 int
6732 main ()
6733 {
6734 if ((DIR *) 0)
6735 return 0;
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742   (eval $ac_compile) 2>conftest.er1
6743   ac_status=$?
6744   grep -v '^ *+' conftest.er1 >conftest.err
6745   rm -f conftest.er1
6746   cat conftest.err >&5
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } &&
6749          { ac_try='test -z "$ac_c_werror_flag"
6750                          || test ! -s conftest.err'
6751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752   (eval $ac_try) 2>&5
6753   ac_status=$?
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); }; } &&
6756          { ac_try='test -s conftest.$ac_objext'
6757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758   (eval $ac_try) 2>&5
6759   ac_status=$?
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); }; }; then
6762   eval "$as_ac_Header=yes"
6763 else
6764   echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6766
6767 eval "$as_ac_Header=no"
6768 fi
6769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 fi
6771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6774   cat >>confdefs.h <<_ACEOF
6775 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6776 _ACEOF
6777
6778 ac_header_dirent=$ac_hdr; break
6779 fi
6780
6781 done
6782 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6783 if test $ac_header_dirent = dirent.h; then
6784   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6785 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6786 if test "${ac_cv_search_opendir+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   ac_func_search_save_LIBS=$LIBS
6790 ac_cv_search_opendir=no
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797
6798 /* Override any gcc2 internal prototype to avoid an error.  */
6799 #ifdef __cplusplus
6800 extern "C"
6801 #endif
6802 /* We use char because int might match the return type of a gcc2
6803    builtin and then its argument prototype would still apply.  */
6804 char opendir ();
6805 int
6806 main ()
6807 {
6808 opendir ();
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6815   (eval $ac_link) 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -z "$ac_c_werror_flag"
6823                          || test ! -s conftest.err'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; } &&
6829          { ac_try='test -s conftest$ac_exeext'
6830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); }; }; then
6835   ac_cv_search_opendir="none required"
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 fi
6841 rm -f conftest.err conftest.$ac_objext \
6842       conftest$ac_exeext conftest.$ac_ext
6843 if test "$ac_cv_search_opendir" = no; then
6844   for ac_lib in dir; do
6845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6846     cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h.  */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h.  */
6852
6853 /* Override any gcc2 internal prototype to avoid an error.  */
6854 #ifdef __cplusplus
6855 extern "C"
6856 #endif
6857 /* We use char because int might match the return type of a gcc2
6858    builtin and then its argument prototype would still apply.  */
6859 char opendir ();
6860 int
6861 main ()
6862 {
6863 opendir ();
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870   (eval $ac_link) 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -z "$ac_c_werror_flag"
6878                          || test ! -s conftest.err'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; } &&
6884          { ac_try='test -s conftest$ac_exeext'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890   ac_cv_search_opendir="-l$ac_lib"
6891 break
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 fi
6897 rm -f conftest.err conftest.$ac_objext \
6898       conftest$ac_exeext conftest.$ac_ext
6899   done
6900 fi
6901 LIBS=$ac_func_search_save_LIBS
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6904 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6905 if test "$ac_cv_search_opendir" != no; then
6906   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6907
6908 fi
6909
6910 else
6911   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6912 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6913 if test "${ac_cv_search_opendir+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   ac_func_search_save_LIBS=$LIBS
6917 ac_cv_search_opendir=no
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924
6925 /* Override any gcc2 internal prototype to avoid an error.  */
6926 #ifdef __cplusplus
6927 extern "C"
6928 #endif
6929 /* We use char because int might match the return type of a gcc2
6930    builtin and then its argument prototype would still apply.  */
6931 char opendir ();
6932 int
6933 main ()
6934 {
6935 opendir ();
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942   (eval $ac_link) 2>conftest.er1
6943   ac_status=$?
6944   grep -v '^ *+' conftest.er1 >conftest.err
6945   rm -f conftest.er1
6946   cat conftest.err >&5
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -z "$ac_c_werror_flag"
6950                          || test ! -s conftest.err'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; } &&
6956          { ac_try='test -s conftest$ac_exeext'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; }; then
6962   ac_cv_search_opendir="none required"
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 fi
6968 rm -f conftest.err conftest.$ac_objext \
6969       conftest$ac_exeext conftest.$ac_ext
6970 if test "$ac_cv_search_opendir" = no; then
6971   for ac_lib in x; do
6972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6973     cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979
6980 /* Override any gcc2 internal prototype to avoid an error.  */
6981 #ifdef __cplusplus
6982 extern "C"
6983 #endif
6984 /* We use char because int might match the return type of a gcc2
6985    builtin and then its argument prototype would still apply.  */
6986 char opendir ();
6987 int
6988 main ()
6989 {
6990 opendir ();
6991   ;
6992   return 0;
6993 }
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997   (eval $ac_link) 2>conftest.er1
6998   ac_status=$?
6999   grep -v '^ *+' conftest.er1 >conftest.err
7000   rm -f conftest.er1
7001   cat conftest.err >&5
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } &&
7004          { ac_try='test -z "$ac_c_werror_flag"
7005                          || test ! -s conftest.err'
7006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007   (eval $ac_try) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; } &&
7011          { ac_try='test -s conftest$ac_exeext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017   ac_cv_search_opendir="-l$ac_lib"
7018 break
7019 else
7020   echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 fi
7024 rm -f conftest.err conftest.$ac_objext \
7025       conftest$ac_exeext conftest.$ac_ext
7026   done
7027 fi
7028 LIBS=$ac_func_search_save_LIBS
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7031 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7032 if test "$ac_cv_search_opendir" != no; then
7033   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7034
7035 fi
7036
7037 fi
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7048 do
7049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7050 echo "$as_me:$LINENO: checking for $ac_func" >&5
7051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7052 if eval "test \"\${$as_ac_var+set}\" = set"; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7063 #define $ac_func innocuous_$ac_func
7064
7065 /* System header to define __stub macros and hopefully few prototypes,
7066     which can conflict with char $ac_func (); below.
7067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068     <limits.h> exists even on freestanding compilers.  */
7069
7070 #ifdef __STDC__
7071 # include <limits.h>
7072 #else
7073 # include <assert.h>
7074 #endif
7075
7076 #undef $ac_func
7077
7078 /* Override any gcc2 internal prototype to avoid an error.  */
7079 #ifdef __cplusplus
7080 extern "C"
7081 {
7082 #endif
7083 /* We use char because int might match the return type of a gcc2
7084    builtin and then its argument prototype would still apply.  */
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087     to always fail with ENOSYS.  Some functions are actually named
7088     something starting with __ and the normal name is an alias.  */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 char (*f) () = $ac_func;
7093 #endif
7094 #ifdef __cplusplus
7095 }
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 return f != $ac_func;
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108   (eval $ac_link) 2>conftest.er1
7109   ac_status=$?
7110   grep -v '^ *+' conftest.er1 >conftest.err
7111   rm -f conftest.er1
7112   cat conftest.err >&5
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } &&
7115          { ac_try='test -z "$ac_c_werror_flag"
7116                          || test ! -s conftest.err'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   eval "$as_ac_var=yes"
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135 rm -f conftest.err conftest.$ac_objext \
7136       conftest$ac_exeext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7140 if test `eval echo '${'$as_ac_var'}'` = yes; then
7141   cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7143 _ACEOF
7144
7145 fi
7146 done
7147
7148
7149
7150 for ac_func in nanosleep nl_langinfo
7151 do
7152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7153 echo "$as_me:$LINENO: checking for $ac_func" >&5
7154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7155 if eval "test \"\${$as_ac_var+set}\" = set"; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7166 #define $ac_func innocuous_$ac_func
7167
7168 /* System header to define __stub macros and hopefully few prototypes,
7169     which can conflict with char $ac_func (); below.
7170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171     <limits.h> exists even on freestanding compilers.  */
7172
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178
7179 #undef $ac_func
7180
7181 /* Override any gcc2 internal prototype to avoid an error.  */
7182 #ifdef __cplusplus
7183 extern "C"
7184 {
7185 #endif
7186 /* We use char because int might match the return type of a gcc2
7187    builtin and then its argument prototype would still apply.  */
7188 char $ac_func ();
7189 /* The GNU C library defines this for functions which it implements
7190     to always fail with ENOSYS.  Some functions are actually named
7191     something starting with __ and the normal name is an alias.  */
7192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 choke me
7194 #else
7195 char (*f) () = $ac_func;
7196 #endif
7197 #ifdef __cplusplus
7198 }
7199 #endif
7200
7201 int
7202 main ()
7203 {
7204 return f != $ac_func;
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211   (eval $ac_link) 2>conftest.er1
7212   ac_status=$?
7213   grep -v '^ *+' conftest.er1 >conftest.err
7214   rm -f conftest.er1
7215   cat conftest.err >&5
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } &&
7218          { ac_try='test -z "$ac_c_werror_flag"
7219                          || test ! -s conftest.err'
7220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221   (eval $ac_try) 2>&5
7222   ac_status=$?
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); }; } &&
7225          { ac_try='test -s conftest$ac_exeext'
7226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227   (eval $ac_try) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; }; then
7231   eval "$as_ac_var=yes"
7232 else
7233   echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 eval "$as_ac_var=no"
7237 fi
7238 rm -f conftest.err conftest.$ac_objext \
7239       conftest$ac_exeext conftest.$ac_ext
7240 fi
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7243 if test `eval echo '${'$as_ac_var'}'` = yes; then
7244   cat >>confdefs.h <<_ACEOF
7245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7246 _ACEOF
7247
7248 fi
7249 done
7250
7251
7252 for ac_header in varargs.h
7253 do
7254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256   echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 fi
7261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7263 else
7264   # Is the header compilable?
7265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 $ac_includes_default
7274 #include <$ac_header>
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278   (eval $ac_compile) 2>conftest.er1
7279   ac_status=$?
7280   grep -v '^ *+' conftest.er1 >conftest.err
7281   rm -f conftest.er1
7282   cat conftest.err >&5
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } &&
7285          { ac_try='test -z "$ac_c_werror_flag"
7286                          || test ! -s conftest.err'
7287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288   (eval $ac_try) 2>&5
7289   ac_status=$?
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); }; } &&
7292          { ac_try='test -s conftest.$ac_objext'
7293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294   (eval $ac_try) 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; }; then
7298   ac_header_compiler=yes
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303 ac_header_compiler=no
7304 fi
7305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7307 echo "${ECHO_T}$ac_header_compiler" >&6
7308
7309 # Is the header present?
7310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 #include <$ac_header>
7319 _ACEOF
7320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } >/dev/null; then
7328   if test -s conftest.err; then
7329     ac_cpp_err=$ac_c_preproc_warn_flag
7330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7331   else
7332     ac_cpp_err=
7333   fi
7334 else
7335   ac_cpp_err=yes
7336 fi
7337 if test -z "$ac_cpp_err"; then
7338   ac_header_preproc=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7342
7343   ac_header_preproc=no
7344 fi
7345 rm -f conftest.err conftest.$ac_ext
7346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347 echo "${ECHO_T}$ac_header_preproc" >&6
7348
7349 # So?  What about this header?
7350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7351   yes:no: )
7352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356     ac_header_preproc=yes
7357     ;;
7358   no:yes:* )
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7371     (
7372       cat <<\_ASBOX
7373 ## ------------------------------------------ ##
7374 ## Report this to the AC_PACKAGE_NAME lists.  ##
7375 ## ------------------------------------------ ##
7376 _ASBOX
7377     ) |
7378       sed "s/^/$as_me: WARNING:     /" >&2
7379     ;;
7380 esac
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   eval "$as_ac_Header=\$ac_header_preproc"
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391 fi
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393   cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 _ACEOF
7396
7397 fi
7398
7399 done
7400
7401
7402 # End of readline/conio stuff
7403 # -----------------------------------------------------------------------
7404
7405 # -----------------------------------------------------------------------
7406 #  Check for Python support
7407 #
7408 echo "$as_me:$LINENO: checking for Python support" >&5
7409 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7410
7411 # Check whether --with-python or --without-python was given.
7412 if test "${with_python+set}" = set; then
7413   withval="$with_python"
7414
7415   PYTHON_INCDIR=
7416   PYTHON_LIBS=
7417   if test "$withval" != "no"; then
7418      if test "$withval" = "yes"; then
7419         if test -f /usr/include/python2.2/Python.h; then
7420            PYTHON_INCDIR=-I/usr/include/python2.2
7421            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7422         elif test -f /usr/include/python2.3/Python.h; then
7423            PYTHON_INCDIR=-I/usr/include/python2.3
7424            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7425         elif test -f /usr/include/python2.4/Python.h; then
7426            PYTHON_INCDIR=-I/usr/include/python2.4
7427            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7428         elif test -f $prefix/include/Python.h; then
7429            PYTHON_INCDIR=-I$prefix/include
7430            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7431         else
7432            echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7435 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7436    { (exit 1); exit 1; }; }
7437         fi
7438      else
7439         if test -f $withval/Python.h; then
7440            PYTHON_INCDIR=-I$withval
7441            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7442         elif test -f $withval/include/Python.h; then
7443            PYTHON_INCDIR=-I$withval/include
7444            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7445         else
7446            echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7449 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7450    { (exit 1); exit 1; }; }
7451         fi
7452      fi
7453      cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_PYTHON 1
7455 _ACEOF
7456
7457      echo "$as_me:$LINENO: result: yes" >&5
7458 echo "${ECHO_T}yes" >&6
7459      support_python=yes
7460
7461   else
7462      echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7464   fi
7465
7466 else
7467
7468   echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7470
7471 fi;
7472
7473
7474
7475
7476 # -------------------------------------------
7477 # check for cdrecord writer location
7478 # get scsibus,target,lun
7479 # -------------------------------------------
7480 CDSTL="3,0,0"
7481 if test ! x$CDRECORD = x ; then
7482    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7483    if test x${CDSTL} = x ; then
7484       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7485    fi
7486    if test x${CDSTL} = x ; then
7487       CDSTL="3,0,0"
7488    fi
7489 fi
7490
7491
7492
7493 # ---------------------------------------------------
7494 # Check for GMP support/directory
7495 # ---------------------------------------------------
7496 #GMP_SRC=
7497 #local_gmp="no"
7498 #AC_ARG_WITH(gmp,
7499 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7500 #  [
7501 #     case "$with_gmp" in
7502 #     no) : ;;
7503 #     yes|*)
7504 #       if test "$with_gmp" != "yes"; then
7505 #         GMP_INC="-I$with_gmp"
7506 #         GMP_LIBS="-lgmp"
7507 #         GMP_LDFLAGS="-L$with_gmp"
7508 #       else
7509 #          with_gmp="/usr/include"
7510 #       fi
7511 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7512 #          [ AC_MSG_RESULT(yes)
7513 #            AC_DEFINE(HAVE_GMP)
7514 #            GMP_LIBS="-lgmp"
7515 #            got_gmp="yes"
7516 #          ],
7517 #          [ AC_MSG_ERROR([*** gmp library missing])
7518 #          ]
7519 #       )
7520 #       ;;
7521 #     esac
7522 #  ],[
7523 #    # check for standard gmp library
7524 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7525 #    [ AC_MSG_RESULT(yes)
7526 #      AC_DEFINE(HAVE_GMP)
7527 #      got_gmp="yes"
7528 #      GMP_INC=
7529 #      GMP_LIBS="-lgmp"
7530 #    ], [
7531 #      # Did not find standard library, so use our own
7532 #      AC_MSG_RESULT(yes)
7533 #      AC_DEFINE(HAVE_GMP)
7534 #      got_gmp="yes"
7535 #      local_gmp="yes"
7536 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7537 #      GMP_LIBS="-lgmp"
7538 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7539 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7540 #    ])
7541 #  ]
7542 #)
7543 #AC_SUBST(GMP_INC)
7544 #AC_SUBST(GMP_LIBS)
7545 #AC_SUBST(GMP_LDFLAGS)
7546 #AC_SUBST(GMP_SRC)
7547
7548 # End of GMP stuff
7549 # -----------------------------------------------------------------------
7550
7551
7552 # ---------------------------------------------------
7553 # Check for CWEB support/directory
7554 # ---------------------------------------------------
7555 #CWEB_SRC=
7556 #CWEB=/bin
7557 #local_cweb="no"
7558 #AC_ARG_WITH(cweb,
7559 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7560 #  [
7561 #     case "$with_cweb" in
7562 #     no) : ;;
7563 #     yes|*)
7564 #       if test "$with_cweb" != "yes"; then
7565 #         CWEB_INC="-I$with_cweb"
7566 #         CWEB_LIBS="-lcweb"
7567 #         CWEB_LDFLAGS="-L$with_cweb"
7568 #       else
7569 #          with_cweb="/usr/include"
7570 #       fi
7571 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7572 #          [ AC_MSG_RESULT(yes)
7573 #            AC_DEFINE(HAVE_CWEB)
7574 #            CWEB_LIBS="-lcweb"
7575 #            got_cweb="yes"
7576 #          ],
7577 #          [ AC_MSG_ERROR([*** cweb library missing])
7578 #          ]
7579 #       )
7580 #       ;;
7581 #     esac
7582 #  ],[
7583 #    # check for standard cweb library
7584 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7585 #    [ AC_MSG_RESULT(yes)
7586 #      AC_DEFINE(HAVE_CWEB)
7587 #      got_cweb="yes"
7588 #      CWEB_INC=
7589 #      CWEB_LIBS="-lcweb"
7590 #    ], [
7591 #      # Did not find starndard library, so use our own
7592 #      AC_MSG_RESULT(yes)
7593 #      AC_DEFINE(HAVE_CWEB)
7594 #      got_cweb="yes"
7595 #      local_cweb="yes"
7596 #      CWEB=${TOP_DIR}/depkgs/cweb
7597 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7598 #      CWEB_LIBS="-lcweb"
7599 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7600 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7601 #    ])
7602 #  ]
7603 #)
7604 #AC_SUBST(CWEB)
7605 #AC_SUBST(CWEB_INC)
7606 #AC_SUBST(CWEB_LIBS)
7607 #AC_SUBST(CWEB_LDFLAGS)
7608 #AC_SUBST(CWEB_SRC)
7609
7610 # End of CWEB stuff
7611 # -----------------------------------------------------------------------
7612
7613 #
7614 # Find where sockets are (especially for Solaris)
7615 # Do this before the TCP Wrappers test since tcp wrappers
7616 # uses the socket library and some linkers are stupid.
7617 #
7618 echo "$as_me:$LINENO: checking for socket" >&5
7619 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7620 if test "${ac_cv_func_socket+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7631 #define socket innocuous_socket
7632
7633 /* System header to define __stub macros and hopefully few prototypes,
7634     which can conflict with char socket (); below.
7635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636     <limits.h> exists even on freestanding compilers.  */
7637
7638 #ifdef __STDC__
7639 # include <limits.h>
7640 #else
7641 # include <assert.h>
7642 #endif
7643
7644 #undef socket
7645
7646 /* Override any gcc2 internal prototype to avoid an error.  */
7647 #ifdef __cplusplus
7648 extern "C"
7649 {
7650 #endif
7651 /* We use char because int might match the return type of a gcc2
7652    builtin and then its argument prototype would still apply.  */
7653 char socket ();
7654 /* The GNU C library defines this for functions which it implements
7655     to always fail with ENOSYS.  Some functions are actually named
7656     something starting with __ and the normal name is an alias.  */
7657 #if defined (__stub_socket) || defined (__stub___socket)
7658 choke me
7659 #else
7660 char (*f) () = socket;
7661 #endif
7662 #ifdef __cplusplus
7663 }
7664 #endif
7665
7666 int
7667 main ()
7668 {
7669 return f != socket;
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676   (eval $ac_link) 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -z "$ac_c_werror_flag"
7684                          || test ! -s conftest.err'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; } &&
7690          { ac_try='test -s conftest$ac_exeext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_cv_func_socket=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_func_socket=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext \
7704       conftest$ac_exeext conftest.$ac_ext
7705 fi
7706 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7707 echo "${ECHO_T}$ac_cv_func_socket" >&6
7708 if test $ac_cv_func_socket = yes; then
7709   echo "$as_me:$LINENO: result: using libc's socket" >&5
7710 echo "${ECHO_T}using libc's socket" >&6
7711 else
7712
7713 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7714 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7715 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-lxnet  $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726
7727 /* Override any gcc2 internal prototype to avoid an error.  */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 /* We use char because int might match the return type of a gcc2
7732    builtin and then its argument prototype would still apply.  */
7733 char socket ();
7734 int
7735 main ()
7736 {
7737 socket ();
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744   (eval $ac_link) 2>conftest.er1
7745   ac_status=$?
7746   grep -v '^ *+' conftest.er1 >conftest.err
7747   rm -f conftest.er1
7748   cat conftest.err >&5
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -z "$ac_c_werror_flag"
7752                          || test ! -s conftest.err'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; } &&
7758          { ac_try='test -s conftest$ac_exeext'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   ac_cv_lib_xnet_socket=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 ac_cv_lib_xnet_socket=no
7770 fi
7771 rm -f conftest.err conftest.$ac_objext \
7772       conftest$ac_exeext conftest.$ac_ext
7773 LIBS=$ac_check_lib_save_LIBS
7774 fi
7775 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7776 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7777 if test $ac_cv_lib_xnet_socket = yes; then
7778   cat >>confdefs.h <<_ACEOF
7779 #define HAVE_LIBXNET 1
7780 _ACEOF
7781
7782   LIBS="-lxnet $LIBS"
7783
7784 fi
7785
7786
7787 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7788 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7789 if test "${ac_cv_lib_socket_socket+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lsocket  $LIBS"
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800
7801 /* Override any gcc2 internal prototype to avoid an error.  */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 /* We use char because int might match the return type of a gcc2
7806    builtin and then its argument prototype would still apply.  */
7807 char socket ();
7808 int
7809 main ()
7810 {
7811 socket ();
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818   (eval $ac_link) 2>conftest.er1
7819   ac_status=$?
7820   grep -v '^ *+' conftest.er1 >conftest.err
7821   rm -f conftest.er1
7822   cat conftest.err >&5
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } &&
7825          { ac_try='test -z "$ac_c_werror_flag"
7826                          || test ! -s conftest.err'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   ac_cv_lib_socket_socket=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 ac_cv_lib_socket_socket=no
7844 fi
7845 rm -f conftest.err conftest.$ac_objext \
7846       conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7848 fi
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7850 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7851 if test $ac_cv_lib_socket_socket = yes; then
7852   cat >>confdefs.h <<_ACEOF
7853 #define HAVE_LIBSOCKET 1
7854 _ACEOF
7855
7856   LIBS="-lsocket $LIBS"
7857
7858 fi
7859
7860
7861 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7862 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7863 if test "${ac_cv_lib_inet_socket+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   ac_check_lib_save_LIBS=$LIBS
7867 LIBS="-linet  $LIBS"
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 /* We use char because int might match the return type of a gcc2
7880    builtin and then its argument prototype would still apply.  */
7881 char socket ();
7882 int
7883 main ()
7884 {
7885 socket ();
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892   (eval $ac_link) 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -z "$ac_c_werror_flag"
7900                          || test ! -s conftest.err'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; } &&
7906          { ac_try='test -s conftest$ac_exeext'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   ac_cv_lib_inet_socket=yes
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 ac_cv_lib_inet_socket=no
7918 fi
7919 rm -f conftest.err conftest.$ac_objext \
7920       conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7922 fi
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7924 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7925 if test $ac_cv_lib_inet_socket = yes; then
7926   cat >>confdefs.h <<_ACEOF
7927 #define HAVE_LIBINET 1
7928 _ACEOF
7929
7930   LIBS="-linet $LIBS"
7931
7932 fi
7933
7934 fi
7935
7936
7937
7938 # -----------------------------------------------------------
7939 # Check whether user wants TCP wrappers support (default off)
7940 # -----------------------------------------------------------
7941 TCPW_MSG="no"
7942
7943 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7944 if test "${with_tcp_wrappers+set}" = set; then
7945   withval="$with_tcp_wrappers"
7946
7947     if test "x$withval" != "xno" ; then
7948        saved_LIBS="$LIBS"
7949        LIBS="$saved_LIBS -lwrap"
7950        echo "$as_me:$LINENO: checking for libwrap" >&5
7951 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7952        cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958  #include <tcpd.h>
7959              int deny_severity = 0;
7960              int allow_severity = 0;
7961              struct request_info *req;
7962 int
7963 main ()
7964 {
7965  hosts_access(req);
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972   (eval $ac_link) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag"
7980                          || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest$ac_exeext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992
7993             echo "$as_me:$LINENO: result: yes" >&5
7994 echo "${ECHO_T}yes" >&6
7995             cat >>confdefs.h <<\_ACEOF
7996 #define HAVE_LIBWRAP 1
7997 _ACEOF
7998
7999             TCPW_MSG="yes"
8000
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005
8006             LIBS="$saved_LIBS -lwrap -lnsl"
8007             cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013  #include <tcpd.h>
8014                  int deny_severity = 0;
8015                  int allow_severity = 0;
8016                  struct request_info *req;
8017 int
8018 main ()
8019 {
8020  hosts_access(req);
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag"
8035                          || test ! -s conftest.err'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; } &&
8041          { ac_try='test -s conftest$ac_exeext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047
8048                  echo "$as_me:$LINENO: result: yes" >&5
8049 echo "${ECHO_T}yes" >&6
8050                  cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_LIBWRAP 1
8052 _ACEOF
8053
8054                  TCPW_MSG="yes"
8055
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8061 echo "$as_me: error: *** libwrap missing" >&2;}
8062    { (exit 1); exit 1; }; }
8063
8064 fi
8065 rm -f conftest.err conftest.$ac_objext \
8066       conftest$ac_exeext conftest.$ac_ext
8067
8068 fi
8069 rm -f conftest.err conftest.$ac_objext \
8070       conftest$ac_exeext conftest.$ac_ext
8071     fi
8072
8073
8074 fi;
8075
8076 # ------------------------------------------
8077 # Where to place working dir
8078 # ------------------------------------------
8079 working_dir=`eval echo ${prefix}/var/bacula/working`
8080
8081 # Check whether --with-working-dir or --without-working-dir was given.
8082 if test "${with_working_dir+set}" = set; then
8083   withval="$with_working_dir"
8084
8085        if test "x$withval" != "xno" ; then
8086               working_dir=$withval
8087        fi
8088
8089
8090 fi;
8091
8092
8093
8094
8095 # ------------------------------------------
8096 # Where to place scriptdir (script files)
8097 # ------------------------------------------
8098 scriptdir=`eval echo ${sysconfdir}`
8099
8100 # Check whether --with-scriptdir or --without-scriptdir was given.
8101 if test "${with_scriptdir+set}" = set; then
8102   withval="$with_scriptdir"
8103
8104        if test "x$withval" != "xno" ; then
8105               scriptdir=$withval
8106        fi
8107
8108
8109 fi;
8110
8111
8112
8113
8114 # ------------------------------------------
8115 # Where to send dump email
8116 # ------------------------------------------
8117 dump_email=root@localhost
8118
8119 # Check whether --with-dump-email or --without-dump-email was given.
8120 if test "${with_dump_email+set}" = set; then
8121   withval="$with_dump_email"
8122
8123        if test "x$withval" != "xno" ; then
8124               dump_email=$withval
8125        fi
8126
8127
8128 fi;
8129
8130
8131
8132 # ------------------------------------------
8133 # Where to send job email
8134 # ------------------------------------------
8135 job_email=root@localhost
8136
8137 # Check whether --with-job-email or --without-job-email was given.
8138 if test "${with_job_email+set}" = set; then
8139   withval="$with_job_email"
8140
8141        if test "x$withval" != "xno" ; then
8142               job_email=$withval
8143        fi
8144
8145
8146 fi;
8147
8148
8149
8150 # ------------------------------------------
8151 # Where to find smtp host
8152 # ------------------------------------------
8153 smtp_host=localhost
8154
8155 # Check whether --with-smtp_host or --without-smtp_host was given.
8156 if test "${with_smtp_host+set}" = set; then
8157   withval="$with_smtp_host"
8158
8159        if test "x$withval" != "xno" ; then
8160               smtp_host=$withval
8161        fi
8162
8163
8164 fi;
8165
8166
8167
8168
8169 # ------------------------------------
8170 # Where to place pid files
8171 # ------------------------------------
8172 piddir=/var/run
8173
8174 # Check whether --with-pid-dir or --without-pid-dir was given.
8175 if test "${with_pid_dir+set}" = set; then
8176   withval="$with_pid_dir"
8177
8178         if test "x$withval" != "xno" ; then
8179             piddir=$withval
8180         fi
8181
8182
8183 fi;
8184
8185 cat >>confdefs.h <<_ACEOF
8186 #define _PATH_BACULA_PIDDIR "$piddir"
8187 _ACEOF
8188
8189
8190
8191
8192 # ------------------------------------
8193 # Where to place subsys "lock file"
8194 # ------------------------------------
8195 subsysdir=/var/run/subsys
8196
8197 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8198 if test "${with_subsys_dir+set}" = set; then
8199   withval="$with_subsys_dir"
8200
8201         if test "x$withval" != "xno" ; then
8202             subsysdir=$withval
8203         fi
8204
8205
8206 fi;
8207
8208
8209
8210
8211
8212 # ------------------------------------
8213 # Where to start assigning ports
8214 # ------------------------------------
8215 baseport=9101
8216
8217 # Check whether --with-baseport or --without-baseport was given.
8218 if test "${with_baseport+set}" = set; then
8219   withval="$with_baseport"
8220
8221         if test "x$withval" != "xno" ; then
8222              baseport=$withval
8223         fi
8224
8225
8226 fi;
8227
8228
8229 dir_port=`expr $baseport`
8230 fd_port=`expr $baseport + 1`
8231 sd_port=`expr $fd_port + 1`
8232
8233
8234
8235
8236
8237
8238 # ------------------------------------------
8239 # Generate passwords
8240 # ------------------------------------------
8241 dir_password=
8242
8243 # Check whether --with-dir-password or --without-dir-password was given.
8244 if test "${with_dir_password+set}" = set; then
8245   withval="$with_dir_password"
8246
8247        if test "x$withval" != "xno" ; then
8248            dir_password=$withval
8249        fi
8250
8251
8252 fi;
8253
8254 if test "x$dir_password" = "x" ; then
8255    if test "x$OPENSSL" = "xnone" ; then
8256 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8257       key=`autoconf/randpass 33`
8258    else
8259       key=`openssl rand -base64 33`
8260    fi
8261    dir_password=$key
8262 fi
8263
8264 fd_password=
8265
8266 # Check whether --with-fd-password or --without-fd-password was given.
8267 if test "${with_fd_password+set}" = set; then
8268   withval="$with_fd_password"
8269
8270        if test "x$withval" != "xno" ; then
8271            fd_password=$withval
8272        fi
8273
8274
8275 fi;
8276
8277 if test "x$fd_password" = "x" ; then
8278    if test "x$OPENSSL" = "xnone" ; then
8279 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8280       key=`autoconf/randpass 37`
8281    else
8282       key=`openssl rand -base64 33`
8283    fi
8284    fd_password=$key
8285 fi
8286
8287 sd_password=
8288
8289 # Check whether --with-sd-password or --without-sd-password was given.
8290 if test "${with_sd_password+set}" = set; then
8291   withval="$with_sd_password"
8292
8293        if test "x$withval" != "xno" ; then
8294            sd_password=$withval
8295        fi
8296
8297
8298 fi;
8299
8300 if test "x$sd_password" = "x" ; then
8301    if test "x$OPENSSL" = "xnone" ; then
8302 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8303       key=`autoconf/randpass 41`
8304    else
8305       key=`openssl rand -base64 33`
8306    fi
8307    sd_password=$key
8308 fi
8309
8310 mon_dir_password=
8311
8312 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8313 if test "${with_mon_dir_password+set}" = set; then
8314   withval="$with_mon_dir_password"
8315
8316        if test "x$withval" != "xno" ; then
8317            mon_dir_password=$withval
8318        fi
8319
8320
8321 fi;
8322
8323 if test "x$mon_dir_password" = "x" ; then
8324    if test "x$OPENSSL" = "xnone" ; then
8325 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8326       key=`autoconf/randpass 33`
8327    else
8328       key=`openssl rand -base64 33`
8329    fi
8330    mon_dir_password=$key
8331 fi
8332
8333 mon_fd_password=
8334
8335 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8336 if test "${with_mon_fd_password+set}" = set; then
8337   withval="$with_mon_fd_password"
8338
8339        if test "x$withval" != "xno" ; then
8340            mon_fd_password=$withval
8341        fi
8342
8343
8344 fi;
8345
8346 if test "x$mon_fd_password" = "x" ; then
8347    if test "x$OPENSSL" = "xnone" ; then
8348 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8349       key=`autoconf/randpass 37`
8350    else
8351       key=`openssl rand -base64 33`
8352    fi
8353    mon_fd_password=$key
8354 fi
8355
8356 mon_sd_password=
8357
8358 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8359 if test "${with_mon_sd_password+set}" = set; then
8360   withval="$with_mon_sd_password"
8361
8362        if test "x$withval" != "xno" ; then
8363            mon_sd_password=$withval
8364        fi
8365
8366
8367 fi;
8368
8369 if test "x$mon_sd_password" = "x" ; then
8370    if test "x$OPENSSL" = "xnone" ; then
8371 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8372       key=`autoconf/randpass 41`
8373    else
8374       key=`openssl rand -base64 33`
8375    fi
8376    mon_sd_password=$key
8377 fi
8378
8379
8380
8381
8382
8383
8384
8385
8386 # -------------------------------------------------------------------------
8387 #  Set variables for bimagemgr installation
8388 # -------------------------------------------------------------------------
8389 bimagemgr_cgidir=/var/www/cgi-bin
8390
8391 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8392 if test "${with_bimagemgr_cgidir+set}" = set; then
8393   withval="$with_bimagemgr_cgidir"
8394
8395        if test "x$withval" != "xno" ; then
8396            bimagemgr_cgidir=$withval
8397        fi
8398
8399
8400 fi;
8401
8402 bimagemgr_docdir=/var/www/html
8403
8404 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8405 if test "${with_bimagemgr_docdir+set}" = set; then
8406   withval="$with_bimagemgr_docdir"
8407
8408        if test "x$withval" != "xno" ; then
8409            bimagemgr_docdir=$withval
8410        fi
8411
8412
8413 fi;
8414
8415 bimagemgr_binowner=root
8416
8417 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8418 if test "${with_bimagemgr_binowner+set}" = set; then
8419   withval="$with_bimagemgr_binowner"
8420
8421        if test "x$withval" != "xno" ; then
8422            bimagemgr_binowner=$withval
8423        fi
8424
8425
8426 fi;
8427
8428 bimagemgr_bingroup=root
8429
8430 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8431 if test "${with_bimagemgr_bingroup+set}" = set; then
8432   withval="$with_bimagemgr_bingroup"
8433
8434        if test "x$withval" != "xno" ; then
8435            bimagemgr_bingroup=$withval
8436        fi
8437
8438
8439 fi;
8440
8441 bimagemgr_dataowner=apache
8442
8443 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8444 if test "${with_bimagemgr_dataowner+set}" = set; then
8445   withval="$with_bimagemgr_dataowner"
8446
8447        if test "x$withval" != "xno" ; then
8448            bimagemgr_dataowner=$withval
8449        fi
8450
8451
8452 fi;
8453
8454 bimagemgr_datagroup=apache
8455
8456 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8457 if test "${with_bimagemgr_datagroup+set}" = set; then
8458   withval="$with_bimagemgr_datagroup"
8459
8460        if test "x$withval" != "xno" ; then
8461            bimagemgr_datagroup=$withval
8462        fi
8463
8464
8465 fi;
8466
8467
8468
8469
8470
8471
8472
8473
8474 #
8475 # Handle users and groups for each daemon
8476 #
8477 dir_user=
8478
8479 # Check whether --with-dir_user or --without-dir_user was given.
8480 if test "${with_dir_user+set}" = set; then
8481   withval="$with_dir_user"
8482
8483         if test "x$withval" != "x" ; then
8484              dir_user=$withval
8485         fi
8486
8487
8488 fi;
8489
8490 dir_group=
8491
8492 # Check whether --with-dir_group or --without-dir_group was given.
8493 if test "${with_dir_group+set}" = set; then
8494   withval="$with_dir_group"
8495
8496         if test "x$withval" != "x" ; then
8497              dir_group=$withval
8498         fi
8499
8500
8501 fi;
8502
8503 sd_user=
8504
8505 # Check whether --with-sd_user or --without-sd_user was given.
8506 if test "${with_sd_user+set}" = set; then
8507   withval="$with_sd_user"
8508
8509         if test "x$withval" != "x" ; then
8510              sd_user=$withval
8511         fi
8512
8513
8514 fi;
8515
8516 sd_group=
8517
8518 # Check whether --with-sd_group or --without-sd_group was given.
8519 if test "${with_sd_group+set}" = set; then
8520   withval="$with_sd_group"
8521
8522         if test "x$withval" != "x" ; then
8523              sd_group=$withval
8524         fi
8525
8526
8527 fi;
8528
8529 fd_user=
8530
8531 # Check whether --with-fd_user or --without-fd_user was given.
8532 if test "${with_fd_user+set}" = set; then
8533   withval="$with_fd_user"
8534
8535         if test "x$withval" != "x" ; then
8536              fd_user=$withval
8537         fi
8538
8539
8540 fi;
8541
8542 fd_group=
8543
8544 # Check whether --with-fd_group or --without-fd_group was given.
8545 if test "${with_fd_group+set}" = set; then
8546   withval="$with_fd_group"
8547
8548         if test "x$withval" != "x" ; then
8549              fd_group=$withval
8550         fi
8551
8552
8553 fi;
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 #
8566 # allow setting default executable permissions
8567 #
8568 SBINPERM=0754
8569
8570 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8571 if test "${with_sbin_perm+set}" = set; then
8572   withval="$with_sbin_perm"
8573
8574         if test "x$withval" != "x" ; then
8575             SBINPERM=$withval
8576         fi
8577
8578
8579 fi;
8580
8581
8582
8583 # ------------------------------------------------
8584 # Bacula check for various SQL database engines
8585 # ------------------------------------------------
8586
8587 db_found=no
8588 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8589 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8590
8591 # Check whether --with-postgresql or --without-postgresql was given.
8592 if test "${with_postgresql+set}" = set; then
8593   withval="$with_postgresql"
8594
8595   if test "$withval" != "no"; then
8596       if test "$db_found" = "yes"; then
8597           echo "$as_me:$LINENO: result: error" >&5
8598 echo "${ECHO_T}error" >&6
8599           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8600 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8601    { (exit 1); exit 1; }; };
8602       fi
8603       if test "$withval" = "yes"; then
8604           if test -f /usr/local/include/libpq-fe.h; then
8605               POSTGRESQL_INCDIR=/usr/local/include
8606               POSTGRESQL_LIBDIR=/usr/local/lib
8607               POSTGRESQL_BINDIR=/usr/local/bin
8608           elif test -f /usr/include/libpq-fe.h; then
8609               POSTGRESQL_INCDIR=/usr/include
8610               POSTGRESQL_LIBDIR=/usr/lib
8611               POSTGRESQL_BINDIR=/usr/bin
8612           elif test -f /usr/include/pgsql/libpq-fe.h; then
8613               POSTGRESQL_INCDIR=/usr/include/pgsql
8614               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8615               POSTGRESQL_BINDIR=/usr/bin
8616           elif test -f /usr/include/postgresql/libpq-fe.h; then
8617               POSTGRESQL_INCDIR=/usr/include/postgresql
8618               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8619               POSTGRESQL_BINDIR=/usr/bin
8620           else
8621               echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8623               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8624 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8625    { (exit 1); exit 1; }; }
8626           fi
8627       elif test -f $withval/include/libpq-fe.h; then
8628           POSTGRESQL_INCDIR=$withval/include
8629           POSTGRESQL_LIBDIR=$withval/lib
8630           POSTGRESQL_BINDIR=$withval/bin
8631       elif test -f $withval/include/postgresql/libpq-fe.h; then
8632           POSTGRESQL_INCDIR=$withval/include/postgresql
8633           POSTGRESQL_LIBDIR=$withval/lib
8634           POSTGRESQL_BINDIR=$withval/bin
8635       else
8636           echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6
8638           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8639 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8640    { (exit 1); exit 1; }; }
8641       fi
8642       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8643       echo "$as_me:$LINENO: checking for crypt" >&5
8644 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8645 if test "${ac_cv_func_crypt+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h.  */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h.  */
8654 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8656 #define crypt innocuous_crypt
8657
8658 /* System header to define __stub macros and hopefully few prototypes,
8659     which can conflict with char crypt (); below.
8660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661     <limits.h> exists even on freestanding compilers.  */
8662
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8668
8669 #undef crypt
8670
8671 /* Override any gcc2 internal prototype to avoid an error.  */
8672 #ifdef __cplusplus
8673 extern "C"
8674 {
8675 #endif
8676 /* We use char because int might match the return type of a gcc2
8677    builtin and then its argument prototype would still apply.  */
8678 char crypt ();
8679 /* The GNU C library defines this for functions which it implements
8680     to always fail with ENOSYS.  Some functions are actually named
8681     something starting with __ and the normal name is an alias.  */
8682 #if defined (__stub_crypt) || defined (__stub___crypt)
8683 choke me
8684 #else
8685 char (*f) () = crypt;
8686 #endif
8687 #ifdef __cplusplus
8688 }
8689 #endif
8690
8691 int
8692 main ()
8693 {
8694 return f != crypt;
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701   (eval $ac_link) 2>conftest.er1
8702   ac_status=$?
8703   grep -v '^ *+' conftest.er1 >conftest.err
8704   rm -f conftest.er1
8705   cat conftest.err >&5
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -z "$ac_c_werror_flag"
8709                          || test ! -s conftest.err'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; } &&
8715          { ac_try='test -s conftest$ac_exeext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   ac_cv_func_crypt=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_cv_func_crypt=no
8727 fi
8728 rm -f conftest.err conftest.$ac_objext \
8729       conftest$ac_exeext conftest.$ac_ext
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8732 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8733 if test $ac_cv_func_crypt = yes; then
8734   :
8735 else
8736   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8737 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8738 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lcrypt  $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 /* Override any gcc2 internal prototype to avoid an error.  */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755    builtin and then its argument prototype would still apply.  */
8756 char crypt ();
8757 int
8758 main ()
8759 {
8760 crypt ();
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767   (eval $ac_link) 2>conftest.er1
8768   ac_status=$?
8769   grep -v '^ *+' conftest.er1 >conftest.err
8770   rm -f conftest.er1
8771   cat conftest.err >&5
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } &&
8774          { ac_try='test -z "$ac_c_werror_flag"
8775                          || test ! -s conftest.err'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; } &&
8781          { ac_try='test -s conftest$ac_exeext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_cv_lib_crypt_crypt=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 ac_cv_lib_crypt_crypt=no
8793 fi
8794 rm -f conftest.err conftest.$ac_objext \
8795       conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8799 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8800 if test $ac_cv_lib_crypt_crypt = yes; then
8801   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8802 fi
8803
8804 fi
8805
8806       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8807       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8808       SQL_BINDIR=$POSTGRESQL_BINDIR
8809       cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_POSTGRESQL 1
8811 _ACEOF
8812
8813       echo "$as_me:$LINENO: result: yes" >&5
8814 echo "${ECHO_T}yes" >&6
8815       db_found=yes
8816       support_postgresql=yes
8817       db_name=PostgreSQL
8818       DB_NAME=postgresql
8819   else
8820       echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6
8822   fi
8823
8824 else
8825
8826   echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8828
8829 fi;
8830
8831
8832
8833
8834
8835
8836
8837 db_found=no
8838 echo "$as_me:$LINENO: checking for MySQL support" >&5
8839 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8840
8841 # Check whether --with-mysql or --without-mysql was given.
8842 if test "${with_mysql+set}" = set; then
8843   withval="$with_mysql"
8844
8845   if test "$withval" != "no"; then
8846         if test "$withval" = "yes"; then
8847                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8848                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8849                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8850                         MYSQL_BINDIR=/usr/local/mysql/bin
8851                 elif test -f /usr/include/mysql/mysql.h; then
8852                         MYSQL_INCDIR=/usr/include/mysql
8853                         MYSQL_LIBDIR=/usr/lib/mysql
8854                         MYSQL_BINDIR=/usr/bin
8855                 elif test -f /usr/include/mysql.h; then
8856                         MYSQL_INCDIR=/usr/include
8857                         MYSQL_LIBDIR=/usr/lib
8858                         MYSQL_BINDIR=/usr/bin
8859                 elif test -f /usr/local/include/mysql/mysql.h; then
8860                         MYSQL_INCDIR=/usr/local/include/mysql
8861                         MYSQL_LIBDIR=/usr/local/lib/mysql
8862                         MYSQL_BINDIR=/usr/local/bin
8863                 elif test -f /usr/local/include/mysql.h; then
8864                         MYSQL_INCDIR=/usr/local/include
8865                         MYSQL_LIBDIR=/usr/local/lib
8866                         MYSQL_BINDIR=/usr/local/bin
8867                 else
8868                    echo "$as_me:$LINENO: result: no" >&5
8869 echo "${ECHO_T}no" >&6
8870                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8871 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8872    { (exit 1); exit 1; }; }
8873                 fi
8874         else
8875                 if test -f $withval/include/mysql/mysql.h; then
8876                         MYSQL_INCDIR=$withval/include/mysql
8877                         MYSQL_LIBDIR=$withval/lib/mysql
8878                         MYSQL_BINDIR=$withval/bin
8879                 elif test -f $withval/include/mysql.h; then
8880                         MYSQL_INCDIR=$withval/include
8881                         MYSQL_LIBDIR=$withval/lib
8882                         MYSQL_BINDIR=$withval/bin
8883                 else
8884                    echo "$as_me:$LINENO: result: no" >&5
8885 echo "${ECHO_T}no" >&6
8886                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8887 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8888    { (exit 1); exit 1; }; }
8889                 fi
8890         fi
8891     SQL_INCLUDE=-I$MYSQL_INCDIR
8892     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8893        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8894        cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_THREAD_SAFE_MYSQL 1
8896 _ACEOF
8897
8898     else
8899        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8900     fi
8901     SQL_BINDIR=$MYSQL_BINDIR
8902
8903     cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_MYSQL 1
8905 _ACEOF
8906
8907     echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6
8909     db_found=yes
8910     support_mysql=yes
8911     db_name=MySQL
8912     DB_NAME=mysql
8913
8914   else
8915         echo "$as_me:$LINENO: result: no" >&5
8916 echo "${ECHO_T}no" >&6
8917   fi
8918
8919
8920 fi;
8921
8922
8923 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8924 if test "${with_embedded_mysql+set}" = set; then
8925   withval="$with_embedded_mysql"
8926
8927   if test "$withval" != "no"; then
8928         if test "$withval" = "yes"; then
8929                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8930                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8931                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8932                         MYSQL_BINDIR=/usr/local/mysql/bin
8933                 elif test -f /usr/include/mysql/mysql.h; then
8934                         MYSQL_INCDIR=/usr/include/mysql
8935                         MYSQL_LIBDIR=/usr/lib/mysql
8936                         MYSQL_BINDIR=/usr/bin
8937                 elif test -f /usr/include/mysql.h; then
8938                         MYSQL_INCDIR=/usr/include
8939                         MYSQL_LIBDIR=/usr/lib
8940                         MYSQL_BINDIR=/usr/bin
8941                 elif test -f /usr/local/include/mysql/mysql.h; then
8942                         MYSQL_INCDIR=/usr/local/include/mysql
8943                         MYSQL_LIBDIR=/usr/local/lib/mysql
8944                         MYSQL_BINDIR=/usr/local/bin
8945                 elif test -f /usr/local/include/mysql.h; then
8946                         MYSQL_INCDIR=/usr/local/include
8947                         MYSQL_LIBDIR=/usr/local/lib
8948                         MYSQL_BINDIR=/usr/local/bin
8949                 else
8950                    echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8952                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8953 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8954    { (exit 1); exit 1; }; }
8955                 fi
8956         else
8957                 if test -f $withval/include/mysql/mysql.h; then
8958                         MYSQL_INCDIR=$withval/include/mysql
8959                         MYSQL_LIBDIR=$withval/lib/mysql
8960                         MYSQL_BINDIR=$withval/bin
8961                 elif test -f $withval/include/mysql.h; then
8962                         MYSQL_INCDIR=$withval/include
8963                         MYSQL_LIBDIR=$withval/lib
8964                         MYSQL_BINDIR=$withval/bin
8965                 else
8966                    echo "$as_me:$LINENO: result: no" >&5
8967 echo "${ECHO_T}no" >&6
8968                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8969 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8970    { (exit 1); exit 1; }; }
8971                 fi
8972         fi
8973     SQL_INCLUDE=-I$MYSQL_INCDIR
8974     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8975     SQL_BINDIR=$MYSQL_BINDIR
8976
8977     cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_MYSQL 1
8979 _ACEOF
8980
8981     cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_EMBEDDED_MYSQL 1
8983 _ACEOF
8984
8985     echo "$as_me:$LINENO: result: yes" >&5
8986 echo "${ECHO_T}yes" >&6
8987     db_found=yes
8988     support_mysql=yes
8989     db_name=MySQL
8990     DB_NAME=mysql
8991
8992   else
8993         echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995   fi
8996
8997
8998 fi;
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008 db_found=no
9009 echo "$as_me:$LINENO: checking for SQLite support" >&5
9010 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9011
9012 # Check whether --with-sqlite or --without-sqlite was given.
9013 if test "${with_sqlite+set}" = set; then
9014   withval="$with_sqlite"
9015
9016   if test "$withval" != "no"; then
9017      if test "$withval" = "yes"; then
9018         if test -f /usr/local/include/sqlite.h; then
9019            SQLITE_INCDIR=/usr/local/include
9020            SQLITE_LIBDIR=/usr/local/lib
9021            SQLITE_BINDIR=/usr/local/bin
9022         elif test -f /usr/include/sqlite.h; then
9023            SQLITE_INCDIR=/usr/include
9024            SQLITE_LIBDIR=/usr/lib
9025            SQLITE_BINDIR=/usr/bin
9026         elif test -f $prefix/include/sqlite.h; then
9027            SQLITE_INCDIR=$prefix/include
9028            SQLITE_LIBDIR=$prefix/lib
9029            SQLITE_BINDIR=$prefix/bin
9030         else
9031            echo "$as_me:$LINENO: result: no" >&5
9032 echo "${ECHO_T}no" >&6
9033            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9034 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9035    { (exit 1); exit 1; }; }
9036         fi
9037      else
9038         if test -f $withval/sqlite.h; then
9039            SQLITE_INCDIR=$withval
9040            SQLITE_LIBDIR=$withval
9041            SQLITE_BINDIR=$withval
9042         elif test -f $withval/include/sqlite.h; then
9043            SQLITE_INCDIR=$withval/include
9044            SQLITE_LIBDIR=$withval/lib
9045            SQLITE_BINDIR=$withval/bin
9046         else
9047            echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6
9049            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9050 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9051    { (exit 1); exit 1; }; }
9052         fi
9053      fi
9054      SQL_INCLUDE=-I$SQLITE_INCDIR
9055      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9056      SQL_BINDIR=$SQLITE_BINDIR
9057
9058      cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_SQLITE 1
9060 _ACEOF
9061
9062      echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6
9064      db_found=yes
9065      support_sqlite=yes
9066      db_name=SQLite
9067      DB_NAME=sqlite
9068
9069   else
9070      echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9072   fi
9073
9074 else
9075
9076   echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9078
9079 fi;
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 cat >>confdefs.h <<\_ACEOF
9090 #define PROTOTYPES 1
9091 _ACEOF
9092
9093
9094 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9095     if test -z "$CCOPTS"; then
9096         CCOPTS='-g -O2 -Wall'
9097     fi
9098     CFLAGS="$CCOPTS"
9099 fi
9100
9101
9102
9103
9104 largefile_support="no"
9105
9106    # Check whether --enable-largefile or --disable-largefile was given.
9107 if test "${enable_largefile+set}" = set; then
9108   enableval="$enable_largefile"
9109
9110 fi;
9111    if test "$enable_largefile" != no; then
9112      if test -n "$ac_tool_prefix"; then
9113   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9114 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9115 echo "$as_me:$LINENO: checking for $ac_word" >&5
9116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9117 if test "${ac_cv_prog_GETCONF+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   if test -n "$GETCONF"; then
9121   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9122 else
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126   IFS=$as_save_IFS
9127   test -z "$as_dir" && as_dir=.
9128   for ac_exec_ext in '' $ac_executable_extensions; do
9129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9132     break 2
9133   fi
9134 done
9135 done
9136
9137 fi
9138 fi
9139 GETCONF=$ac_cv_prog_GETCONF
9140 if test -n "$GETCONF"; then
9141   echo "$as_me:$LINENO: result: $GETCONF" >&5
9142 echo "${ECHO_T}$GETCONF" >&6
9143 else
9144   echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6
9146 fi
9147
9148 fi
9149 if test -z "$ac_cv_prog_GETCONF"; then
9150   ac_ct_GETCONF=$GETCONF
9151   # Extract the first word of "getconf", so it can be a program name with args.
9152 set dummy getconf; ac_word=$2
9153 echo "$as_me:$LINENO: checking for $ac_word" >&5
9154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9155 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   if test -n "$ac_ct_GETCONF"; then
9159   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9163 do
9164   IFS=$as_save_IFS
9165   test -z "$as_dir" && as_dir=.
9166   for ac_exec_ext in '' $ac_executable_extensions; do
9167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9168     ac_cv_prog_ac_ct_GETCONF="getconf"
9169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9170     break 2
9171   fi
9172 done
9173 done
9174
9175 fi
9176 fi
9177 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9178 if test -n "$ac_ct_GETCONF"; then
9179   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9180 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9181 else
9182   echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184 fi
9185
9186   GETCONF=$ac_ct_GETCONF
9187 else
9188   GETCONF="$ac_cv_prog_GETCONF"
9189 fi
9190
9191      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9192 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9193 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9197         ac_cv_sys_largefile_CFLAGS=no
9198         case "$host_os" in
9199            # IRIX 6.2 and later require cc -n32.
9200            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9201              if test "$GCC" != yes; then
9202                ac_cv_sys_largefile_CFLAGS=-n32
9203              fi
9204              ac_save_CC="$CC"
9205              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9206              cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h.  */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h.  */
9212
9213 int
9214 main ()
9215 {
9216
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9223   (eval $ac_link) 2>conftest.er1
9224   ac_status=$?
9225   grep -v '^ *+' conftest.er1 >conftest.err
9226   rm -f conftest.er1
9227   cat conftest.err >&5
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } &&
9230          { ac_try='test -z "$ac_c_werror_flag"
9231                          || test ! -s conftest.err'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; } &&
9237          { ac_try='test -s conftest$ac_exeext'
9238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239   (eval $ac_try) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; }; then
9243   :
9244 else
9245   echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9247
9248 ac_cv_sys_largefile_CFLAGS=no
9249 fi
9250 rm -f conftest.err conftest.$ac_objext \
9251       conftest$ac_exeext conftest.$ac_ext
9252              CC="$ac_save_CC"
9253            esac
9254       }
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9257 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9258      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9259 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9260 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9264         ac_cv_sys_largefile_LDFLAGS=no
9265
9266       }
9267 fi
9268 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9269 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9270      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9271 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9272 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9276         ac_cv_sys_largefile_LIBS=no
9277
9278       }
9279 fi
9280 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9281 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9282
9283      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9284        case "$ac_flag" in
9285        no) ;;
9286        -D_FILE_OFFSET_BITS=*) ;;
9287        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9288        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9289        -D?* | -I?*)
9290          case "$ac_flag" in
9291    no) ;;
9292    ?*)
9293      case "$CPPFLAGS" in
9294      '') CPPFLAGS="$ac_flag" ;;
9295      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9296      esac ;;
9297    esac ;;
9298        *)
9299          case "$ac_flag" in
9300    no) ;;
9301    ?*)
9302      case "$CFLAGS" in
9303      '') CFLAGS="$ac_flag" ;;
9304      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9305      esac ;;
9306    esac ;;
9307        esac
9308      done
9309      case "$ac_cv_sys_largefile_LDFLAGS" in
9310    no) ;;
9311    ?*)
9312      case "$LDFLAGS" in
9313      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9314      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9315      esac ;;
9316    esac
9317      case "$ac_cv_sys_largefile_LIBS" in
9318    no) ;;
9319    ?*)
9320      case "$LIBS" in
9321      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9322      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9323      esac ;;
9324    esac
9325      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9326 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9327 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330   ac_cv_sys_file_offset_bits=no
9331       ac_cv_sys_file_offset_bits=64
9332       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9333         case "$ac_flag" in
9334         -D_FILE_OFFSET_BITS)
9335           ac_cv_sys_file_offset_bits=1 ;;
9336         -D_FILE_OFFSET_BITS=*)
9337           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9338         esac
9339       done
9340
9341 fi
9342 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9343 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9344    if test "$ac_cv_sys_file_offset_bits" != no; then
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9348 _ACEOF
9349
9350    fi
9351      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9352 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9353 if test "${ac_cv_sys_largefile_source+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   ac_cv_sys_largefile_source=no
9357       ac_cv_sys_largefile_source=1
9358       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9359         case "$ac_flag" in
9360         -D_LARGEFILE_SOURCE)
9361           ac_cv_sys_largefile_source=1 ;;
9362         -D_LARGEFILE_SOURCE=*)
9363           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9364         esac
9365       done
9366
9367 fi
9368 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9369 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9370    if test "$ac_cv_sys_largefile_source" != no; then
9371
9372 cat >>confdefs.h <<_ACEOF
9373 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9374 _ACEOF
9375
9376    fi
9377      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9378 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9379 if test "${ac_cv_sys_large_files+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   ac_cv_sys_large_files=no
9383       ac_cv_sys_large_files=1
9384       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9385         case "$ac_flag" in
9386         -D_LARGE_FILES)
9387           ac_cv_sys_large_files=1 ;;
9388         -D_LARGE_FILES=*)
9389           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9390         esac
9391       done
9392
9393 fi
9394 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9395 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9396    if test "$ac_cv_sys_large_files" != no; then
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define _LARGE_FILES $ac_cv_sys_large_files
9400 _ACEOF
9401
9402    fi
9403    fi
9404
9405
9406
9407 echo "$as_me:$LINENO: checking for X" >&5
9408 echo $ECHO_N "checking for X... $ECHO_C" >&6
9409
9410
9411 # Check whether --with-x or --without-x was given.
9412 if test "${with_x+set}" = set; then
9413   withval="$with_x"
9414
9415 fi;
9416 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9417 if test "x$with_x" = xno; then
9418   # The user explicitly disabled X.
9419   have_x=disabled
9420 else
9421   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9422     # Both variables are already set.
9423     have_x=yes
9424   else
9425     if test "${ac_cv_have_x+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   # One or both of the vars are not set, and there is no cached value.
9429 ac_x_includes=no ac_x_libraries=no
9430 rm -fr conftest.dir
9431 if mkdir conftest.dir; then
9432   cd conftest.dir
9433   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9434   cat >Imakefile <<'_ACEOF'
9435 acfindx:
9436         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9437 _ACEOF
9438   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9439     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9440     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9441     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9442     for ac_extension in a so sl; do
9443       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9444          test -f $ac_im_libdir/libX11.$ac_extension; then
9445         ac_im_usrlibdir=$ac_im_libdir; break
9446       fi
9447     done
9448     # Screen out bogus values from the imake configuration.  They are
9449     # bogus both because they are the default anyway, and because
9450     # using them would break gcc on systems where it needs fixed includes.
9451     case $ac_im_incroot in
9452         /usr/include) ;;
9453         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9454     esac
9455     case $ac_im_usrlibdir in
9456         /usr/lib | /lib) ;;
9457         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9458     esac
9459   fi
9460   cd ..
9461   rm -fr conftest.dir
9462 fi
9463
9464 # Standard set of common directories for X headers.
9465 # Check X11 before X11Rn because it is often a symlink to the current release.
9466 ac_x_header_dirs='
9467 /usr/X11/include
9468 /usr/X11R6/include
9469 /usr/X11R5/include
9470 /usr/X11R4/include
9471
9472 /usr/include/X11
9473 /usr/include/X11R6
9474 /usr/include/X11R5
9475 /usr/include/X11R4
9476
9477 /usr/local/X11/include
9478 /usr/local/X11R6/include
9479 /usr/local/X11R5/include
9480 /usr/local/X11R4/include
9481
9482 /usr/local/include/X11
9483 /usr/local/include/X11R6
9484 /usr/local/include/X11R5
9485 /usr/local/include/X11R4
9486
9487 /usr/X386/include
9488 /usr/x386/include
9489 /usr/XFree86/include/X11
9490
9491 /usr/include
9492 /usr/local/include
9493 /usr/unsupported/include
9494 /usr/athena/include
9495 /usr/local/x11r5/include
9496 /usr/lpp/Xamples/include
9497
9498 /usr/openwin/include
9499 /usr/openwin/share/include'
9500
9501 if test "$ac_x_includes" = no; then
9502   # Guess where to find include files, by looking for Intrinsic.h.
9503   # First, try using that file with no special directory specified.
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 #include <X11/Intrinsic.h>
9511 _ACEOF
9512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } >/dev/null; then
9520   if test -s conftest.err; then
9521     ac_cpp_err=$ac_c_preproc_warn_flag
9522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9523   else
9524     ac_cpp_err=
9525   fi
9526 else
9527   ac_cpp_err=yes
9528 fi
9529 if test -z "$ac_cpp_err"; then
9530   # We can compile using X headers with no special include directory.
9531 ac_x_includes=
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536   for ac_dir in $ac_x_header_dirs; do
9537   if test -r "$ac_dir/X11/Intrinsic.h"; then
9538     ac_x_includes=$ac_dir
9539     break
9540   fi
9541 done
9542 fi
9543 rm -f conftest.err conftest.$ac_ext
9544 fi # $ac_x_includes = no
9545
9546 if test "$ac_x_libraries" = no; then
9547   # Check for the libraries.
9548   # See if we find them without any special options.
9549   # Don't add to $LIBS permanently.
9550   ac_save_LIBS=$LIBS
9551   LIBS="-lXt $LIBS"
9552   cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 #include <X11/Intrinsic.h>
9559 int
9560 main ()
9561 {
9562 XtMalloc (0)
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569   (eval $ac_link) 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag"
9577                          || test ! -s conftest.err'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; } &&
9583          { ac_try='test -s conftest$ac_exeext'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   LIBS=$ac_save_LIBS
9590 # We can link X programs with no special library path.
9591 ac_x_libraries=
9592 else
9593   echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 LIBS=$ac_save_LIBS
9597 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9598 do
9599   # Don't even attempt the hair of trying to link an X program!
9600   for ac_extension in a so sl; do
9601     if test -r $ac_dir/libXt.$ac_extension; then
9602       ac_x_libraries=$ac_dir
9603       break 2
9604     fi
9605   done
9606 done
9607 fi
9608 rm -f conftest.err conftest.$ac_objext \
9609       conftest$ac_exeext conftest.$ac_ext
9610 fi # $ac_x_libraries = no
9611
9612 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9613   # Didn't find X anywhere.  Cache the known absence of X.
9614   ac_cv_have_x="have_x=no"
9615 else
9616   # Record where we found X for the cache.
9617   ac_cv_have_x="have_x=yes \
9618                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9619 fi
9620 fi
9621
9622   fi
9623   eval "$ac_cv_have_x"
9624 fi # $with_x != no
9625
9626 if test "$have_x" != yes; then
9627   echo "$as_me:$LINENO: result: $have_x" >&5
9628 echo "${ECHO_T}$have_x" >&6
9629   no_x=yes
9630 else
9631   # If each of the values was on the command line, it overrides each guess.
9632   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9633   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9634   # Update the cache value to reflect the command line values.
9635   ac_cv_have_x="have_x=yes \
9636                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9637   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9638 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9639 fi
9640
9641 if test "$no_x" = yes; then
9642   # Not all programs may use this symbol, but it does not hurt to define it.
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define X_DISPLAY_MISSING 1
9646 _ACEOF
9647
9648   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9649 else
9650   if test -n "$x_includes"; then
9651     X_CFLAGS="$X_CFLAGS -I$x_includes"
9652   fi
9653
9654   # It would also be nice to do this for all -L options, not just this one.
9655   if test -n "$x_libraries"; then
9656     X_LIBS="$X_LIBS -L$x_libraries"
9657     # For Solaris; some versions of Sun CC require a space after -R and
9658     # others require no space.  Words are not sufficient . . . .
9659     case `(uname -sr) 2>/dev/null` in
9660     "SunOS 5"*)
9661       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9662 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9663       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9664       cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670
9671 int
9672 main ()
9673 {
9674
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_R_nospace=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_R_nospace=no
9707 fi
9708 rm -f conftest.err conftest.$ac_objext \
9709       conftest$ac_exeext conftest.$ac_ext
9710       if test $ac_R_nospace = yes; then
9711         echo "$as_me:$LINENO: result: no" >&5
9712 echo "${ECHO_T}no" >&6
9713         X_LIBS="$X_LIBS -R$x_libraries"
9714       else
9715         LIBS="$ac_xsave_LIBS -R $x_libraries"
9716         cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 int
9724 main ()
9725 {
9726
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733   (eval $ac_link) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_R_space=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_R_space=no
9759 fi
9760 rm -f conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762         if test $ac_R_space = yes; then
9763           echo "$as_me:$LINENO: result: yes" >&5
9764 echo "${ECHO_T}yes" >&6
9765           X_LIBS="$X_LIBS -R $x_libraries"
9766         else
9767           echo "$as_me:$LINENO: result: neither works" >&5
9768 echo "${ECHO_T}neither works" >&6
9769         fi
9770       fi
9771       LIBS=$ac_xsave_LIBS
9772     esac
9773   fi
9774
9775   # Check for system-dependent libraries X programs must link with.
9776   # Do this before checking for the system-independent R6 libraries
9777   # (-lICE), since we may need -lsocket or whatever for X linking.
9778
9779   if test "$ISC" = yes; then
9780     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9781   else
9782     # Martyn Johnson says this is needed for Ultrix, if the X
9783     # libraries were built with DECnet support.  And Karl Berry says
9784     # the Alpha needs dnet_stub (dnet does not exist).
9785     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9786     cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 /* Override any gcc2 internal prototype to avoid an error.  */
9794 #ifdef __cplusplus
9795 extern "C"
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798    builtin and then its argument prototype would still apply.  */
9799 char XOpenDisplay ();
9800 int
9801 main ()
9802 {
9803 XOpenDisplay ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>conftest.er1
9811   ac_status=$?
9812   grep -v '^ *+' conftest.er1 >conftest.err
9813   rm -f conftest.er1
9814   cat conftest.err >&5
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -z "$ac_c_werror_flag"
9818                          || test ! -s conftest.err'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; } &&
9824          { ac_try='test -s conftest$ac_exeext'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   :
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9836 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9837 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   ac_check_lib_save_LIBS=$LIBS
9841 LIBS="-ldnet  $LIBS"
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 /* Override any gcc2 internal prototype to avoid an error.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854    builtin and then its argument prototype would still apply.  */
9855 char dnet_ntoa ();
9856 int
9857 main ()
9858 {
9859 dnet_ntoa ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866   (eval $ac_link) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"
9874                          || test ! -s conftest.err'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; } &&
9880          { ac_try='test -s conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_cv_lib_dnet_dnet_ntoa=yes
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_cv_lib_dnet_dnet_ntoa=no
9892 fi
9893 rm -f conftest.err conftest.$ac_objext \
9894       conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9896 fi
9897 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9898 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9899 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9900   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9901 fi
9902
9903     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9904       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9905 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9906 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-ldnet_stub  $LIBS"
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917
9918 /* Override any gcc2 internal prototype to avoid an error.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 /* We use char because int might match the return type of a gcc2
9923    builtin and then its argument prototype would still apply.  */
9924 char dnet_ntoa ();
9925 int
9926 main ()
9927 {
9928 dnet_ntoa ();
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935   (eval $ac_link) 2>conftest.er1
9936   ac_status=$?
9937   grep -v '^ *+' conftest.er1 >conftest.err
9938   rm -f conftest.er1
9939   cat conftest.err >&5
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -z "$ac_c_werror_flag"
9943                          || test ! -s conftest.err'
9944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945   (eval $ac_try) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; } &&
9949          { ac_try='test -s conftest$ac_exeext'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; }; then
9955   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_cv_lib_dnet_stub_dnet_ntoa=no
9961 fi
9962 rm -f conftest.err conftest.$ac_objext \
9963       conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9967 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9968 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9969   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9970 fi
9971
9972     fi
9973 fi
9974 rm -f conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976     LIBS="$ac_xsave_LIBS"
9977
9978     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9979     # to get the SysV transport functions.
9980     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9981     # needs -lnsl.
9982     # The nsl library prevents programs from opening the X display
9983     # on Irix 5.2, according to T.E. Dickey.
9984     # The functions gethostbyname, getservbyname, and inet_addr are
9985     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9986     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9987 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9988 if test "${ac_cv_func_gethostbyname+set}" = set; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9999 #define gethostbyname innocuous_gethostbyname
10000
10001 /* System header to define __stub macros and hopefully few prototypes,
10002     which can conflict with char gethostbyname (); below.
10003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10004     <limits.h> exists even on freestanding compilers.  */
10005
10006 #ifdef __STDC__
10007 # include <limits.h>
10008 #else
10009 # include <assert.h>
10010 #endif
10011
10012 #undef gethostbyname
10013
10014 /* Override any gcc2 internal prototype to avoid an error.  */
10015 #ifdef __cplusplus
10016 extern "C"
10017 {
10018 #endif
10019 /* We use char because int might match the return type of a gcc2
10020    builtin and then its argument prototype would still apply.  */
10021 char gethostbyname ();
10022 /* The GNU C library defines this for functions which it implements
10023     to always fail with ENOSYS.  Some functions are actually named
10024     something starting with __ and the normal name is an alias.  */
10025 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10026 choke me
10027 #else
10028 char (*f) () = gethostbyname;
10029 #endif
10030 #ifdef __cplusplus
10031 }
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return f != gethostbyname;
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044   (eval $ac_link) 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -z "$ac_c_werror_flag"
10052                          || test ! -s conftest.err'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_func_gethostbyname=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_func_gethostbyname=no
10070 fi
10071 rm -f conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 fi
10074 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10075 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10076
10077     if test $ac_cv_func_gethostbyname = no; then
10078       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10079 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10080 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10081   echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083   ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-lnsl  $LIBS"
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091
10092 /* Override any gcc2 internal prototype to avoid an error.  */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 /* We use char because int might match the return type of a gcc2
10097    builtin and then its argument prototype would still apply.  */
10098 char gethostbyname ();
10099 int
10100 main ()
10101 {
10102 gethostbyname ();
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag"
10117                          || test ! -s conftest.err'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_nsl_gethostbyname=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_lib_nsl_gethostbyname=no
10135 fi
10136 rm -f conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10141 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10142 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10143   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10144 fi
10145
10146       if test $ac_cv_lib_nsl_gethostbyname = no; then
10147         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10148 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10149 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   ac_check_lib_save_LIBS=$LIBS
10153 LIBS="-lbsd  $LIBS"
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160
10161 /* Override any gcc2 internal prototype to avoid an error.  */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 /* We use char because int might match the return type of a gcc2
10166    builtin and then its argument prototype would still apply.  */
10167 char gethostbyname ();
10168 int
10169 main ()
10170 {
10171 gethostbyname ();
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10178   (eval $ac_link) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"
10186                          || test ! -s conftest.err'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; } &&
10192          { ac_try='test -s conftest$ac_exeext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_cv_lib_bsd_gethostbyname=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_cv_lib_bsd_gethostbyname=no
10204 fi
10205 rm -f conftest.err conftest.$ac_objext \
10206       conftest$ac_exeext conftest.$ac_ext
10207 LIBS=$ac_check_lib_save_LIBS
10208 fi
10209 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10210 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10211 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10212   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10213 fi
10214
10215       fi
10216     fi
10217
10218     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10219     # socket/setsockopt and other routines are undefined under SCO ODT
10220     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10221     # on later versions), says Simon Leinen: it contains gethostby*
10222     # variants that don't use the name server (or something).  -lsocket
10223     # must be given before -lnsl if both are needed.  We assume that
10224     # if connect needs -lnsl, so does gethostbyname.
10225     echo "$as_me:$LINENO: checking for connect" >&5
10226 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10227 if test "${ac_cv_func_connect+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10238 #define connect innocuous_connect
10239
10240 /* System header to define __stub macros and hopefully few prototypes,
10241     which can conflict with char connect (); below.
10242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10243     <limits.h> exists even on freestanding compilers.  */
10244
10245 #ifdef __STDC__
10246 # include <limits.h>
10247 #else
10248 # include <assert.h>
10249 #endif
10250
10251 #undef connect
10252
10253 /* Override any gcc2 internal prototype to avoid an error.  */
10254 #ifdef __cplusplus
10255 extern "C"
10256 {
10257 #endif
10258 /* We use char because int might match the return type of a gcc2
10259    builtin and then its argument prototype would still apply.  */
10260 char connect ();
10261 /* The GNU C library defines this for functions which it implements
10262     to always fail with ENOSYS.  Some functions are actually named
10263     something starting with __ and the normal name is an alias.  */
10264 #if defined (__stub_connect) || defined (__stub___connect)
10265 choke me
10266 #else
10267 char (*f) () = connect;
10268 #endif
10269 #ifdef __cplusplus
10270 }
10271 #endif
10272
10273 int
10274 main ()
10275 {
10276 return f != connect;
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283   (eval $ac_link) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest$ac_exeext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_func_connect=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_func_connect=no
10309 fi
10310 rm -f conftest.err conftest.$ac_objext \
10311       conftest$ac_exeext conftest.$ac_ext
10312 fi
10313 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10314 echo "${ECHO_T}$ac_cv_func_connect" >&6
10315
10316     if test $ac_cv_func_connect = no; then
10317       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10318 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10319 if test "${ac_cv_lib_socket_connect+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330
10331 /* Override any gcc2 internal prototype to avoid an error.  */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 /* We use char because int might match the return type of a gcc2
10336    builtin and then its argument prototype would still apply.  */
10337 char connect ();
10338 int
10339 main ()
10340 {
10341 connect ();
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348   (eval $ac_link) 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -z "$ac_c_werror_flag"
10356                          || test ! -s conftest.err'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; } &&
10362          { ac_try='test -s conftest$ac_exeext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_cv_lib_socket_connect=yes
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 ac_cv_lib_socket_connect=no
10374 fi
10375 rm -f conftest.err conftest.$ac_objext \
10376       conftest$ac_exeext conftest.$ac_ext
10377 LIBS=$ac_check_lib_save_LIBS
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10380 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10381 if test $ac_cv_lib_socket_connect = yes; then
10382   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10383 fi
10384
10385     fi
10386
10387     # Guillermo Gomez says -lposix is necessary on A/UX.
10388     echo "$as_me:$LINENO: checking for remove" >&5
10389 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10390 if test "${ac_cv_func_remove+set}" = set; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393   cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10401 #define remove innocuous_remove
10402
10403 /* System header to define __stub macros and hopefully few prototypes,
10404     which can conflict with char remove (); below.
10405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406     <limits.h> exists even on freestanding compilers.  */
10407
10408 #ifdef __STDC__
10409 # include <limits.h>
10410 #else
10411 # include <assert.h>
10412 #endif
10413
10414 #undef remove
10415
10416 /* Override any gcc2 internal prototype to avoid an error.  */
10417 #ifdef __cplusplus
10418 extern "C"
10419 {
10420 #endif
10421 /* We use char because int might match the return type of a gcc2
10422    builtin and then its argument prototype would still apply.  */
10423 char remove ();
10424 /* The GNU C library defines this for functions which it implements
10425     to always fail with ENOSYS.  Some functions are actually named
10426     something starting with __ and the normal name is an alias.  */
10427 #if defined (__stub_remove) || defined (__stub___remove)
10428 choke me
10429 #else
10430 char (*f) () = remove;
10431 #endif
10432 #ifdef __cplusplus
10433 }
10434 #endif
10435
10436 int
10437 main ()
10438 {
10439 return f != remove;
10440   ;
10441   return 0;
10442 }
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446   (eval $ac_link) 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } &&
10453          { ac_try='test -z "$ac_c_werror_flag"
10454                          || test ! -s conftest.err'
10455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456   (eval $ac_try) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; } &&
10460          { ac_try='test -s conftest$ac_exeext'
10461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462   (eval $ac_try) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); }; }; then
10466   ac_cv_func_remove=yes
10467 else
10468   echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10470
10471 ac_cv_func_remove=no
10472 fi
10473 rm -f conftest.err conftest.$ac_objext \
10474       conftest$ac_exeext conftest.$ac_ext
10475 fi
10476 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10477 echo "${ECHO_T}$ac_cv_func_remove" >&6
10478
10479     if test $ac_cv_func_remove = no; then
10480       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10481 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10482 if test "${ac_cv_lib_posix_remove+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-lposix  $LIBS"
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493
10494 /* Override any gcc2 internal prototype to avoid an error.  */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 /* We use char because int might match the return type of a gcc2
10499    builtin and then its argument prototype would still apply.  */
10500 char remove ();
10501 int
10502 main ()
10503 {
10504 remove ();
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511   (eval $ac_link) 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -z "$ac_c_werror_flag"
10519                          || test ! -s conftest.err'
10520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521   (eval $ac_try) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; } &&
10525          { ac_try='test -s conftest$ac_exeext'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   ac_cv_lib_posix_remove=yes
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536 ac_cv_lib_posix_remove=no
10537 fi
10538 rm -f conftest.err conftest.$ac_objext \
10539       conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10541 fi
10542 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10543 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10544 if test $ac_cv_lib_posix_remove = yes; then
10545   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10546 fi
10547
10548     fi
10549
10550     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10551     echo "$as_me:$LINENO: checking for shmat" >&5
10552 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10553 if test "${ac_cv_func_shmat+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10564 #define shmat innocuous_shmat
10565
10566 /* System header to define __stub macros and hopefully few prototypes,
10567     which can conflict with char shmat (); below.
10568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569     <limits.h> exists even on freestanding compilers.  */
10570
10571 #ifdef __STDC__
10572 # include <limits.h>
10573 #else
10574 # include <assert.h>
10575 #endif
10576
10577 #undef shmat
10578
10579 /* Override any gcc2 internal prototype to avoid an error.  */
10580 #ifdef __cplusplus
10581 extern "C"
10582 {
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585    builtin and then its argument prototype would still apply.  */
10586 char shmat ();
10587 /* The GNU C library defines this for functions which it implements
10588     to always fail with ENOSYS.  Some functions are actually named
10589     something starting with __ and the normal name is an alias.  */
10590 #if defined (__stub_shmat) || defined (__stub___shmat)
10591 choke me
10592 #else
10593 char (*f) () = shmat;
10594 #endif
10595 #ifdef __cplusplus
10596 }
10597 #endif
10598
10599 int
10600 main ()
10601 {
10602 return f != shmat;
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609   (eval $ac_link) 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -z "$ac_c_werror_flag"
10617                          || test ! -s conftest.err'
10618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619   (eval $ac_try) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); }; } &&
10623          { ac_try='test -s conftest$ac_exeext'
10624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625   (eval $ac_try) 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; }; then
10629   ac_cv_func_shmat=yes
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 ac_cv_func_shmat=no
10635 fi
10636 rm -f conftest.err conftest.$ac_objext \
10637       conftest$ac_exeext conftest.$ac_ext
10638 fi
10639 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10640 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10641
10642     if test $ac_cv_func_shmat = no; then
10643       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10644 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10645 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lipc  $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656
10657 /* Override any gcc2 internal prototype to avoid an error.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662    builtin and then its argument prototype would still apply.  */
10663 char shmat ();
10664 int
10665 main ()
10666 {
10667 shmat ();
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674   (eval $ac_link) 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } &&
10681          { ac_try='test -z "$ac_c_werror_flag"
10682                          || test ! -s conftest.err'
10683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684   (eval $ac_try) 2>&5
10685   ac_status=$?
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); }; } &&
10688          { ac_try='test -s conftest$ac_exeext'
10689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690   (eval $ac_try) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; }; then
10694   ac_cv_lib_ipc_shmat=yes
10695 else
10696   echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 ac_cv_lib_ipc_shmat=no
10700 fi
10701 rm -f conftest.err conftest.$ac_objext \
10702       conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10704 fi
10705 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10706 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10707 if test $ac_cv_lib_ipc_shmat = yes; then
10708   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10709 fi
10710
10711     fi
10712   fi
10713
10714   # Check for libraries that X11R6 Xt/Xaw programs need.
10715   ac_save_LDFLAGS=$LDFLAGS
10716   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10717   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10718   # check for ICE first), but we must link in the order -lSM -lICE or
10719   # we get undefined symbols.  So assume we have SM if we have ICE.
10720   # These have to be linked with before -lX11, unlike the other
10721   # libraries we check for below, so use a different variable.
10722   # John Interrante, Karl Berry
10723   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10724 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10725 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736
10737 /* Override any gcc2 internal prototype to avoid an error.  */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 /* We use char because int might match the return type of a gcc2
10742    builtin and then its argument prototype would still apply.  */
10743 char IceConnectionNumber ();
10744 int
10745 main ()
10746 {
10747 IceConnectionNumber ();
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754   (eval $ac_link) 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -z "$ac_c_werror_flag"
10762                          || test ! -s conftest.err'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest$ac_exeext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_lib_ICE_IceConnectionNumber=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_lib_ICE_IceConnectionNumber=no
10780 fi
10781 rm -f conftest.err conftest.$ac_objext \
10782       conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10788   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10789 fi
10790
10791   LDFLAGS=$ac_save_LDFLAGS
10792
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823 for ac_header in \
10824         assert.h \
10825         fcntl.h \
10826         grp.h \
10827         pwd.h \
10828         libc.h \
10829         limits.h \
10830         stdarg.h \
10831         stdlib.h \
10832         stdint.h \
10833         string.h \
10834         termios.h \
10835         termcap.h \
10836         term.h \
10837         unistd.h \
10838         sys/bitypes.h \
10839         sys/byteorder.h \
10840         sys/ioctl.h \
10841         sys/select.h \
10842         sys/sockio.h \
10843         sys/time.h \
10844         sys/socket.h \
10845         arpa/nameser.h \
10846         resolv.h \
10847         mtio.h \
10848         sys/mtio.h \
10849         sys/tape.h \
10850         regex.h \
10851
10852 do
10853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10855   echo "$as_me:$LINENO: checking for $ac_header" >&5
10856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 fi
10860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10862 else
10863   # Is the header compilable?
10864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872 $ac_includes_default
10873 #include <$ac_header>
10874 _ACEOF
10875 rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877   (eval $ac_compile) 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag"
10885                          || test ! -s conftest.err'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   ac_header_compiler=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 ac_header_compiler=no
10903 fi
10904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10906 echo "${ECHO_T}$ac_header_compiler" >&6
10907
10908 # Is the header present?
10909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10911 cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917 #include <$ac_header>
10918 _ACEOF
10919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10921   ac_status=$?
10922   grep -v '^ *+' conftest.er1 >conftest.err
10923   rm -f conftest.er1
10924   cat conftest.err >&5
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } >/dev/null; then
10927   if test -s conftest.err; then
10928     ac_cpp_err=$ac_c_preproc_warn_flag
10929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10930   else
10931     ac_cpp_err=
10932   fi
10933 else
10934   ac_cpp_err=yes
10935 fi
10936 if test -z "$ac_cpp_err"; then
10937   ac_header_preproc=yes
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942   ac_header_preproc=no
10943 fi
10944 rm -f conftest.err conftest.$ac_ext
10945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10946 echo "${ECHO_T}$ac_header_preproc" >&6
10947
10948 # So?  What about this header?
10949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10950   yes:no: )
10951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10955     ac_header_preproc=yes
10956     ;;
10957   no:yes:* )
10958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10970     (
10971       cat <<\_ASBOX
10972 ## ------------------------------------------ ##
10973 ## Report this to the AC_PACKAGE_NAME lists.  ##
10974 ## ------------------------------------------ ##
10975 _ASBOX
10976     ) |
10977       sed "s/^/$as_me: WARNING:     /" >&2
10978     ;;
10979 esac
10980 echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985   eval "$as_ac_Header=\$ac_header_preproc"
10986 fi
10987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10989
10990 fi
10991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992   cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 _ACEOF
10995
10996 fi
10997
10998 done
10999
11000 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11001 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11002 if test "${ac_cv_header_stdc+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h.  */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h.  */
11011 #include <stdlib.h>
11012 #include <stdarg.h>
11013 #include <string.h>
11014 #include <float.h>
11015
11016 int
11017 main ()
11018 {
11019
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026   (eval $ac_compile) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_header_stdc=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_header_stdc=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11054
11055 if test $ac_cv_header_stdc = yes; then
11056   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11057   cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 #include <string.h>
11064
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067   $EGREP "memchr" >/dev/null 2>&1; then
11068   :
11069 else
11070   ac_cv_header_stdc=no
11071 fi
11072 rm -f conftest*
11073
11074 fi
11075
11076 if test $ac_cv_header_stdc = yes; then
11077   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11078   cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 #include <stdlib.h>
11085
11086 _ACEOF
11087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11088   $EGREP "free" >/dev/null 2>&1; then
11089   :
11090 else
11091   ac_cv_header_stdc=no
11092 fi
11093 rm -f conftest*
11094
11095 fi
11096
11097 if test $ac_cv_header_stdc = yes; then
11098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11099   if test "$cross_compiling" = yes; then
11100   :
11101 else
11102   cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h.  */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h.  */
11108 #include <ctype.h>
11109 #if ((' ' & 0x0FF) == 0x020)
11110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11112 #else
11113 # define ISLOWER(c) \
11114                    (('a' <= (c) && (c) <= 'i') \
11115                      || ('j' <= (c) && (c) <= 'r') \
11116                      || ('s' <= (c) && (c) <= 'z'))
11117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11118 #endif
11119
11120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11121 int
11122 main ()
11123 {
11124   int i;
11125   for (i = 0; i < 256; i++)
11126     if (XOR (islower (i), ISLOWER (i))
11127         || toupper (i) != TOUPPER (i))
11128       exit(2);
11129   exit (0);
11130 }
11131 _ACEOF
11132 rm -f conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134   (eval $ac_link) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   :
11144 else
11145   echo "$as_me: program exited with status $ac_status" >&5
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ( exit $ac_status )
11150 ac_cv_header_stdc=no
11151 fi
11152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11153 fi
11154 fi
11155 fi
11156 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11157 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11158 if test $ac_cv_header_stdc = yes; then
11159
11160 cat >>confdefs.h <<\_ACEOF
11161 #define STDC_HEADERS 1
11162 _ACEOF
11163
11164 fi
11165
11166 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11167 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11168 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <sys/types.h>
11178 int
11179 main ()
11180 {
11181 return makedev(0, 0);
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188   (eval $ac_link) 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -z "$ac_c_werror_flag"
11196                          || test ! -s conftest.err'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; } &&
11202          { ac_try='test -s conftest$ac_exeext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_cv_header_sys_types_h_makedev=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 ac_cv_header_sys_types_h_makedev=no
11214 fi
11215 rm -f conftest.err conftest.$ac_objext \
11216       conftest$ac_exeext conftest.$ac_ext
11217
11218 fi
11219 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11220 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11221
11222 if test $ac_cv_header_sys_types_h_makedev = no; then
11223 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11224   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11225 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11226 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 fi
11229 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11230 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11231 else
11232   # Is the header compilable?
11233 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11234 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 $ac_includes_default
11242 #include <sys/mkdev.h>
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } &&
11253          { ac_try='test -z "$ac_c_werror_flag"
11254                          || test ! -s conftest.err'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; } &&
11260          { ac_try='test -s conftest.$ac_objext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   ac_header_compiler=yes
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_header_compiler=no
11272 fi
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11275 echo "${ECHO_T}$ac_header_compiler" >&6
11276
11277 # Is the header present?
11278 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11279 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 #include <sys/mkdev.h>
11287 _ACEOF
11288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } >/dev/null; then
11296   if test -s conftest.err; then
11297     ac_cpp_err=$ac_c_preproc_warn_flag
11298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11299   else
11300     ac_cpp_err=
11301   fi
11302 else
11303   ac_cpp_err=yes
11304 fi
11305 if test -z "$ac_cpp_err"; then
11306   ac_header_preproc=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311   ac_header_preproc=no
11312 fi
11313 rm -f conftest.err conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11315 echo "${ECHO_T}$ac_header_preproc" >&6
11316
11317 # So?  What about this header?
11318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11319   yes:no: )
11320     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11321 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11322     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11323 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11324     ac_header_preproc=yes
11325     ;;
11326   no:yes:* )
11327     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11328 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11329     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11330 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11332 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11333     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11334 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11336 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11338 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11339     (
11340       cat <<\_ASBOX
11341 ## ------------------------------------------ ##
11342 ## Report this to the AC_PACKAGE_NAME lists.  ##
11343 ## ------------------------------------------ ##
11344 _ASBOX
11345     ) |
11346       sed "s/^/$as_me: WARNING:     /" >&2
11347     ;;
11348 esac
11349 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11350 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11351 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11355 fi
11356 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11357 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11358
11359 fi
11360 if test $ac_cv_header_sys_mkdev_h = yes; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define MAJOR_IN_MKDEV 1
11364 _ACEOF
11365
11366 fi
11367
11368
11369
11370   if test $ac_cv_header_sys_mkdev_h = no; then
11371     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11372   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11373 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11374 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 fi
11377 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11378 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11379 else
11380   # Is the header compilable?
11381 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11382 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 $ac_includes_default
11390 #include <sys/sysmacros.h>
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394   (eval $ac_compile) 2>conftest.er1
11395   ac_status=$?
11396   grep -v '^ *+' conftest.er1 >conftest.err
11397   rm -f conftest.er1
11398   cat conftest.err >&5
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } &&
11401          { ac_try='test -z "$ac_c_werror_flag"
11402                          || test ! -s conftest.err'
11403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404   (eval $ac_try) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; }; then
11414   ac_header_compiler=yes
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 ac_header_compiler=no
11420 fi
11421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11423 echo "${ECHO_T}$ac_header_compiler" >&6
11424
11425 # Is the header present?
11426 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11427 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 #include <sys/sysmacros.h>
11435 _ACEOF
11436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } >/dev/null; then
11444   if test -s conftest.err; then
11445     ac_cpp_err=$ac_c_preproc_warn_flag
11446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11447   else
11448     ac_cpp_err=
11449   fi
11450 else
11451   ac_cpp_err=yes
11452 fi
11453 if test -z "$ac_cpp_err"; then
11454   ac_header_preproc=yes
11455 else
11456   echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459   ac_header_preproc=no
11460 fi
11461 rm -f conftest.err conftest.$ac_ext
11462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11463 echo "${ECHO_T}$ac_header_preproc" >&6
11464
11465 # So?  What about this header?
11466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11467   yes:no: )
11468     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11469 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11470     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11471 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11472     ac_header_preproc=yes
11473     ;;
11474   no:yes:* )
11475     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11476 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11477     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11478 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11480 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11482 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11484 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11485     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11486 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11487     (
11488       cat <<\_ASBOX
11489 ## ------------------------------------------ ##
11490 ## Report this to the AC_PACKAGE_NAME lists.  ##
11491 ## ------------------------------------------ ##
11492 _ASBOX
11493     ) |
11494       sed "s/^/$as_me: WARNING:     /" >&2
11495     ;;
11496 esac
11497 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11498 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11499 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11503 fi
11504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11505 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11506
11507 fi
11508 if test $ac_cv_header_sys_sysmacros_h = yes; then
11509
11510 cat >>confdefs.h <<\_ACEOF
11511 #define MAJOR_IN_SYSMACROS 1
11512 _ACEOF
11513
11514 fi
11515
11516
11517   fi
11518 fi
11519
11520
11521
11522
11523
11524
11525 ac_header_dirent=no
11526 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11527   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11528 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11529 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #include <sys/types.h>
11540 #include <$ac_hdr>
11541
11542 int
11543 main ()
11544 {
11545 if ((DIR *) 0)
11546 return 0;
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553   (eval $ac_compile) 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -z "$ac_c_werror_flag"
11561                          || test ! -s conftest.err'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest.$ac_objext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   eval "$as_ac_Header=yes"
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 eval "$as_ac_Header=no"
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11587 _ACEOF
11588
11589 ac_header_dirent=$ac_hdr; break
11590 fi
11591
11592 done
11593 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11594 if test $ac_header_dirent = dirent.h; then
11595   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11597 if test "${ac_cv_search_opendir+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   ac_func_search_save_LIBS=$LIBS
11601 ac_cv_search_opendir=no
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608
11609 /* Override any gcc2 internal prototype to avoid an error.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 /* We use char because int might match the return type of a gcc2
11614    builtin and then its argument prototype would still apply.  */
11615 char opendir ();
11616 int
11617 main ()
11618 {
11619 opendir ();
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626   (eval $ac_link) 2>conftest.er1
11627   ac_status=$?
11628   grep -v '^ *+' conftest.er1 >conftest.err
11629   rm -f conftest.er1
11630   cat conftest.err >&5
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } &&
11633          { ac_try='test -z "$ac_c_werror_flag"
11634                          || test ! -s conftest.err'
11635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636   (eval $ac_try) 2>&5
11637   ac_status=$?
11638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); }; } &&
11640          { ac_try='test -s conftest$ac_exeext'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; }; then
11646   ac_cv_search_opendir="none required"
11647 else
11648   echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651 fi
11652 rm -f conftest.err conftest.$ac_objext \
11653       conftest$ac_exeext conftest.$ac_ext
11654 if test "$ac_cv_search_opendir" = no; then
11655   for ac_lib in dir; do
11656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11657     cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 /* Override any gcc2 internal prototype to avoid an error.  */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 /* We use char because int might match the return type of a gcc2
11669    builtin and then its argument prototype would still apply.  */
11670 char opendir ();
11671 int
11672 main ()
11673 {
11674 opendir ();
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11681   (eval $ac_link) 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } &&
11688          { ac_try='test -z "$ac_c_werror_flag"
11689                          || test ! -s conftest.err'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; } &&
11695          { ac_try='test -s conftest$ac_exeext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   ac_cv_search_opendir="-l$ac_lib"
11702 break
11703 else
11704   echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11706
11707 fi
11708 rm -f conftest.err conftest.$ac_objext \
11709       conftest$ac_exeext conftest.$ac_ext
11710   done
11711 fi
11712 LIBS=$ac_func_search_save_LIBS
11713 fi
11714 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11715 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11716 if test "$ac_cv_search_opendir" != no; then
11717   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11718
11719 fi
11720
11721 else
11722   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11723 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11724 if test "${ac_cv_search_opendir+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   ac_func_search_save_LIBS=$LIBS
11728 ac_cv_search_opendir=no
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735
11736 /* Override any gcc2 internal prototype to avoid an error.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 /* We use char because int might match the return type of a gcc2
11741    builtin and then its argument prototype would still apply.  */
11742 char opendir ();
11743 int
11744 main ()
11745 {
11746 opendir ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11753   (eval $ac_link) 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -z "$ac_c_werror_flag"
11761                          || test ! -s conftest.err'
11762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763   (eval $ac_try) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }; } &&
11767          { ac_try='test -s conftest$ac_exeext'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_cv_search_opendir="none required"
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 fi
11779 rm -f conftest.err conftest.$ac_objext \
11780       conftest$ac_exeext conftest.$ac_ext
11781 if test "$ac_cv_search_opendir" = no; then
11782   for ac_lib in x; do
11783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11784     cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790
11791 /* Override any gcc2 internal prototype to avoid an error.  */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 /* We use char because int might match the return type of a gcc2
11796    builtin and then its argument prototype would still apply.  */
11797 char opendir ();
11798 int
11799 main ()
11800 {
11801 opendir ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808   (eval $ac_link) 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -z "$ac_c_werror_flag"
11816                          || test ! -s conftest.err'
11817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818   (eval $ac_try) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; } &&
11822          { ac_try='test -s conftest$ac_exeext'
11823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824   (eval $ac_try) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; }; then
11828   ac_cv_search_opendir="-l$ac_lib"
11829 break
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 fi
11835 rm -f conftest.err conftest.$ac_objext \
11836       conftest$ac_exeext conftest.$ac_ext
11837   done
11838 fi
11839 LIBS=$ac_func_search_save_LIBS
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11842 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11843 if test "$ac_cv_search_opendir" != no; then
11844   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11845
11846 fi
11847
11848 fi
11849
11850 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11851 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11852 if test "${ac_cv_header_stat_broken+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 #include <sys/types.h>
11862 #include <sys/stat.h>
11863
11864 #if defined(S_ISBLK) && defined(S_IFDIR)
11865 # if S_ISBLK (S_IFDIR)
11866 You lose.
11867 # endif
11868 #endif
11869
11870 #if defined(S_ISBLK) && defined(S_IFCHR)
11871 # if S_ISBLK (S_IFCHR)
11872 You lose.
11873 # endif
11874 #endif
11875
11876 #if defined(S_ISLNK) && defined(S_IFREG)
11877 # if S_ISLNK (S_IFREG)
11878 You lose.
11879 # endif
11880 #endif
11881
11882 #if defined(S_ISSOCK) && defined(S_IFREG)
11883 # if S_ISSOCK (S_IFREG)
11884 You lose.
11885 # endif
11886 #endif
11887
11888 _ACEOF
11889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11890   $EGREP "You lose" >/dev/null 2>&1; then
11891   ac_cv_header_stat_broken=yes
11892 else
11893   ac_cv_header_stat_broken=no
11894 fi
11895 rm -f conftest*
11896
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11899 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11900 if test $ac_cv_header_stat_broken = yes; then
11901
11902 cat >>confdefs.h <<\_ACEOF
11903 #define STAT_MACROS_BROKEN 1
11904 _ACEOF
11905
11906 fi
11907
11908 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11909 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11910 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 #include <sys/types.h>
11920 #include <sys/wait.h>
11921 #ifndef WEXITSTATUS
11922 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11923 #endif
11924 #ifndef WIFEXITED
11925 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11926 #endif
11927
11928 int
11929 main ()
11930 {
11931   int s;
11932   wait (&s);
11933   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940   (eval $ac_compile) 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_c_werror_flag"
11948                          || test ! -s conftest.err'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest.$ac_objext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_header_sys_wait_h=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_header_sys_wait_h=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11968 fi
11969 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11970 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11971 if test $ac_cv_header_sys_wait_h = yes; then
11972
11973 cat >>confdefs.h <<\_ACEOF
11974 #define HAVE_SYS_WAIT_H 1
11975 _ACEOF
11976
11977 fi
11978
11979 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11980 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11981 if test "${ac_cv_header_time+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 #include <sys/types.h>
11991 #include <sys/time.h>
11992 #include <time.h>
11993
11994 int
11995 main ()
11996 {
11997 if ((struct tm *) 0)
11998 return 0;
11999   ;
12000   return 0;
12001 }
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005   (eval $ac_compile) 2>conftest.er1
12006   ac_status=$?
12007   grep -v '^ *+' conftest.er1 >conftest.err
12008   rm -f conftest.er1
12009   cat conftest.err >&5
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -z "$ac_c_werror_flag"
12013                          || test ! -s conftest.err'
12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015   (eval $ac_try) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; } &&
12019          { ac_try='test -s conftest.$ac_objext'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   ac_cv_header_time=yes
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 ac_cv_header_time=no
12031 fi
12032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12033 fi
12034 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12035 echo "${ECHO_T}$ac_cv_header_time" >&6
12036 if test $ac_cv_header_time = yes; then
12037
12038 cat >>confdefs.h <<\_ACEOF
12039 #define TIME_WITH_SYS_TIME 1
12040 _ACEOF
12041
12042 fi
12043
12044
12045 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12046 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12047 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 $ac_includes_default
12057 int
12058 main ()
12059 {
12060 static struct stat ac_aggr;
12061 if (ac_aggr.st_blksize)
12062 return 0;
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069   (eval $ac_compile) 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -z "$ac_c_werror_flag"
12077                          || test ! -s conftest.err'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; } &&
12083          { ac_try='test -s conftest.$ac_objext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_cv_member_struct_stat_st_blksize=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 $ac_includes_default
12101 int
12102 main ()
12103 {
12104 static struct stat ac_aggr;
12105 if (sizeof ac_aggr.st_blksize)
12106 return 0;
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113   (eval $ac_compile) 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -z "$ac_c_werror_flag"
12121                          || test ! -s conftest.err'
12122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123   (eval $ac_try) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; } &&
12127          { ac_try='test -s conftest.$ac_objext'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   ac_cv_member_struct_stat_st_blksize=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 ac_cv_member_struct_stat_st_blksize=no
12139 fi
12140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12141 fi
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12147
12148 cat >>confdefs.h <<_ACEOF
12149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12150 _ACEOF
12151
12152
12153 cat >>confdefs.h <<\_ACEOF
12154 #define HAVE_ST_BLKSIZE 1
12155 _ACEOF
12156
12157 fi
12158
12159
12160 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12161 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12162 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 $ac_includes_default
12172 int
12173 main ()
12174 {
12175 static struct stat ac_aggr;
12176 if (ac_aggr.st_blocks)
12177 return 0;
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184   (eval $ac_compile) 2>conftest.er1
12185   ac_status=$?
12186   grep -v '^ *+' conftest.er1 >conftest.err
12187   rm -f conftest.er1
12188   cat conftest.err >&5
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -z "$ac_c_werror_flag"
12192                          || test ! -s conftest.err'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; } &&
12198          { ac_try='test -s conftest.$ac_objext'
12199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200   (eval $ac_try) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; }; then
12204   ac_cv_member_struct_stat_st_blocks=yes
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h.  */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h.  */
12215 $ac_includes_default
12216 int
12217 main ()
12218 {
12219 static struct stat ac_aggr;
12220 if (sizeof ac_aggr.st_blocks)
12221 return 0;
12222   ;
12223   return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228   (eval $ac_compile) 2>conftest.er1
12229   ac_status=$?
12230   grep -v '^ *+' conftest.er1 >conftest.err
12231   rm -f conftest.er1
12232   cat conftest.err >&5
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -z "$ac_c_werror_flag"
12236                          || test ! -s conftest.err'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; } &&
12242          { ac_try='test -s conftest.$ac_objext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_cv_member_struct_stat_st_blocks=yes
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_cv_member_struct_stat_st_blocks=no
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 fi
12259 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12260 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12261 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12262
12263 cat >>confdefs.h <<_ACEOF
12264 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12265 _ACEOF
12266
12267
12268 cat >>confdefs.h <<\_ACEOF
12269 #define HAVE_ST_BLOCKS 1
12270 _ACEOF
12271
12272 else
12273   case $LIBOBJS in
12274     "fileblocks.$ac_objext"   | \
12275   *" fileblocks.$ac_objext"   | \
12276     "fileblocks.$ac_objext "* | \
12277   *" fileblocks.$ac_objext "* ) ;;
12278   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12279 esac
12280
12281 fi
12282
12283
12284 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12285 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12286 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
12296 #include <time.h>
12297
12298 int
12299 main ()
12300 {
12301 struct tm *tp; tp->tm_sec;
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   ac_cv_struct_tm=time.h
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ac_cv_struct_tm=sys/time.h
12334 fi
12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12338 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12339 if test $ac_cv_struct_tm = sys/time.h; then
12340
12341 cat >>confdefs.h <<\_ACEOF
12342 #define TM_IN_SYS_TIME 1
12343 _ACEOF
12344
12345 fi
12346
12347 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12348 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12349 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358 #include <sys/types.h>
12359 #include <$ac_cv_struct_tm>
12360
12361
12362 int
12363 main ()
12364 {
12365 static struct tm ac_aggr;
12366 if (ac_aggr.tm_zone)
12367 return 0;
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 rm -f conftest.$ac_objext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374   (eval $ac_compile) 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag"
12382                          || test ! -s conftest.err'
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); }; } &&
12388          { ac_try='test -s conftest.$ac_objext'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   ac_cv_member_struct_tm_tm_zone=yes
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 #include <sys/types.h>
12406 #include <$ac_cv_struct_tm>
12407
12408
12409 int
12410 main ()
12411 {
12412 static struct tm ac_aggr;
12413 if (sizeof ac_aggr.tm_zone)
12414 return 0;
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421   (eval $ac_compile) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag"
12429                          || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest.$ac_objext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_cv_member_struct_tm_tm_zone=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ac_cv_member_struct_tm_tm_zone=no
12447 fi
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 fi
12450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12453 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12454 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12455
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_STRUCT_TM_TM_ZONE 1
12458 _ACEOF
12459
12460
12461 fi
12462
12463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12464
12465 cat >>confdefs.h <<\_ACEOF
12466 #define HAVE_TM_ZONE 1
12467 _ACEOF
12468
12469 else
12470   echo "$as_me:$LINENO: checking for tzname" >&5
12471 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12472 if test "${ac_cv_var_tzname+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481 #include <time.h>
12482 #ifndef tzname /* For SGI.  */
12483 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12484 #endif
12485
12486 int
12487 main ()
12488 {
12489 atoi(*tzname);
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496   (eval $ac_link) 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -z "$ac_c_werror_flag"
12504                          || test ! -s conftest.err'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; } &&
12510          { ac_try='test -s conftest$ac_exeext'
12511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512   (eval $ac_try) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; }; then
12516   ac_cv_var_tzname=yes
12517 else
12518   echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 ac_cv_var_tzname=no
12522 fi
12523 rm -f conftest.err conftest.$ac_objext \
12524       conftest$ac_exeext conftest.$ac_ext
12525 fi
12526 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12527 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12528   if test $ac_cv_var_tzname = yes; then
12529
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_TZNAME 1
12532 _ACEOF
12533
12534   fi
12535 fi
12536
12537
12538 echo "$as_me:$LINENO: checking for utime.h" >&5
12539 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12540 if test "${ba_cv_header_utime_h+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549
12550 #include <sys/types.h>
12551 #include <utime.h>
12552 int
12553 main ()
12554 {
12555 struct utimbuf foo
12556   ;
12557   return 0;
12558 }
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562   (eval $ac_compile) 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -z "$ac_c_werror_flag"
12570                          || test ! -s conftest.err'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   ba_cv_header_utime_h=yes
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ba_cv_header_utime_h=no
12588 fi
12589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12592 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12593 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_UTIME_H 1
12595 _ACEOF
12596
12597
12598 echo "$as_me:$LINENO: checking for socklen_t" >&5
12599 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12600 if test "${ba_cv_header_socklen_t+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
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
12610 #include <sys/types.h>
12611 #include <sys/socket.h>
12612 int
12613 main ()
12614 {
12615 socklen_t x
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622   (eval $ac_compile) 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag"
12630                          || test ! -s conftest.err'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; } &&
12636          { ac_try='test -s conftest.$ac_objext'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   ba_cv_header_socklen_t=yes
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 ba_cv_header_socklen_t=no
12648 fi
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650 fi
12651 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12652 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12653 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_SOCKLEN_T 1
12655 _ACEOF
12656
12657
12658 echo "$as_me:$LINENO: checking for bigendian" >&5
12659 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12660 if test "${ba_cv_bigendian+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   if test "$cross_compiling" = yes; then
12664   ba_cv_bigendian=no
12665 else
12666   cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12673 _ACEOF
12674 rm -f conftest$ac_exeext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676   (eval $ac_link) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ba_cv_bigendian=yes
12686 else
12687   echo "$as_me: program exited with status $ac_status" >&5
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 ( exit $ac_status )
12692 ba_cv_bigendian=no
12693 fi
12694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12695 fi
12696 fi
12697 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12698 echo "${ECHO_T}$ba_cv_bigendian" >&6
12699 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_BIGENDIAN 1
12701 _ACEOF
12702
12703
12704
12705 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12706 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12707 if test "${ac_cv_c_const+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716
12717 int
12718 main ()
12719 {
12720 /* FIXME: Include the comments suggested by Paul. */
12721 #ifndef __cplusplus
12722   /* Ultrix mips cc rejects this.  */
12723   typedef int charset[2];
12724   const charset x;
12725   /* SunOS 4.1.1 cc rejects this.  */
12726   char const *const *ccp;
12727   char **p;
12728   /* NEC SVR4.0.2 mips cc rejects this.  */
12729   struct point {int x, y;};
12730   static struct point const zero = {0,0};
12731   /* AIX XL C 1.02.0.0 rejects this.
12732      It does not let you subtract one const X* pointer from another in
12733      an arm of an if-expression whose if-part is not a constant
12734      expression */
12735   const char *g = "string";
12736   ccp = &g + (g ? g-g : 0);
12737   /* HPUX 7.0 cc rejects these. */
12738   ++ccp;
12739   p = (char**) ccp;
12740   ccp = (char const *const *) p;
12741   { /* SCO 3.2v4 cc rejects this.  */
12742     char *t;
12743     char const *s = 0 ? (char *) 0 : (char const *) 0;
12744
12745     *t++ = 0;
12746   }
12747   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12748     int x[] = {25, 17};
12749     const int *foo = &x[0];
12750     ++foo;
12751   }
12752   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12753     typedef const int *iptr;
12754     iptr p = 0;
12755     ++p;
12756   }
12757   { /* AIX XL C 1.02.0.0 rejects this saying
12758        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12759     struct s { int j; const int *ap[3]; };
12760     struct s *b; b->j = 5;
12761   }
12762   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12763     const int foo = 10;
12764   }
12765 #endif
12766
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773   (eval $ac_compile) 2>conftest.er1
12774   ac_status=$?
12775   grep -v '^ *+' conftest.er1 >conftest.err
12776   rm -f conftest.er1
12777   cat conftest.err >&5
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); } &&
12780          { ac_try='test -z "$ac_c_werror_flag"
12781                          || test ! -s conftest.err'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; } &&
12787          { ac_try='test -s conftest.$ac_objext'
12788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789   (eval $ac_try) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; }; then
12793   ac_cv_c_const=yes
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 ac_cv_c_const=no
12799 fi
12800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12801 fi
12802 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12803 echo "${ECHO_T}$ac_cv_c_const" >&6
12804 if test $ac_cv_c_const = no; then
12805
12806 cat >>confdefs.h <<\_ACEOF
12807 #define const
12808 _ACEOF
12809
12810 fi
12811
12812
12813
12814 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12815 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12816 fstype=no
12817 # The order of these tests is important.
12818 cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 #include <sys/statvfs.h>
12825 #include <sys/fstyp.h>
12826 _ACEOF
12827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } >/dev/null; then
12835   if test -s conftest.err; then
12836     ac_cpp_err=$ac_c_preproc_warn_flag
12837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12838   else
12839     ac_cpp_err=
12840   fi
12841 else
12842   ac_cpp_err=yes
12843 fi
12844 if test -z "$ac_cpp_err"; then
12845   cat >>confdefs.h <<\_ACEOF
12846 #define FSTYPE_STATVFS 1
12847 _ACEOF
12848  fstype=SVR4
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853
12854 fi
12855 rm -f conftest.err conftest.$ac_ext
12856 if test $fstype = no; then
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 #include <sys/statfs.h>
12864 #include <sys/fstyp.h>
12865 _ACEOF
12866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } >/dev/null; then
12874   if test -s conftest.err; then
12875     ac_cpp_err=$ac_c_preproc_warn_flag
12876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12877   else
12878     ac_cpp_err=
12879   fi
12880 else
12881   ac_cpp_err=yes
12882 fi
12883 if test -z "$ac_cpp_err"; then
12884   cat >>confdefs.h <<\_ACEOF
12885 #define FSTYPE_USG_STATFS 1
12886 _ACEOF
12887  fstype=SVR3
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892
12893 fi
12894 rm -f conftest.err conftest.$ac_ext
12895 fi
12896 if test $fstype = no; then
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 #include <sys/statfs.h>
12904 #include <sys/vmount.h>
12905 _ACEOF
12906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } >/dev/null; then
12914   if test -s conftest.err; then
12915     ac_cpp_err=$ac_c_preproc_warn_flag
12916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12917   else
12918     ac_cpp_err=
12919   fi
12920 else
12921   ac_cpp_err=yes
12922 fi
12923 if test -z "$ac_cpp_err"; then
12924   cat >>confdefs.h <<\_ACEOF
12925 #define FSTYPE_AIX_STATFS 1
12926 _ACEOF
12927  fstype=AIX
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932
12933 fi
12934 rm -f conftest.err conftest.$ac_ext
12935 fi
12936 if test $fstype = no; then
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 #include <mntent.h>
12944 _ACEOF
12945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12947   ac_status=$?
12948   grep -v '^ *+' conftest.er1 >conftest.err
12949   rm -f conftest.er1
12950   cat conftest.err >&5
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } >/dev/null; then
12953   if test -s conftest.err; then
12954     ac_cpp_err=$ac_c_preproc_warn_flag
12955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12956   else
12957     ac_cpp_err=
12958   fi
12959 else
12960   ac_cpp_err=yes
12961 fi
12962 if test -z "$ac_cpp_err"; then
12963   cat >>confdefs.h <<\_ACEOF
12964 #define FSTYPE_MNTENT 1
12965 _ACEOF
12966  fstype=4.3BSD
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971
12972 fi
12973 rm -f conftest.err conftest.$ac_ext
12974 fi
12975 if test $fstype = no; then
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 #include <sys/mount.h>
12983
12984 _ACEOF
12985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12986   $EGREP "f_type;" >/dev/null 2>&1; then
12987   cat >>confdefs.h <<\_ACEOF
12988 #define FSTYPE_STATFS 1
12989 _ACEOF
12990  fstype=4.4BSD/OSF1
12991 fi
12992 rm -f conftest*
12993
12994 fi
12995 if test $fstype = no; then
12996 cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002 #include <sys/mount.h>
13003 #include <sys/fs_types.h>
13004 _ACEOF
13005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } >/dev/null; then
13013   if test -s conftest.err; then
13014     ac_cpp_err=$ac_c_preproc_warn_flag
13015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13016   else
13017     ac_cpp_err=
13018   fi
13019 else
13020   ac_cpp_err=yes
13021 fi
13022 if test -z "$ac_cpp_err"; then
13023   cat >>confdefs.h <<\_ACEOF
13024 #define FSTYPE_GETMNT 1
13025 _ACEOF
13026  fstype=Ultrix
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031
13032 fi
13033 rm -f conftest.err conftest.$ac_ext
13034 fi
13035 echo "$as_me:$LINENO: result: $fstype" >&5
13036 echo "${ECHO_T}$fstype" >&6
13037
13038 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13039 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13040 if test "${ac_cv_type_signal+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 #include <sys/types.h>
13050 #include <signal.h>
13051 #ifdef signal
13052 # undef signal
13053 #endif
13054 #ifdef __cplusplus
13055 extern "C" void (*signal (int, void (*)(int)))(int);
13056 #else
13057 void (*signal ()) ();
13058 #endif
13059
13060 int
13061 main ()
13062 {
13063 int i;
13064   ;
13065   return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070   (eval $ac_compile) 2>conftest.er1
13071   ac_status=$?
13072   grep -v '^ *+' conftest.er1 >conftest.err
13073   rm -f conftest.er1
13074   cat conftest.err >&5
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } &&
13077          { ac_try='test -z "$ac_c_werror_flag"
13078                          || test ! -s conftest.err'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; } &&
13084          { ac_try='test -s conftest.$ac_objext'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   ac_cv_type_signal=void
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 ac_cv_type_signal=int
13096 fi
13097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13100 echo "${ECHO_T}$ac_cv_type_signal" >&6
13101
13102 cat >>confdefs.h <<_ACEOF
13103 #define RETSIGTYPE $ac_cv_type_signal
13104 _ACEOF
13105
13106
13107
13108 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13109 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13110 if test "${bash_cv_signal_vintage+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113
13114   cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h.  */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h.  */
13120 #include <signal.h>
13121 int
13122 main ()
13123 {
13124
13125     sigset_t ss;
13126     struct sigaction sa;
13127     sigemptyset(&ss); sigsuspend(&ss);
13128     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13129     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13130
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137   (eval $ac_link) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -z "$ac_c_werror_flag"
13145                          || test ! -s conftest.err'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   bash_cv_signal_vintage=posix
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162
13163     cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169 #include <signal.h>
13170 int
13171 main ()
13172 {
13173
13174         int mask = sigmask(SIGINT);
13175         sigsetmask(mask); sigblock(mask); sigpause(mask);
13176
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13183   (eval $ac_link) 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } &&
13190          { ac_try='test -z "$ac_c_werror_flag"
13191                          || test ! -s conftest.err'
13192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193   (eval $ac_try) 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; } &&
13197          { ac_try='test -s conftest$ac_exeext'
13198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199   (eval $ac_try) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }; }; then
13203   bash_cv_signal_vintage=4.2bsd
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208
13209       cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h.  */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h.  */
13215
13216         #include <signal.h>
13217         RETSIGTYPE foo() { }
13218 int
13219 main ()
13220 {
13221
13222                 int mask = sigmask(SIGINT);
13223                 sigset(SIGINT, foo); sigrelse(SIGINT);
13224                 sighold(SIGINT); sigpause(SIGINT);
13225
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13232   (eval $ac_link) 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } &&
13239          { ac_try='test -z "$ac_c_werror_flag"
13240                          || test ! -s conftest.err'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; } &&
13246          { ac_try='test -s conftest$ac_exeext'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   bash_cv_signal_vintage=svr3
13253 else
13254   echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 bash_cv_signal_vintage=v7
13258
13259 fi
13260 rm -f conftest.err conftest.$ac_objext \
13261       conftest$ac_exeext conftest.$ac_ext
13262
13263 fi
13264 rm -f conftest.err conftest.$ac_objext \
13265       conftest$ac_exeext conftest.$ac_ext
13266
13267 fi
13268 rm -f conftest.err conftest.$ac_objext \
13269       conftest$ac_exeext conftest.$ac_ext
13270
13271 fi
13272
13273 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13274 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13275 if test "$bash_cv_signal_vintage" = posix; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_POSIX_SIGNALS 1
13278 _ACEOF
13279
13280 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13281 cat >>confdefs.h <<\_ACEOF
13282 #define HAVE_BSD_SIGNALS 1
13283 _ACEOF
13284
13285 elif test "$bash_cv_signal_vintage" = svr3; then
13286 cat >>confdefs.h <<\_ACEOF
13287 #define HAVE_USG_SIGHOLD 1
13288 _ACEOF
13289
13290 fi
13291
13292 echo "$as_me:$LINENO: checking for mode_t" >&5
13293 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13294 if test "${ac_cv_type_mode_t+set}" = set; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303 $ac_includes_default
13304 int
13305 main ()
13306 {
13307 if ((mode_t *) 0)
13308   return 0;
13309 if (sizeof (mode_t))
13310   return 0;
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317   (eval $ac_compile) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"
13325                          || test ! -s conftest.err'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest.$ac_objext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   ac_cv_type_mode_t=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ac_cv_type_mode_t=no
13343 fi
13344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13345 fi
13346 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13347 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13348 if test $ac_cv_type_mode_t = yes; then
13349   :
13350 else
13351
13352 cat >>confdefs.h <<_ACEOF
13353 #define mode_t int
13354 _ACEOF
13355
13356 fi
13357
13358 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13359 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13360 if test "${ac_cv_type_uid_t+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 #include <sys/types.h>
13370
13371 _ACEOF
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373   $EGREP "uid_t" >/dev/null 2>&1; then
13374   ac_cv_type_uid_t=yes
13375 else
13376   ac_cv_type_uid_t=no
13377 fi
13378 rm -f conftest*
13379
13380 fi
13381 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13382 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13383 if test $ac_cv_type_uid_t = no; then
13384
13385 cat >>confdefs.h <<\_ACEOF
13386 #define uid_t int
13387 _ACEOF
13388
13389
13390 cat >>confdefs.h <<\_ACEOF
13391 #define gid_t int
13392 _ACEOF
13393
13394 fi
13395
13396 echo "$as_me:$LINENO: checking for size_t" >&5
13397 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13398 if test "${ac_cv_type_size_t+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 $ac_includes_default
13408 int
13409 main ()
13410 {
13411 if ((size_t *) 0)
13412   return 0;
13413 if (sizeof (size_t))
13414   return 0;
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421   (eval $ac_compile) 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -z "$ac_c_werror_flag"
13429                          || test ! -s conftest.err'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest.$ac_objext'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441   ac_cv_type_size_t=yes
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_cv_type_size_t=no
13447 fi
13448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13451 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13452 if test $ac_cv_type_size_t = yes; then
13453   :
13454 else
13455
13456 cat >>confdefs.h <<_ACEOF
13457 #define size_t unsigned
13458 _ACEOF
13459
13460 fi
13461
13462 echo "$as_me:$LINENO: checking for pid_t" >&5
13463 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13464 if test "${ac_cv_type_pid_t+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473 $ac_includes_default
13474 int
13475 main ()
13476 {
13477 if ((pid_t *) 0)
13478   return 0;
13479 if (sizeof (pid_t))
13480   return 0;
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487   (eval $ac_compile) 2>conftest.er1
13488   ac_status=$?
13489   grep -v '^ *+' conftest.er1 >conftest.err
13490   rm -f conftest.er1
13491   cat conftest.err >&5
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } &&
13494          { ac_try='test -z "$ac_c_werror_flag"
13495                          || test ! -s conftest.err'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; } &&
13501          { ac_try='test -s conftest.$ac_objext'
13502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503   (eval $ac_try) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; }; then
13507   ac_cv_type_pid_t=yes
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512 ac_cv_type_pid_t=no
13513 fi
13514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13517 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13518 if test $ac_cv_type_pid_t = yes; then
13519   :
13520 else
13521
13522 cat >>confdefs.h <<_ACEOF
13523 #define pid_t int
13524 _ACEOF
13525
13526 fi
13527
13528 echo "$as_me:$LINENO: checking for off_t" >&5
13529 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13530 if test "${ac_cv_type_off_t+set}" = set; then
13531   echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533   cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539 $ac_includes_default
13540 int
13541 main ()
13542 {
13543 if ((off_t *) 0)
13544   return 0;
13545 if (sizeof (off_t))
13546   return 0;
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13553   (eval $ac_compile) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_c_werror_flag"
13561                          || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest.$ac_objext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_type_off_t=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_cv_type_off_t=no
13579 fi
13580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581 fi
13582 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13583 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13584 if test $ac_cv_type_off_t = yes; then
13585   :
13586 else
13587
13588 cat >>confdefs.h <<_ACEOF
13589 #define off_t long
13590 _ACEOF
13591
13592 fi
13593
13594 echo "$as_me:$LINENO: checking for ino_t" >&5
13595 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13596 if test "${ac_cv_type_ino_t+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h.  */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h.  */
13605 $ac_includes_default
13606 int
13607 main ()
13608 {
13609 if ((ino_t *) 0)
13610   return 0;
13611 if (sizeof (ino_t))
13612   return 0;
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619   (eval $ac_compile) 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -z "$ac_c_werror_flag"
13627                          || test ! -s conftest.err'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; } &&
13633          { ac_try='test -s conftest.$ac_objext'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_type_ino_t=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 ac_cv_type_ino_t=no
13645 fi
13646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13647 fi
13648 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13649 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13650 if test $ac_cv_type_ino_t = yes; then
13651   :
13652 else
13653
13654 cat >>confdefs.h <<_ACEOF
13655 #define ino_t unsigned long
13656 _ACEOF
13657
13658 fi
13659
13660 echo "$as_me:$LINENO: checking for dev_t" >&5
13661 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13662 if test "${ac_cv_type_dev_t+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671 $ac_includes_default
13672 int
13673 main ()
13674 {
13675 if ((dev_t *) 0)
13676   return 0;
13677 if (sizeof (dev_t))
13678   return 0;
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685   (eval $ac_compile) 2>conftest.er1
13686   ac_status=$?
13687   grep -v '^ *+' conftest.er1 >conftest.err
13688   rm -f conftest.er1
13689   cat conftest.err >&5
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } &&
13692          { ac_try='test -z "$ac_c_werror_flag"
13693                          || test ! -s conftest.err'
13694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695   (eval $ac_try) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; } &&
13699          { ac_try='test -s conftest.$ac_objext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_cv_type_dev_t=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710 ac_cv_type_dev_t=no
13711 fi
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13715 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13716 if test $ac_cv_type_dev_t = yes; then
13717   :
13718 else
13719
13720 cat >>confdefs.h <<_ACEOF
13721 #define dev_t unsigned long
13722 _ACEOF
13723
13724 fi
13725
13726 echo "$as_me:$LINENO: checking for daddr_t" >&5
13727 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13728 if test "${ac_cv_type_daddr_t+set}" = set; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 int
13739 main ()
13740 {
13741 if ((daddr_t *) 0)
13742   return 0;
13743 if (sizeof (daddr_t))
13744   return 0;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -z "$ac_c_werror_flag"
13759                          || test ! -s conftest.err'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   ac_cv_type_daddr_t=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 ac_cv_type_daddr_t=no
13777 fi
13778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13779 fi
13780 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13781 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13782 if test $ac_cv_type_daddr_t = yes; then
13783   :
13784 else
13785
13786 cat >>confdefs.h <<_ACEOF
13787 #define daddr_t long
13788 _ACEOF
13789
13790 fi
13791
13792 echo "$as_me:$LINENO: checking for major_t" >&5
13793 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13794 if test "${ac_cv_type_major_t+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 $ac_includes_default
13804 int
13805 main ()
13806 {
13807 if ((major_t *) 0)
13808   return 0;
13809 if (sizeof (major_t))
13810   return 0;
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_c_werror_flag"
13825                          || test ! -s conftest.err'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; } &&
13831          { ac_try='test -s conftest.$ac_objext'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; }; then
13837   ac_cv_type_major_t=yes
13838 else
13839   echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_type_major_t=no
13843 fi
13844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13848 if test $ac_cv_type_major_t = yes; then
13849   :
13850 else
13851
13852 cat >>confdefs.h <<_ACEOF
13853 #define major_t int
13854 _ACEOF
13855
13856 fi
13857
13858 echo "$as_me:$LINENO: checking for minor_t" >&5
13859 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13860 if test "${ac_cv_type_minor_t+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869 $ac_includes_default
13870 int
13871 main ()
13872 {
13873 if ((minor_t *) 0)
13874   return 0;
13875 if (sizeof (minor_t))
13876   return 0;
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883   (eval $ac_compile) 2>conftest.er1
13884   ac_status=$?
13885   grep -v '^ *+' conftest.er1 >conftest.err
13886   rm -f conftest.er1
13887   cat conftest.err >&5
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); } &&
13890          { ac_try='test -z "$ac_c_werror_flag"
13891                          || test ! -s conftest.err'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest.$ac_objext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   ac_cv_type_minor_t=yes
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 ac_cv_type_minor_t=no
13909 fi
13910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 fi
13912 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13913 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13914 if test $ac_cv_type_minor_t = yes; then
13915   :
13916 else
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define minor_t int
13920 _ACEOF
13921
13922 fi
13923
13924 echo "$as_me:$LINENO: checking for ssize_t" >&5
13925 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13926 if test "${ac_cv_type_ssize_t+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h.  */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h.  */
13935 $ac_includes_default
13936 int
13937 main ()
13938 {
13939 if ((ssize_t *) 0)
13940   return 0;
13941 if (sizeof (ssize_t))
13942   return 0;
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949   (eval $ac_compile) 2>conftest.er1
13950   ac_status=$?
13951   grep -v '^ *+' conftest.er1 >conftest.err
13952   rm -f conftest.er1
13953   cat conftest.err >&5
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -z "$ac_c_werror_flag"
13957                          || test ! -s conftest.err'
13958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959   (eval $ac_try) 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; } &&
13963          { ac_try='test -s conftest.$ac_objext'
13964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965   (eval $ac_try) 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; }; then
13969   ac_cv_type_ssize_t=yes
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 ac_cv_type_ssize_t=no
13975 fi
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 fi
13978 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13979 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13980 if test $ac_cv_type_ssize_t = yes; then
13981   :
13982 else
13983
13984 cat >>confdefs.h <<_ACEOF
13985 #define ssize_t int
13986 _ACEOF
13987
13988 fi
13989
13990 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13991 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13992 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 $ac_includes_default
14002 int
14003 main ()
14004 {
14005 static struct stat ac_aggr;
14006 if (ac_aggr.st_blocks)
14007 return 0;
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 rm -f conftest.$ac_objext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014   (eval $ac_compile) 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -z "$ac_c_werror_flag"
14022                          || test ! -s conftest.err'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_cv_member_struct_stat_st_blocks=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045 $ac_includes_default
14046 int
14047 main ()
14048 {
14049 static struct stat ac_aggr;
14050 if (sizeof ac_aggr.st_blocks)
14051 return 0;
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058   (eval $ac_compile) 2>conftest.er1
14059   ac_status=$?
14060   grep -v '^ *+' conftest.er1 >conftest.err
14061   rm -f conftest.er1
14062   cat conftest.err >&5
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -z "$ac_c_werror_flag"
14066                          || test ! -s conftest.err'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; } &&
14072          { ac_try='test -s conftest.$ac_objext'
14073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074   (eval $ac_try) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; }; then
14078   ac_cv_member_struct_stat_st_blocks=yes
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 ac_cv_member_struct_stat_st_blocks=no
14084 fi
14085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14086 fi
14087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14090 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14091 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14095 _ACEOF
14096
14097
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_ST_BLOCKS 1
14100 _ACEOF
14101
14102 else
14103   case $LIBOBJS in
14104     "fileblocks.$ac_objext"   | \
14105   *" fileblocks.$ac_objext"   | \
14106     "fileblocks.$ac_objext "* | \
14107   *" fileblocks.$ac_objext "* ) ;;
14108   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14109 esac
14110
14111 fi
14112
14113
14114
14115 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14116 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14117 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h.  */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h.  */
14126 $ac_includes_default
14127 int
14128 main ()
14129 {
14130 static struct stat ac_aggr;
14131 if (ac_aggr.st_rdev)
14132 return 0;
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest.$ac_objext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14139   (eval $ac_compile) 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_c_werror_flag"
14147                          || test ! -s conftest.err'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; } &&
14153          { ac_try='test -s conftest.$ac_objext'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_member_struct_stat_st_rdev=yes
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 $ac_includes_default
14171 int
14172 main ()
14173 {
14174 static struct stat ac_aggr;
14175 if (sizeof ac_aggr.st_rdev)
14176 return 0;
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14183   (eval $ac_compile) 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -z "$ac_c_werror_flag"
14191                          || test ! -s conftest.err'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest.$ac_objext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_member_struct_stat_st_rdev=yes
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_member_struct_stat_st_rdev=no
14209 fi
14210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211 fi
14212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14216 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14217
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_STRUCT_STAT_ST_RDEV 1
14220 _ACEOF
14221
14222
14223 cat >>confdefs.h <<\_ACEOF
14224 #define HAVE_ST_RDEV 1
14225 _ACEOF
14226
14227 fi
14228
14229
14230 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14231 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14232 if test "${ac_cv_struct_tm+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241 #include <sys/types.h>
14242 #include <time.h>
14243
14244 int
14245 main ()
14246 {
14247 struct tm *tp; tp->tm_sec;
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 rm -f conftest.$ac_objext
14253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254   (eval $ac_compile) 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } &&
14261          { ac_try='test -z "$ac_c_werror_flag"
14262                          || test ! -s conftest.err'
14263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264   (eval $ac_try) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; } &&
14268          { ac_try='test -s conftest.$ac_objext'
14269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270   (eval $ac_try) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; }; then
14274   ac_cv_struct_tm=time.h
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 ac_cv_struct_tm=sys/time.h
14280 fi
14281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 fi
14283 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14284 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14285 if test $ac_cv_struct_tm = sys/time.h; then
14286
14287 cat >>confdefs.h <<\_ACEOF
14288 #define TM_IN_SYS_TIME 1
14289 _ACEOF
14290
14291 fi
14292
14293 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14294 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14295 if test "${ac_cv_c_const+set}" = set; then
14296   echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298   cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304
14305 int
14306 main ()
14307 {
14308 /* FIXME: Include the comments suggested by Paul. */
14309 #ifndef __cplusplus
14310   /* Ultrix mips cc rejects this.  */
14311   typedef int charset[2];
14312   const charset x;
14313   /* SunOS 4.1.1 cc rejects this.  */
14314   char const *const *ccp;
14315   char **p;
14316   /* NEC SVR4.0.2 mips cc rejects this.  */
14317   struct point {int x, y;};
14318   static struct point const zero = {0,0};
14319   /* AIX XL C 1.02.0.0 rejects this.
14320      It does not let you subtract one const X* pointer from another in
14321      an arm of an if-expression whose if-part is not a constant
14322      expression */
14323   const char *g = "string";
14324   ccp = &g + (g ? g-g : 0);
14325   /* HPUX 7.0 cc rejects these. */
14326   ++ccp;
14327   p = (char**) ccp;
14328   ccp = (char const *const *) p;
14329   { /* SCO 3.2v4 cc rejects this.  */
14330     char *t;
14331     char const *s = 0 ? (char *) 0 : (char const *) 0;
14332
14333     *t++ = 0;
14334   }
14335   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14336     int x[] = {25, 17};
14337     const int *foo = &x[0];
14338     ++foo;
14339   }
14340   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14341     typedef const int *iptr;
14342     iptr p = 0;
14343     ++p;
14344   }
14345   { /* AIX XL C 1.02.0.0 rejects this saying
14346        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14347     struct s { int j; const int *ap[3]; };
14348     struct s *b; b->j = 5;
14349   }
14350   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14351     const int foo = 10;
14352   }
14353 #endif
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361   (eval $ac_compile) 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } &&
14368          { ac_try='test -z "$ac_c_werror_flag"
14369                          || test ! -s conftest.err'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; } &&
14375          { ac_try='test -s conftest.$ac_objext'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; }; then
14381   ac_cv_c_const=yes
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_cv_c_const=no
14387 fi
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389 fi
14390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14391 echo "${ECHO_T}$ac_cv_c_const" >&6
14392 if test $ac_cv_c_const = no; then
14393
14394 cat >>confdefs.h <<\_ACEOF
14395 #define const
14396 _ACEOF
14397
14398 fi
14399
14400
14401
14402 echo "$as_me:$LINENO: checking for char" >&5
14403 echo $ECHO_N "checking for char... $ECHO_C" >&6
14404 if test "${ac_cv_type_char+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414 int
14415 main ()
14416 {
14417 if ((char *) 0)
14418   return 0;
14419 if (sizeof (char))
14420   return 0;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427   (eval $ac_compile) 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag"
14435                          || test ! -s conftest.err'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; } &&
14441          { ac_try='test -s conftest.$ac_objext'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ac_cv_type_char=yes
14448 else
14449   echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_cv_type_char=no
14453 fi
14454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14455 fi
14456 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14457 echo "${ECHO_T}$ac_cv_type_char" >&6
14458
14459 echo "$as_me:$LINENO: checking size of char" >&5
14460 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14461 if test "${ac_cv_sizeof_char+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   if test "$ac_cv_type_char" = yes; then
14465   # The cast to unsigned long works around a bug in the HP C Compiler
14466   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14467   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14468   # This bug is HP SR number 8606223364.
14469   if test "$cross_compiling" = yes; then
14470   # Depending upon the size, compute the lo and hi bounds.
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477 $ac_includes_default
14478 int
14479 main ()
14480 {
14481 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14482 test_array [0] = 0
14483
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490   (eval $ac_compile) 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -z "$ac_c_werror_flag"
14498                          || test ! -s conftest.err'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; } &&
14504          { ac_try='test -s conftest.$ac_objext'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510   ac_lo=0 ac_mid=0
14511   while :; do
14512     cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h.  */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h.  */
14518 $ac_includes_default
14519 int
14520 main ()
14521 {
14522 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14523 test_array [0] = 0
14524
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 rm -f conftest.$ac_objext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531   (eval $ac_compile) 2>conftest.er1
14532   ac_status=$?
14533   grep -v '^ *+' conftest.er1 >conftest.err
14534   rm -f conftest.er1
14535   cat conftest.err >&5
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } &&
14538          { ac_try='test -z "$ac_c_werror_flag"
14539                          || test ! -s conftest.err'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; } &&
14545          { ac_try='test -s conftest.$ac_objext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_hi=$ac_mid; break
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_lo=`expr $ac_mid + 1`
14557                     if test $ac_lo -le $ac_mid; then
14558                       ac_lo= ac_hi=
14559                       break
14560                     fi
14561                     ac_mid=`expr 2 '*' $ac_mid + 1`
14562 fi
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564   done
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14580 test_array [0] = 0
14581
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588   (eval $ac_compile) 2>conftest.er1
14589   ac_status=$?
14590   grep -v '^ *+' conftest.er1 >conftest.err
14591   rm -f conftest.er1
14592   cat conftest.err >&5
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } &&
14595          { ac_try='test -z "$ac_c_werror_flag"
14596                          || test ! -s conftest.err'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; } &&
14602          { ac_try='test -s conftest.$ac_objext'
14603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604   (eval $ac_try) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); }; }; then
14608   ac_hi=-1 ac_mid=-1
14609   while :; do
14610     cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616 $ac_includes_default
14617 int
14618 main ()
14619 {
14620 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14621 test_array [0] = 0
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629   (eval $ac_compile) 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -z "$ac_c_werror_flag"
14637                          || test ! -s conftest.err'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_lo=$ac_mid; break
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_hi=`expr '(' $ac_mid ')' - 1`
14655                        if test $ac_mid -le $ac_hi; then
14656                          ac_lo= ac_hi=
14657                          break
14658                        fi
14659                        ac_mid=`expr 2 '*' $ac_mid`
14660 fi
14661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662   done
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_lo= ac_hi=
14668 fi
14669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670 fi
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672 # Binary search between lo and hi bounds.
14673 while test "x$ac_lo" != "x$ac_hi"; do
14674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14675   cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 $ac_includes_default
14682 int
14683 main ()
14684 {
14685 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14686 test_array [0] = 0
14687
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694   (eval $ac_compile) 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } &&
14701          { ac_try='test -z "$ac_c_werror_flag"
14702                          || test ! -s conftest.err'
14703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704   (eval $ac_try) 2>&5
14705   ac_status=$?
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); }; } &&
14708          { ac_try='test -s conftest.$ac_objext'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }; then
14714   ac_hi=$ac_mid
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ac_lo=`expr '(' $ac_mid ')' + 1`
14720 fi
14721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14722 done
14723 case $ac_lo in
14724 ?*) ac_cv_sizeof_char=$ac_lo;;
14725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14726 See \`config.log' for more details." >&5
14727 echo "$as_me: error: cannot compute sizeof (char), 77
14728 See \`config.log' for more details." >&2;}
14729    { (exit 1); exit 1; }; } ;;
14730 esac
14731 else
14732   if test "$cross_compiling" = yes; then
14733   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14734 See \`config.log' for more details." >&5
14735 echo "$as_me: error: cannot run test program while cross compiling
14736 See \`config.log' for more details." >&2;}
14737    { (exit 1); exit 1; }; }
14738 else
14739   cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 $ac_includes_default
14746 long longval () { return (long) (sizeof (char)); }
14747 unsigned long ulongval () { return (long) (sizeof (char)); }
14748 #include <stdio.h>
14749 #include <stdlib.h>
14750 int
14751 main ()
14752 {
14753
14754   FILE *f = fopen ("conftest.val", "w");
14755   if (! f)
14756     exit (1);
14757   if (((long) (sizeof (char))) < 0)
14758     {
14759       long i = longval ();
14760       if (i != ((long) (sizeof (char))))
14761         exit (1);
14762       fprintf (f, "%ld\n", i);
14763     }
14764   else
14765     {
14766       unsigned long i = ulongval ();
14767       if (i != ((long) (sizeof (char))))
14768         exit (1);
14769       fprintf (f, "%lu\n", i);
14770     }
14771   exit (ferror (f) || fclose (f) != 0);
14772
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779   (eval $ac_link) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_cv_sizeof_char=`cat conftest.val`
14789 else
14790   echo "$as_me: program exited with status $ac_status" >&5
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794 ( exit $ac_status )
14795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14796 See \`config.log' for more details." >&5
14797 echo "$as_me: error: cannot compute sizeof (char), 77
14798 See \`config.log' for more details." >&2;}
14799    { (exit 1); exit 1; }; }
14800 fi
14801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14802 fi
14803 fi
14804 rm -f conftest.val
14805 else
14806   ac_cv_sizeof_char=0
14807 fi
14808 fi
14809 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14810 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14811 cat >>confdefs.h <<_ACEOF
14812 #define SIZEOF_CHAR $ac_cv_sizeof_char
14813 _ACEOF
14814
14815
14816 echo "$as_me:$LINENO: checking for short int" >&5
14817 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14818 if test "${ac_cv_type_short_int+set}" = set; then
14819   echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821   cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 $ac_includes_default
14828 int
14829 main ()
14830 {
14831 if ((short int *) 0)
14832   return 0;
14833 if (sizeof (short int))
14834   return 0;
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841   (eval $ac_compile) 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } &&
14848          { ac_try='test -z "$ac_c_werror_flag"
14849                          || test ! -s conftest.err'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; } &&
14855          { ac_try='test -s conftest.$ac_objext'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; }; then
14861   ac_cv_type_short_int=yes
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 ac_cv_type_short_int=no
14867 fi
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 fi
14870 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14871 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14872
14873 echo "$as_me:$LINENO: checking size of short int" >&5
14874 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14875 if test "${ac_cv_sizeof_short_int+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   if test "$ac_cv_type_short_int" = yes; then
14879   # The cast to unsigned long works around a bug in the HP C Compiler
14880   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14881   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14882   # This bug is HP SR number 8606223364.
14883   if test "$cross_compiling" = yes; then
14884   # Depending upon the size, compute the lo and hi bounds.
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891 $ac_includes_default
14892 int
14893 main ()
14894 {
14895 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14896 test_array [0] = 0
14897
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904   (eval $ac_compile) 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -z "$ac_c_werror_flag"
14912                          || test ! -s conftest.err'
14913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914   (eval $ac_try) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; } &&
14918          { ac_try='test -s conftest.$ac_objext'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; }; then
14924   ac_lo=0 ac_mid=0
14925   while :; do
14926     cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h.  */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h.  */
14932 $ac_includes_default
14933 int
14934 main ()
14935 {
14936 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14937 test_array [0] = 0
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945   (eval $ac_compile) 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -z "$ac_c_werror_flag"
14953                          || test ! -s conftest.err'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; } &&
14959          { ac_try='test -s conftest.$ac_objext'
14960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961   (eval $ac_try) 2>&5
14962   ac_status=$?
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); }; }; then
14965   ac_hi=$ac_mid; break
14966 else
14967   echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970 ac_lo=`expr $ac_mid + 1`
14971                     if test $ac_lo -le $ac_mid; then
14972                       ac_lo= ac_hi=
14973                       break
14974                     fi
14975                     ac_mid=`expr 2 '*' $ac_mid + 1`
14976 fi
14977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978   done
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989 $ac_includes_default
14990 int
14991 main ()
14992 {
14993 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14994 test_array [0] = 0
14995
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002   (eval $ac_compile) 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } &&
15009          { ac_try='test -z "$ac_c_werror_flag"
15010                          || test ! -s conftest.err'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; } &&
15016          { ac_try='test -s conftest.$ac_objext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_hi=-1 ac_mid=-1
15023   while :; do
15024     cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030 $ac_includes_default
15031 int
15032 main ()
15033 {
15034 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15035 test_array [0] = 0
15036
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043   (eval $ac_compile) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"
15051                          || test ! -s conftest.err'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_lo=$ac_mid; break
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_hi=`expr '(' $ac_mid ')' - 1`
15069                        if test $ac_mid -le $ac_hi; then
15070                          ac_lo= ac_hi=
15071                          break
15072                        fi
15073                        ac_mid=`expr 2 '*' $ac_mid`
15074 fi
15075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076   done
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_lo= ac_hi=
15082 fi
15083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15084 fi
15085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15086 # Binary search between lo and hi bounds.
15087 while test "x$ac_lo" != "x$ac_hi"; do
15088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15089   cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095 $ac_includes_default
15096 int
15097 main ()
15098 {
15099 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15100 test_array [0] = 0
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108   (eval $ac_compile) 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -z "$ac_c_werror_flag"
15116                          || test ! -s conftest.err'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; } &&
15122          { ac_try='test -s conftest.$ac_objext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_hi=$ac_mid
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_lo=`expr '(' $ac_mid ')' + 1`
15134 fi
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 done
15137 case $ac_lo in
15138 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15139 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15140 See \`config.log' for more details." >&5
15141 echo "$as_me: error: cannot compute sizeof (short int), 77
15142 See \`config.log' for more details." >&2;}
15143    { (exit 1); exit 1; }; } ;;
15144 esac
15145 else
15146   if test "$cross_compiling" = yes; then
15147   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15148 See \`config.log' for more details." >&5
15149 echo "$as_me: error: cannot run test program while cross compiling
15150 See \`config.log' for more details." >&2;}
15151    { (exit 1); exit 1; }; }
15152 else
15153   cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 $ac_includes_default
15160 long longval () { return (long) (sizeof (short int)); }
15161 unsigned long ulongval () { return (long) (sizeof (short int)); }
15162 #include <stdio.h>
15163 #include <stdlib.h>
15164 int
15165 main ()
15166 {
15167
15168   FILE *f = fopen ("conftest.val", "w");
15169   if (! f)
15170     exit (1);
15171   if (((long) (sizeof (short int))) < 0)
15172     {
15173       long i = longval ();
15174       if (i != ((long) (sizeof (short int))))
15175         exit (1);
15176       fprintf (f, "%ld\n", i);
15177     }
15178   else
15179     {
15180       unsigned long i = ulongval ();
15181       if (i != ((long) (sizeof (short int))))
15182         exit (1);
15183       fprintf (f, "%lu\n", i);
15184     }
15185   exit (ferror (f) || fclose (f) != 0);
15186
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193   (eval $ac_link) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; }; then
15202   ac_cv_sizeof_short_int=`cat conftest.val`
15203 else
15204   echo "$as_me: program exited with status $ac_status" >&5
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ( exit $ac_status )
15209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15210 See \`config.log' for more details." >&5
15211 echo "$as_me: error: cannot compute sizeof (short int), 77
15212 See \`config.log' for more details." >&2;}
15213    { (exit 1); exit 1; }; }
15214 fi
15215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15216 fi
15217 fi
15218 rm -f conftest.val
15219 else
15220   ac_cv_sizeof_short_int=0
15221 fi
15222 fi
15223 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15224 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15225 cat >>confdefs.h <<_ACEOF
15226 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15227 _ACEOF
15228
15229
15230 echo "$as_me:$LINENO: checking for int" >&5
15231 echo $ECHO_N "checking for int... $ECHO_C" >&6
15232 if test "${ac_cv_type_int+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 $ac_includes_default
15242 int
15243 main ()
15244 {
15245 if ((int *) 0)
15246   return 0;
15247 if (sizeof (int))
15248   return 0;
15249   ;
15250   return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255   (eval $ac_compile) 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -z "$ac_c_werror_flag"
15263                          || test ! -s conftest.err'
15264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265   (eval $ac_try) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; } &&
15269          { ac_try='test -s conftest.$ac_objext'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }; then
15275   ac_cv_type_int=yes
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_cv_type_int=no
15281 fi
15282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15283 fi
15284 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15285 echo "${ECHO_T}$ac_cv_type_int" >&6
15286
15287 echo "$as_me:$LINENO: checking size of int" >&5
15288 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15289 if test "${ac_cv_sizeof_int+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   if test "$ac_cv_type_int" = yes; then
15293   # The cast to unsigned long works around a bug in the HP C Compiler
15294   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15295   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15296   # This bug is HP SR number 8606223364.
15297   if test "$cross_compiling" = yes; then
15298   # Depending upon the size, compute the lo and hi bounds.
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305 $ac_includes_default
15306 int
15307 main ()
15308 {
15309 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15310 test_array [0] = 0
15311
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318   (eval $ac_compile) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag"
15326                          || test ! -s conftest.err'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_lo=0 ac_mid=0
15339   while :; do
15340     cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346 $ac_includes_default
15347 int
15348 main ()
15349 {
15350 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15351 test_array [0] = 0
15352
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359   (eval $ac_compile) 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -z "$ac_c_werror_flag"
15367                          || test ! -s conftest.err'
15368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369   (eval $ac_try) 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; } &&
15373          { ac_try='test -s conftest.$ac_objext'
15374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375   (eval $ac_try) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; }; then
15379   ac_hi=$ac_mid; break
15380 else
15381   echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_lo=`expr $ac_mid + 1`
15385                     if test $ac_lo -le $ac_mid; then
15386                       ac_lo= ac_hi=
15387                       break
15388                     fi
15389                     ac_mid=`expr 2 '*' $ac_mid + 1`
15390 fi
15391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15392   done
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 $ac_includes_default
15404 int
15405 main ()
15406 {
15407 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15408 test_array [0] = 0
15409
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_hi=-1 ac_mid=-1
15437   while :; do
15438     cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 $ac_includes_default
15445 int
15446 main ()
15447 {
15448 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15449 test_array [0] = 0
15450
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_lo=$ac_mid; break
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_hi=`expr '(' $ac_mid ')' - 1`
15483                        if test $ac_mid -le $ac_hi; then
15484                          ac_lo= ac_hi=
15485                          break
15486                        fi
15487                        ac_mid=`expr 2 '*' $ac_mid`
15488 fi
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490   done
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 ac_lo= ac_hi=
15496 fi
15497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15498 fi
15499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15500 # Binary search between lo and hi bounds.
15501 while test "x$ac_lo" != "x$ac_hi"; do
15502   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15503   cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 $ac_includes_default
15510 int
15511 main ()
15512 {
15513 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15514 test_array [0] = 0
15515
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522   (eval $ac_compile) 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -z "$ac_c_werror_flag"
15530                          || test ! -s conftest.err'
15531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532   (eval $ac_try) 2>&5
15533   ac_status=$?
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); }; } &&
15536          { ac_try='test -s conftest.$ac_objext'
15537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538   (eval $ac_try) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); }; }; then
15542   ac_hi=$ac_mid
15543 else
15544   echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15546
15547 ac_lo=`expr '(' $ac_mid ')' + 1`
15548 fi
15549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15550 done
15551 case $ac_lo in
15552 ?*) ac_cv_sizeof_int=$ac_lo;;
15553 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15554 See \`config.log' for more details." >&5
15555 echo "$as_me: error: cannot compute sizeof (int), 77
15556 See \`config.log' for more details." >&2;}
15557    { (exit 1); exit 1; }; } ;;
15558 esac
15559 else
15560   if test "$cross_compiling" = yes; then
15561   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15562 See \`config.log' for more details." >&5
15563 echo "$as_me: error: cannot run test program while cross compiling
15564 See \`config.log' for more details." >&2;}
15565    { (exit 1); exit 1; }; }
15566 else
15567   cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h.  */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h.  */
15573 $ac_includes_default
15574 long longval () { return (long) (sizeof (int)); }
15575 unsigned long ulongval () { return (long) (sizeof (int)); }
15576 #include <stdio.h>
15577 #include <stdlib.h>
15578 int
15579 main ()
15580 {
15581
15582   FILE *f = fopen ("conftest.val", "w");
15583   if (! f)
15584     exit (1);
15585   if (((long) (sizeof (int))) < 0)
15586     {
15587       long i = longval ();
15588       if (i != ((long) (sizeof (int))))
15589         exit (1);
15590       fprintf (f, "%ld\n", i);
15591     }
15592   else
15593     {
15594       unsigned long i = ulongval ();
15595       if (i != ((long) (sizeof (int))))
15596         exit (1);
15597       fprintf (f, "%lu\n", i);
15598     }
15599   exit (ferror (f) || fclose (f) != 0);
15600
15601   ;
15602   return 0;
15603 }
15604 _ACEOF
15605 rm -f conftest$ac_exeext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15607   (eval $ac_link) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   ac_cv_sizeof_int=`cat conftest.val`
15617 else
15618   echo "$as_me: program exited with status $ac_status" >&5
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ( exit $ac_status )
15623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15624 See \`config.log' for more details." >&5
15625 echo "$as_me: error: cannot compute sizeof (int), 77
15626 See \`config.log' for more details." >&2;}
15627    { (exit 1); exit 1; }; }
15628 fi
15629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15630 fi
15631 fi
15632 rm -f conftest.val
15633 else
15634   ac_cv_sizeof_int=0
15635 fi
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15638 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15639 cat >>confdefs.h <<_ACEOF
15640 #define SIZEOF_INT $ac_cv_sizeof_int
15641 _ACEOF
15642
15643
15644 echo "$as_me:$LINENO: checking for long int" >&5
15645 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15646 if test "${ac_cv_type_long_int+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655 $ac_includes_default
15656 int
15657 main ()
15658 {
15659 if ((long int *) 0)
15660   return 0;
15661 if (sizeof (long int))
15662   return 0;
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669   (eval $ac_compile) 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag"
15677                          || test ! -s conftest.err'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; } &&
15683          { ac_try='test -s conftest.$ac_objext'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689   ac_cv_type_long_int=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_cv_type_long_int=no
15695 fi
15696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15699 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15700
15701 echo "$as_me:$LINENO: checking size of long int" >&5
15702 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15703 if test "${ac_cv_sizeof_long_int+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   if test "$ac_cv_type_long_int" = yes; then
15707   # The cast to unsigned long works around a bug in the HP C Compiler
15708   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15709   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15710   # This bug is HP SR number 8606223364.
15711   if test "$cross_compiling" = yes; then
15712   # Depending upon the size, compute the lo and hi bounds.
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719 $ac_includes_default
15720 int
15721 main ()
15722 {
15723 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15724 test_array [0] = 0
15725
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732   (eval $ac_compile) 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -z "$ac_c_werror_flag"
15740                          || test ! -s conftest.err'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; } &&
15746          { ac_try='test -s conftest.$ac_objext'
15747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748   (eval $ac_try) 2>&5
15749   ac_status=$?
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); }; }; then
15752   ac_lo=0 ac_mid=0
15753   while :; do
15754     cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 $ac_includes_default
15761 int
15762 main ()
15763 {
15764 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15765 test_array [0] = 0
15766
15767   ;
15768   return 0;
15769 }
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15773   (eval $ac_compile) 2>conftest.er1
15774   ac_status=$?
15775   grep -v '^ *+' conftest.er1 >conftest.err
15776   rm -f conftest.er1
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -z "$ac_c_werror_flag"
15781                          || test ! -s conftest.err'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; } &&
15787          { ac_try='test -s conftest.$ac_objext'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   ac_hi=$ac_mid; break
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798 ac_lo=`expr $ac_mid + 1`
15799                     if test $ac_lo -le $ac_mid; then
15800                       ac_lo= ac_hi=
15801                       break
15802                     fi
15803                     ac_mid=`expr 2 '*' $ac_mid + 1`
15804 fi
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806   done
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h.  */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h.  */
15817 $ac_includes_default
15818 int
15819 main ()
15820 {
15821 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15822 test_array [0] = 0
15823
15824   ;
15825   return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830   (eval $ac_compile) 2>conftest.er1
15831   ac_status=$?
15832   grep -v '^ *+' conftest.er1 >conftest.err
15833   rm -f conftest.er1
15834   cat conftest.err >&5
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); } &&
15837          { ac_try='test -z "$ac_c_werror_flag"
15838                          || test ! -s conftest.err'
15839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840   (eval $ac_try) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; } &&
15844          { ac_try='test -s conftest.$ac_objext'
15845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846   (eval $ac_try) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }; }; then
15850   ac_hi=-1 ac_mid=-1
15851   while :; do
15852     cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 $ac_includes_default
15859 int
15860 main ()
15861 {
15862 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15863 test_array [0] = 0
15864
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871   (eval $ac_compile) 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } &&
15878          { ac_try='test -z "$ac_c_werror_flag"
15879                          || test ! -s conftest.err'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; } &&
15885          { ac_try='test -s conftest.$ac_objext'
15886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887   (eval $ac_try) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); }; }; then
15891   ac_lo=$ac_mid; break
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_hi=`expr '(' $ac_mid ')' - 1`
15897                        if test $ac_mid -le $ac_hi; then
15898                          ac_lo= ac_hi=
15899                          break
15900                        fi
15901                        ac_mid=`expr 2 '*' $ac_mid`
15902 fi
15903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15904   done
15905 else
15906   echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15908
15909 ac_lo= ac_hi=
15910 fi
15911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912 fi
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914 # Binary search between lo and hi bounds.
15915 while test "x$ac_lo" != "x$ac_hi"; do
15916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15917   cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923 $ac_includes_default
15924 int
15925 main ()
15926 {
15927 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15928 test_array [0] = 0
15929
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936   (eval $ac_compile) 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -z "$ac_c_werror_flag"
15944                          || test ! -s conftest.err'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; } &&
15950          { ac_try='test -s conftest.$ac_objext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_hi=$ac_mid
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_lo=`expr '(' $ac_mid ')' + 1`
15962 fi
15963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15964 done
15965 case $ac_lo in
15966 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15968 See \`config.log' for more details." >&5
15969 echo "$as_me: error: cannot compute sizeof (long int), 77
15970 See \`config.log' for more details." >&2;}
15971    { (exit 1); exit 1; }; } ;;
15972 esac
15973 else
15974   if test "$cross_compiling" = yes; then
15975   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15976 See \`config.log' for more details." >&5
15977 echo "$as_me: error: cannot run test program while cross compiling
15978 See \`config.log' for more details." >&2;}
15979    { (exit 1); exit 1; }; }
15980 else
15981   cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 $ac_includes_default
15988 long longval () { return (long) (sizeof (long int)); }
15989 unsigned long ulongval () { return (long) (sizeof (long int)); }
15990 #include <stdio.h>
15991 #include <stdlib.h>
15992 int
15993 main ()
15994 {
15995
15996   FILE *f = fopen ("conftest.val", "w");
15997   if (! f)
15998     exit (1);
15999   if (((long) (sizeof (long int))) < 0)
16000     {
16001       long i = longval ();
16002       if (i != ((long) (sizeof (long int))))
16003         exit (1);
16004       fprintf (f, "%ld\n", i);
16005     }
16006   else
16007     {
16008       unsigned long i = ulongval ();
16009       if (i != ((long) (sizeof (long int))))
16010         exit (1);
16011       fprintf (f, "%lu\n", i);
16012     }
16013   exit (ferror (f) || fclose (f) != 0);
16014
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest$ac_exeext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021   (eval $ac_link) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026   (eval $ac_try) 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030   ac_cv_sizeof_long_int=`cat conftest.val`
16031 else
16032   echo "$as_me: program exited with status $ac_status" >&5
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 ( exit $ac_status )
16037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16038 See \`config.log' for more details." >&5
16039 echo "$as_me: error: cannot compute sizeof (long int), 77
16040 See \`config.log' for more details." >&2;}
16041    { (exit 1); exit 1; }; }
16042 fi
16043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16044 fi
16045 fi
16046 rm -f conftest.val
16047 else
16048   ac_cv_sizeof_long_int=0
16049 fi
16050 fi
16051 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16052 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16053 cat >>confdefs.h <<_ACEOF
16054 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16055 _ACEOF
16056
16057
16058 echo "$as_me:$LINENO: checking for long long int" >&5
16059 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16060 if test "${ac_cv_type_long_long_int+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 $ac_includes_default
16070 int
16071 main ()
16072 {
16073 if ((long long int *) 0)
16074   return 0;
16075 if (sizeof (long long int))
16076   return 0;
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083   (eval $ac_compile) 2>conftest.er1
16084   ac_status=$?
16085   grep -v '^ *+' conftest.er1 >conftest.err
16086   rm -f conftest.er1
16087   cat conftest.err >&5
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); } &&
16090          { ac_try='test -z "$ac_c_werror_flag"
16091                          || test ! -s conftest.err'
16092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093   (eval $ac_try) 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; } &&
16097          { ac_try='test -s conftest.$ac_objext'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_cv_type_long_long_int=yes
16104 else
16105   echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108 ac_cv_type_long_long_int=no
16109 fi
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111 fi
16112 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16113 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16114
16115 echo "$as_me:$LINENO: checking size of long long int" >&5
16116 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16117 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   if test "$ac_cv_type_long_long_int" = yes; then
16121   # The cast to unsigned long works around a bug in the HP C Compiler
16122   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16123   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16124   # This bug is HP SR number 8606223364.
16125   if test "$cross_compiling" = yes; then
16126   # Depending upon the size, compute the lo and hi bounds.
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133 $ac_includes_default
16134 int
16135 main ()
16136 {
16137 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16138 test_array [0] = 0
16139
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146   (eval $ac_compile) 2>conftest.er1
16147   ac_status=$?
16148   grep -v '^ *+' conftest.er1 >conftest.err
16149   rm -f conftest.er1
16150   cat conftest.err >&5
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); } &&
16153          { ac_try='test -z "$ac_c_werror_flag"
16154                          || test ! -s conftest.err'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; } &&
16160          { ac_try='test -s conftest.$ac_objext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   ac_lo=0 ac_mid=0
16167   while :; do
16168     cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 $ac_includes_default
16175 int
16176 main ()
16177 {
16178 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16179 test_array [0] = 0
16180
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187   (eval $ac_compile) 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } &&
16194          { ac_try='test -z "$ac_c_werror_flag"
16195                          || test ! -s conftest.err'
16196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197   (eval $ac_try) 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; } &&
16201          { ac_try='test -s conftest.$ac_objext'
16202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203   (eval $ac_try) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); }; }; then
16207   ac_hi=$ac_mid; break
16208 else
16209   echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ac_lo=`expr $ac_mid + 1`
16213                     if test $ac_lo -le $ac_mid; then
16214                       ac_lo= ac_hi=
16215                       break
16216                     fi
16217                     ac_mid=`expr 2 '*' $ac_mid + 1`
16218 fi
16219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220   done
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h.  */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h.  */
16231 $ac_includes_default
16232 int
16233 main ()
16234 {
16235 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16236 test_array [0] = 0
16237
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244   (eval $ac_compile) 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } &&
16251          { ac_try='test -z "$ac_c_werror_flag"
16252                          || test ! -s conftest.err'
16253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254   (eval $ac_try) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_hi=-1 ac_mid=-1
16265   while :; do
16266     cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 $ac_includes_default
16273 int
16274 main ()
16275 {
16276 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16277 test_array [0] = 0
16278
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285   (eval $ac_compile) 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -z "$ac_c_werror_flag"
16293                          || test ! -s conftest.err'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_lo=$ac_mid; break
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 ac_hi=`expr '(' $ac_mid ')' - 1`
16311                        if test $ac_mid -le $ac_hi; then
16312                          ac_lo= ac_hi=
16313                          break
16314                        fi
16315                        ac_mid=`expr 2 '*' $ac_mid`
16316 fi
16317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16318   done
16319 else
16320   echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 ac_lo= ac_hi=
16324 fi
16325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16326 fi
16327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16328 # Binary search between lo and hi bounds.
16329 while test "x$ac_lo" != "x$ac_hi"; do
16330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16331   cat >conftest.$ac_ext <<_ACEOF
16332 /* confdefs.h.  */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h.  */
16337 $ac_includes_default
16338 int
16339 main ()
16340 {
16341 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16342 test_array [0] = 0
16343
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350   (eval $ac_compile) 2>conftest.er1
16351   ac_status=$?
16352   grep -v '^ *+' conftest.er1 >conftest.err
16353   rm -f conftest.er1
16354   cat conftest.err >&5
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); } &&
16357          { ac_try='test -z "$ac_c_werror_flag"
16358                          || test ! -s conftest.err'
16359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360   (eval $ac_try) 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }; } &&
16364          { ac_try='test -s conftest.$ac_objext'
16365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366   (eval $ac_try) 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }; }; then
16370   ac_hi=$ac_mid
16371 else
16372   echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16374
16375 ac_lo=`expr '(' $ac_mid ')' + 1`
16376 fi
16377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16378 done
16379 case $ac_lo in
16380 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16382 See \`config.log' for more details." >&5
16383 echo "$as_me: error: cannot compute sizeof (long long int), 77
16384 See \`config.log' for more details." >&2;}
16385    { (exit 1); exit 1; }; } ;;
16386 esac
16387 else
16388   if test "$cross_compiling" = yes; then
16389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16390 See \`config.log' for more details." >&5
16391 echo "$as_me: error: cannot run test program while cross compiling
16392 See \`config.log' for more details." >&2;}
16393    { (exit 1); exit 1; }; }
16394 else
16395   cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 $ac_includes_default
16402 long longval () { return (long) (sizeof (long long int)); }
16403 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16404 #include <stdio.h>
16405 #include <stdlib.h>
16406 int
16407 main ()
16408 {
16409
16410   FILE *f = fopen ("conftest.val", "w");
16411   if (! f)
16412     exit (1);
16413   if (((long) (sizeof (long long int))) < 0)
16414     {
16415       long i = longval ();
16416       if (i != ((long) (sizeof (long long int))))
16417         exit (1);
16418       fprintf (f, "%ld\n", i);
16419     }
16420   else
16421     {
16422       unsigned long i = ulongval ();
16423       if (i != ((long) (sizeof (long long int))))
16424         exit (1);
16425       fprintf (f, "%lu\n", i);
16426     }
16427   exit (ferror (f) || fclose (f) != 0);
16428
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest$ac_exeext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16435   (eval $ac_link) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440   (eval $ac_try) 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_cv_sizeof_long_long_int=`cat conftest.val`
16445 else
16446   echo "$as_me: program exited with status $ac_status" >&5
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 ( exit $ac_status )
16451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16452 See \`config.log' for more details." >&5
16453 echo "$as_me: error: cannot compute sizeof (long long int), 77
16454 See \`config.log' for more details." >&2;}
16455    { (exit 1); exit 1; }; }
16456 fi
16457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16458 fi
16459 fi
16460 rm -f conftest.val
16461 else
16462   ac_cv_sizeof_long_long_int=0
16463 fi
16464 fi
16465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16466 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16467 cat >>confdefs.h <<_ACEOF
16468 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16469 _ACEOF
16470
16471
16472 echo "$as_me:$LINENO: checking for int *" >&5
16473 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16474 if test "${ac_cv_type_int_p+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483 $ac_includes_default
16484 int
16485 main ()
16486 {
16487 if ((int * *) 0)
16488   return 0;
16489 if (sizeof (int *))
16490   return 0;
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497   (eval $ac_compile) 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } &&
16504          { ac_try='test -z "$ac_c_werror_flag"
16505                          || test ! -s conftest.err'
16506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507   (eval $ac_try) 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; } &&
16511          { ac_try='test -s conftest.$ac_objext'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; }; then
16517   ac_cv_type_int_p=yes
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_cv_type_int_p=no
16523 fi
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 fi
16526 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16527 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16528
16529 echo "$as_me:$LINENO: checking size of int *" >&5
16530 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16531 if test "${ac_cv_sizeof_int_p+set}" = set; then
16532   echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534   if test "$ac_cv_type_int_p" = yes; then
16535   # The cast to unsigned long works around a bug in the HP C Compiler
16536   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16537   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16538   # This bug is HP SR number 8606223364.
16539   if test "$cross_compiling" = yes; then
16540   # Depending upon the size, compute the lo and hi bounds.
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547 $ac_includes_default
16548 int
16549 main ()
16550 {
16551 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16552 test_array [0] = 0
16553
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560   (eval $ac_compile) 2>conftest.er1
16561   ac_status=$?
16562   grep -v '^ *+' conftest.er1 >conftest.err
16563   rm -f conftest.er1
16564   cat conftest.err >&5
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); } &&
16567          { ac_try='test -z "$ac_c_werror_flag"
16568                          || test ! -s conftest.err'
16569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570   (eval $ac_try) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; } &&
16574          { ac_try='test -s conftest.$ac_objext'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   ac_lo=0 ac_mid=0
16581   while :; do
16582     cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588 $ac_includes_default
16589 int
16590 main ()
16591 {
16592 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16593 test_array [0] = 0
16594
16595   ;
16596   return 0;
16597 }
16598 _ACEOF
16599 rm -f conftest.$ac_objext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16601   (eval $ac_compile) 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -z "$ac_c_werror_flag"
16609                          || test ! -s conftest.err'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; } &&
16615          { ac_try='test -s conftest.$ac_objext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_hi=$ac_mid; break
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ac_lo=`expr $ac_mid + 1`
16627                     if test $ac_lo -le $ac_mid; then
16628                       ac_lo= ac_hi=
16629                       break
16630                     fi
16631                     ac_mid=`expr 2 '*' $ac_mid + 1`
16632 fi
16633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16634   done
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 $ac_includes_default
16646 int
16647 main ()
16648 {
16649 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16650 test_array [0] = 0
16651
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16658   (eval $ac_compile) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag"
16666                          || test ! -s conftest.err'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; } &&
16672          { ac_try='test -s conftest.$ac_objext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_hi=-1 ac_mid=-1
16679   while :; do
16680     cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 $ac_includes_default
16687 int
16688 main ()
16689 {
16690 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16691 test_array [0] = 0
16692
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699   (eval $ac_compile) 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag"
16707                          || test ! -s conftest.err'
16708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709   (eval $ac_try) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   ac_lo=$ac_mid; break
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_hi=`expr '(' $ac_mid ')' - 1`
16725                        if test $ac_mid -le $ac_hi; then
16726                          ac_lo= ac_hi=
16727                          break
16728                        fi
16729                        ac_mid=`expr 2 '*' $ac_mid`
16730 fi
16731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16732   done
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_lo= ac_hi=
16738 fi
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 fi
16741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16742 # Binary search between lo and hi bounds.
16743 while test "x$ac_lo" != "x$ac_hi"; do
16744   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16745   cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 $ac_includes_default
16752 int
16753 main ()
16754 {
16755 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16756 test_array [0] = 0
16757
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_hi=$ac_mid
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789 ac_lo=`expr '(' $ac_mid ')' + 1`
16790 fi
16791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16792 done
16793 case $ac_lo in
16794 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16795 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16796 See \`config.log' for more details." >&5
16797 echo "$as_me: error: cannot compute sizeof (int *), 77
16798 See \`config.log' for more details." >&2;}
16799    { (exit 1); exit 1; }; } ;;
16800 esac
16801 else
16802   if test "$cross_compiling" = yes; then
16803   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16804 See \`config.log' for more details." >&5
16805 echo "$as_me: error: cannot run test program while cross compiling
16806 See \`config.log' for more details." >&2;}
16807    { (exit 1); exit 1; }; }
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 $ac_includes_default
16816 long longval () { return (long) (sizeof (int *)); }
16817 unsigned long ulongval () { return (long) (sizeof (int *)); }
16818 #include <stdio.h>
16819 #include <stdlib.h>
16820 int
16821 main ()
16822 {
16823
16824   FILE *f = fopen ("conftest.val", "w");
16825   if (! f)
16826     exit (1);
16827   if (((long) (sizeof (int *))) < 0)
16828     {
16829       long i = longval ();
16830       if (i != ((long) (sizeof (int *))))
16831         exit (1);
16832       fprintf (f, "%ld\n", i);
16833     }
16834   else
16835     {
16836       unsigned long i = ulongval ();
16837       if (i != ((long) (sizeof (int *))))
16838         exit (1);
16839       fprintf (f, "%lu\n", i);
16840     }
16841   exit (ferror (f) || fclose (f) != 0);
16842
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849   (eval $ac_link) 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ac_cv_sizeof_int_p=`cat conftest.val`
16859 else
16860   echo "$as_me: program exited with status $ac_status" >&5
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ( exit $ac_status )
16865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16866 See \`config.log' for more details." >&5
16867 echo "$as_me: error: cannot compute sizeof (int *), 77
16868 See \`config.log' for more details." >&2;}
16869    { (exit 1); exit 1; }; }
16870 fi
16871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16872 fi
16873 fi
16874 rm -f conftest.val
16875 else
16876   ac_cv_sizeof_int_p=0
16877 fi
16878 fi
16879 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16880 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16881 cat >>confdefs.h <<_ACEOF
16882 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16883 _ACEOF
16884
16885
16886
16887 # Check for sys/types.h types
16888 echo "$as_me:$LINENO: checking for u_int type" >&5
16889 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16890 if test "${ac_cv_have_u_int+set}" = set; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893
16894     cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900  #include <sys/types.h>
16901 int
16902 main ()
16903 {
16904  u_int a; a = 1;
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911   (eval $ac_compile) 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag"
16919                          || test ! -s conftest.err'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } &&
16925          { ac_try='test -s conftest.$ac_objext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931    ac_cv_have_u_int="yes"
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936  ac_cv_have_u_int="no"
16937
16938 fi
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16940
16941 fi
16942 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16943 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16944 if test "x$ac_cv_have_u_int" = "xyes" ; then
16945    cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_U_INT 1
16947 _ACEOF
16948
16949    have_u_int=1
16950 fi
16951
16952 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16953 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16954 if test "${ac_cv_have_intmax_t+set}" = set; then
16955   echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957
16958    cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964  #include <sys/types.h>
16965 int
16966 main ()
16967 {
16968  intmax_t a; a = 1;
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16975   (eval $ac_compile) 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -z "$ac_c_werror_flag"
16983                          || test ! -s conftest.err'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; } &&
16989          { ac_try='test -s conftest.$ac_objext'
16990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991   (eval $ac_try) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995    ac_cv_have_intmax_t="yes"
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000
17001          cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007  #include <stdint.h>
17008 int
17009 main ()
17010 {
17011  intmax_t a; a = 1;
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17018   (eval $ac_compile) 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag"
17026                          || test ! -s conftest.err'
17027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028   (eval $ac_try) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; } &&
17032          { ac_try='test -s conftest.$ac_objext'
17033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034   (eval $ac_try) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038    ac_cv_have_intmax_t="yes"
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043  ac_cv_have_intmax_t="no"
17044
17045 fi
17046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17047
17048
17049 fi
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051
17052
17053 fi
17054 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17055 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17056 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17057    cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_INTMAX_T 1
17059 _ACEOF
17060
17061    have_intmax_t=1
17062 fi
17063
17064
17065 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17066 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17067 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070
17071    cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077  #include <sys/types.h>
17078 int
17079 main ()
17080 {
17081  u_intmax_t a; a = 1;
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 rm -f conftest.$ac_objext
17087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088   (eval $ac_compile) 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } &&
17095          { ac_try='test -z "$ac_c_werror_flag"
17096                          || test ! -s conftest.err'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; } &&
17102          { ac_try='test -s conftest.$ac_objext'
17103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104   (eval $ac_try) 2>&5
17105   ac_status=$?
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); }; }; then
17108    ac_cv_have_u_intmax_t="yes"
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113
17114          cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120  #include <stdint.h>
17121 int
17122 main ()
17123 {
17124  u_intmax_t a; a = 1;
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext
17130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17131   (eval $ac_compile) 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -z "$ac_c_werror_flag"
17139                          || test ! -s conftest.err'
17140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141   (eval $ac_try) 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; } &&
17145          { ac_try='test -s conftest.$ac_objext'
17146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147   (eval $ac_try) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; }; then
17151    ac_cv_have_u_intmax_t="yes"
17152 else
17153   echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156  ac_cv_have_u_intmax_t="no"
17157
17158 fi
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17160
17161
17162 fi
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17164
17165 fi
17166 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17167 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17168 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17169    cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_U_INTMAX_T 1
17171 _ACEOF
17172
17173    have_u_intmax_t=1
17174 fi
17175
17176
17177 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17178 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17179 if test "${ac_cv_have_intxx_t+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182
17183    cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189  #include <sys/types.h>
17190 int
17191 main ()
17192 {
17193  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200   (eval $ac_compile) 2>conftest.er1
17201   ac_status=$?
17202   grep -v '^ *+' conftest.er1 >conftest.err
17203   rm -f conftest.er1
17204   cat conftest.err >&5
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } &&
17207          { ac_try='test -z "$ac_c_werror_flag"
17208                          || test ! -s conftest.err'
17209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210   (eval $ac_try) 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; } &&
17214          { ac_try='test -s conftest.$ac_objext'
17215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216   (eval $ac_try) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; }; then
17220    ac_cv_have_intxx_t="yes"
17221 else
17222   echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225  ac_cv_have_intxx_t="no"
17226
17227 fi
17228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17229
17230 fi
17231 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17232 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17233 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17234    cat >>confdefs.h <<\_ACEOF
17235 #define HAVE_INTXX_T 1
17236 _ACEOF
17237
17238    have_intxx_t=1
17239 fi
17240
17241 echo "$as_me:$LINENO: checking for int64_t type" >&5
17242 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17243 if test "${ac_cv_have_int64_t+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246
17247    cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253  #include <sys/types.h>
17254 int
17255 main ()
17256 {
17257  int64_t a; a = 1;
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17264   (eval $ac_compile) 2>conftest.er1
17265   ac_status=$?
17266   grep -v '^ *+' conftest.er1 >conftest.err
17267   rm -f conftest.er1
17268   cat conftest.err >&5
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); } &&
17271          { ac_try='test -z "$ac_c_werror_flag"
17272                          || test ! -s conftest.err'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest.$ac_objext'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284    ac_cv_have_int64_t="yes"
17285 else
17286   echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289  ac_cv_have_int64_t="no"
17290
17291 fi
17292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17293
17294 fi
17295 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17296 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17297 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17298    cat >>confdefs.h <<\_ACEOF
17299 #define HAVE_INT64_T 1
17300 _ACEOF
17301
17302    have_int64_t=1
17303 fi
17304
17305 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17306 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17307 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17308   echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310
17311    cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317  #include <sys/types.h>
17318 int
17319 main ()
17320 {
17321  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328   (eval $ac_compile) 2>conftest.er1
17329   ac_status=$?
17330   grep -v '^ *+' conftest.er1 >conftest.err
17331   rm -f conftest.er1
17332   cat conftest.err >&5
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); } &&
17335          { ac_try='test -z "$ac_c_werror_flag"
17336                          || test ! -s conftest.err'
17337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338   (eval $ac_try) 2>&5
17339   ac_status=$?
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); }; } &&
17342          { ac_try='test -s conftest.$ac_objext'
17343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344   (eval $ac_try) 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; }; then
17348    ac_cv_have_u_intxx_t="yes"
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353  ac_cv_have_u_intxx_t="no"
17354
17355 fi
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17357
17358 fi
17359 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17360 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17361 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17362    cat >>confdefs.h <<\_ACEOF
17363 #define HAVE_U_INTXX_T 1
17364 _ACEOF
17365
17366    have_u_intxx_t=1
17367 fi
17368
17369 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17370 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17371 if test "${ac_cv_have_u_int64_t+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374
17375    cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381  #include <sys/types.h>
17382 int
17383 main ()
17384 {
17385  u_int64_t a; a = 1;
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392   (eval $ac_compile) 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag"
17400                          || test ! -s conftest.err'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; } &&
17406          { ac_try='test -s conftest.$ac_objext'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412    ac_cv_have_u_int64_t="yes"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417  ac_cv_have_u_int64_t="no"
17418
17419 fi
17420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17421
17422 fi
17423 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17424 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17425 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17426    cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_U_INT64_T 1
17428 _ACEOF
17429
17430    have_u_int64_t=1
17431 fi
17432
17433 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17434            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17435 then
17436    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17437 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17438    cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444  #include <sys/bitypes.h>
17445 int
17446 main ()
17447 {
17448  int8_t a; int16_t b; int32_t c;
17449         u_int8_t e; u_int16_t f; u_int32_t g;
17450         a = b = c = e = f = g = 1;
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17457   (eval $ac_compile) 2>conftest.er1
17458   ac_status=$?
17459   grep -v '^ *+' conftest.er1 >conftest.err
17460   rm -f conftest.er1
17461   cat conftest.err >&5
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } &&
17464          { ac_try='test -z "$ac_c_werror_flag"
17465                          || test ! -s conftest.err'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; } &&
17471          { ac_try='test -s conftest.$ac_objext'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; }; then
17477    cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_U_INTXX_T 1
17479 _ACEOF
17480
17481         cat >>confdefs.h <<\_ACEOF
17482 #define HAVE_INTXX_T 1
17483 _ACEOF
17484
17485         cat >>confdefs.h <<\_ACEOF
17486 #define HAVE_SYS_BITYPES_H 1
17487 _ACEOF
17488
17489         echo "$as_me:$LINENO: result: yes" >&5
17490 echo "${ECHO_T}yes" >&6
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495  echo "$as_me:$LINENO: result: no" >&5
17496 echo "${ECHO_T}no" >&6
17497
17498 fi
17499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17500 fi
17501
17502 if test -z "$have_u_intxx_t" ; then
17503    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17504 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17505 if test "${ac_cv_have_uintxx_t+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508
17509       cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515  #include <sys/types.h>
17516 int
17517 main ()
17518 {
17519  uint8_t a; uint16_t b;
17520            uint32_t c; a = b = c = 1;
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527   (eval $ac_compile) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"
17535                          || test ! -s conftest.err'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest.$ac_objext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547    ac_cv_have_uintxx_t="yes"
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552  ac_cv_have_uintxx_t="no"
17553
17554 fi
17555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17556
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17559 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17560    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17561       cat >>confdefs.h <<\_ACEOF
17562 #define HAVE_UINTXX_T 1
17563 _ACEOF
17564
17565    fi
17566 fi
17567
17568 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17569           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17570 then
17571    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17572 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17573    cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579  #include <sys/bitypes.h>
17580 int
17581 main ()
17582 {
17583  int64_t a; u_int64_t b;
17584        a = b = 1;
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17591   (eval $ac_compile) 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } &&
17598          { ac_try='test -z "$ac_c_werror_flag"
17599                          || test ! -s conftest.err'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; } &&
17605          { ac_try='test -s conftest.$ac_objext'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611    cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_U_INT64_T 1
17613 _ACEOF
17614
17615        cat >>confdefs.h <<\_ACEOF
17616 #define HAVE_INT64_T 1
17617 _ACEOF
17618
17619        echo "$as_me:$LINENO: result: yes" >&5
17620 echo "${ECHO_T}yes" >&6
17621 else
17622   echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625  echo "$as_me:$LINENO: result: no" >&5
17626 echo "${ECHO_T}no" >&6
17627
17628 fi
17629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17630 fi
17631
17632 if (test -z "$have_uintxx_t" && \
17633           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17634 then
17635    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17636 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17637    cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643  #include <sys/bitypes.h>
17644 int
17645 main ()
17646 {
17647  uint8_t a; uint16_t b;
17648           uint32_t c; a = b = c = 1;
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655   (eval $ac_compile) 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag"
17663                          || test ! -s conftest.err'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest.$ac_objext'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675    cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_UINTXX_T 1
17677 _ACEOF
17678
17679        echo "$as_me:$LINENO: result: yes" >&5
17680 echo "${ECHO_T}yes" >&6
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17684
17685  echo "$as_me:$LINENO: result: no" >&5
17686 echo "${ECHO_T}no" >&6
17687
17688 fi
17689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690
17691 fi
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 for ac_func in \
17710         fork \
17711         getcwd \
17712         gethostname \
17713         getpid \
17714         gettimeofday \
17715         setpgid \
17716         setpgrp \
17717         setsid \
17718         signal \
17719         strerror \
17720         strncmp \
17721         strncpy \
17722         vfprintf \
17723
17724 do
17725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17726 echo "$as_me:$LINENO: checking for $ac_func" >&5
17727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17728 if eval "test \"\${$as_ac_var+set}\" = set"; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17739 #define $ac_func innocuous_$ac_func
17740
17741 /* System header to define __stub macros and hopefully few prototypes,
17742     which can conflict with char $ac_func (); below.
17743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744     <limits.h> exists even on freestanding compilers.  */
17745
17746 #ifdef __STDC__
17747 # include <limits.h>
17748 #else
17749 # include <assert.h>
17750 #endif
17751
17752 #undef $ac_func
17753
17754 /* Override any gcc2 internal prototype to avoid an error.  */
17755 #ifdef __cplusplus
17756 extern "C"
17757 {
17758 #endif
17759 /* We use char because int might match the return type of a gcc2
17760    builtin and then its argument prototype would still apply.  */
17761 char $ac_func ();
17762 /* The GNU C library defines this for functions which it implements
17763     to always fail with ENOSYS.  Some functions are actually named
17764     something starting with __ and the normal name is an alias.  */
17765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17766 choke me
17767 #else
17768 char (*f) () = $ac_func;
17769 #endif
17770 #ifdef __cplusplus
17771 }
17772 #endif
17773
17774 int
17775 main ()
17776 {
17777 return f != $ac_func;
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784   (eval $ac_link) 2>conftest.er1
17785   ac_status=$?
17786   grep -v '^ *+' conftest.er1 >conftest.err
17787   rm -f conftest.er1
17788   cat conftest.err >&5
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); } &&
17791          { ac_try='test -z "$ac_c_werror_flag"
17792                          || test ! -s conftest.err'
17793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794   (eval $ac_try) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   eval "$as_ac_var=yes"
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 eval "$as_ac_var=no"
17810 fi
17811 rm -f conftest.err conftest.$ac_objext \
17812       conftest$ac_exeext conftest.$ac_ext
17813 fi
17814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17816 if test `eval echo '${'$as_ac_var'}'` = yes; then
17817   cat >>confdefs.h <<_ACEOF
17818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17819 _ACEOF
17820
17821 else
17822   echo 'configure: cannot find needed function.'; exit 1
17823
17824 fi
17825 done
17826
17827
17828
17829 for ac_func in fchdir
17830 do
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17834 if eval "test \"\${$as_ac_var+set}\" = set"; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h.  */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h.  */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17845 #define $ac_func innocuous_$ac_func
17846
17847 /* System header to define __stub macros and hopefully few prototypes,
17848     which can conflict with char $ac_func (); below.
17849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850     <limits.h> exists even on freestanding compilers.  */
17851
17852 #ifdef __STDC__
17853 # include <limits.h>
17854 #else
17855 # include <assert.h>
17856 #endif
17857
17858 #undef $ac_func
17859
17860 /* Override any gcc2 internal prototype to avoid an error.  */
17861 #ifdef __cplusplus
17862 extern "C"
17863 {
17864 #endif
17865 /* We use char because int might match the return type of a gcc2
17866    builtin and then its argument prototype would still apply.  */
17867 char $ac_func ();
17868 /* The GNU C library defines this for functions which it implements
17869     to always fail with ENOSYS.  Some functions are actually named
17870     something starting with __ and the normal name is an alias.  */
17871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17872 choke me
17873 #else
17874 char (*f) () = $ac_func;
17875 #endif
17876 #ifdef __cplusplus
17877 }
17878 #endif
17879
17880 int
17881 main ()
17882 {
17883 return f != $ac_func;
17884   ;
17885   return 0;
17886 }
17887 _ACEOF
17888 rm -f conftest.$ac_objext conftest$ac_exeext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890   (eval $ac_link) 2>conftest.er1
17891   ac_status=$?
17892   grep -v '^ *+' conftest.er1 >conftest.err
17893   rm -f conftest.er1
17894   cat conftest.err >&5
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); } &&
17897          { ac_try='test -z "$ac_c_werror_flag"
17898                          || test ! -s conftest.err'
17899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900   (eval $ac_try) 2>&5
17901   ac_status=$?
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); }; } &&
17904          { ac_try='test -s conftest$ac_exeext'
17905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906   (eval $ac_try) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; }; then
17910   eval "$as_ac_var=yes"
17911 else
17912   echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 eval "$as_ac_var=no"
17916 fi
17917 rm -f conftest.err conftest.$ac_objext \
17918       conftest$ac_exeext conftest.$ac_ext
17919 fi
17920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17922 if test `eval echo '${'$as_ac_var'}'` = yes; then
17923   cat >>confdefs.h <<_ACEOF
17924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17925 _ACEOF
17926  cat >>confdefs.h <<\_ACEOF
17927 #define HAVE_FCHDIR 1
17928 _ACEOF
17929
17930 fi
17931 done
17932
17933
17934 for ac_func in strtoll
17935 do
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17939 if eval "test \"\${$as_ac_var+set}\" = set"; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17950 #define $ac_func innocuous_$ac_func
17951
17952 /* System header to define __stub macros and hopefully few prototypes,
17953     which can conflict with char $ac_func (); below.
17954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955     <limits.h> exists even on freestanding compilers.  */
17956
17957 #ifdef __STDC__
17958 # include <limits.h>
17959 #else
17960 # include <assert.h>
17961 #endif
17962
17963 #undef $ac_func
17964
17965 /* Override any gcc2 internal prototype to avoid an error.  */
17966 #ifdef __cplusplus
17967 extern "C"
17968 {
17969 #endif
17970 /* We use char because int might match the return type of a gcc2
17971    builtin and then its argument prototype would still apply.  */
17972 char $ac_func ();
17973 /* The GNU C library defines this for functions which it implements
17974     to always fail with ENOSYS.  Some functions are actually named
17975     something starting with __ and the normal name is an alias.  */
17976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17977 choke me
17978 #else
17979 char (*f) () = $ac_func;
17980 #endif
17981 #ifdef __cplusplus
17982 }
17983 #endif
17984
17985 int
17986 main ()
17987 {
17988 return f != $ac_func;
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995   (eval $ac_link) 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag"
18003                          || test ! -s conftest.err'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015   eval "$as_ac_var=yes"
18016 else
18017   echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18019
18020 eval "$as_ac_var=no"
18021 fi
18022 rm -f conftest.err conftest.$ac_objext \
18023       conftest$ac_exeext conftest.$ac_ext
18024 fi
18025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028   cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 _ACEOF
18031  cat >>confdefs.h <<\_ACEOF
18032 #define HAVE_STRTOLL 1
18033 _ACEOF
18034
18035 fi
18036 done
18037
18038
18039
18040 for ac_func in chflags
18041 do
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18045 if eval "test \"\${$as_ac_var+set}\" = set"; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18056 #define $ac_func innocuous_$ac_func
18057
18058 /* System header to define __stub macros and hopefully few prototypes,
18059     which can conflict with char $ac_func (); below.
18060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061     <limits.h> exists even on freestanding compilers.  */
18062
18063 #ifdef __STDC__
18064 # include <limits.h>
18065 #else
18066 # include <assert.h>
18067 #endif
18068
18069 #undef $ac_func
18070
18071 /* Override any gcc2 internal prototype to avoid an error.  */
18072 #ifdef __cplusplus
18073 extern "C"
18074 {
18075 #endif
18076 /* We use char because int might match the return type of a gcc2
18077    builtin and then its argument prototype would still apply.  */
18078 char $ac_func ();
18079 /* The GNU C library defines this for functions which it implements
18080     to always fail with ENOSYS.  Some functions are actually named
18081     something starting with __ and the normal name is an alias.  */
18082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18083 choke me
18084 #else
18085 char (*f) () = $ac_func;
18086 #endif
18087 #ifdef __cplusplus
18088 }
18089 #endif
18090
18091 int
18092 main ()
18093 {
18094 return f != $ac_func;
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101   (eval $ac_link) 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } &&
18108          { ac_try='test -z "$ac_c_werror_flag"
18109                          || test ! -s conftest.err'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest$ac_exeext'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; }; then
18121   eval "$as_ac_var=yes"
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 eval "$as_ac_var=no"
18127 fi
18128 rm -f conftest.err conftest.$ac_objext \
18129       conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18133 if test `eval echo '${'$as_ac_var'}'` = yes; then
18134   cat >>confdefs.h <<_ACEOF
18135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18136 _ACEOF
18137
18138 fi
18139 done
18140
18141
18142
18143
18144
18145
18146 for ac_func in snprintf vsnprintf gethostid getdomainname
18147 do
18148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149 echo "$as_me:$LINENO: checking for $ac_func" >&5
18150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18151 if eval "test \"\${$as_ac_var+set}\" = set"; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18162 #define $ac_func innocuous_$ac_func
18163
18164 /* System header to define __stub macros and hopefully few prototypes,
18165     which can conflict with char $ac_func (); below.
18166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167     <limits.h> exists even on freestanding compilers.  */
18168
18169 #ifdef __STDC__
18170 # include <limits.h>
18171 #else
18172 # include <assert.h>
18173 #endif
18174
18175 #undef $ac_func
18176
18177 /* Override any gcc2 internal prototype to avoid an error.  */
18178 #ifdef __cplusplus
18179 extern "C"
18180 {
18181 #endif
18182 /* We use char because int might match the return type of a gcc2
18183    builtin and then its argument prototype would still apply.  */
18184 char $ac_func ();
18185 /* The GNU C library defines this for functions which it implements
18186     to always fail with ENOSYS.  Some functions are actually named
18187     something starting with __ and the normal name is an alias.  */
18188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18189 choke me
18190 #else
18191 char (*f) () = $ac_func;
18192 #endif
18193 #ifdef __cplusplus
18194 }
18195 #endif
18196
18197 int
18198 main ()
18199 {
18200 return f != $ac_func;
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207   (eval $ac_link) 2>conftest.er1
18208   ac_status=$?
18209   grep -v '^ *+' conftest.er1 >conftest.err
18210   rm -f conftest.er1
18211   cat conftest.err >&5
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); } &&
18214          { ac_try='test -z "$ac_c_werror_flag"
18215                          || test ! -s conftest.err'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; } &&
18221          { ac_try='test -s conftest$ac_exeext'
18222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223   (eval $ac_try) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; }; then
18227   eval "$as_ac_var=yes"
18228 else
18229   echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 eval "$as_ac_var=no"
18233 fi
18234 rm -f conftest.err conftest.$ac_objext \
18235       conftest$ac_exeext conftest.$ac_ext
18236 fi
18237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18239 if test `eval echo '${'$as_ac_var'}'` = yes; then
18240   cat >>confdefs.h <<_ACEOF
18241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18242 _ACEOF
18243
18244 fi
18245 done
18246
18247
18248
18249
18250
18251
18252 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18253 do
18254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18257 if eval "test \"\${$as_ac_var+set}\" = set"; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18268 #define $ac_func innocuous_$ac_func
18269
18270 /* System header to define __stub macros and hopefully few prototypes,
18271     which can conflict with char $ac_func (); below.
18272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273     <limits.h> exists even on freestanding compilers.  */
18274
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18280
18281 #undef $ac_func
18282
18283 /* Override any gcc2 internal prototype to avoid an error.  */
18284 #ifdef __cplusplus
18285 extern "C"
18286 {
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 $ac_func ();
18291 /* The GNU C library defines this for functions which it implements
18292     to always fail with ENOSYS.  Some functions are actually named
18293     something starting with __ and the normal name is an alias.  */
18294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18295 choke me
18296 #else
18297 char (*f) () = $ac_func;
18298 #endif
18299 #ifdef __cplusplus
18300 }
18301 #endif
18302
18303 int
18304 main ()
18305 {
18306 return f != $ac_func;
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313   (eval $ac_link) 2>conftest.er1
18314   ac_status=$?
18315   grep -v '^ *+' conftest.er1 >conftest.err
18316   rm -f conftest.er1
18317   cat conftest.err >&5
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } &&
18320          { ac_try='test -z "$ac_c_werror_flag"
18321                          || test ! -s conftest.err'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; } &&
18327          { ac_try='test -s conftest$ac_exeext'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; }; then
18333   eval "$as_ac_var=yes"
18334 else
18335   echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 eval "$as_ac_var=no"
18339 fi
18340 rm -f conftest.err conftest.$ac_objext \
18341       conftest$ac_exeext conftest.$ac_ext
18342 fi
18343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18345 if test `eval echo '${'$as_ac_var'}'` = yes; then
18346   cat >>confdefs.h <<_ACEOF
18347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18348 _ACEOF
18349
18350 fi
18351 done
18352
18353
18354 # If resolver functions are not in libc check for -lnsl or -lresolv.
18355 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18356 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18357 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18358   echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360   cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18368 #define gethostbyname_r innocuous_gethostbyname_r
18369
18370 /* System header to define __stub macros and hopefully few prototypes,
18371     which can conflict with char gethostbyname_r (); below.
18372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18373     <limits.h> exists even on freestanding compilers.  */
18374
18375 #ifdef __STDC__
18376 # include <limits.h>
18377 #else
18378 # include <assert.h>
18379 #endif
18380
18381 #undef gethostbyname_r
18382
18383 /* Override any gcc2 internal prototype to avoid an error.  */
18384 #ifdef __cplusplus
18385 extern "C"
18386 {
18387 #endif
18388 /* We use char because int might match the return type of a gcc2
18389    builtin and then its argument prototype would still apply.  */
18390 char gethostbyname_r ();
18391 /* The GNU C library defines this for functions which it implements
18392     to always fail with ENOSYS.  Some functions are actually named
18393     something starting with __ and the normal name is an alias.  */
18394 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18395 choke me
18396 #else
18397 char (*f) () = gethostbyname_r;
18398 #endif
18399 #ifdef __cplusplus
18400 }
18401 #endif
18402
18403 int
18404 main ()
18405 {
18406 return f != gethostbyname_r;
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413   (eval $ac_link) 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_c_werror_flag"
18421                          || test ! -s conftest.err'
18422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423   (eval $ac_try) 2>&5
18424   ac_status=$?
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); }; } &&
18427          { ac_try='test -s conftest$ac_exeext'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; }; then
18433   ac_cv_func_gethostbyname_r=yes
18434 else
18435   echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 ac_cv_func_gethostbyname_r=no
18439 fi
18440 rm -f conftest.err conftest.$ac_objext \
18441       conftest$ac_exeext conftest.$ac_ext
18442 fi
18443 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18444 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18445 if test $ac_cv_func_gethostbyname_r = yes; then
18446   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18447 echo "${ECHO_T}using libc's resolver" >&6
18448 else
18449
18450 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18451 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18452 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-lnsl  $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 /* Override any gcc2 internal prototype to avoid an error.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 /* We use char because int might match the return type of a gcc2
18469    builtin and then its argument prototype would still apply.  */
18470 char gethostbyname_r ();
18471 int
18472 main ()
18473 {
18474 gethostbyname_r ();
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481   (eval $ac_link) 2>conftest.er1
18482   ac_status=$?
18483   grep -v '^ *+' conftest.er1 >conftest.err
18484   rm -f conftest.er1
18485   cat conftest.err >&5
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } &&
18488          { ac_try='test -z "$ac_c_werror_flag"
18489                          || test ! -s conftest.err'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest$ac_exeext'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   ac_cv_lib_nsl_gethostbyname_r=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 ac_cv_lib_nsl_gethostbyname_r=no
18507 fi
18508 rm -f conftest.err conftest.$ac_objext \
18509       conftest$ac_exeext conftest.$ac_ext
18510 LIBS=$ac_check_lib_save_LIBS
18511 fi
18512 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18513 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18514 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18515   cat >>confdefs.h <<_ACEOF
18516 #define HAVE_LIBNSL 1
18517 _ACEOF
18518
18519   LIBS="-lnsl $LIBS"
18520
18521 fi
18522
18523
18524 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18525 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18526 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-lresolv  $LIBS"
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537
18538 /* Override any gcc2 internal prototype to avoid an error.  */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543    builtin and then its argument prototype would still apply.  */
18544 char gethostbyname_r ();
18545 int
18546 main ()
18547 {
18548 gethostbyname_r ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555   (eval $ac_link) 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag"
18563                          || test ! -s conftest.err'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest$ac_exeext'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; }; then
18575   ac_cv_lib_resolv_gethostbyname_r=yes
18576 else
18577   echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 ac_cv_lib_resolv_gethostbyname_r=no
18581 fi
18582 rm -f conftest.err conftest.$ac_objext \
18583       conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18587 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18588 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18589   cat >>confdefs.h <<_ACEOF
18590 #define HAVE_LIBRESOLV 1
18591 _ACEOF
18592
18593   LIBS="-lresolv $LIBS"
18594
18595 fi
18596
18597 fi
18598
18599
18600
18601
18602
18603 for ac_func in inet_pton
18604 do
18605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18606 echo "$as_me:$LINENO: checking for $ac_func" >&5
18607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18608 if eval "test \"\${$as_ac_var+set}\" = set"; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   cat >conftest.$ac_ext <<_ACEOF
18612 /* confdefs.h.  */
18613 _ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h.  */
18617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18619 #define $ac_func innocuous_$ac_func
18620
18621 /* System header to define __stub macros and hopefully few prototypes,
18622     which can conflict with char $ac_func (); below.
18623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18624     <limits.h> exists even on freestanding compilers.  */
18625
18626 #ifdef __STDC__
18627 # include <limits.h>
18628 #else
18629 # include <assert.h>
18630 #endif
18631
18632 #undef $ac_func
18633
18634 /* Override any gcc2 internal prototype to avoid an error.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 {
18638 #endif
18639 /* We use char because int might match the return type of a gcc2
18640    builtin and then its argument prototype would still apply.  */
18641 char $ac_func ();
18642 /* The GNU C library defines this for functions which it implements
18643     to always fail with ENOSYS.  Some functions are actually named
18644     something starting with __ and the normal name is an alias.  */
18645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18646 choke me
18647 #else
18648 char (*f) () = $ac_func;
18649 #endif
18650 #ifdef __cplusplus
18651 }
18652 #endif
18653
18654 int
18655 main ()
18656 {
18657 return f != $ac_func;
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664   (eval $ac_link) 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } &&
18671          { ac_try='test -z "$ac_c_werror_flag"
18672                          || test ! -s conftest.err'
18673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674   (eval $ac_try) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; } &&
18678          { ac_try='test -s conftest$ac_exeext'
18679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680   (eval $ac_try) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   eval "$as_ac_var=yes"
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 eval "$as_ac_var=no"
18690 fi
18691 rm -f conftest.err conftest.$ac_objext \
18692       conftest$ac_exeext conftest.$ac_ext
18693 fi
18694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18696 if test `eval echo '${'$as_ac_var'}'` = yes; then
18697   cat >>confdefs.h <<_ACEOF
18698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18699 _ACEOF
18700  cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_INET_PTON 1
18702 _ACEOF
18703
18704 fi
18705 done
18706
18707
18708 for ac_func in inet_ntop
18709 do
18710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18711 echo "$as_me:$LINENO: checking for $ac_func" >&5
18712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18713 if eval "test \"\${$as_ac_var+set}\" = set"; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18724 #define $ac_func innocuous_$ac_func
18725
18726 /* System header to define __stub macros and hopefully few prototypes,
18727     which can conflict with char $ac_func (); below.
18728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18729     <limits.h> exists even on freestanding compilers.  */
18730
18731 #ifdef __STDC__
18732 # include <limits.h>
18733 #else
18734 # include <assert.h>
18735 #endif
18736
18737 #undef $ac_func
18738
18739 /* Override any gcc2 internal prototype to avoid an error.  */
18740 #ifdef __cplusplus
18741 extern "C"
18742 {
18743 #endif
18744 /* We use char because int might match the return type of a gcc2
18745    builtin and then its argument prototype would still apply.  */
18746 char $ac_func ();
18747 /* The GNU C library defines this for functions which it implements
18748     to always fail with ENOSYS.  Some functions are actually named
18749     something starting with __ and the normal name is an alias.  */
18750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18751 choke me
18752 #else
18753 char (*f) () = $ac_func;
18754 #endif
18755 #ifdef __cplusplus
18756 }
18757 #endif
18758
18759 int
18760 main ()
18761 {
18762 return f != $ac_func;
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769   (eval $ac_link) 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } &&
18776          { ac_try='test -z "$ac_c_werror_flag"
18777                          || test ! -s conftest.err'
18778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779   (eval $ac_try) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; } &&
18783          { ac_try='test -s conftest$ac_exeext'
18784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785   (eval $ac_try) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; }; then
18789   eval "$as_ac_var=yes"
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 eval "$as_ac_var=no"
18795 fi
18796 rm -f conftest.err conftest.$ac_objext \
18797       conftest$ac_exeext conftest.$ac_ext
18798 fi
18799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802   cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18804 _ACEOF
18805  cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_INET_NTOP 1
18807 _ACEOF
18808
18809 fi
18810 done
18811
18812
18813 for ac_func in gethostbyname2
18814 do
18815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18816 echo "$as_me:$LINENO: checking for $ac_func" >&5
18817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18818 if eval "test \"\${$as_ac_var+set}\" = set"; then
18819   echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821   cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18829 #define $ac_func innocuous_$ac_func
18830
18831 /* System header to define __stub macros and hopefully few prototypes,
18832     which can conflict with char $ac_func (); below.
18833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18834     <limits.h> exists even on freestanding compilers.  */
18835
18836 #ifdef __STDC__
18837 # include <limits.h>
18838 #else
18839 # include <assert.h>
18840 #endif
18841
18842 #undef $ac_func
18843
18844 /* Override any gcc2 internal prototype to avoid an error.  */
18845 #ifdef __cplusplus
18846 extern "C"
18847 {
18848 #endif
18849 /* We use char because int might match the return type of a gcc2
18850    builtin and then its argument prototype would still apply.  */
18851 char $ac_func ();
18852 /* The GNU C library defines this for functions which it implements
18853     to always fail with ENOSYS.  Some functions are actually named
18854     something starting with __ and the normal name is an alias.  */
18855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18856 choke me
18857 #else
18858 char (*f) () = $ac_func;
18859 #endif
18860 #ifdef __cplusplus
18861 }
18862 #endif
18863
18864 int
18865 main ()
18866 {
18867 return f != $ac_func;
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   eval "$as_ac_var=yes"
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 eval "$as_ac_var=no"
18900 fi
18901 rm -f conftest.err conftest.$ac_objext \
18902       conftest$ac_exeext conftest.$ac_ext
18903 fi
18904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18906 if test `eval echo '${'$as_ac_var'}'` = yes; then
18907   cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 _ACEOF
18910  cat >>confdefs.h <<\_ACEOF
18911 #define HAVE_GETHOSTBYNAME2 1
18912 _ACEOF
18913
18914 fi
18915 done
18916
18917
18918 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18919 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18920 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929 #include <sys/socket.h>
18930 int
18931 main ()
18932 {
18933 struct sockaddr s; s.sa_len;
18934   ;
18935   return 0;
18936 }
18937 _ACEOF
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940   (eval $ac_compile) 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_c_werror_flag"
18948                          || test ! -s conftest.err'
18949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950   (eval $ac_try) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; } &&
18954          { ac_try='test -s conftest.$ac_objext'
18955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956   (eval $ac_try) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_cv_struct_sockaddr_sa_len=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_cv_struct_sockaddr_sa_len=no
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 fi
18969 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18970 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18971
18972  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18973
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE_SA_LEN 1
18976 _ACEOF
18977
18978  fi
18979
18980
18981 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18982 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18983 if test "${ac_cv_ipv6_support+set}" = set; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992  #include <sys/types.h>
18993 #include <sys/socket.h>
18994 #include <netinet/in.h>
18995 int
18996 main ()
18997 {
18998 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18999  0;
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006   (eval $ac_link) 2>conftest.er1
19007   ac_status=$?
19008   grep -v '^ *+' conftest.er1 >conftest.err
19009   rm -f conftest.er1
19010   cat conftest.err >&5
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } &&
19013          { ac_try='test -z "$ac_c_werror_flag"
19014                          || test ! -s conftest.err'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; } &&
19020          { ac_try='test -s conftest$ac_exeext'
19021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022   (eval $ac_try) 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; }; then
19026   ac_cv_ipv6_support=yes
19027 else
19028   echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_cv_ipv6_support=no
19032 fi
19033 rm -f conftest.err conftest.$ac_objext \
19034       conftest$ac_exeext conftest.$ac_ext
19035 fi
19036 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19037 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19038
19039 if test "$ac_cv_ipv6_support" = yes; then
19040
19041 cat >>confdefs.h <<\_ACEOF
19042 #define HAVE_IPV6 1
19043 _ACEOF
19044
19045 fi
19046
19047
19048
19049
19050 for ac_func in strftime
19051 do
19052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19053 echo "$as_me:$LINENO: checking for $ac_func" >&5
19054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19055 if eval "test \"\${$as_ac_var+set}\" = set"; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19066 #define $ac_func innocuous_$ac_func
19067
19068 /* System header to define __stub macros and hopefully few prototypes,
19069     which can conflict with char $ac_func (); below.
19070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071     <limits.h> exists even on freestanding compilers.  */
19072
19073 #ifdef __STDC__
19074 # include <limits.h>
19075 #else
19076 # include <assert.h>
19077 #endif
19078
19079 #undef $ac_func
19080
19081 /* Override any gcc2 internal prototype to avoid an error.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 {
19085 #endif
19086 /* We use char because int might match the return type of a gcc2
19087    builtin and then its argument prototype would still apply.  */
19088 char $ac_func ();
19089 /* The GNU C library defines this for functions which it implements
19090     to always fail with ENOSYS.  Some functions are actually named
19091     something starting with __ and the normal name is an alias.  */
19092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19093 choke me
19094 #else
19095 char (*f) () = $ac_func;
19096 #endif
19097 #ifdef __cplusplus
19098 }
19099 #endif
19100
19101 int
19102 main ()
19103 {
19104 return f != $ac_func;
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111   (eval $ac_link) 2>conftest.er1
19112   ac_status=$?
19113   grep -v '^ *+' conftest.er1 >conftest.err
19114   rm -f conftest.er1
19115   cat conftest.err >&5
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } &&
19118          { ac_try='test -z "$ac_c_werror_flag"
19119                          || test ! -s conftest.err'
19120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121   (eval $ac_try) 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; } &&
19125          { ac_try='test -s conftest$ac_exeext'
19126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127   (eval $ac_try) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; }; then
19131   eval "$as_ac_var=yes"
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 eval "$as_ac_var=no"
19137 fi
19138 rm -f conftest.err conftest.$ac_objext \
19139       conftest$ac_exeext conftest.$ac_ext
19140 fi
19141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19143 if test `eval echo '${'$as_ac_var'}'` = yes; then
19144   cat >>confdefs.h <<_ACEOF
19145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19146 _ACEOF
19147
19148 else
19149   # strftime is in -lintl on SCO UNIX.
19150 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19151 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19152 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lintl  $LIBS"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any gcc2 internal prototype to avoid an error.  */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 /* We use char because int might match the return type of a gcc2
19169    builtin and then its argument prototype would still apply.  */
19170 char strftime ();
19171 int
19172 main ()
19173 {
19174 strftime ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -z "$ac_c_werror_flag"
19189                          || test ! -s conftest.err'
19190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191   (eval $ac_try) 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; } &&
19195          { ac_try='test -s conftest$ac_exeext'
19196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197   (eval $ac_try) 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; }; then
19201   ac_cv_lib_intl_strftime=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_cv_lib_intl_strftime=no
19207 fi
19208 rm -f conftest.err conftest.$ac_objext \
19209       conftest$ac_exeext conftest.$ac_ext
19210 LIBS=$ac_check_lib_save_LIBS
19211 fi
19212 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19213 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19214 if test $ac_cv_lib_intl_strftime = yes; then
19215   cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_STRFTIME 1
19217 _ACEOF
19218
19219 LIBS="-lintl $LIBS"
19220 fi
19221
19222 fi
19223 done
19224
19225
19226 for ac_func in vprintf
19227 do
19228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19229 echo "$as_me:$LINENO: checking for $ac_func" >&5
19230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19231 if eval "test \"\${$as_ac_var+set}\" = set"; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19242 #define $ac_func innocuous_$ac_func
19243
19244 /* System header to define __stub macros and hopefully few prototypes,
19245     which can conflict with char $ac_func (); below.
19246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19247     <limits.h> exists even on freestanding compilers.  */
19248
19249 #ifdef __STDC__
19250 # include <limits.h>
19251 #else
19252 # include <assert.h>
19253 #endif
19254
19255 #undef $ac_func
19256
19257 /* Override any gcc2 internal prototype to avoid an error.  */
19258 #ifdef __cplusplus
19259 extern "C"
19260 {
19261 #endif
19262 /* We use char because int might match the return type of a gcc2
19263    builtin and then its argument prototype would still apply.  */
19264 char $ac_func ();
19265 /* The GNU C library defines this for functions which it implements
19266     to always fail with ENOSYS.  Some functions are actually named
19267     something starting with __ and the normal name is an alias.  */
19268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19269 choke me
19270 #else
19271 char (*f) () = $ac_func;
19272 #endif
19273 #ifdef __cplusplus
19274 }
19275 #endif
19276
19277 int
19278 main ()
19279 {
19280 return f != $ac_func;
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19287   (eval $ac_link) 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } &&
19294          { ac_try='test -z "$ac_c_werror_flag"
19295                          || test ! -s conftest.err'
19296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297   (eval $ac_try) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; } &&
19301          { ac_try='test -s conftest$ac_exeext'
19302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303   (eval $ac_try) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307   eval "$as_ac_var=yes"
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 eval "$as_ac_var=no"
19313 fi
19314 rm -f conftest.err conftest.$ac_objext \
19315       conftest$ac_exeext conftest.$ac_ext
19316 fi
19317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19319 if test `eval echo '${'$as_ac_var'}'` = yes; then
19320   cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 echo "$as_me:$LINENO: checking for _doprnt" >&5
19325 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19326 if test "${ac_cv_func__doprnt+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19337 #define _doprnt innocuous__doprnt
19338
19339 /* System header to define __stub macros and hopefully few prototypes,
19340     which can conflict with char _doprnt (); below.
19341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19342     <limits.h> exists even on freestanding compilers.  */
19343
19344 #ifdef __STDC__
19345 # include <limits.h>
19346 #else
19347 # include <assert.h>
19348 #endif
19349
19350 #undef _doprnt
19351
19352 /* Override any gcc2 internal prototype to avoid an error.  */
19353 #ifdef __cplusplus
19354 extern "C"
19355 {
19356 #endif
19357 /* We use char because int might match the return type of a gcc2
19358    builtin and then its argument prototype would still apply.  */
19359 char _doprnt ();
19360 /* The GNU C library defines this for functions which it implements
19361     to always fail with ENOSYS.  Some functions are actually named
19362     something starting with __ and the normal name is an alias.  */
19363 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19364 choke me
19365 #else
19366 char (*f) () = _doprnt;
19367 #endif
19368 #ifdef __cplusplus
19369 }
19370 #endif
19371
19372 int
19373 main ()
19374 {
19375 return f != _doprnt;
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382   (eval $ac_link) 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_c_werror_flag"
19390                          || test ! -s conftest.err'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; } &&
19396          { ac_try='test -s conftest$ac_exeext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   ac_cv_func__doprnt=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ac_cv_func__doprnt=no
19408 fi
19409 rm -f conftest.err conftest.$ac_objext \
19410       conftest$ac_exeext conftest.$ac_ext
19411 fi
19412 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19413 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19414 if test $ac_cv_func__doprnt = yes; then
19415
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE_DOPRNT 1
19418 _ACEOF
19419
19420 fi
19421
19422 fi
19423 done
19424
19425
19426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19427 # for constant arguments.  Useless!
19428 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19429 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19430 if test "${ac_cv_working_alloca_h+set}" = set; then
19431   echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433   cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 #include <alloca.h>
19440 int
19441 main ()
19442 {
19443 char *p = (char *) alloca (2 * sizeof (int));
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450   (eval $ac_link) 2>conftest.er1
19451   ac_status=$?
19452   grep -v '^ *+' conftest.er1 >conftest.err
19453   rm -f conftest.er1
19454   cat conftest.err >&5
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); } &&
19457          { ac_try='test -z "$ac_c_werror_flag"
19458                          || test ! -s conftest.err'
19459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460   (eval $ac_try) 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; } &&
19464          { ac_try='test -s conftest$ac_exeext'
19465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466   (eval $ac_try) 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); }; }; then
19470   ac_cv_working_alloca_h=yes
19471 else
19472   echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475 ac_cv_working_alloca_h=no
19476 fi
19477 rm -f conftest.err conftest.$ac_objext \
19478       conftest$ac_exeext conftest.$ac_ext
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19481 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19482 if test $ac_cv_working_alloca_h = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_ALLOCA_H 1
19486 _ACEOF
19487
19488 fi
19489
19490 echo "$as_me:$LINENO: checking for alloca" >&5
19491 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19492 if test "${ac_cv_func_alloca_works+set}" = set; then
19493   echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495   cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h.  */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h.  */
19501 #ifdef __GNUC__
19502 # define alloca __builtin_alloca
19503 #else
19504 # ifdef _MSC_VER
19505 #  include <malloc.h>
19506 #  define alloca _alloca
19507 # else
19508 #  if HAVE_ALLOCA_H
19509 #   include <alloca.h>
19510 #  else
19511 #   ifdef _AIX
19512  #pragma alloca
19513 #   else
19514 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19515 char *alloca ();
19516 #    endif
19517 #   endif
19518 #  endif
19519 # endif
19520 #endif
19521
19522 int
19523 main ()
19524 {
19525 char *p = (char *) alloca (1);
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19532   (eval $ac_link) 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } &&
19539          { ac_try='test -z "$ac_c_werror_flag"
19540                          || test ! -s conftest.err'
19541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542   (eval $ac_try) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; } &&
19546          { ac_try='test -s conftest$ac_exeext'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; }; then
19552   ac_cv_func_alloca_works=yes
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ac_cv_func_alloca_works=no
19558 fi
19559 rm -f conftest.err conftest.$ac_objext \
19560       conftest$ac_exeext conftest.$ac_ext
19561 fi
19562 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19563 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19564
19565 if test $ac_cv_func_alloca_works = yes; then
19566
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_ALLOCA 1
19569 _ACEOF
19570
19571 else
19572   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19573 # that cause trouble.  Some versions do not even contain alloca or
19574 # contain a buggy version.  If you still want to use their alloca,
19575 # use ar to extract alloca.o from them instead of compiling alloca.c.
19576
19577 ALLOCA=alloca.$ac_objext
19578
19579 cat >>confdefs.h <<\_ACEOF
19580 #define C_ALLOCA 1
19581 _ACEOF
19582
19583
19584 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19585 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19586 if test "${ac_cv_os_cray+set}" = set; then
19587   echo $ECHO_N "(cached) $ECHO_C" >&6
19588 else
19589   cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #if defined(CRAY) && ! defined(CRAY2)
19596 webecray
19597 #else
19598 wenotbecray
19599 #endif
19600
19601 _ACEOF
19602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19603   $EGREP "webecray" >/dev/null 2>&1; then
19604   ac_cv_os_cray=yes
19605 else
19606   ac_cv_os_cray=no
19607 fi
19608 rm -f conftest*
19609
19610 fi
19611 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19612 echo "${ECHO_T}$ac_cv_os_cray" >&6
19613 if test $ac_cv_os_cray = yes; then
19614   for ac_func in _getb67 GETB67 getb67; do
19615     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19616 echo "$as_me:$LINENO: checking for $ac_func" >&5
19617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19618 if eval "test \"\${$as_ac_var+set}\" = set"; then
19619   echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621   cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19629 #define $ac_func innocuous_$ac_func
19630
19631 /* System header to define __stub macros and hopefully few prototypes,
19632     which can conflict with char $ac_func (); below.
19633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19634     <limits.h> exists even on freestanding compilers.  */
19635
19636 #ifdef __STDC__
19637 # include <limits.h>
19638 #else
19639 # include <assert.h>
19640 #endif
19641
19642 #undef $ac_func
19643
19644 /* Override any gcc2 internal prototype to avoid an error.  */
19645 #ifdef __cplusplus
19646 extern "C"
19647 {
19648 #endif
19649 /* We use char because int might match the return type of a gcc2
19650    builtin and then its argument prototype would still apply.  */
19651 char $ac_func ();
19652 /* The GNU C library defines this for functions which it implements
19653     to always fail with ENOSYS.  Some functions are actually named
19654     something starting with __ and the normal name is an alias.  */
19655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19656 choke me
19657 #else
19658 char (*f) () = $ac_func;
19659 #endif
19660 #ifdef __cplusplus
19661 }
19662 #endif
19663
19664 int
19665 main ()
19666 {
19667 return f != $ac_func;
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674   (eval $ac_link) 2>conftest.er1
19675   ac_status=$?
19676   grep -v '^ *+' conftest.er1 >conftest.err
19677   rm -f conftest.er1
19678   cat conftest.err >&5
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); } &&
19681          { ac_try='test -z "$ac_c_werror_flag"
19682                          || test ! -s conftest.err'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; } &&
19688          { ac_try='test -s conftest$ac_exeext'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   eval "$as_ac_var=yes"
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 eval "$as_ac_var=no"
19700 fi
19701 rm -f conftest.err conftest.$ac_objext \
19702       conftest$ac_exeext conftest.$ac_ext
19703 fi
19704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19706 if test `eval echo '${'$as_ac_var'}'` = yes; then
19707
19708 cat >>confdefs.h <<_ACEOF
19709 #define CRAY_STACKSEG_END $ac_func
19710 _ACEOF
19711
19712     break
19713 fi
19714
19715   done
19716 fi
19717
19718 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19719 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19720 if test "${ac_cv_c_stack_direction+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723   if test "$cross_compiling" = yes; then
19724   ac_cv_c_stack_direction=0
19725 else
19726   cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h.  */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h.  */
19732 int
19733 find_stack_direction ()
19734 {
19735   static char *addr = 0;
19736   auto char dummy;
19737   if (addr == 0)
19738     {
19739       addr = &dummy;
19740       return find_stack_direction ();
19741     }
19742   else
19743     return (&dummy > addr) ? 1 : -1;
19744 }
19745
19746 int
19747 main ()
19748 {
19749   exit (find_stack_direction () < 0);
19750 }
19751 _ACEOF
19752 rm -f conftest$ac_exeext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754   (eval $ac_link) 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759   (eval $ac_try) 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; }; then
19763   ac_cv_c_stack_direction=1
19764 else
19765   echo "$as_me: program exited with status $ac_status" >&5
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769 ( exit $ac_status )
19770 ac_cv_c_stack_direction=-1
19771 fi
19772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19773 fi
19774 fi
19775 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19776 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19777
19778 cat >>confdefs.h <<_ACEOF
19779 #define STACK_DIRECTION $ac_cv_c_stack_direction
19780 _ACEOF
19781
19782
19783 fi
19784
19785 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19786 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19787 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19788 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19789   echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791   ac_check_lib_save_LIBS=$LIBS
19792 LIBS="-lsun  $LIBS"
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799
19800 /* Override any gcc2 internal prototype to avoid an error.  */
19801 #ifdef __cplusplus
19802 extern "C"
19803 #endif
19804 /* We use char because int might match the return type of a gcc2
19805    builtin and then its argument prototype would still apply.  */
19806 char getmntent ();
19807 int
19808 main ()
19809 {
19810 getmntent ();
19811   ;
19812   return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext conftest$ac_exeext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817   (eval $ac_link) 2>conftest.er1
19818   ac_status=$?
19819   grep -v '^ *+' conftest.er1 >conftest.err
19820   rm -f conftest.er1
19821   cat conftest.err >&5
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } &&
19824          { ac_try='test -z "$ac_c_werror_flag"
19825                          || test ! -s conftest.err'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; } &&
19831          { ac_try='test -s conftest$ac_exeext'
19832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833   (eval $ac_try) 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); }; }; then
19837   ac_cv_lib_sun_getmntent=yes
19838 else
19839   echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19841
19842 ac_cv_lib_sun_getmntent=no
19843 fi
19844 rm -f conftest.err conftest.$ac_objext \
19845       conftest$ac_exeext conftest.$ac_ext
19846 LIBS=$ac_check_lib_save_LIBS
19847 fi
19848 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19849 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19850 if test $ac_cv_lib_sun_getmntent = yes; then
19851   LIBS="-lsun $LIBS"
19852 else
19853   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19854 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19855 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   ac_check_lib_save_LIBS=$LIBS
19859 LIBS="-lseq  $LIBS"
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866
19867 /* Override any gcc2 internal prototype to avoid an error.  */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 /* We use char because int might match the return type of a gcc2
19872    builtin and then its argument prototype would still apply.  */
19873 char getmntent ();
19874 int
19875 main ()
19876 {
19877 getmntent ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884   (eval $ac_link) 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } &&
19891          { ac_try='test -z "$ac_c_werror_flag"
19892                          || test ! -s conftest.err'
19893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894   (eval $ac_try) 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; } &&
19898          { ac_try='test -s conftest$ac_exeext'
19899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900   (eval $ac_try) 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; }; then
19904   ac_cv_lib_seq_getmntent=yes
19905 else
19906   echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ac_cv_lib_seq_getmntent=no
19910 fi
19911 rm -f conftest.err conftest.$ac_objext \
19912       conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19914 fi
19915 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19916 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19917 if test $ac_cv_lib_seq_getmntent = yes; then
19918   LIBS="-lseq $LIBS"
19919 else
19920   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19921 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19922 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lgen  $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 /* Override any gcc2 internal prototype to avoid an error.  */
19935 #ifdef __cplusplus
19936 extern "C"
19937 #endif
19938 /* We use char because int might match the return type of a gcc2
19939    builtin and then its argument prototype would still apply.  */
19940 char getmntent ();
19941 int
19942 main ()
19943 {
19944 getmntent ();
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19951   (eval $ac_link) 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -z "$ac_c_werror_flag"
19959                          || test ! -s conftest.err'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest$ac_exeext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_cv_lib_gen_getmntent=yes
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_cv_lib_gen_getmntent=no
19977 fi
19978 rm -f conftest.err conftest.$ac_objext \
19979       conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19981 fi
19982 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19983 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19984 if test $ac_cv_lib_gen_getmntent = yes; then
19985   LIBS="-lgen $LIBS"
19986 fi
19987
19988 fi
19989
19990 fi
19991
19992
19993 for ac_func in getmntent
19994 do
19995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19996 echo "$as_me:$LINENO: checking for $ac_func" >&5
19997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19998 if eval "test \"\${$as_ac_var+set}\" = set"; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20009 #define $ac_func innocuous_$ac_func
20010
20011 /* System header to define __stub macros and hopefully few prototypes,
20012     which can conflict with char $ac_func (); below.
20013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20014     <limits.h> exists even on freestanding compilers.  */
20015
20016 #ifdef __STDC__
20017 # include <limits.h>
20018 #else
20019 # include <assert.h>
20020 #endif
20021
20022 #undef $ac_func
20023
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 {
20028 #endif
20029 /* We use char because int might match the return type of a gcc2
20030    builtin and then its argument prototype would still apply.  */
20031 char $ac_func ();
20032 /* The GNU C library defines this for functions which it implements
20033     to always fail with ENOSYS.  Some functions are actually named
20034     something starting with __ and the normal name is an alias.  */
20035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20036 choke me
20037 #else
20038 char (*f) () = $ac_func;
20039 #endif
20040 #ifdef __cplusplus
20041 }
20042 #endif
20043
20044 int
20045 main ()
20046 {
20047 return f != $ac_func;
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054   (eval $ac_link) 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -z "$ac_c_werror_flag"
20062                          || test ! -s conftest.err'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest$ac_exeext'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   eval "$as_ac_var=yes"
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 eval "$as_ac_var=no"
20080 fi
20081 rm -f conftest.err conftest.$ac_objext \
20082       conftest$ac_exeext conftest.$ac_ext
20083 fi
20084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20086 if test `eval echo '${'$as_ac_var'}'` = yes; then
20087   cat >>confdefs.h <<_ACEOF
20088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20089 _ACEOF
20090
20091 fi
20092 done
20093
20094
20095 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20096 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20097 if test "${ac_cv_func_closedir_void+set}" = set; then
20098   echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100   if test "$cross_compiling" = yes; then
20101   ac_cv_func_closedir_void=yes
20102 else
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 $ac_includes_default
20110 #include <$ac_header_dirent>
20111 #ifndef __cplusplus
20112 int closedir ();
20113 #endif
20114
20115 int
20116 main ()
20117 {
20118 exit (closedir (opendir (".")) != 0);
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest$ac_exeext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125   (eval $ac_link) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130   (eval $ac_try) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); }; }; then
20134   ac_cv_func_closedir_void=no
20135 else
20136   echo "$as_me: program exited with status $ac_status" >&5
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ( exit $ac_status )
20141 ac_cv_func_closedir_void=yes
20142 fi
20143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20144 fi
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20147 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20148 if test $ac_cv_func_closedir_void = yes; then
20149
20150 cat >>confdefs.h <<\_ACEOF
20151 #define CLOSEDIR_VOID 1
20152 _ACEOF
20153
20154 fi
20155
20156 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20157 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20158 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   if test "$cross_compiling" = yes; then
20162   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20163 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20164    { (exit 1); exit 1; }; }
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 #if HAVE_UNISTD_H
20173 # include <unistd.h>
20174 #endif
20175
20176 int
20177 main ()
20178 {
20179 /* If this system has a BSD-style setpgrp which takes arguments,
20180   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20181   exit successfully. */
20182   exit (setpgrp (1,1) == -1 ? 0 : 1);
20183   ;
20184   return 0;
20185 }
20186 _ACEOF
20187 rm -f conftest$ac_exeext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20189   (eval $ac_link) 2>&5
20190   ac_status=$?
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; }; then
20198   ac_cv_func_setpgrp_void=no
20199 else
20200   echo "$as_me: program exited with status $ac_status" >&5
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 ( exit $ac_status )
20205 ac_cv_func_setpgrp_void=yes
20206 fi
20207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20208 fi
20209 fi
20210 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20211 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20212 if test $ac_cv_func_setpgrp_void = yes; then
20213
20214 cat >>confdefs.h <<\_ACEOF
20215 #define SETPGRP_VOID 1
20216 _ACEOF
20217
20218 fi
20219                       # AC_FUNC_FNMATCH    dnl use local version
20220
20221
20222 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20223 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20224 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20225   echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227   ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lxpg4  $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235
20236 /* Override any gcc2 internal prototype to avoid an error.  */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 /* We use char because int might match the return type of a gcc2
20241    builtin and then its argument prototype would still apply.  */
20242 char setlocale ();
20243 int
20244 main ()
20245 {
20246 setlocale ();
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253   (eval $ac_link) 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -z "$ac_c_werror_flag"
20261                          || test ! -s conftest.err'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; } &&
20267          { ac_try='test -s conftest$ac_exeext'
20268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269   (eval $ac_try) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; }; then
20273   ac_cv_lib_xpg4_setlocale=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 ac_cv_lib_xpg4_setlocale=no
20279 fi
20280 rm -f conftest.err conftest.$ac_objext \
20281       conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20283 fi
20284 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20285 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20286 if test $ac_cv_lib_xpg4_setlocale = yes; then
20287   LIBS="$LIBS -lxpg4"
20288 fi
20289
20290
20291
20292
20293 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20294 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20295 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   ac_check_lib_save_LIBS=$LIBS
20299 LIBS="-lsun  $LIBS"
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306
20307 /* Override any gcc2 internal prototype to avoid an error.  */
20308 #ifdef __cplusplus
20309 extern "C"
20310 #endif
20311 /* We use char because int might match the return type of a gcc2
20312    builtin and then its argument prototype would still apply.  */
20313 char getpwnam ();
20314 int
20315 main ()
20316 {
20317 getpwnam ();
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324   (eval $ac_link) 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } &&
20331          { ac_try='test -z "$ac_c_werror_flag"
20332                          || test ! -s conftest.err'
20333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334   (eval $ac_try) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; } &&
20338          { ac_try='test -s conftest$ac_exeext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_cv_lib_sun_getpwnam=yes
20345 else
20346   echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 ac_cv_lib_sun_getpwnam=no
20350 fi
20351 rm -f conftest.err conftest.$ac_objext \
20352       conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20354 fi
20355 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20356 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20357 if test $ac_cv_lib_sun_getpwnam = yes; then
20358   cat >>confdefs.h <<_ACEOF
20359 #define HAVE_LIBSUN 1
20360 _ACEOF
20361
20362   LIBS="-lsun $LIBS"
20363
20364 fi
20365
20366
20367
20368 for ac_header in zlib.h
20369 do
20370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20372   echo "$as_me:$LINENO: checking for $ac_header" >&5
20373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 fi
20377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20379 else
20380   # Is the header compilable?
20381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389 $ac_includes_default
20390 #include <$ac_header>
20391 _ACEOF
20392 rm -f conftest.$ac_objext
20393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394   (eval $ac_compile) 2>conftest.er1
20395   ac_status=$?
20396   grep -v '^ *+' conftest.er1 >conftest.err
20397   rm -f conftest.er1
20398   cat conftest.err >&5
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); } &&
20401          { ac_try='test -z "$ac_c_werror_flag"
20402                          || test ! -s conftest.err'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; } &&
20408          { ac_try='test -s conftest.$ac_objext'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_header_compiler=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_header_compiler=no
20420 fi
20421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20423 echo "${ECHO_T}$ac_header_compiler" >&6
20424
20425 # Is the header present?
20426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434 #include <$ac_header>
20435 _ACEOF
20436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } >/dev/null; then
20444   if test -s conftest.err; then
20445     ac_cpp_err=$ac_c_preproc_warn_flag
20446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20447   else
20448     ac_cpp_err=
20449   fi
20450 else
20451   ac_cpp_err=yes
20452 fi
20453 if test -z "$ac_cpp_err"; then
20454   ac_header_preproc=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459   ac_header_preproc=no
20460 fi
20461 rm -f conftest.err conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20463 echo "${ECHO_T}$ac_header_preproc" >&6
20464
20465 # So?  What about this header?
20466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20467   yes:no: )
20468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20472     ac_header_preproc=yes
20473     ;;
20474   no:yes:* )
20475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20487     (
20488       cat <<\_ASBOX
20489 ## ------------------------------------------ ##
20490 ## Report this to the AC_PACKAGE_NAME lists.  ##
20491 ## ------------------------------------------ ##
20492 _ASBOX
20493     ) |
20494       sed "s/^/$as_me: WARNING:     /" >&2
20495     ;;
20496 esac
20497 echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502   eval "$as_ac_Header=\$ac_header_preproc"
20503 fi
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20506
20507 fi
20508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20509   cat >>confdefs.h <<_ACEOF
20510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20511 _ACEOF
20512
20513 fi
20514
20515 done
20516
20517 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20518 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20519 if test "${ac_cv_lib_z_deflate+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   ac_check_lib_save_LIBS=$LIBS
20523 LIBS="-lz  $LIBS"
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530
20531 /* Override any gcc2 internal prototype to avoid an error.  */
20532 #ifdef __cplusplus
20533 extern "C"
20534 #endif
20535 /* We use char because int might match the return type of a gcc2
20536    builtin and then its argument prototype would still apply.  */
20537 char deflate ();
20538 int
20539 main ()
20540 {
20541 deflate ();
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20548   (eval $ac_link) 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } &&
20555          { ac_try='test -z "$ac_c_werror_flag"
20556                          || test ! -s conftest.err'
20557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558   (eval $ac_try) 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); }; } &&
20562          { ac_try='test -s conftest$ac_exeext'
20563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564   (eval $ac_try) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; }; then
20568   ac_cv_lib_z_deflate=yes
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_cv_lib_z_deflate=no
20574 fi
20575 rm -f conftest.err conftest.$ac_objext \
20576       conftest$ac_exeext conftest.$ac_ext
20577 LIBS=$ac_check_lib_save_LIBS
20578 fi
20579 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20580 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20581 if test $ac_cv_lib_z_deflate = yes; then
20582   FDLIBS="-lz"
20583 fi
20584
20585 have_zlib=no
20586 if test x$FDLIBS = x-lz; then
20587   cat >>confdefs.h <<\_ACEOF
20588 #define HAVE_LIBZ 1
20589 _ACEOF
20590
20591   have_zlib=yes
20592 fi
20593
20594 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20595   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20596 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20597 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 fi
20600 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20601 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20602 else
20603   # Is the header compilable?
20604 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20605 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 $ac_includes_default
20613 #include <sys/acl.h>
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617   (eval $ac_compile) 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -z "$ac_c_werror_flag"
20625                          || test ! -s conftest.err'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; } &&
20631          { ac_try='test -s conftest.$ac_objext'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; }; then
20637   ac_header_compiler=yes
20638 else
20639   echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 ac_header_compiler=no
20643 fi
20644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646 echo "${ECHO_T}$ac_header_compiler" >&6
20647
20648 # Is the header present?
20649 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20650 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <sys/acl.h>
20658 _ACEOF
20659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20661   ac_status=$?
20662   grep -v '^ *+' conftest.er1 >conftest.err
20663   rm -f conftest.er1
20664   cat conftest.err >&5
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); } >/dev/null; then
20667   if test -s conftest.err; then
20668     ac_cpp_err=$ac_c_preproc_warn_flag
20669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20670   else
20671     ac_cpp_err=
20672   fi
20673 else
20674   ac_cpp_err=yes
20675 fi
20676 if test -z "$ac_cpp_err"; then
20677   ac_header_preproc=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682   ac_header_preproc=no
20683 fi
20684 rm -f conftest.err conftest.$ac_ext
20685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20686 echo "${ECHO_T}$ac_header_preproc" >&6
20687
20688 # So?  What about this header?
20689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690   yes:no: )
20691     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20692 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20693     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20694 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20695     ac_header_preproc=yes
20696     ;;
20697   no:yes:* )
20698     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20699 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20700     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20701 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20703 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20705 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20706     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20708     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20709 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20710     (
20711       cat <<\_ASBOX
20712 ## ------------------------------------------ ##
20713 ## Report this to the AC_PACKAGE_NAME lists.  ##
20714 ## ------------------------------------------ ##
20715 _ASBOX
20716     ) |
20717       sed "s/^/$as_me: WARNING:     /" >&2
20718     ;;
20719 esac
20720 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20721 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20722 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20723   echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725   ac_cv_header_sys_acl_h=$ac_header_preproc
20726 fi
20727 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20728 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20729
20730 fi
20731
20732
20733 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20734 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20735 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   ac_check_lib_save_LIBS=$LIBS
20739 LIBS="-lacl  $LIBS"
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746
20747 /* Override any gcc2 internal prototype to avoid an error.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 /* We use char because int might match the return type of a gcc2
20752    builtin and then its argument prototype would still apply.  */
20753 char acl_get_file ();
20754 int
20755 main ()
20756 {
20757 acl_get_file ();
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764   (eval $ac_link) 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } &&
20771          { ac_try='test -z "$ac_c_werror_flag"
20772                          || test ! -s conftest.err'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; } &&
20778          { ac_try='test -s conftest$ac_exeext'
20779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780   (eval $ac_try) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   ac_cv_lib_acl_acl_get_file=yes
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_cv_lib_acl_acl_get_file=no
20790 fi
20791 rm -f conftest.err conftest.$ac_objext \
20792       conftest$ac_exeext conftest.$ac_ext
20793 LIBS=$ac_check_lib_save_LIBS
20794 fi
20795 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20796 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20797 if test $ac_cv_lib_acl_acl_get_file = yes; then
20798   FDLIBS="-lacl $FDLIBS"
20799 fi
20800
20801 have_acl=no
20802 if test $ac_cv_lib_acl_acl_get_file = yes; then
20803    cat >>confdefs.h <<\_ACEOF
20804 #define HAVE_ACL 1
20805 _ACEOF
20806
20807    have_acl=yes
20808 fi
20809
20810 PTHREAD_LIB=""
20811 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20812 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20813 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lpthread  $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824
20825 /* Override any gcc2 internal prototype to avoid an error.  */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 /* We use char because int might match the return type of a gcc2
20830    builtin and then its argument prototype would still apply.  */
20831 char pthread_create ();
20832 int
20833 main ()
20834 {
20835 pthread_create ();
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842   (eval $ac_link) 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } &&
20849          { ac_try='test -z "$ac_c_werror_flag"
20850                          || test ! -s conftest.err'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; } &&
20856          { ac_try='test -s conftest$ac_exeext'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   ac_cv_lib_pthread_pthread_create=yes
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_lib_pthread_pthread_create=no
20868 fi
20869 rm -f conftest.err conftest.$ac_objext \
20870       conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20872 fi
20873 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20874 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20875 if test $ac_cv_lib_pthread_pthread_create = yes; then
20876   PTHREAD_LIB="-lpthread"
20877 else
20878   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20879 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20880 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20881   echo $ECHO_N "(cached) $ECHO_C" >&6
20882 else
20883   ac_check_lib_save_LIBS=$LIBS
20884 LIBS="-lpthreads  $LIBS"
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891
20892 /* Override any gcc2 internal prototype to avoid an error.  */
20893 #ifdef __cplusplus
20894 extern "C"
20895 #endif
20896 /* We use char because int might match the return type of a gcc2
20897    builtin and then its argument prototype would still apply.  */
20898 char pthread_create ();
20899 int
20900 main ()
20901 {
20902 pthread_create ();
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext conftest$ac_exeext
20908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20909   (eval $ac_link) 2>conftest.er1
20910   ac_status=$?
20911   grep -v '^ *+' conftest.er1 >conftest.err
20912   rm -f conftest.er1
20913   cat conftest.err >&5
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); } &&
20916          { ac_try='test -z "$ac_c_werror_flag"
20917                          || test ! -s conftest.err'
20918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919   (eval $ac_try) 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); }; } &&
20923          { ac_try='test -s conftest$ac_exeext'
20924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925   (eval $ac_try) 2>&5
20926   ac_status=$?
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; }; then
20929   ac_cv_lib_pthreads_pthread_create=yes
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 ac_cv_lib_pthreads_pthread_create=no
20935 fi
20936 rm -f conftest.err conftest.$ac_objext \
20937       conftest$ac_exeext conftest.$ac_ext
20938 LIBS=$ac_check_lib_save_LIBS
20939 fi
20940 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20941 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20942 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20943   PTHREAD_LIB="-lpthreads"
20944 else
20945   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20946 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20947 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20948   echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950   ac_check_lib_save_LIBS=$LIBS
20951 LIBS="-lc_r  $LIBS"
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958
20959 /* Override any gcc2 internal prototype to avoid an error.  */
20960 #ifdef __cplusplus
20961 extern "C"
20962 #endif
20963 /* We use char because int might match the return type of a gcc2
20964    builtin and then its argument prototype would still apply.  */
20965 char pthread_create ();
20966 int
20967 main ()
20968 {
20969 pthread_create ();
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20976   (eval $ac_link) 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } &&
20983          { ac_try='test -z "$ac_c_werror_flag"
20984                          || test ! -s conftest.err'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; } &&
20990          { ac_try='test -s conftest$ac_exeext'
20991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992   (eval $ac_try) 2>&5
20993   ac_status=$?
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); }; }; then
20996   ac_cv_lib_c_r_pthread_create=yes
20997 else
20998   echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ac_cv_lib_c_r_pthread_create=no
21002 fi
21003 rm -f conftest.err conftest.$ac_objext \
21004       conftest$ac_exeext conftest.$ac_ext
21005 LIBS=$ac_check_lib_save_LIBS
21006 fi
21007 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21008 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21009 if test $ac_cv_lib_c_r_pthread_create = yes; then
21010   PTHREAD_LIB="-lc_r"
21011 else
21012   echo "$as_me:$LINENO: checking for pthread_create" >&5
21013 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21014 if test "${ac_cv_func_pthread_create+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h.  */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h.  */
21023 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21025 #define pthread_create innocuous_pthread_create
21026
21027 /* System header to define __stub macros and hopefully few prototypes,
21028     which can conflict with char pthread_create (); below.
21029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21030     <limits.h> exists even on freestanding compilers.  */
21031
21032 #ifdef __STDC__
21033 # include <limits.h>
21034 #else
21035 # include <assert.h>
21036 #endif
21037
21038 #undef pthread_create
21039
21040 /* Override any gcc2 internal prototype to avoid an error.  */
21041 #ifdef __cplusplus
21042 extern "C"
21043 {
21044 #endif
21045 /* We use char because int might match the return type of a gcc2
21046    builtin and then its argument prototype would still apply.  */
21047 char pthread_create ();
21048 /* The GNU C library defines this for functions which it implements
21049     to always fail with ENOSYS.  Some functions are actually named
21050     something starting with __ and the normal name is an alias.  */
21051 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21052 choke me
21053 #else
21054 char (*f) () = pthread_create;
21055 #endif
21056 #ifdef __cplusplus
21057 }
21058 #endif
21059
21060 int
21061 main ()
21062 {
21063 return f != pthread_create;
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070   (eval $ac_link) 2>conftest.er1
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
21074   cat conftest.err >&5
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); } &&
21077          { ac_try='test -z "$ac_c_werror_flag"
21078                          || test ! -s conftest.err'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; } &&
21084          { ac_try='test -s conftest$ac_exeext'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_func_pthread_create=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_func_pthread_create=no
21096 fi
21097 rm -f conftest.err conftest.$ac_objext \
21098       conftest$ac_exeext conftest.$ac_ext
21099 fi
21100 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21101 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21102
21103
21104 fi
21105
21106
21107 fi
21108
21109
21110 fi
21111
21112
21113
21114 cat >>confdefs.h <<\_ACEOF
21115 #define FDLIBS 1
21116 _ACEOF
21117
21118
21119
21120 CFLAGS=${CFLAGS--O}
21121 LDFLAGS=${LDFLAGS--O}
21122 DB_LIBS="${SQL_LFLAGS}"
21123
21124 CPPFLAGS="$CPPFLAGS"
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139 OBJLIST=
21140
21141
21142 lld="lld"
21143 llu="llu"
21144
21145 WCFLAGS=
21146 WLDFLAGS=
21147
21148 #
21149 # Finally we set appropriate distribution specific
21150 #  variables and defaults
21151 #
21152 # PFILES are platform specific files
21153 PFILES="platforms/Makefile"
21154 PSCMD="ps -e"
21155 WIN32=
21156 MACOSX=
21157 hostname=`uname -n | cut -d '.' -f 1`
21158 case "$DISTNAME" in
21159 aix)
21160         DISTVER=`uname -r`
21161         PSCMD="ps -e -o pid,comm"
21162         PFILES="${PFILES} \
21163            platforms/aix/Makefile"
21164         TAPEDRIVE="/dev/rmt0.1"
21165   ;;
21166 alpha)
21167         DISTVER=`uname -r`
21168         PTHREAD_LIB="-lpthread -lexc"
21169         if test "${CC}" = "gcc" ; then
21170            lld="lld"
21171            llu="llu"
21172         else
21173            lld="ld"
21174            llu="lu"
21175         fi
21176         TAPEDRIVE="/dev/nrmt0"
21177   ;;
21178 bsdi)
21179         DISTVER=`uname -a |awk '{print $3}'`
21180         TAPEDRIVE="/dev/nrmt0"
21181         PTHREAD_LIB="-pthread"
21182         CFLAGS="${CFLAGS} -pthread"
21183         PSCMD="ps -x -o pid,command"
21184         lld="qd"
21185         llu="qu"
21186         PFILES="${PFILES} \
21187             platforms/bsdi/Makefile \
21188             platforms/bsdi/bacula-fd \
21189             platforms/bsdi/bacula-sd \
21190             platforms/bsdi/bacula-dir"
21191         largefile_support="yes"
21192   ;;
21193 cygwin)
21194         DISTVER=`uname -a |awk '{print $3}'`
21195         TAPEDRIVE="/dev/nrst0"
21196         WIN32=win32
21197         WCFLAGS="-mwindows"
21198         WLDFLAGS="-mwindows"
21199   ;;
21200 darwin)
21201         DISTVER=`uname -r`
21202         TAPEDRIVE="/dev/nst0"
21203         PSCMD="ps -e -o pid,command"
21204         MACOSX=macosx
21205         PFILES="${PFILES} \
21206            platforms/darwin/Makefile"
21207   ;;
21208 debian)
21209         DISTVER=`cat /etc/debian_version`
21210         TAPEDRIVE="/dev/nrst0"
21211         PSCMD="ps -e -o pid,command"
21212   ;;
21213 freebsd)
21214         DISTVER=`uname -a |awk '{print $3}'`
21215         VER=`echo $DISTVER | cut -c 1`
21216         if test x$VER = x4 ; then
21217            PTHREAD_LIB="-pthread"
21218            CFLAGS="${CFLAGS} -pthread"
21219         fi
21220         lld="qd"
21221         llu="qu"
21222         TAPEDRIVE="/dev/nrsa0"
21223         PSCMD="ps -x -o pid,command"
21224         PFILES="${PFILES} \
21225             platforms/freebsd/Makefile \
21226             platforms/freebsd/bacula-fd \
21227             platforms/freebsd/bacula-sd \
21228             platforms/freebsd/bacula-dir"
21229         largefile_support="yes"
21230   ;;
21231 hpux)
21232         PSCMD="UNIX95=1 ps -e -o pid,comm"
21233         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21234         DISTVER=`uname -r`
21235         TAPEDRIVE="/dev/rmt/0hnb"
21236   ;;
21237 irix)
21238         DISTVER=`uname -r`
21239         TAPEDRIVE="/dev/rmt/0cbn"
21240         PSCMD="ps -e -o pid,comm"
21241         PFILES="${PFILES} \
21242             platforms/irix/Makefile \
21243             platforms/irix/bacula-fd \
21244             platforms/irix/bacula-sd \
21245             platforms/irix/bacula-dir"
21246   ;;
21247 netbsd)
21248         DISTVER=`uname -a |awk '{print $3}'`
21249         lld="qd"
21250         llu="qu"
21251         TAPEDRIVE="/dev/nrst0"
21252         PSCMD="ps -a -o pid,command"
21253         PTHREAD_LIB="-pthread"
21254         CFLAGS="${CFLAGS} -pthread"
21255   ;;
21256 openbsd)
21257         DISTVER=`uname -a |awk '{print $3}'`
21258         lld="qd"
21259         llu="qu"
21260         TAPEDRIVE="/dev/nrst0"
21261         PSCMD="ps -ax -o pid,command"
21262         PTHREAD_LIB="-pthread"
21263         CFLAGS="${CFLAGS} -pthread"
21264         PFILES="${PFILES} \
21265             platforms/openbsd/Makefile \
21266             platforms/openbsd/bacula-fd \
21267             platforms/openbsd/bacula-sd \
21268             platforms/openbsd/bacula-dir"
21269   ;;
21270 redhat)
21271         if test -f /etc/whitebox-release ; then
21272            f=/etc/whitebox-release
21273         else
21274            f=/etc/redhat-release
21275         fi
21276         if test `cat $f | grep release |\
21277                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21278            DISTVER="Enterprise "`cat $f | grep release |\
21279                     cut -f 6 -d ' '`
21280         else
21281             DISTVER=`cat /etc/redhat-release | grep release |\
21282                      cut -f 5 -d ' '`
21283         fi
21284         TAPEDRIVE="/dev/nst0"
21285         PSCMD="ps -e -o pid,command"
21286         PFILES="${PFILES} \
21287             platforms/redhat/Makefile \
21288             platforms/redhat/bacula-fd \
21289             platforms/redhat/bacula-sd \
21290             platforms/redhat/bacula-dir \
21291             platforms/redhat/bacula.spec \
21292             "
21293         hostname=`hostname -s`
21294   ;;
21295 mandrake)
21296         DISTVER=`cat /etc/mandrake-release | grep release |\
21297            cut -f 5 -d ' '`
21298         TAPEDRIVE="/dev/nst0"
21299         PSCMD="ps -e -o pid,command"
21300         PFILES="${PFILES} \
21301             platforms/mandrake/Makefile \
21302             platforms/mandrake/bacula-fd \
21303             platforms/mandrake/bacula-sd \
21304             platforms/mandrake/bacula-dir \
21305             platforms/mandrake/bacula.spec \
21306             "
21307   ;;
21308 gentoo)
21309         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21310         TAPEDRIVE="/dev/nst0"
21311         PSCMD="ps -e -o pid,command"
21312         PFILES="${PFILES} \
21313             platforms/gentoo/Makefile \
21314          platforms/gentoo/bacula-init \
21315             platforms/gentoo/bacula-fd \
21316             platforms/gentoo/bacula-sd \
21317             platforms/gentoo/bacula-dir"
21318   ;;
21319 slackware)
21320         DISTVER=`cat /etc/slackware-version`
21321         TAPEDRIVE="/dev/nst0"
21322         PSCMD="ps -e -o pid,command"
21323         PFILES="${PFILES} \
21324             platforms/slackware/Makefile \
21325             platforms/slackware/rc.bacula-fd \
21326             platforms/slackware/rc.bacula-sd \
21327             platforms/slackware/rc.bacula-dir\
21328             platforms/slackware/functions.bacula"
21329   ;;
21330 solaris)
21331         DISTVER=`uname -r`
21332         TAPEDRIVE="/dev/rmt/0cbn"
21333         PSCMD="ps -e -o pid,comm"
21334         PFILES="${PFILES} \
21335             platforms/solaris/Makefile \
21336             platforms/solaris/bacula-fd \
21337             platforms/solaris/bacula-sd \
21338             platforms/solaris/bacula-dir"
21339         if test x$DISTVER = x5.6 ; then
21340             cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_OLD_SOCKOPT 1
21342 _ACEOF
21343
21344         fi
21345   ;;
21346 suse)
21347         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21348             cut -f 3 -d ' '`
21349         TAPEDRIVE="/dev/nst0"
21350         PSCMD="ps -e -o pid,command"
21351         PFILES="${PFILES} \
21352             platforms/suse/Makefile \
21353             platforms/suse/bacula-fd \
21354             platforms/suse/bacula-sd \
21355             platforms/suse/bacula-dir \
21356             platforms/suse/bacula \
21357             platforms/suse/bacula.spec"
21358   ;;
21359 suse5)
21360         DISTNAME=suse
21361         DISTVER=5.x
21362         TAPEDRIVE="/dev/nst0"
21363         PSCMD="ps -e -o pid,command"
21364         PFILES="${PFILES} \
21365             platforms/suse/Makefile \
21366             platforms/suse/bacula-fd \
21367             platforms/suse/bacula-sd \
21368             platforms/suse/bacula-dir"
21369   ;;
21370 unknown)
21371         DISTVER=unknown
21372         TAPEDRIVE="/dev/nst0"
21373   ;;
21374 *)
21375   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21376   ;;
21377 esac
21378
21379
21380
21381 LIBS="$PTHREAD_LIB $LIBS"
21382
21383 cat >>confdefs.h <<_ACEOF
21384 #define lld "$lld"
21385 _ACEOF
21386
21387 cat >>confdefs.h <<_ACEOF
21388 #define llu "$llu"
21389 _ACEOF
21390
21391
21392
21393
21394
21395
21396
21397
21398 MCOMMON=./autoconf/Make.common
21399
21400
21401 if test "x${subsysdir}" = "x${sbindir}" ; then
21402    echo " "
21403    echo " "
21404    echo "You have set both --sbindir and --with-subsys-dir"
21405    echo "  equal to: ${subsysdir} "
21406    echo "This is not permitted. Please reconfigure."
21407    echo " "
21408    echo "Aborting configuration ..."
21409    echo " "
21410    echo " "
21411    exit 1
21412 fi
21413
21414                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21415           ac_config_commands="$ac_config_commands default"
21416 cat >confcache <<\_ACEOF
21417 # This file is a shell script that caches the results of configure
21418 # tests run on this system so they can be shared between configure
21419 # scripts and configure runs, see configure's option --config-cache.
21420 # It is not useful on other systems.  If it contains results you don't
21421 # want to keep, you may remove or edit it.
21422 #
21423 # config.status only pays attention to the cache file if you give it
21424 # the --recheck option to rerun configure.
21425 #
21426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21428 # following values.
21429
21430 _ACEOF
21431
21432 # The following way of writing the cache mishandles newlines in values,
21433 # but we know of no workaround that is simple, portable, and efficient.
21434 # So, don't put newlines in cache variables' values.
21435 # Ultrix sh set writes to stderr and can't be redirected directly,
21436 # and sets the high bit in the cache file unless we assign to the vars.
21437 {
21438   (set) 2>&1 |
21439     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21440     *ac_space=\ *)
21441       # `set' does not quote correctly, so add quotes (double-quote
21442       # substitution turns \\\\ into \\, and sed turns \\ into \).
21443       sed -n \
21444         "s/'/'\\\\''/g;
21445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21446       ;;
21447     *)
21448       # `set' quotes correctly as required by POSIX, so do not add quotes.
21449       sed -n \
21450         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21451       ;;
21452     esac;
21453 } |
21454   sed '
21455      t clear
21456      : clear
21457      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21458      t end
21459      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21460      : end' >>confcache
21461 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21462   if test -w $cache_file; then
21463     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21464     cat confcache >$cache_file
21465   else
21466     echo "not updating unwritable cache $cache_file"
21467   fi
21468 fi
21469 rm -f confcache
21470
21471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21472 # Let make expand exec_prefix.
21473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21474
21475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21477 # trailing colons and then remove the whole line if VPATH becomes empty
21478 # (actually we leave an empty line to preserve line numbers).
21479 if test "x$srcdir" = x.; then
21480   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21481 s/:*\$(srcdir):*/:/;
21482 s/:*\${srcdir}:*/:/;
21483 s/:*@srcdir@:*/:/;
21484 s/^\([^=]*=[     ]*\):*/\1/;
21485 s/:*$//;
21486 s/^[^=]*=[       ]*$//;
21487 }'
21488 fi
21489
21490 DEFS=-DHAVE_CONFIG_H
21491
21492 ac_libobjs=
21493 ac_ltlibobjs=
21494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21495   # 1. Remove the extension, and $U if already installed.
21496   ac_i=`echo "$ac_i" |
21497          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21498   # 2. Add them.
21499   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21500   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21501 done
21502 LIBOBJS=$ac_libobjs
21503
21504 LTLIBOBJS=$ac_ltlibobjs
21505
21506
21507
21508 : ${CONFIG_STATUS=./config.status}
21509 ac_clean_files_save=$ac_clean_files
21510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513 cat >$CONFIG_STATUS <<_ACEOF
21514 #! $SHELL
21515 # Generated by $as_me.
21516 # Run this file to recreate the current configuration.
21517 # Compiler output produced by configure, useful for debugging
21518 # configure, is in config.log if it exists.
21519
21520 debug=false
21521 ac_cs_recheck=false
21522 ac_cs_silent=false
21523 SHELL=\${CONFIG_SHELL-$SHELL}
21524 _ACEOF
21525
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 ## --------------------- ##
21528 ## M4sh Initialization.  ##
21529 ## --------------------- ##
21530
21531 # Be Bourne compatible
21532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21533   emulate sh
21534   NULLCMD=:
21535   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21536   # is contrary to our usage.  Disable this feature.
21537   alias -g '${1+"$@"}'='"$@"'
21538 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21539   set -o posix
21540 fi
21541 DUALCASE=1; export DUALCASE # for MKS sh
21542
21543 # Support unset when possible.
21544 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21545   as_unset=unset
21546 else
21547   as_unset=false
21548 fi
21549
21550
21551 # Work around bugs in pre-3.0 UWIN ksh.
21552 $as_unset ENV MAIL MAILPATH
21553 PS1='$ '
21554 PS2='> '
21555 PS4='+ '
21556
21557 # NLS nuisances.
21558 for as_var in \
21559   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21560   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21561   LC_TELEPHONE LC_TIME
21562 do
21563   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21564     eval $as_var=C; export $as_var
21565   else
21566     $as_unset $as_var
21567   fi
21568 done
21569
21570 # Required to use basename.
21571 if expr a : '\(a\)' >/dev/null 2>&1; then
21572   as_expr=expr
21573 else
21574   as_expr=false
21575 fi
21576
21577 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21578   as_basename=basename
21579 else
21580   as_basename=false
21581 fi
21582
21583
21584 # Name of the executable.
21585 as_me=`$as_basename "$0" ||
21586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21587          X"$0" : 'X\(//\)$' \| \
21588          X"$0" : 'X\(/\)$' \| \
21589          .     : '\(.\)' 2>/dev/null ||
21590 echo X/"$0" |
21591     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21592           /^X\/\(\/\/\)$/{ s//\1/; q; }
21593           /^X\/\(\/\).*/{ s//\1/; q; }
21594           s/.*/./; q'`
21595
21596
21597 # PATH needs CR, and LINENO needs CR and PATH.
21598 # Avoid depending upon Character Ranges.
21599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21602 as_cr_digits='0123456789'
21603 as_cr_alnum=$as_cr_Letters$as_cr_digits
21604
21605 # The user is always right.
21606 if test "${PATH_SEPARATOR+set}" != set; then
21607   echo "#! /bin/sh" >conf$$.sh
21608   echo  "exit 0"   >>conf$$.sh
21609   chmod +x conf$$.sh
21610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21611     PATH_SEPARATOR=';'
21612   else
21613     PATH_SEPARATOR=:
21614   fi
21615   rm -f conf$$.sh
21616 fi
21617
21618
21619   as_lineno_1=$LINENO
21620   as_lineno_2=$LINENO
21621   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21622   test "x$as_lineno_1" != "x$as_lineno_2" &&
21623   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21624   # Find who we are.  Look in the path if we contain no path at all
21625   # relative or not.
21626   case $0 in
21627     *[\\/]* ) as_myself=$0 ;;
21628     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629 for as_dir in $PATH
21630 do
21631   IFS=$as_save_IFS
21632   test -z "$as_dir" && as_dir=.
21633   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21634 done
21635
21636        ;;
21637   esac
21638   # We did not find ourselves, most probably we were run as `sh COMMAND'
21639   # in which case we are not to be found in the path.
21640   if test "x$as_myself" = x; then
21641     as_myself=$0
21642   fi
21643   if test ! -f "$as_myself"; then
21644     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21645 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21646    { (exit 1); exit 1; }; }
21647   fi
21648   case $CONFIG_SHELL in
21649   '')
21650     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21651 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21652 do
21653   IFS=$as_save_IFS
21654   test -z "$as_dir" && as_dir=.
21655   for as_base in sh bash ksh sh5; do
21656          case $as_dir in
21657          /*)
21658            if ("$as_dir/$as_base" -c '
21659   as_lineno_1=$LINENO
21660   as_lineno_2=$LINENO
21661   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21662   test "x$as_lineno_1" != "x$as_lineno_2" &&
21663   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21664              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21665              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21666              CONFIG_SHELL=$as_dir/$as_base
21667              export CONFIG_SHELL
21668              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21669            fi;;
21670          esac
21671        done
21672 done
21673 ;;
21674   esac
21675
21676   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21677   # uniformly replaced by the line number.  The first 'sed' inserts a
21678   # line-number line before each line; the second 'sed' does the real
21679   # work.  The second script uses 'N' to pair each line-number line
21680   # with the numbered line, and appends trailing '-' during
21681   # substitution so that $LINENO is not a special case at line end.
21682   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21683   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21684   sed '=' <$as_myself |
21685     sed '
21686       N
21687       s,$,-,
21688       : loop
21689       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21690       t loop
21691       s,-$,,
21692       s,^['$as_cr_digits']*\n,,
21693     ' >$as_me.lineno &&
21694   chmod +x $as_me.lineno ||
21695     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21696 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21697    { (exit 1); exit 1; }; }
21698
21699   # Don't try to exec as it changes $[0], causing all sort of problems
21700   # (the dirname of $[0] is not the place where we might find the
21701   # original and so on.  Autoconf is especially sensible to this).
21702   . ./$as_me.lineno
21703   # Exit status is that of the last command.
21704   exit
21705 }
21706
21707
21708 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21709   *c*,-n*) ECHO_N= ECHO_C='
21710 ' ECHO_T='      ' ;;
21711   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21712   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21713 esac
21714
21715 if expr a : '\(a\)' >/dev/null 2>&1; then
21716   as_expr=expr
21717 else
21718   as_expr=false
21719 fi
21720
21721 rm -f conf$$ conf$$.exe conf$$.file
21722 echo >conf$$.file
21723 if ln -s conf$$.file conf$$ 2>/dev/null; then
21724   # We could just check for DJGPP; but this test a) works b) is more generic
21725   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21726   if test -f conf$$.exe; then
21727     # Don't use ln at all; we don't have any links
21728     as_ln_s='cp -p'
21729   else
21730     as_ln_s='ln -s'
21731   fi
21732 elif ln conf$$.file conf$$ 2>/dev/null; then
21733   as_ln_s=ln
21734 else
21735   as_ln_s='cp -p'
21736 fi
21737 rm -f conf$$ conf$$.exe conf$$.file
21738
21739 if mkdir -p . 2>/dev/null; then
21740   as_mkdir_p=:
21741 else
21742   test -d ./-p && rmdir ./-p
21743   as_mkdir_p=false
21744 fi
21745
21746 as_executable_p="test -f"
21747
21748 # Sed expression to map a string onto a valid CPP name.
21749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21750
21751 # Sed expression to map a string onto a valid variable name.
21752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21753
21754
21755 # IFS
21756 # We need space, tab and new line, in precisely that order.
21757 as_nl='
21758 '
21759 IFS="   $as_nl"
21760
21761 # CDPATH.
21762 $as_unset CDPATH
21763
21764 exec 6>&1
21765
21766 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21767 # report actual input values of CONFIG_FILES etc. instead of their
21768 # values after options handling.  Logging --version etc. is OK.
21769 exec 5>>config.log
21770 {
21771   echo
21772   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21773 ## Running $as_me. ##
21774 _ASBOX
21775 } >&5
21776 cat >&5 <<_CSEOF
21777
21778 This file was extended by $as_me, which was
21779 generated by GNU Autoconf 2.59.  Invocation command line was
21780
21781   CONFIG_FILES    = $CONFIG_FILES
21782   CONFIG_HEADERS  = $CONFIG_HEADERS
21783   CONFIG_LINKS    = $CONFIG_LINKS
21784   CONFIG_COMMANDS = $CONFIG_COMMANDS
21785   $ $0 $@
21786
21787 _CSEOF
21788 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21789 echo >&5
21790 _ACEOF
21791
21792 # Files that config.status was made for.
21793 if test -n "$ac_config_files"; then
21794   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21795 fi
21796
21797 if test -n "$ac_config_headers"; then
21798   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21799 fi
21800
21801 if test -n "$ac_config_links"; then
21802   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21803 fi
21804
21805 if test -n "$ac_config_commands"; then
21806   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21807 fi
21808
21809 cat >>$CONFIG_STATUS <<\_ACEOF
21810
21811 ac_cs_usage="\
21812 \`$as_me' instantiates files from templates according to the
21813 current configuration.
21814
21815 Usage: $0 [OPTIONS] [FILE]...
21816
21817   -h, --help       print this help, then exit
21818   -V, --version    print version number, then exit
21819   -q, --quiet      do not print progress messages
21820   -d, --debug      don't remove temporary files
21821       --recheck    update $as_me by reconfiguring in the same conditions
21822   --file=FILE[:TEMPLATE]
21823                    instantiate the configuration file FILE
21824   --header=FILE[:TEMPLATE]
21825                    instantiate the configuration header FILE
21826
21827 Configuration files:
21828 $config_files
21829
21830 Configuration headers:
21831 $config_headers
21832
21833 Configuration commands:
21834 $config_commands
21835
21836 Report bugs to <bug-autoconf@gnu.org>."
21837 _ACEOF
21838
21839 cat >>$CONFIG_STATUS <<_ACEOF
21840 ac_cs_version="\\
21841 config.status
21842 configured by $0, generated by GNU Autoconf 2.59,
21843   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21844
21845 Copyright (C) 2003 Free Software Foundation, Inc.
21846 This config.status script is free software; the Free Software Foundation
21847 gives unlimited permission to copy, distribute and modify it."
21848 srcdir=$srcdir
21849 INSTALL="$INSTALL"
21850 _ACEOF
21851
21852 cat >>$CONFIG_STATUS <<\_ACEOF
21853 # If no file are specified by the user, then we need to provide default
21854 # value.  By we need to know if files were specified by the user.
21855 ac_need_defaults=:
21856 while test $# != 0
21857 do
21858   case $1 in
21859   --*=*)
21860     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21861     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21862     ac_shift=:
21863     ;;
21864   -*)
21865     ac_option=$1
21866     ac_optarg=$2
21867     ac_shift=shift
21868     ;;
21869   *) # This is not an option, so the user has probably given explicit
21870      # arguments.
21871      ac_option=$1
21872      ac_need_defaults=false;;
21873   esac
21874
21875   case $ac_option in
21876   # Handling of the options.
21877 _ACEOF
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21879   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21880     ac_cs_recheck=: ;;
21881   --version | --vers* | -V )
21882     echo "$ac_cs_version"; exit 0 ;;
21883   --he | --h)
21884     # Conflict between --help and --header
21885     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21886 Try \`$0 --help' for more information." >&5
21887 echo "$as_me: error: ambiguous option: $1
21888 Try \`$0 --help' for more information." >&2;}
21889    { (exit 1); exit 1; }; };;
21890   --help | --hel | -h )
21891     echo "$ac_cs_usage"; exit 0 ;;
21892   --debug | --d* | -d )
21893     debug=: ;;
21894   --file | --fil | --fi | --f )
21895     $ac_shift
21896     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21897     ac_need_defaults=false;;
21898   --header | --heade | --head | --hea )
21899     $ac_shift
21900     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21901     ac_need_defaults=false;;
21902   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21903   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21904     ac_cs_silent=: ;;
21905
21906   # This is an error.
21907   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21908 Try \`$0 --help' for more information." >&5
21909 echo "$as_me: error: unrecognized option: $1
21910 Try \`$0 --help' for more information." >&2;}
21911    { (exit 1); exit 1; }; } ;;
21912
21913   *) ac_config_targets="$ac_config_targets $1" ;;
21914
21915   esac
21916   shift
21917 done
21918
21919 ac_configure_extra_args=
21920
21921 if $ac_cs_silent; then
21922   exec 6>/dev/null
21923   ac_configure_extra_args="$ac_configure_extra_args --silent"
21924 fi
21925
21926 _ACEOF
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 if \$ac_cs_recheck; then
21929   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21930   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21931 fi
21932
21933 _ACEOF
21934
21935
21936
21937
21938
21939 cat >>$CONFIG_STATUS <<\_ACEOF
21940 for ac_config_target in $ac_config_targets
21941 do
21942   case "$ac_config_target" in
21943   # Handling of arguments.
21944   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21945   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21946   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21947   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21948   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21949   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21950   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21951   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21952   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21953   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21954   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21955   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21956   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21957   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21958   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21959   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21960   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21961   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21962   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21963   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21964   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21965   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21966   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21967   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21968   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21969   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21970   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21971   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21972   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21973   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21974   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21975   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21976   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21977   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21978   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21979   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21980   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21981   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21982   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21983   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21984   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21985   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21986   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21987   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21988   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21989   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21990   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21991   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21992   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21993   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21994   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21995   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21996   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21997   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21998   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21999   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22000   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22001   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22002   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22003   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22004   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22005   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22006   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22007   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22008   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22009   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22010   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22011   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22012   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22013   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22014   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22015   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22016   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22017   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22018   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22019   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22020   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22021   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22022   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22023   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22024   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22025   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22026   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22027   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22028   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22029   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22030   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22031   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22032   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22033   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22034   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22035   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22036   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22037   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22038   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22039   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22040   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22041   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22042   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22043   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22044   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22045   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22046   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22047 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22048    { (exit 1); exit 1; }; };;
22049   esac
22050 done
22051
22052 # If the user did not use the arguments to specify the items to instantiate,
22053 # then the envvar interface is used.  Set only those that are not.
22054 # We use the long form for the default assignment because of an extremely
22055 # bizarre bug on SunOS 4.1.3.
22056 if $ac_need_defaults; then
22057   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22058   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22059   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22060 fi
22061
22062 # Have a temporary directory for convenience.  Make it in the build tree
22063 # simply because there is no reason to put it here, and in addition,
22064 # creating and moving files from /tmp can sometimes cause problems.
22065 # Create a temporary directory, and hook for its removal unless debugging.
22066 $debug ||
22067 {
22068   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22069   trap '{ (exit 1); exit 1; }' 1 2 13 15
22070 }
22071
22072 # Create a (secure) tmp directory for tmp files.
22073
22074 {
22075   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22076   test -n "$tmp" && test -d "$tmp"
22077 }  ||
22078 {
22079   tmp=./confstat$$-$RANDOM
22080   (umask 077 && mkdir $tmp)
22081 } ||
22082 {
22083    echo "$me: cannot create a temporary directory in ." >&2
22084    { (exit 1); exit 1; }
22085 }
22086
22087 _ACEOF
22088
22089 cat >>$CONFIG_STATUS <<_ACEOF
22090
22091 #
22092 # CONFIG_FILES section.
22093 #
22094
22095 # No need to generate the scripts if there are no CONFIG_FILES.
22096 # This happens for instance when ./config.status config.h
22097 if test -n "\$CONFIG_FILES"; then
22098   # Protect against being on the right side of a sed subst in config.status.
22099   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22100    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22101 s,@SHELL@,$SHELL,;t t
22102 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22103 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22104 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22105 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22106 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22107 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22108 s,@exec_prefix@,$exec_prefix,;t t
22109 s,@prefix@,$prefix,;t t
22110 s,@program_transform_name@,$program_transform_name,;t t
22111 s,@bindir@,$bindir,;t t
22112 s,@sbindir@,$sbindir,;t t
22113 s,@libexecdir@,$libexecdir,;t t
22114 s,@datadir@,$datadir,;t t
22115 s,@sysconfdir@,$sysconfdir,;t t
22116 s,@sharedstatedir@,$sharedstatedir,;t t
22117 s,@localstatedir@,$localstatedir,;t t
22118 s,@libdir@,$libdir,;t t
22119 s,@includedir@,$includedir,;t t
22120 s,@oldincludedir@,$oldincludedir,;t t
22121 s,@infodir@,$infodir,;t t
22122 s,@mandir@,$mandir,;t t
22123 s,@build_alias@,$build_alias,;t t
22124 s,@host_alias@,$host_alias,;t t
22125 s,@target_alias@,$target_alias,;t t
22126 s,@DEFS@,$DEFS,;t t
22127 s,@ECHO_C@,$ECHO_C,;t t
22128 s,@ECHO_N@,$ECHO_N,;t t
22129 s,@ECHO_T@,$ECHO_T,;t t
22130 s,@LIBS@,$LIBS,;t t
22131 s,@BUILD_DIR@,$BUILD_DIR,;t t
22132 s,@TRUEPRG@,$TRUEPRG,;t t
22133 s,@FALSEPRG@,$FALSEPRG,;t t
22134 s,@VERSION@,$VERSION,;t t
22135 s,@DATE@,$DATE,;t t
22136 s,@LSMDATE@,$LSMDATE,;t t
22137 s,@CC@,$CC,;t t
22138 s,@CFLAGS@,$CFLAGS,;t t
22139 s,@LDFLAGS@,$LDFLAGS,;t t
22140 s,@CPPFLAGS@,$CPPFLAGS,;t t
22141 s,@ac_ct_CC@,$ac_ct_CC,;t t
22142 s,@EXEEXT@,$EXEEXT,;t t
22143 s,@OBJEXT@,$OBJEXT,;t t
22144 s,@CXX@,$CXX,;t t
22145 s,@CXXFLAGS@,$CXXFLAGS,;t t
22146 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22147 s,@CPP@,$CPP,;t t
22148 s,@EGREP@,$EGREP,;t t
22149 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22150 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22151 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22152 s,@RANLIB@,$RANLIB,;t t
22153 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22154 s,@MV@,$MV,;t t
22155 s,@RM@,$RM,;t t
22156 s,@CP@,$CP,;t t
22157 s,@SED@,$SED,;t t
22158 s,@AWK@,$AWK,;t t
22159 s,@ECHO@,$ECHO,;t t
22160 s,@CMP@,$CMP,;t t
22161 s,@TBL@,$TBL,;t t
22162 s,@AR@,$AR,;t t
22163 s,@OPENSSL@,$OPENSSL,;t t
22164 s,@MTX@,$MTX,;t t
22165 s,@MKISOFS@,$MKISOFS,;t t
22166 s,@PYTHON@,$PYTHON,;t t
22167 s,@GROWISOFS@,$GROWISOFS,;t t
22168 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22169 s,@PKGCONFIG@,$PKGCONFIG,;t t
22170 s,@WXCONFIG@,$WXCONFIG,;t t
22171 s,@CDRECORD@,$CDRECORD,;t t
22172 s,@PIDOF@,$PIDOF,;t t
22173 s,@ARFLAGS@,$ARFLAGS,;t t
22174 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22175 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22176 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22177 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22178 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22179 s,@build@,$build,;t t
22180 s,@build_cpu@,$build_cpu,;t t
22181 s,@build_vendor@,$build_vendor,;t t
22182 s,@build_os@,$build_os,;t t
22183 s,@host@,$host,;t t
22184 s,@host_cpu@,$host_cpu,;t t
22185 s,@host_vendor@,$host_vendor,;t t
22186 s,@host_os@,$host_os,;t t
22187 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22188 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22189 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22190 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22191 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22192 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22193 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22194 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22195 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22196 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22197 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22198 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22199 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22200 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22201 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22202 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22203 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22204 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22205 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22206 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22207 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22208 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22209 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22210 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22211 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22212 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22213 s,@MSGFMT@,$MSGFMT,;t t
22214 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22215 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22216 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22217 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22218 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22219 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22220 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22221 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22222 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22223 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22224 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22225 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22226 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22227 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22228 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22229 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22230 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22231 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22232 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22233 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22234 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22235 s,@GNOME_DIR@,$GNOME_DIR,;t t
22236 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22237 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22238 s,@WX_DIR@,$WX_DIR,;t t
22239 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22240 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22241 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22242 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22243 s,@STATIC_FD@,$STATIC_FD,;t t
22244 s,@STATIC_SD@,$STATIC_SD,;t t
22245 s,@STATIC_DIR@,$STATIC_DIR,;t t
22246 s,@STATIC_CONS@,$STATIC_CONS,;t t
22247 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22248 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22249 s,@ALL_DIRS@,$ALL_DIRS,;t t
22250 s,@CONS_INC@,$CONS_INC,;t t
22251 s,@CONS_OBJ@,$CONS_OBJ,;t t
22252 s,@CONS_SRC@,$CONS_SRC,;t t
22253 s,@CONS_LIBS@,$CONS_LIBS,;t t
22254 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22255 s,@READLINE_SRC@,$READLINE_SRC,;t t
22256 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22257 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22258 s,@CDSTL@,$CDSTL,;t t
22259 s,@working_dir@,$working_dir,;t t
22260 s,@scriptdir@,$scriptdir,;t t
22261 s,@dump_email@,$dump_email,;t t
22262 s,@job_email@,$job_email,;t t
22263 s,@smtp_host@,$smtp_host,;t t
22264 s,@piddir@,$piddir,;t t
22265 s,@subsysdir@,$subsysdir,;t t
22266 s,@baseport@,$baseport,;t t
22267 s,@dir_port@,$dir_port,;t t
22268 s,@fd_port@,$fd_port,;t t
22269 s,@sd_port@,$sd_port,;t t
22270 s,@dir_password@,$dir_password,;t t
22271 s,@fd_password@,$fd_password,;t t
22272 s,@sd_password@,$sd_password,;t t
22273 s,@mon_dir_password@,$mon_dir_password,;t t
22274 s,@mon_fd_password@,$mon_fd_password,;t t
22275 s,@mon_sd_password@,$mon_sd_password,;t t
22276 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22277 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22278 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22279 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22280 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22281 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22282 s,@dir_user@,$dir_user,;t t
22283 s,@dir_group@,$dir_group,;t t
22284 s,@sd_user@,$sd_user,;t t
22285 s,@sd_group@,$sd_group,;t t
22286 s,@fd_user@,$fd_user,;t t
22287 s,@fd_group@,$fd_group,;t t
22288 s,@SBINPERM@,$SBINPERM,;t t
22289 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22290 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22291 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22292 s,@cats@,$cats,;t t
22293 s,@DB_NAME@,$DB_NAME,;t t
22294 s,@GETCONF@,$GETCONF,;t t
22295 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22296 s,@X_CFLAGS@,$X_CFLAGS,;t t
22297 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22298 s,@X_LIBS@,$X_LIBS,;t t
22299 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22300 s,@LIBOBJS@,$LIBOBJS,;t t
22301 s,@ALLOCA@,$ALLOCA,;t t
22302 s,@FDLIBS@,$FDLIBS,;t t
22303 s,@DEBUG@,$DEBUG,;t t
22304 s,@DINCLUDE@,$DINCLUDE,;t t
22305 s,@DLIB@,$DLIB,;t t
22306 s,@DB_LIBS@,$DB_LIBS,;t t
22307 s,@WCFLAGS@,$WCFLAGS,;t t
22308 s,@WLDFLAGS@,$WLDFLAGS,;t t
22309 s,@OBJLIST@,$OBJLIST,;t t
22310 s,@hostname@,$hostname,;t t
22311 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22312 s,@PSCMD@,$PSCMD,;t t
22313 s,@WIN32@,$WIN32,;t t
22314 s,@MACOSX@,$MACOSX,;t t
22315 s,@DISTNAME@,$DISTNAME,;t t
22316 s,@DISTVER@,$DISTVER,;t t
22317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22318 /@MCOMMON@/r $MCOMMON
22319 s,@MCOMMON@,,;t t
22320 CEOF
22321
22322 _ACEOF
22323
22324   cat >>$CONFIG_STATUS <<\_ACEOF
22325   # Split the substitutions into bite-sized pieces for seds with
22326   # small command number limits, like on Digital OSF/1 and HP-UX.
22327   ac_max_sed_lines=48
22328   ac_sed_frag=1 # Number of current file.
22329   ac_beg=1 # First line for current file.
22330   ac_end=$ac_max_sed_lines # Line after last line for current file.
22331   ac_more_lines=:
22332   ac_sed_cmds=
22333   while $ac_more_lines; do
22334     if test $ac_beg -gt 1; then
22335       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22336     else
22337       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22338     fi
22339     if test ! -s $tmp/subs.frag; then
22340       ac_more_lines=false
22341     else
22342       # The purpose of the label and of the branching condition is to
22343       # speed up the sed processing (if there are no `@' at all, there
22344       # is no need to browse any of the substitutions).
22345       # These are the two extra sed commands mentioned above.
22346       (echo ':t
22347   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22348       if test -z "$ac_sed_cmds"; then
22349         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22350       else
22351         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22352       fi
22353       ac_sed_frag=`expr $ac_sed_frag + 1`
22354       ac_beg=$ac_end
22355       ac_end=`expr $ac_end + $ac_max_sed_lines`
22356     fi
22357   done
22358   if test -z "$ac_sed_cmds"; then
22359     ac_sed_cmds=cat
22360   fi
22361 fi # test -n "$CONFIG_FILES"
22362
22363 _ACEOF
22364 cat >>$CONFIG_STATUS <<\_ACEOF
22365 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22366   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22367   case $ac_file in
22368   - | *:- | *:-:* ) # input from stdin
22369         cat >$tmp/stdin
22370         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22371         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22372   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22373         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22374   * )   ac_file_in=$ac_file.in ;;
22375   esac
22376
22377   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22378   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22380          X"$ac_file" : 'X\(//\)[^/]' \| \
22381          X"$ac_file" : 'X\(//\)$' \| \
22382          X"$ac_file" : 'X\(/\)' \| \
22383          .     : '\(.\)' 2>/dev/null ||
22384 echo X"$ac_file" |
22385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22387           /^X\(\/\/\)$/{ s//\1/; q; }
22388           /^X\(\/\).*/{ s//\1/; q; }
22389           s/.*/./; q'`
22390   { if $as_mkdir_p; then
22391     mkdir -p "$ac_dir"
22392   else
22393     as_dir="$ac_dir"
22394     as_dirs=
22395     while test ! -d "$as_dir"; do
22396       as_dirs="$as_dir $as_dirs"
22397       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399          X"$as_dir" : 'X\(//\)[^/]' \| \
22400          X"$as_dir" : 'X\(//\)$' \| \
22401          X"$as_dir" : 'X\(/\)' \| \
22402          .     : '\(.\)' 2>/dev/null ||
22403 echo X"$as_dir" |
22404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22406           /^X\(\/\/\)$/{ s//\1/; q; }
22407           /^X\(\/\).*/{ s//\1/; q; }
22408           s/.*/./; q'`
22409     done
22410     test ! -n "$as_dirs" || mkdir $as_dirs
22411   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22412 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22413    { (exit 1); exit 1; }; }; }
22414
22415   ac_builddir=.
22416
22417 if test "$ac_dir" != .; then
22418   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22419   # A "../" for each directory in $ac_dir_suffix.
22420   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22421 else
22422   ac_dir_suffix= ac_top_builddir=
22423 fi
22424
22425 case $srcdir in
22426   .)  # No --srcdir option.  We are building in place.
22427     ac_srcdir=.
22428     if test -z "$ac_top_builddir"; then
22429        ac_top_srcdir=.
22430     else
22431        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22432     fi ;;
22433   [\\/]* | ?:[\\/]* )  # Absolute path.
22434     ac_srcdir=$srcdir$ac_dir_suffix;
22435     ac_top_srcdir=$srcdir ;;
22436   *) # Relative path.
22437     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22438     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22439 esac
22440
22441 # Do not use `cd foo && pwd` to compute absolute paths, because
22442 # the directories may not exist.
22443 case `pwd` in
22444 .) ac_abs_builddir="$ac_dir";;
22445 *)
22446   case "$ac_dir" in
22447   .) ac_abs_builddir=`pwd`;;
22448   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22449   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22450   esac;;
22451 esac
22452 case $ac_abs_builddir in
22453 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22454 *)
22455   case ${ac_top_builddir}. in
22456   .) ac_abs_top_builddir=$ac_abs_builddir;;
22457   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22458   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22459   esac;;
22460 esac
22461 case $ac_abs_builddir in
22462 .) ac_abs_srcdir=$ac_srcdir;;
22463 *)
22464   case $ac_srcdir in
22465   .) ac_abs_srcdir=$ac_abs_builddir;;
22466   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22467   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22468   esac;;
22469 esac
22470 case $ac_abs_builddir in
22471 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22472 *)
22473   case $ac_top_srcdir in
22474   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22475   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22476   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22477   esac;;
22478 esac
22479
22480
22481   case $INSTALL in
22482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22483   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22484   esac
22485
22486   if test x"$ac_file" != x-; then
22487     { echo "$as_me:$LINENO: creating $ac_file" >&5
22488 echo "$as_me: creating $ac_file" >&6;}
22489     rm -f "$ac_file"
22490   fi
22491   # Let's still pretend it is `configure' which instantiates (i.e., don't
22492   # use $as_me), people would be surprised to read:
22493   #    /* config.h.  Generated by config.status.  */
22494   if test x"$ac_file" = x-; then
22495     configure_input=
22496   else
22497     configure_input="$ac_file.  "
22498   fi
22499   configure_input=$configure_input"Generated from `echo $ac_file_in |
22500                                      sed 's,.*/,,'` by configure."
22501
22502   # First look for the input files in the build tree, otherwise in the
22503   # src tree.
22504   ac_file_inputs=`IFS=:
22505     for f in $ac_file_in; do
22506       case $f in
22507       -) echo $tmp/stdin ;;
22508       [\\/$]*)
22509          # Absolute (can't be DOS-style, as IFS=:)
22510          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22511 echo "$as_me: error: cannot find input file: $f" >&2;}
22512    { (exit 1); exit 1; }; }
22513          echo "$f";;
22514       *) # Relative
22515          if test -f "$f"; then
22516            # Build tree
22517            echo "$f"
22518          elif test -f "$srcdir/$f"; then
22519            # Source tree
22520            echo "$srcdir/$f"
22521          else
22522            # /dev/null tree
22523            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22524 echo "$as_me: error: cannot find input file: $f" >&2;}
22525    { (exit 1); exit 1; }; }
22526          fi;;
22527       esac
22528     done` || { (exit 1); exit 1; }
22529 _ACEOF
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531   sed "$ac_vpsub
22532 $extrasub
22533 _ACEOF
22534 cat >>$CONFIG_STATUS <<\_ACEOF
22535 :t
22536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22537 s,@configure_input@,$configure_input,;t t
22538 s,@srcdir@,$ac_srcdir,;t t
22539 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22540 s,@top_srcdir@,$ac_top_srcdir,;t t
22541 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22542 s,@builddir@,$ac_builddir,;t t
22543 s,@abs_builddir@,$ac_abs_builddir,;t t
22544 s,@top_builddir@,$ac_top_builddir,;t t
22545 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22546 s,@INSTALL@,$ac_INSTALL,;t t
22547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22548   rm -f $tmp/stdin
22549   if test x"$ac_file" != x-; then
22550     mv $tmp/out $ac_file
22551   else
22552     cat $tmp/out
22553     rm -f $tmp/out
22554   fi
22555
22556 done
22557 _ACEOF
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559
22560 #
22561 # CONFIG_HEADER section.
22562 #
22563
22564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22566 #
22567 # ac_d sets the value in "#define NAME VALUE" lines.
22568 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22569 ac_dB='[         ].*$,\1#\2'
22570 ac_dC=' '
22571 ac_dD=',;t'
22572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22573 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22574 ac_uB='$,\1#\2define\3'
22575 ac_uC=' '
22576 ac_uD=',;t'
22577
22578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22579   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22580   case $ac_file in
22581   - | *:- | *:-:* ) # input from stdin
22582         cat >$tmp/stdin
22583         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22585   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22586         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22587   * )   ac_file_in=$ac_file.in ;;
22588   esac
22589
22590   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22591 echo "$as_me: creating $ac_file" >&6;}
22592
22593   # First look for the input files in the build tree, otherwise in the
22594   # src tree.
22595   ac_file_inputs=`IFS=:
22596     for f in $ac_file_in; do
22597       case $f in
22598       -) echo $tmp/stdin ;;
22599       [\\/$]*)
22600          # Absolute (can't be DOS-style, as IFS=:)
22601          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22602 echo "$as_me: error: cannot find input file: $f" >&2;}
22603    { (exit 1); exit 1; }; }
22604          # Do quote $f, to prevent DOS paths from being IFS'd.
22605          echo "$f";;
22606       *) # Relative
22607          if test -f "$f"; then
22608            # Build tree
22609            echo "$f"
22610          elif test -f "$srcdir/$f"; then
22611            # Source tree
22612            echo "$srcdir/$f"
22613          else
22614            # /dev/null tree
22615            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22616 echo "$as_me: error: cannot find input file: $f" >&2;}
22617    { (exit 1); exit 1; }; }
22618          fi;;
22619       esac
22620     done` || { (exit 1); exit 1; }
22621   # Remove the trailing spaces.
22622   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22623
22624 _ACEOF
22625
22626 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22627 # `conftest.undefs', that substitutes the proper values into
22628 # config.h.in to produce config.h.  The first handles `#define'
22629 # templates, and the second `#undef' templates.
22630 # And first: Protect against being on the right side of a sed subst in
22631 # config.status.  Protect against being in an unquoted here document
22632 # in config.status.
22633 rm -f conftest.defines conftest.undefs
22634 # Using a here document instead of a string reduces the quoting nightmare.
22635 # Putting comments in sed scripts is not portable.
22636 #
22637 # `end' is used to avoid that the second main sed command (meant for
22638 # 0-ary CPP macros) applies to n-ary macro definitions.
22639 # See the Autoconf documentation for `clear'.
22640 cat >confdef2sed.sed <<\_ACEOF
22641 s/[\\&,]/\\&/g
22642 s,[\\$`],\\&,g
22643 t clear
22644 : clear
22645 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22646 t end
22647 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22648 : end
22649 _ACEOF
22650 # If some macros were called several times there might be several times
22651 # the same #defines, which is useless.  Nevertheless, we may not want to
22652 # sort them, since we want the *last* AC-DEFINE to be honored.
22653 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22654 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22655 rm -f confdef2sed.sed
22656
22657 # This sed command replaces #undef with comments.  This is necessary, for
22658 # example, in the case of _POSIX_SOURCE, which is predefined and required
22659 # on some systems where configure will not decide to define it.
22660 cat >>conftest.undefs <<\_ACEOF
22661 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22662 _ACEOF
22663
22664 # Break up conftest.defines because some shells have a limit on the size
22665 # of here documents, and old seds have small limits too (100 cmds).
22666 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22667 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22668 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22669 echo '  :' >>$CONFIG_STATUS
22670 rm -f conftest.tail
22671 while grep . conftest.defines >/dev/null
22672 do
22673   # Write a limited-size here document to $tmp/defines.sed.
22674   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22675   # Speed up: don't consider the non `#define' lines.
22676   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22677   # Work around the forget-to-reset-the-flag bug.
22678   echo 't clr' >>$CONFIG_STATUS
22679   echo ': clr' >>$CONFIG_STATUS
22680   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22681   echo 'CEOF
22682   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22683   rm -f $tmp/in
22684   mv $tmp/out $tmp/in
22685 ' >>$CONFIG_STATUS
22686   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22687   rm -f conftest.defines
22688   mv conftest.tail conftest.defines
22689 done
22690 rm -f conftest.defines
22691 echo '  fi # grep' >>$CONFIG_STATUS
22692 echo >>$CONFIG_STATUS
22693
22694 # Break up conftest.undefs because some shells have a limit on the size
22695 # of here documents, and old seds have small limits too (100 cmds).
22696 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22697 rm -f conftest.tail
22698 while grep . conftest.undefs >/dev/null
22699 do
22700   # Write a limited-size here document to $tmp/undefs.sed.
22701   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22702   # Speed up: don't consider the non `#undef'
22703   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22704   # Work around the forget-to-reset-the-flag bug.
22705   echo 't clr' >>$CONFIG_STATUS
22706   echo ': clr' >>$CONFIG_STATUS
22707   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22708   echo 'CEOF
22709   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22710   rm -f $tmp/in
22711   mv $tmp/out $tmp/in
22712 ' >>$CONFIG_STATUS
22713   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22714   rm -f conftest.undefs
22715   mv conftest.tail conftest.undefs
22716 done
22717 rm -f conftest.undefs
22718
22719 cat >>$CONFIG_STATUS <<\_ACEOF
22720   # Let's still pretend it is `configure' which instantiates (i.e., don't
22721   # use $as_me), people would be surprised to read:
22722   #    /* config.h.  Generated by config.status.  */
22723   if test x"$ac_file" = x-; then
22724     echo "/* Generated by configure.  */" >$tmp/config.h
22725   else
22726     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22727   fi
22728   cat $tmp/in >>$tmp/config.h
22729   rm -f $tmp/in
22730   if test x"$ac_file" != x-; then
22731     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22732       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22733 echo "$as_me: $ac_file is unchanged" >&6;}
22734     else
22735       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22737          X"$ac_file" : 'X\(//\)[^/]' \| \
22738          X"$ac_file" : 'X\(//\)$' \| \
22739          X"$ac_file" : 'X\(/\)' \| \
22740          .     : '\(.\)' 2>/dev/null ||
22741 echo X"$ac_file" |
22742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22744           /^X\(\/\/\)$/{ s//\1/; q; }
22745           /^X\(\/\).*/{ s//\1/; q; }
22746           s/.*/./; q'`
22747       { if $as_mkdir_p; then
22748     mkdir -p "$ac_dir"
22749   else
22750     as_dir="$ac_dir"
22751     as_dirs=
22752     while test ! -d "$as_dir"; do
22753       as_dirs="$as_dir $as_dirs"
22754       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22756          X"$as_dir" : 'X\(//\)[^/]' \| \
22757          X"$as_dir" : 'X\(//\)$' \| \
22758          X"$as_dir" : 'X\(/\)' \| \
22759          .     : '\(.\)' 2>/dev/null ||
22760 echo X"$as_dir" |
22761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22763           /^X\(\/\/\)$/{ s//\1/; q; }
22764           /^X\(\/\).*/{ s//\1/; q; }
22765           s/.*/./; q'`
22766     done
22767     test ! -n "$as_dirs" || mkdir $as_dirs
22768   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22769 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22770    { (exit 1); exit 1; }; }; }
22771
22772       rm -f $ac_file
22773       mv $tmp/config.h $ac_file
22774     fi
22775   else
22776     cat $tmp/config.h
22777     rm -f $tmp/config.h
22778   fi
22779 done
22780 _ACEOF
22781 cat >>$CONFIG_STATUS <<\_ACEOF
22782
22783 #
22784 # CONFIG_COMMANDS section.
22785 #
22786 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22787   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22788   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22789   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22790 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791          X"$ac_dest" : 'X\(//\)[^/]' \| \
22792          X"$ac_dest" : 'X\(//\)$' \| \
22793          X"$ac_dest" : 'X\(/\)' \| \
22794          .     : '\(.\)' 2>/dev/null ||
22795 echo X"$ac_dest" |
22796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798           /^X\(\/\/\)$/{ s//\1/; q; }
22799           /^X\(\/\).*/{ s//\1/; q; }
22800           s/.*/./; q'`
22801   { if $as_mkdir_p; then
22802     mkdir -p "$ac_dir"
22803   else
22804     as_dir="$ac_dir"
22805     as_dirs=
22806     while test ! -d "$as_dir"; do
22807       as_dirs="$as_dir $as_dirs"
22808       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22810          X"$as_dir" : 'X\(//\)[^/]' \| \
22811          X"$as_dir" : 'X\(//\)$' \| \
22812          X"$as_dir" : 'X\(/\)' \| \
22813          .     : '\(.\)' 2>/dev/null ||
22814 echo X"$as_dir" |
22815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22817           /^X\(\/\/\)$/{ s//\1/; q; }
22818           /^X\(\/\).*/{ s//\1/; q; }
22819           s/.*/./; q'`
22820     done
22821     test ! -n "$as_dirs" || mkdir $as_dirs
22822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22824    { (exit 1); exit 1; }; }; }
22825
22826   ac_builddir=.
22827
22828 if test "$ac_dir" != .; then
22829   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22830   # A "../" for each directory in $ac_dir_suffix.
22831   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22832 else
22833   ac_dir_suffix= ac_top_builddir=
22834 fi
22835
22836 case $srcdir in
22837   .)  # No --srcdir option.  We are building in place.
22838     ac_srcdir=.
22839     if test -z "$ac_top_builddir"; then
22840        ac_top_srcdir=.
22841     else
22842        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22843     fi ;;
22844   [\\/]* | ?:[\\/]* )  # Absolute path.
22845     ac_srcdir=$srcdir$ac_dir_suffix;
22846     ac_top_srcdir=$srcdir ;;
22847   *) # Relative path.
22848     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22849     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22850 esac
22851
22852 # Do not use `cd foo && pwd` to compute absolute paths, because
22853 # the directories may not exist.
22854 case `pwd` in
22855 .) ac_abs_builddir="$ac_dir";;
22856 *)
22857   case "$ac_dir" in
22858   .) ac_abs_builddir=`pwd`;;
22859   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22860   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22861   esac;;
22862 esac
22863 case $ac_abs_builddir in
22864 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22865 *)
22866   case ${ac_top_builddir}. in
22867   .) ac_abs_top_builddir=$ac_abs_builddir;;
22868   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22869   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22870   esac;;
22871 esac
22872 case $ac_abs_builddir in
22873 .) ac_abs_srcdir=$ac_srcdir;;
22874 *)
22875   case $ac_srcdir in
22876   .) ac_abs_srcdir=$ac_abs_builddir;;
22877   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22878   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22879   esac;;
22880 esac
22881 case $ac_abs_builddir in
22882 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22883 *)
22884   case $ac_top_srcdir in
22885   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22886   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22887   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22888   esac;;
22889 esac
22890
22891
22892   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22893 echo "$as_me: executing $ac_dest commands" >&6;}
22894   case $ac_dest in
22895     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22896  ;;
22897   esac
22898 done
22899 _ACEOF
22900
22901 cat >>$CONFIG_STATUS <<\_ACEOF
22902
22903 { (exit 0); exit 0; }
22904 _ACEOF
22905 chmod +x $CONFIG_STATUS
22906 ac_clean_files=$ac_clean_files_save
22907
22908
22909 # configure is writing to config.log, and then calls config.status.
22910 # config.status does its own redirection, appending to config.log.
22911 # Unfortunately, on DOS this fails, as config.log is still kept open
22912 # by configure, so config.status won't be able to write to it; its
22913 # output is simply discarded.  So we exec the FD to /dev/null,
22914 # effectively closing config.log, so it can be properly (re)opened and
22915 # appended to by config.status.  When coming back to configure, we
22916 # need to make the FD available again.
22917 if test "$no_create" != yes; then
22918   ac_cs_success=:
22919   ac_config_status_args=
22920   test "$silent" = yes &&
22921     ac_config_status_args="$ac_config_status_args --quiet"
22922   exec 5>/dev/null
22923   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22924   exec 5>>config.log
22925   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22926   # would make configure fail if this is the last instruction.
22927   $ac_cs_success || { (exit 1); exit 1; }
22928 fi
22929
22930
22931 cd scripts
22932 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22933 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22934 cd ..
22935
22936 c=src/cats
22937
22938 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22939 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22940
22941 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22942 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22943
22944 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22945 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22946
22947 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22948 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22949
22950 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22951 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22952
22953 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22954 chmod 755 $c/sqlite
22955 chmod 755 $c/mysql
22956
22957 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22958    largefile_support="yes"
22959 fi
22960
22961 #
22962 # A whole lot of hand springs to get the compiler version.
22963 #  This is because gcc changed the output in version 3.0
22964 #
22965 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22966 if test "x${CCVERSION}" = "x" ; then
22967   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22968 fi
22969 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22970 if test x"${CXXVERSION}" = x ; then
22971   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22972 fi
22973
22974 if test "x${subsysdir}" = "x${sbindir}" ; then
22975    echo " "
22976    echo " "
22977    echo "You have set --sbindir and --with-subsys-dir"
22978    echo "  both equal to: ${subsysdir} "
22979    echo "  This is not permitted. Please reconfigure."
22980    echo " "
22981    echo "Aborting configuration ..."
22982    echo " "
22983    echo " "
22984    exit 1
22985 fi
22986
22987 if test "x${db_name}" = "xInternal" ; then
22988    echo " "
22989    echo " "
22990    echo "You have not specified either --enable-client-only or one of the"
22991    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
22992    echo "  This is not permitted. Please reconfigure."
22993    echo " "
22994    echo "Aborting the configuration ..."
22995    echo " "
22996    echo " "
22997    exit 1
22998 fi
22999
23000 echo "
23001 Configuration on `date`:
23002
23003   Host:                       $host -- ${DISTNAME} ${DISTVER}
23004   Bacula version:             ${VERSION} (${DATE})
23005   Source code location:       ${srcdir}
23006   Install binaries:           ${sbindir}
23007   Install config files:       ${sysconfdir}
23008   Scripts directory:          ${scriptdir}
23009   Working directory:          ${working_dir}
23010   PID directory:              ${piddir}
23011   Subsys directory:           ${subsysdir}
23012   C Compiler:                 ${CC} ${CCVERSION}
23013   C++ Compiler:               ${CXX} ${CXXVERSION}
23014   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23015   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23016   Libraries:                  ${LIBS}
23017   Statically Linked Tools:    ${support_static_tools}
23018   Statically Linked FD:       ${support_static_fd}
23019   Statically Linked SD:       ${support_static_sd}
23020   Statically Linked DIR:      ${support_static_dir}
23021   Statically Linked CONS:     ${support_static_cons}
23022   Database type:              ${db_name}
23023   Database lib:               ${DB_LIBS}
23024
23025   Job Output Email:           ${job_email}
23026   Traceback Email:            ${dump_email}
23027   SMTP Host Address:          ${smtp_host}
23028
23029   Director Port:              ${dir_port}
23030   File daemon Port:           ${fd_port}
23031   Storage daemon Port:        ${sd_port}
23032
23033   Director User:              ${dir_user}
23034   Director Group:             ${dir_group}
23035   Storage Daemon User:        ${sd_user}
23036   Storage DaemonGroup:        ${sd_group}
23037   File Daemon User:           ${fd_user}
23038   File Daemon Group:          ${fd_group}
23039
23040   SQL binaries Directory      ${SQL_BINDIR}
23041
23042   Large file support:         $largefile_support
23043   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23044   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23045   TCP Wrappers support:       ${TCPW_MSG}
23046   ZLIB support:               ${have_zlib}
23047   enable-smartalloc:          ${support_smartalloc}
23048   enable-gnome:               ${support_gnome} ${gnome_version}
23049   enable-wx-console:          ${support_wx_console}
23050   enable-tray-monitor:        ${support_tray_monitor}
23051   client-only:                ${build_client_only}
23052   ACL support:                ${have_acl}
23053   Python support:             ${support_python} ${PYTHON_LIBS}
23054
23055   " > config.out
23056
23057 cat config.out
23058
23059 # old stuff
23060 # cweb support:               ${got_cweb} ${CWEB_SRC}
23061 # gmp support:                ${got_gmp} ${GMP_SRC}