]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
1c5c2d4696298b2d1f9c0505d309f251c9634352
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
898                           base install directory, defaults to /usr/local/pgsql
899
900   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
901                           install directory, default is to search through
902                           a number of common places for the MySQL files.
903
904   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
905                           install directory, default is to search through
906                           a number of common places for the MySQL files.
907
908   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
909                           install directory, default is to search through
910                           a number of common places for the SQLite files.
911   --with-x                use the X Window System
912
913 Some influential environment variables:
914   CC          C compiler command
915   CFLAGS      C compiler flags
916   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917               nonstandard directory <lib dir>
918   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919               headers in a nonstandard directory <include dir>
920   CXX         C++ compiler command
921   CXXFLAGS    C++ compiler flags
922   CPP         C preprocessor
923
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
926
927 _ACEOF
928 fi
929
930 if test "$ac_init_help" = "recursive"; then
931   # If there are subdirs, report their specific --help.
932   ac_popdir=`pwd`
933   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934     test -d $ac_dir || continue
935     ac_builddir=.
936
937 if test "$ac_dir" != .; then
938   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939   # A "../" for each directory in $ac_dir_suffix.
940   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 else
942   ac_dir_suffix= ac_top_builddir=
943 fi
944
945 case $srcdir in
946   .)  # No --srcdir option.  We are building in place.
947     ac_srcdir=.
948     if test -z "$ac_top_builddir"; then
949        ac_top_srcdir=.
950     else
951        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952     fi ;;
953   [\\/]* | ?:[\\/]* )  # Absolute path.
954     ac_srcdir=$srcdir$ac_dir_suffix;
955     ac_top_srcdir=$srcdir ;;
956   *) # Relative path.
957     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958     ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 esac
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 # absolute.
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd $ac_popdir
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.57.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core core.* *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 BUILD_DIR=`pwd`
1331 cd ..
1332 TOP_DIR=`pwd`
1333 cd ${BUILD_DIR}
1334
1335 ac_aux_dir=
1336 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1337   if test -f $ac_dir/install-sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install-sh -c"
1340     break
1341   elif test -f $ac_dir/install.sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install.sh -c"
1344     break
1345   elif test -f $ac_dir/shtool; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/shtool install -c"
1348     break
1349   fi
1350 done
1351 if test -z "$ac_aux_dir"; then
1352   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361
1362
1363
1364
1365
1366 for ac_prog in true
1367 do
1368   # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1373   echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375   case $TRUEPRG in
1376   [\\/]* | ?:[\\/]*)
1377   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1378   ;;
1379   *)
1380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 for as_dir in $PATH
1382 do
1383   IFS=$as_save_IFS
1384   test -z "$as_dir" && as_dir=.
1385   for ac_exec_ext in '' $ac_executable_extensions; do
1386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389     break 2
1390   fi
1391 done
1392 done
1393
1394   ;;
1395 esac
1396 fi
1397 TRUEPRG=$ac_cv_path_TRUEPRG
1398
1399 if test -n "$TRUEPRG"; then
1400   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1401 echo "${ECHO_T}$TRUEPRG" >&6
1402 else
1403   echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407   test -n "$TRUEPRG" && break
1408 done
1409 test -n "$TRUEPRG" || TRUEPRG=":"
1410
1411 for ac_prog in false
1412 do
1413   # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   case $FALSEPRG in
1421   [\\/]* | ?:[\\/]*)
1422   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1423   ;;
1424   *)
1425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439   ;;
1440 esac
1441 fi
1442 FALSEPRG=$ac_cv_path_FALSEPRG
1443
1444 if test -n "$FALSEPRG"; then
1445   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1446 echo "${ECHO_T}$FALSEPRG" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452   test -n "$FALSEPRG" && break
1453 done
1454 test -n "$FALSEPRG" || FALSEPRG=":"
1455
1456
1457 # Make sure we can run config.sub.
1458 $ac_config_sub sun4 >/dev/null 2>&1 ||
1459   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1460 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 echo "$as_me:$LINENO: checking build system type" >&5
1464 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1465 if test "${ac_cv_build+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   ac_cv_build_alias=$build_alias
1469 test -z "$ac_cv_build_alias" &&
1470   ac_cv_build_alias=`$ac_config_guess`
1471 test -z "$ac_cv_build_alias" &&
1472   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1474    { (exit 1); exit 1; }; }
1475 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1476   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 fi
1481 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1482 echo "${ECHO_T}$ac_cv_build" >&6
1483 build=$ac_cv_build
1484 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487
1488
1489 echo "$as_me:$LINENO: checking host system type" >&5
1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1491 if test "${ac_cv_host+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   ac_cv_host_alias=$host_alias
1495 test -z "$ac_cv_host_alias" &&
1496   ac_cv_host_alias=$ac_cv_build_alias
1497 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1498   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 fi
1503 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1504 echo "${ECHO_T}$ac_cv_host" >&6
1505 host=$ac_cv_host
1506 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509
1510
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1876 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 #line $LINENO "configure"
2064 /* confdefs.h.  */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h.  */
2069
2070 int
2071 main ()
2072 {
2073 #ifndef __GNUC__
2074        choke me
2075 #endif
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_compiler_gnu=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_compiler_gnu=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2102
2103 fi
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2109 CFLAGS="-g"
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2117 /* confdefs.h.  */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h.  */
2122
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); } &&
2137          { ac_try='test -s conftest.$ac_objext'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143   ac_cv_prog_cc_g=yes
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_cv_prog_cc_g=no
2149 fi
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154 if test "$ac_test_CFLAGS" = set; then
2155   CFLAGS=$ac_save_CFLAGS
2156 elif test $ac_cv_prog_cc_g = yes; then
2157   if test "$GCC" = yes; then
2158     CFLAGS="-g -O2"
2159   else
2160     CFLAGS="-g"
2161   fi
2162 else
2163   if test "$GCC" = yes; then
2164     CFLAGS="-O2"
2165   else
2166     CFLAGS=
2167   fi
2168 fi
2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   ac_cv_prog_cc_stdc=no
2175 ac_save_CC=$CC
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 /* confdefs.h.  */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h.  */
2183 #include <stdarg.h>
2184 #include <stdio.h>
2185 #include <sys/types.h>
2186 #include <sys/stat.h>
2187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2188 struct buf { int x; };
2189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2191      char **p;
2192      int i;
2193 {
2194   return p[i];
2195 }
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2197 {
2198   char *s;
2199   va_list v;
2200   va_start (v,p);
2201   s = g (p, va_arg (v,int));
2202   va_end (v);
2203   return s;
2204 }
2205 int test (int i, double x);
2206 struct s1 {int (*f) (int a);};
2207 struct s2 {int (*f) (double a);};
2208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2209 int argc;
2210 char **argv;
2211 int
2212 main ()
2213 {
2214 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 # Don't try gcc -ansi; that turns off useful extensions and
2220 # breaks some systems' header files.
2221 # AIX                   -qlanglvl=ansi
2222 # Ultrix and OSF/1      -std1
2223 # HP-UX 10.20 and later -Ae
2224 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2225 # SVR4                  -Xc -D__EXTENSIONS__
2226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 do
2228   CC="$ac_save_CC $ac_arg"
2229   rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231   (eval $ac_compile) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   ac_cv_prog_cc_stdc=$ac_arg
2242 break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.$ac_objext
2249 done
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2251 CC=$ac_save_CC
2252
2253 fi
2254
2255 case "x$ac_cv_prog_cc_stdc" in
2256   x|xno)
2257     echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2259   *)
2260     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262     CC="$CC $ac_cv_prog_cc_stdc" ;;
2263 esac
2264
2265 # Some people use a C++ compiler to compile C.  Since we use `exit',
2266 # in C++ we need to declare it.  In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #ifndef __cplusplus
2271   choke me
2272 #endif
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   for ac_declaration in \
2287    ''\
2288    '#include <stdlib.h>' \
2289    'extern "C" void std::exit (int) throw (); using std::exit;' \
2290    'extern "C" void std::exit (int); using std::exit;' \
2291    'extern "C" void exit (int) throw ();' \
2292    'extern "C" void exit (int);' \
2293    'void exit (int);'
2294 do
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302 #include <stdlib.h>
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 continue
2330 fi
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 $ac_declaration
2340 int
2341 main ()
2342 {
2343 exit (42);
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   break
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 done
2368 rm -f conftest*
2369 if test -n "$ac_declaration"; then
2370   echo '#ifdef __cplusplus' >>confdefs.h
2371   echo $ac_declaration      >>confdefs.h
2372   echo '#endif'             >>confdefs.h
2373 fi
2374
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387 ac_ext=cc
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2394   do
2395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CXX+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CXX"; then
2403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418
2419 fi
2420 fi
2421 CXX=$ac_cv_prog_CXX
2422 if test -n "$CXX"; then
2423   echo "$as_me:$LINENO: result: $CXX" >&5
2424 echo "${ECHO_T}$CXX" >&6
2425 else
2426   echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430     test -n "$CXX" && break
2431   done
2432 fi
2433 if test -z "$CXX"; then
2434   ac_ct_CXX=$CXX
2435   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2436 do
2437   # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CXX"; then
2445   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454     ac_cv_prog_ac_ct_CXX="$ac_prog"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460
2461 fi
2462 fi
2463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2464 if test -n "$ac_ct_CXX"; then
2465   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2466 echo "${ECHO_T}$ac_ct_CXX" >&6
2467 else
2468   echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2470 fi
2471
2472   test -n "$ac_ct_CXX" && break
2473 done
2474 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2475
2476   CXX=$ac_ct_CXX
2477 fi
2478
2479
2480 # Provide some information about the compiler.
2481 echo "$as_me:$LINENO:" \
2482      "checking for C++ compiler version" >&5
2483 ac_compiler=`set X $ac_compile; echo $2`
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2485   (eval $ac_compiler --version </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2490   (eval $ac_compiler -v </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2495   (eval $ac_compiler -V </dev/null >&5) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }
2499
2500 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2501 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512
2513 int
2514 main ()
2515 {
2516 #ifndef __GNUC__
2517        choke me
2518 #endif
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_compiler_gnu=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2545
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2549 GXX=`test $ac_compiler_gnu = yes && echo yes`
2550 ac_test_CXXFLAGS=${CXXFLAGS+set}
2551 ac_save_CXXFLAGS=$CXXFLAGS
2552 CXXFLAGS="-g"
2553 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cxx_g+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cxx_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_cv_prog_cxx_g=no
2592 fi
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597 if test "$ac_test_CXXFLAGS" = set; then
2598   CXXFLAGS=$ac_save_CXXFLAGS
2599 elif test $ac_cv_prog_cxx_g = yes; then
2600   if test "$GXX" = yes; then
2601     CXXFLAGS="-g -O2"
2602   else
2603     CXXFLAGS="-g"
2604   fi
2605 else
2606   if test "$GXX" = yes; then
2607     CXXFLAGS="-O2"
2608   else
2609     CXXFLAGS=
2610   fi
2611 fi
2612 for ac_declaration in \
2613    ''\
2614    '#include <stdlib.h>' \
2615    'extern "C" void std::exit (int) throw (); using std::exit;' \
2616    'extern "C" void std::exit (int); using std::exit;' \
2617    'extern "C" void exit (int) throw ();' \
2618    'extern "C" void exit (int);' \
2619    'void exit (int);'
2620 do
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <stdlib.h>
2629 $ac_declaration
2630 int
2631 main ()
2632 {
2633 exit (42);
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -s conftest.$ac_objext'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650   :
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 continue
2656 fi
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658   cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 $ac_declaration
2666 int
2667 main ()
2668 {
2669 exit (42);
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676   (eval $ac_compile) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -s conftest.$ac_objext'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686   break
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2693 done
2694 rm -f conftest*
2695 if test -n "$ac_declaration"; then
2696   echo '#ifdef __cplusplus' >>confdefs.h
2697   echo $ac_declaration      >>confdefs.h
2698   echo '#endif'             >>confdefs.h
2699 fi
2700
2701 ac_ext=c
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706
2707 if test "x$CC" != xcc; then
2708   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2710 else
2711   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2713 fi
2714 set dummy $CC; ac_cc=`echo $2 |
2715                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2716 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 # Make sure it works both with $CC and with simple cc.
2736 # We do the test twice because some compilers refuse to overwrite an
2737 # existing .o file with -o, though they will create one.
2738 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2739 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); };
2749 then
2750   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2751   if test "x$CC" != xcc; then
2752     # Test first that cc exists at all.
2753     if { ac_try='cc -c conftest.$ac_ext >&5'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2760       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); };
2770       then
2771         # cc works too.
2772         :
2773       else
2774         # cc exists but doesn't like -o.
2775         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2776       fi
2777     fi
2778   fi
2779 else
2780   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2781 fi
2782 rm -f conftest*
2783
2784 fi
2785 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2786   echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 else
2789   echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791
2792 cat >>confdefs.h <<\_ACEOF
2793 #define NO_MINUS_C_MINUS_O 1
2794 _ACEOF
2795
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2805 # On Suns, sometimes $CPP names a directory.
2806 if test -n "$CPP" && test -d "$CPP"; then
2807   CPP=
2808 fi
2809 if test -z "$CPP"; then
2810   if test "${ac_cv_prog_CPP+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813       # Double quotes because CPP needs to be expanded
2814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2815     do
2816       ac_preproc_ok=false
2817 for ac_c_preproc_warn_flag in '' yes
2818 do
2819   # Use a header file that comes with gcc, so configuring glibc
2820   # with a fresh cross-compiler works.
2821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822   # <limits.h> exists even on freestanding compilers.
2823   # On the NeXT, cc -E runs the code through the compiler's parser,
2824   # not just through cpp. "Syntax error" is here to catch this case.
2825   cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #ifdef __STDC__
2833 # include <limits.h>
2834 #else
2835 # include <assert.h>
2836 #endif
2837                      Syntax error
2838 _ACEOF
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } >/dev/null; then
2847   if test -s conftest.err; then
2848     ac_cpp_err=$ac_c_preproc_warn_flag
2849   else
2850     ac_cpp_err=
2851   fi
2852 else
2853   ac_cpp_err=yes
2854 fi
2855 if test -z "$ac_cpp_err"; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861   # Broken: fails on valid input.
2862 continue
2863 fi
2864 rm -f conftest.err conftest.$ac_ext
2865
2866   # OK, works on sane cases.  Now check whether non-existent headers
2867   # can be detected and how.
2868   cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 #include <ac_nonexistent.h>
2876 _ACEOF
2877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } >/dev/null; then
2885   if test -s conftest.err; then
2886     ac_cpp_err=$ac_c_preproc_warn_flag
2887   else
2888     ac_cpp_err=
2889   fi
2890 else
2891   ac_cpp_err=yes
2892 fi
2893 if test -z "$ac_cpp_err"; then
2894   # Broken: success on invalid input.
2895 continue
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900   # Passes both tests.
2901 ac_preproc_ok=:
2902 break
2903 fi
2904 rm -f conftest.err conftest.$ac_ext
2905
2906 done
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2910   break
2911 fi
2912
2913     done
2914     ac_cv_prog_CPP=$CPP
2915
2916 fi
2917   CPP=$ac_cv_prog_CPP
2918 else
2919   ac_cv_prog_CPP=$CPP
2920 fi
2921 echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6
2923 ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 #ifdef __STDC__
2940 # include <limits.h>
2941 #else
2942 # include <assert.h>
2943 #endif
2944                      Syntax error
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } >/dev/null; then
2954   if test -s conftest.err; then
2955     ac_cpp_err=$ac_c_preproc_warn_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 #include <ac_nonexistent.h>
2983 _ACEOF
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } >/dev/null; then
2992   if test -s conftest.err; then
2993     ac_cpp_err=$ac_c_preproc_warn_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   :
3018 else
3019   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }
3024 fi
3025
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032
3033 echo "$as_me:$LINENO: checking for egrep" >&5
3034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3035 if test "${ac_cv_prog_egrep+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3039     then ac_cv_prog_egrep='grep -E'
3040     else ac_cv_prog_egrep='egrep'
3041     fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3044 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3045  EGREP=$ac_cv_prog_egrep
3046
3047
3048 if test $ac_cv_c_compiler_gnu = yes; then
3049     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3050 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3051 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054     ac_pattern="Autoconf.*'x'"
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <sgtty.h>
3063 Autoconf TIOCGETP
3064 _ACEOF
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3067   ac_cv_prog_gcc_traditional=yes
3068 else
3069   ac_cv_prog_gcc_traditional=no
3070 fi
3071 rm -f conftest*
3072
3073
3074   if test $ac_cv_prog_gcc_traditional = no; then
3075     cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #include <termio.h>
3083 Autoconf TCGETA
3084 _ACEOF
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087   ac_cv_prog_gcc_traditional=yes
3088 fi
3089 rm -f conftest*
3090
3091   fi
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095   if test $ac_cv_prog_gcc_traditional = yes; then
3096     CC="$CC -traditional"
3097   fi
3098 fi
3099
3100 if test x$CC = xgcc
3101 then
3102    cat >>confdefs.h <<\_ACEOF
3103 #define HAVE_GCC 1
3104 _ACEOF
3105
3106 fi
3107
3108 # Find a good install program.  We prefer a C program (faster),
3109 # so one script is as good as another.  But avoid the broken or
3110 # incompatible versions:
3111 # SysV /etc/install, /usr/sbin/install
3112 # SunOS /usr/etc/install
3113 # IRIX /sbin/install
3114 # AIX /bin/install
3115 # AmigaOS /C/install, which installs bootblocks on floppy discs
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3122 if test -z "$INSTALL"; then
3123 if test "${ac_cv_path_install+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   # Account for people who put trailing slashes in PATH elements.
3132 case $as_dir/ in
3133   ./ | .// | /cC/* | \
3134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3135   /usr/ucb/* ) ;;
3136   *)
3137     # OSF1 and SCO ODT 3.0 have their own names for install.
3138     # Don't use installbsd from OSF since it installs stuff as root
3139     # by default.
3140     for ac_prog in ginstall scoinst install; do
3141       for ac_exec_ext in '' $ac_executable_extensions; do
3142         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3143           if test $ac_prog = install &&
3144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145             # AIX install.  It has an incompatible calling convention.
3146             :
3147           elif test $ac_prog = install &&
3148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149             # program-specific install script used by HP pwplus--don't use.
3150             :
3151           else
3152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3153             break 3
3154           fi
3155         fi
3156       done
3157     done
3158     ;;
3159 esac
3160 done
3161
3162
3163 fi
3164   if test "${ac_cv_path_install+set}" = set; then
3165     INSTALL=$ac_cv_path_install
3166   else
3167     # As a last resort, use the slow shell script.  We don't cache a
3168     # path for INSTALL within a source directory, because that will
3169     # break other packages using the cache if that directory is
3170     # removed, or if the path is relative.
3171     INSTALL=$ac_install_sh
3172   fi
3173 fi
3174 echo "$as_me:$LINENO: result: $INSTALL" >&5
3175 echo "${ECHO_T}$INSTALL" >&6
3176
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184
3185 if test -n "$ac_tool_prefix"; then
3186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -n "$RANLIB"; then
3194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214   echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 fi
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223   ac_ct_RANLIB=$RANLIB
3224   # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$ac_ct_RANLIB"; then
3232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_RANLIB="ranlib"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3249 fi
3250 fi
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 else
3256   echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 fi
3259
3260   RANLIB=$ac_ct_RANLIB
3261 else
3262   RANLIB="$ac_cv_prog_RANLIB"
3263 fi
3264
3265 # Extract the first word of "mv", so it can be a program name with args.
3266 set dummy mv; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_path_MV+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   case $MV in
3273   [\\/]* | ?:[\\/]*)
3274   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3275   ;;
3276   *)
3277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289 done
3290
3291   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3292   ;;
3293 esac
3294 fi
3295 MV=$ac_cv_path_MV
3296
3297 if test -n "$MV"; then
3298   echo "$as_me:$LINENO: result: $MV" >&5
3299 echo "${ECHO_T}$MV" >&6
3300 else
3301   echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 fi
3304
3305 # Extract the first word of "rm", so it can be a program name with args.
3306 set dummy rm; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_path_RM+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   case $RM in
3313   [\\/]* | ?:[\\/]*)
3314   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3315   ;;
3316   *)
3317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   for ac_exec_ext in '' $ac_executable_extensions; do
3323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329 done
3330
3331   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3332   ;;
3333 esac
3334 fi
3335 RM=$ac_cv_path_RM
3336
3337 if test -n "$RM"; then
3338   echo "$as_me:$LINENO: result: $RM" >&5
3339 echo "${ECHO_T}$RM" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 # Extract the first word of "cp", so it can be a program name with args.
3346 set dummy cp; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_path_CP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   case $CP in
3353   [\\/]* | ?:[\\/]*)
3354   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3355   ;;
3356   *)
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362   for ac_exec_ext in '' $ac_executable_extensions; do
3363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369 done
3370
3371   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3372   ;;
3373 esac
3374 fi
3375 CP=$ac_cv_path_CP
3376
3377 if test -n "$CP"; then
3378   echo "$as_me:$LINENO: result: $CP" >&5
3379 echo "${ECHO_T}$CP" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 # Extract the first word of "sed", so it can be a program name with args.
3386 set dummy sed; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_path_SED+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   case $SED in
3393   [\\/]* | ?:[\\/]*)
3394   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3395   ;;
3396   *)
3397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402   for ac_exec_ext in '' $ac_executable_extensions; do
3403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409 done
3410
3411   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3412   ;;
3413 esac
3414 fi
3415 SED=$ac_cv_path_SED
3416
3417 if test -n "$SED"; then
3418   echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425 # Extract the first word of "awk", so it can be a program name with args.
3426 set dummy awk; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_path_AWK+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   case $AWK in
3433   [\\/]* | ?:[\\/]*)
3434   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3435   ;;
3436   *)
3437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442   for ac_exec_ext in '' $ac_executable_extensions; do
3443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449 done
3450
3451   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3452   ;;
3453 esac
3454 fi
3455 AWK=$ac_cv_path_AWK
3456
3457 if test -n "$AWK"; then
3458   echo "$as_me:$LINENO: result: $AWK" >&5
3459 echo "${ECHO_T}$AWK" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465 # Extract the first word of "echo", so it can be a program name with args.
3466 set dummy echo; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_path_ECHO+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   case $ECHO in
3473   [\\/]* | ?:[\\/]*)
3474   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3475   ;;
3476   *)
3477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_exec_ext in '' $ac_executable_extensions; do
3483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489 done
3490
3491   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3492   ;;
3493 esac
3494 fi
3495 ECHO=$ac_cv_path_ECHO
3496
3497 if test -n "$ECHO"; then
3498   echo "$as_me:$LINENO: result: $ECHO" >&5
3499 echo "${ECHO_T}$ECHO" >&6
3500 else
3501   echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505 # Extract the first word of "cmp", so it can be a program name with args.
3506 set dummy cmp; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_path_CMP+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   case $CMP in
3513   [\\/]* | ?:[\\/]*)
3514   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3515   ;;
3516   *)
3517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522   for ac_exec_ext in '' $ac_executable_extensions; do
3523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529 done
3530
3531   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3532   ;;
3533 esac
3534 fi
3535 CMP=$ac_cv_path_CMP
3536
3537 if test -n "$CMP"; then
3538   echo "$as_me:$LINENO: result: $CMP" >&5
3539 echo "${ECHO_T}$CMP" >&6
3540 else
3541   echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3543 fi
3544
3545 # Extract the first word of "tbl", so it can be a program name with args.
3546 set dummy tbl; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_TBL+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   case $TBL in
3553   [\\/]* | ?:[\\/]*)
3554   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3555   ;;
3556   *)
3557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569 done
3570
3571   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3572   ;;
3573 esac
3574 fi
3575 TBL=$ac_cv_path_TBL
3576
3577 if test -n "$TBL"; then
3578   echo "$as_me:$LINENO: result: $TBL" >&5
3579 echo "${ECHO_T}$TBL" >&6
3580 else
3581   echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583 fi
3584
3585 # Extract the first word of "ar", so it can be a program name with args.
3586 set dummy ar; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_path_AR+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   case $AR in
3593   [\\/]* | ?:[\\/]*)
3594   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3595   ;;
3596   *)
3597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602   for ac_exec_ext in '' $ac_executable_extensions; do
3603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609 done
3610
3611   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3612   ;;
3613 esac
3614 fi
3615 AR=$ac_cv_path_AR
3616
3617 if test -n "$AR"; then
3618   echo "$as_me:$LINENO: result: $AR" >&5
3619 echo "${ECHO_T}$AR" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_path_RANLIB+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   case $RANLIB in
3633   [\\/]* | ?:[\\/]*)
3634   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3635   ;;
3636   *)
3637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642   for ac_exec_ext in '' $ac_executable_extensions; do
3643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649 done
3650
3651   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3652   ;;
3653 esac
3654 fi
3655 RANLIB=$ac_cv_path_RANLIB
3656
3657 if test -n "$RANLIB"; then
3658   echo "$as_me:$LINENO: result: $RANLIB" >&5
3659 echo "${ECHO_T}$RANLIB" >&6
3660 else
3661   echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664
3665 # Extract the first word of "openssl", so it can be a program name with args.
3666 set dummy openssl; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_OPENSSL+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   case $OPENSSL in
3673   [\\/]* | ?:[\\/]*)
3674   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3675   ;;
3676   *)
3677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682   for ac_exec_ext in '' $ac_executable_extensions; do
3683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689 done
3690
3691   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3692   ;;
3693 esac
3694 fi
3695 OPENSSL=$ac_cv_path_OPENSSL
3696
3697 if test -n "$OPENSSL"; then
3698   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3699 echo "${ECHO_T}$OPENSSL" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705 # Extract the first word of "mtx", so it can be a program name with args.
3706 set dummy mtx; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_path_MTX+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   case $MTX in
3713   [\\/]* | ?:[\\/]*)
3714   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3715   ;;
3716   *)
3717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730
3731   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3732   ;;
3733 esac
3734 fi
3735 MTX=$ac_cv_path_MTX
3736
3737 if test -n "$MTX"; then
3738   echo "$as_me:$LINENO: result: $MTX" >&5
3739 echo "${ECHO_T}$MTX" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744
3745 # Extract the first word of "pkg-config", so it can be a program name with args.
3746 set dummy pkg-config; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   case $PKGCONFIG in
3753   [\\/]* | ?:[\\/]*)
3754   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3755   ;;
3756   *)
3757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3772   ;;
3773 esac
3774 fi
3775 PKGCONFIG=$ac_cv_path_PKGCONFIG
3776
3777 if test -n "$PKGCONFIG"; then
3778   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3779 echo "${ECHO_T}$PKGCONFIG" >&6
3780 else
3781   echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 test -n "$ARFLAG" || ARFLAGS="cr"
3787
3788
3789 MAKE_SHELL=/bin/sh
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799 echo "$as_me:$LINENO: checking for Operating System" >&5
3800 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3801
3802 case $host_os in
3803   *cygwin* ) CYGWIN=yes;;
3804          * ) CYGWIN=no;;
3805 esac
3806
3807 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3808 then
3809
3810
3811 if $TRUEPRG; then
3812   HAVE_SUN_OS_TRUE=
3813   HAVE_SUN_OS_FALSE='#'
3814 else
3815   HAVE_SUN_OS_TRUE='#'
3816   HAVE_SUN_OS_FALSE=
3817 fi
3818         cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_SUN_OS 1
3820 _ACEOF
3821
3822 else
3823
3824
3825 if $FALSEPRG; then
3826   HAVE_SUN_OS_TRUE=
3827   HAVE_SUN_OS_FALSE='#'
3828 else
3829   HAVE_SUN_OS_TRUE='#'
3830   HAVE_SUN_OS_FALSE=
3831 fi
3832 fi
3833
3834 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3835 then
3836
3837
3838 if $TRUEPRG; then
3839   HAVE_OSF1_OS_TRUE=
3840   HAVE_OSF1_OS_FALSE='#'
3841 else
3842   HAVE_OSF1_OS_TRUE='#'
3843   HAVE_OSF1_OS_FALSE=
3844 fi
3845         cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_OSF1_OS 1
3847 _ACEOF
3848
3849 else
3850
3851
3852 if $FALSEPRG; then
3853   HAVE_OSF1_OS_TRUE=
3854   HAVE_OSF1_OS_FALSE='#'
3855 else
3856   HAVE_OSF1_OS_TRUE='#'
3857   HAVE_OSF1_OS_FALSE=
3858 fi
3859 fi
3860
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3862 then
3863
3864
3865 if $TRUEPRG; then
3866   HAVE_AIX_OS_TRUE=
3867   HAVE_AIX_OS_FALSE='#'
3868 else
3869   HAVE_AIX_OS_TRUE='#'
3870   HAVE_AIX_OS_FALSE=
3871 fi
3872         cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_AIX_OS 1
3874 _ACEOF
3875
3876 else
3877
3878
3879 if $FALSEPRG; then
3880   HAVE_AIX_OS_TRUE=
3881   HAVE_AIX_OS_FALSE='#'
3882 else
3883   HAVE_AIX_OS_TRUE='#'
3884   HAVE_AIX_OS_FALSE=
3885 fi
3886 fi
3887
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3889 then
3890
3891
3892 if $TRUEPRG; then
3893   HAVE_HPUX_OS_TRUE=
3894   HAVE_HPUX_OS_FALSE='#'
3895 else
3896   HAVE_HPUX_OS_TRUE='#'
3897   HAVE_HPUX_OS_FALSE=
3898 fi
3899         cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_HPUX_OS 1
3901 _ACEOF
3902
3903 else
3904
3905
3906 if $FALSEPRG; then
3907   HAVE_HPUX_OS_TRUE=
3908   HAVE_HPUX_OS_FALSE='#'
3909 else
3910   HAVE_HPUX_OS_TRUE='#'
3911   HAVE_HPUX_OS_FALSE=
3912 fi
3913 fi
3914
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3916 then
3917
3918
3919 if $TRUEPRG; then
3920   HAVE_LINUX_OS_TRUE=
3921   HAVE_LINUX_OS_FALSE='#'
3922 else
3923   HAVE_LINUX_OS_TRUE='#'
3924   HAVE_LINUX_OS_FALSE=
3925 fi
3926         cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_LINUX_OS 1
3928 _ACEOF
3929
3930 else
3931
3932
3933 if $FALSEPRG; then
3934   HAVE_LINUX_OS_TRUE=
3935   HAVE_LINUX_OS_FALSE='#'
3936 else
3937   HAVE_LINUX_OS_TRUE='#'
3938   HAVE_LINUX_OS_FALSE=
3939 fi
3940 fi
3941
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3943 then
3944
3945
3946 if $TRUEPRG; then
3947   HAVE_FREEBSD_OS_TRUE=
3948   HAVE_FREEBSD_OS_FALSE='#'
3949 else
3950   HAVE_FREEBSD_OS_TRUE='#'
3951   HAVE_FREEBSD_OS_FALSE=
3952 fi
3953         cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_FREEBSD_OS 1
3955 _ACEOF
3956
3957 else
3958
3959
3960 if $FALSEPRG; then
3961   HAVE_FREEBSD_OS_TRUE=
3962   HAVE_FREEBSD_OS_FALSE='#'
3963 else
3964   HAVE_FREEBSD_OS_TRUE='#'
3965   HAVE_FREEBSD_OS_FALSE=
3966 fi
3967 fi
3968
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3970 then
3971
3972
3973 if $TRUEPRG; then
3974   HAVE_NETBSD_OS_TRUE=
3975   HAVE_NETBSD_OS_FALSE='#'
3976 else
3977   HAVE_NETBSD_OS_TRUE='#'
3978   HAVE_NETBSD_OS_FALSE=
3979 fi
3980         cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_NETBSD_OS 1
3982 _ACEOF
3983
3984 else
3985
3986
3987 if $FALSEPRG; then
3988   HAVE_NETBSD_OS_TRUE=
3989   HAVE_NETBSD_OS_FALSE='#'
3990 else
3991   HAVE_NETBSD_OS_TRUE='#'
3992   HAVE_NETBSD_OS_FALSE=
3993 fi
3994 fi
3995
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3997 then
3998
3999
4000 if $TRUEPRG; then
4001   HAVE_OPENBSD_OS_TRUE=
4002   HAVE_OPENBSD_OS_FALSE='#'
4003 else
4004   HAVE_OPENBSD_OS_TRUE='#'
4005   HAVE_OPENBSD_OS_FALSE=
4006 fi
4007         cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_OPENBSD_OS 1
4009 _ACEOF
4010
4011 else
4012
4013
4014 if $FALSEPRG; then
4015   HAVE_OPENBSD_OS_TRUE=
4016   HAVE_OPENBSD_OS_FALSE='#'
4017 else
4018   HAVE_OPENBSD_OS_TRUE='#'
4019   HAVE_OPENBSD_OS_FALSE=
4020 fi
4021 fi
4022
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4024 then
4025
4026
4027 if $TRUEPRG; then
4028   HAVE_BSDI_OS_TRUE=
4029   HAVE_BSDI_OS_FALSE='#'
4030 else
4031   HAVE_BSDI_OS_TRUE='#'
4032   HAVE_BSDI_OS_FALSE=
4033 fi
4034         cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_BSDI_OS 1
4036 _ACEOF
4037
4038 else
4039
4040
4041 if $FALSEPRG; then
4042   HAVE_BSDI_OS_TRUE=
4043   HAVE_BSDI_OS_FALSE='#'
4044 else
4045   HAVE_BSDI_OS_TRUE='#'
4046   HAVE_BSDI_OS_FALSE=
4047 fi
4048 fi
4049
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4051 then
4052
4053
4054 if $TRUEPRG; then
4055   HAVE_SGI_OS_TRUE=
4056   HAVE_SGI_OS_FALSE='#'
4057 else
4058   HAVE_SGI_OS_TRUE='#'
4059   HAVE_SGI_OS_FALSE=
4060 fi
4061         cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_SGI_OS 1
4063 _ACEOF
4064
4065 else
4066
4067
4068 if $FALSEPRG; then
4069   HAVE_SGI_OS_TRUE=
4070   HAVE_SGI_OS_FALSE='#'
4071 else
4072   HAVE_SGI_OS_TRUE='#'
4073   HAVE_SGI_OS_FALSE=
4074 fi
4075 fi
4076
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4078 then
4079
4080
4081 if $TRUEPRG; then
4082   HAVE_IRIX_OS_TRUE=
4083   HAVE_IRIX_OS_FALSE='#'
4084 else
4085   HAVE_IRIX_OS_TRUE='#'
4086   HAVE_IRIX_OS_FALSE=
4087 fi
4088         cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_IRIX_OS 1
4090 _ACEOF
4091
4092 else
4093
4094
4095 if $FALSEPRG; then
4096   HAVE_IRIX_OS_TRUE=
4097   HAVE_IRIX_OS_FALSE='#'
4098 else
4099   HAVE_IRIX_OS_TRUE='#'
4100   HAVE_IRIX_OS_FALSE=
4101 fi
4102 fi
4103
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4105 then
4106
4107
4108 if $TRUEPRG; then
4109   HAVE_DARWIN_OS_TRUE=
4110   HAVE_DARWIN_OS_FALSE='#'
4111 else
4112   HAVE_DARWIN_OS_TRUE='#'
4113   HAVE_DARWIN_OS_FALSE=
4114 fi
4115     cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_DARWIN_OS 1
4117 _ACEOF
4118
4119 else
4120
4121
4122 if $FALSEPRG; then
4123   HAVE_DARWIN_OS_TRUE=
4124   HAVE_DARWIN_OS_FALSE='#'
4125 else
4126   HAVE_DARWIN_OS_TRUE='#'
4127   HAVE_DARWIN_OS_FALSE=
4128 fi
4129 fi
4130
4131 echo "$as_me:$LINENO: result: \" \"" >&5
4132 echo "${ECHO_T}\" \"" >&6
4133
4134
4135 # -----------------------------------------------------------
4136 # ----------------------------------------------------------
4137 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4138 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4139 if test "x$DISTNAME" != "x"
4140 then
4141         echo "distname set to $DISTNAME"
4142 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 then
4144         DISTNAME=alpha
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 then
4147         DISTNAME=aix
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 then
4150         DISTNAME=hpux
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 then
4153         DISTNAME=solaris
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 then
4156         DISTNAME=freebsd
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 then
4159         DISTNAME=netbsd
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 then
4162         DISTNAME=openbsd
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 then
4165         DISTNAME=irix
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 then
4168         DISTNAME=bsdi
4169 elif test -f /etc/SuSE-release
4170 then
4171         DISTNAME=suse
4172 elif test -d /etc/SuSEconfig
4173 then
4174         DISTNAME=suse5
4175 elif test -f /etc/mandrake-release
4176 then
4177         DISTNAME=mandrake
4178 elif test -f /etc/redhat-release
4179 then
4180         DISTNAME=redhat
4181 elif test -f /etc/gentoo-release
4182 then
4183         DISTNAME=gentoo
4184 elif test -f /etc/debian_version
4185 then
4186         DISTNAME=debian
4187 elif test -f /etc/slackware-version
4188 then
4189         DISTNAME=slackware
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4191 then
4192     DISTNAME=darwin
4193 elif test -f /etc/engarde-version
4194 then
4195         DISTNAME=engarde
4196 elif test "$CYGWIN" = yes
4197 then
4198         DISTNAME=cygwin
4199         cat >>confdefs.h <<\_ACEOF
4200 #define HAVE_CYGWIN 1
4201 _ACEOF
4202
4203 else
4204         DISTNAME=unknown
4205 fi
4206 echo "$as_me:$LINENO: result: \" \"" >&5
4207 echo "${ECHO_T}\" \"" >&6
4208
4209
4210 # -----------------------------------------------------------
4211 # ----------------------------------------------------------
4212
4213
4214
4215 if false; then
4216   INSIDE_GNOME_COMMON_TRUE=
4217   INSIDE_GNOME_COMMON_FALSE='#'
4218 else
4219   INSIDE_GNOME_COMMON_TRUE='#'
4220   INSIDE_GNOME_COMMON_FALSE=
4221 fi
4222
4223         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4224
4225         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4226
4227
4228 # ------------------------------------------------------------------
4229 #  If the user has not set --prefix, we set our default to nothing.
4230 #  In this case, if the user has not set --sysconfdir, we set it
4231 #  to the package default of /etc/bacula.  If either --prefix or
4232 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4233 # ------------------------------------------------------------------
4234 if test x${prefix} = xNONE ; then
4235     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4236         sysconfdir=/etc/bacula
4237     fi
4238     prefix=
4239 fi
4240 sysconfdir=`eval echo ${sysconfdir}`
4241
4242 # -------------------------------------------------------------------------
4243 #  If the user has not set --exec-prefix, we default to ${prefix}
4244 # -------------------------------------------------------------------------
4245 if test x${exec_prefix} = xNONE ; then
4246     exec_prefix=${prefix}
4247 fi
4248
4249 # ------------------------------------------------------------------
4250 # If the user has not set --sbindir, we set our default as /sbin
4251 # ------------------------------------------------------------------
4252 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4253     sbindir=${exec_prefix}/sbin
4254 fi
4255 sbindir=`eval echo ${sbindir}`
4256
4257 # ------------------------------------------------------------------
4258 # All list of languages for which a translation exist. Each
4259 #  language is separated by a space.
4260 # ------------------------------------------------------------------
4261 ALL_LINGUAS=""
4262
4263 for ac_prog in msgfmt
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_MSGFMT+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   case $MSGFMT in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   ;;
4292 esac
4293 fi
4294 MSGFMT=$ac_cv_path_MSGFMT
4295
4296 if test -n "$MSGFMT"; then
4297   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4298 echo "${ECHO_T}$MSGFMT" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$MSGFMT" && break
4305 done
4306 test -n "$MSGFMT" || MSGFMT="no"
4307
4308 if test "$MSGFMT" = "no"
4309 then
4310    echo 'msgfmt program not found, disabling NLS !'
4311    USE_NLS=no
4312    USE_INCLUDED_LIBINTL=no
4313 #else
4314 #   AM_GNU_GETTEXT
4315 fi
4316
4317
4318 support_mysql=no
4319 support_sqlite=no
4320 support_postgresql=no
4321 support_smartalloc=yes
4322 support_readline=no
4323 support_conio=yes
4324 support_gnome=no
4325 gnome_version=
4326 support_static_tools=no
4327 support_static_fd=no
4328 support_static_sd=no
4329 support_static_dir=no
4330 support_static_cons=no
4331 build_client_only=no
4332 cats=
4333 db_name=Internal
4334 DB_NAME=bdb
4335
4336
4337 # -------------------------------------------
4338 # gnome (default off)
4339 # -------------------------------------------
4340 # Check whether --enable-gnome or --disable-gnome was given.
4341 if test "${enable_gnome+set}" = set; then
4342   enableval="$enable_gnome"
4343   if test x$enableval = xyes; then
4344     support_gnome=yes
4345   fi
4346 fi;
4347
4348 GNOME_DIR=
4349 if test x$support_gnome = xyes; then
4350   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4351   pkg=$?
4352   if test $pkg = 0; then
4353      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4354      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4355      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4356      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357
4358
4359
4360
4361      GNOME_DIR=src/gnome2-console
4362      gnome_version="Version 2.x"
4363   else
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4376 if test "${with_gnome_includes+set}" = set; then
4377   withval="$with_gnome_includes"
4378
4379         CFLAGS="$CFLAGS -I$withval"
4380
4381 fi;
4382
4383
4384 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4385 if test "${with_gnome_libs+set}" = set; then
4386   withval="$with_gnome_libs"
4387
4388         LDFLAGS="$LDFLAGS -L$withval"
4389         gnome_prefix=$withval
4390
4391 fi;
4392
4393
4394 # Check whether --with-gnome or --without-gnome was given.
4395 if test "${with_gnome+set}" = set; then
4396   withval="$with_gnome"
4397   if test x$withval = xyes; then
4398                         want_gnome=yes
4399                                                                         :
4400                 else
4401                         if test "x$withval" = xno; then
4402                                 want_gnome=no
4403                         else
4404                                 want_gnome=yes
4405                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4406                                 CFLAGS="$CFLAGS -I$withval/include"
4407                                 gnome_prefix=$withval/lib
4408                         fi
4409                 fi
4410 else
4411   want_gnome=yes
4412 fi;
4413
4414         if test "x$want_gnome" = xyes; then
4415
4416             # Extract the first word of "gnome-config", so it can be a program name with args.
4417 set dummy gnome-config; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   case $GNOME_CONFIG in
4424   [\\/]* | ?:[\\/]*)
4425   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4426   ;;
4427   *)
4428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4443   ;;
4444 esac
4445 fi
4446 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4447
4448 if test -n "$GNOME_CONFIG"; then
4449   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4450 echo "${ECHO_T}$GNOME_CONFIG" >&6
4451 else
4452   echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456             if test "$GNOME_CONFIG" = "no"; then
4457               no_gnome_config="yes"
4458             else
4459               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4460 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4461               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4462                 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4464
4465
4466         # Extract the first word of "orbit-config", so it can be a program name with args.
4467 set dummy orbit-config; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   case $ORBIT_CONFIG in
4474   [\\/]* | ?:[\\/]*)
4475   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4476   ;;
4477   *)
4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4493   ;;
4494 esac
4495 fi
4496 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4497
4498 if test -n "$ORBIT_CONFIG"; then
4499   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4500 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4501 else
4502   echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506         # Extract the first word of "orbit-idl", so it can be a program name with args.
4507 set dummy orbit-idl; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $ORBIT_IDL in
4514   [\\/]* | ?:[\\/]*)
4515   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4516   ;;
4517   *)
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4533   ;;
4534 esac
4535 fi
4536 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4537
4538 if test -n "$ORBIT_IDL"; then
4539   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4540 echo "${ECHO_T}$ORBIT_IDL" >&6
4541 else
4542   echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4547 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4548 if test "${gnome_cv_orbit_found+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551
4552                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4553                         gnome_cv_orbit_found=no
4554                 else
4555                         gnome_cv_orbit_found=yes
4556                 fi
4557
4558 fi
4559 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4560 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4561
4562
4563 if test x$gnome_cv_orbit_found = xyes; then
4564   HAVE_ORBIT_TRUE=
4565   HAVE_ORBIT_FALSE='#'
4566 else
4567   HAVE_ORBIT_TRUE='#'
4568   HAVE_ORBIT_FALSE=
4569 fi
4570         if test x$gnome_cv_orbit_found = xyes; then
4571
4572                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4573                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4574
4575
4576         else
4577                 if test xfail = xfailure; then
4578                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4579 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4580    { (exit 1); exit 1; }; }
4581                 fi
4582         fi
4583
4584         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4585 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4586 if test "${gnome_cv_gnorba_found+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589
4590                 gnome_cv_gnorba_found=no
4591                 if test x$gnome_cv_orbit_found = xyes; then
4592                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4593                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4594                         if test -n "$GNORBA_LIBS"; then
4595                                 gnome_cv_gnorba_found=yes
4596                         fi
4597                 fi
4598
4599 fi
4600 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4601 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4602
4603
4604 if test x$gnome_cv_gnorba_found = xyes; then
4605   HAVE_GNORBA_TRUE=
4606   HAVE_GNORBA_FALSE='#'
4607 else
4608   HAVE_GNORBA_TRUE='#'
4609   HAVE_GNORBA_FALSE=
4610 fi
4611         if test x$gnome_cv_orbit_found = xyes; then
4612
4613                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4614                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4615
4616
4617         else
4618                 if test xfail = xfailure; then
4619                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4620 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4621    { (exit 1); exit 1; }; }
4622                 fi
4623         fi
4624
4625                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4626                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4627                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4628                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4629                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4630                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4631                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4632
4633               else
4634                 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636                 no_gnome_config="yes"
4637               fi
4638             fi
4639
4640             if test x$exec_prefix = xNONE; then
4641                 if test x$prefix = xNONE; then
4642                     gnome_prefix=$ac_default_prefix/lib
4643                 else
4644                     gnome_prefix=$prefix/lib
4645                 fi
4646             else
4647                 gnome_prefix=`eval echo \`echo $libdir\``
4648             fi
4649
4650             if test "$no_gnome_config" = "yes"; then
4651               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4652 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4653               if test -f $gnome_prefix/gnomeConf.sh; then
4654                 echo "$as_me:$LINENO: result: found" >&5
4655 echo "${ECHO_T}found" >&6
4656                 echo "loading gnome configuration from" \
4657                      "$gnome_prefix/gnomeConf.sh"
4658                 . $gnome_prefix/gnomeConf.sh
4659
4660               else
4661                 echo "$as_me:$LINENO: result: not found" >&5
4662 echo "${ECHO_T}not found" >&6
4663                 if test xfail = xfail; then
4664                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4665 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668               fi
4669             fi
4670         fi
4671
4672         if test -n ""; then
4673           n=""
4674           for i in $n; do
4675             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4676 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4677             case $i in
4678               applets)
4679
4680                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4681                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4683               docklets)
4684
4685                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4686                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4688               capplet)
4689
4690                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4691                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4692 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4693               *)
4694                 echo "$as_me:$LINENO: result: unknown library" >&5
4695 echo "${ECHO_T}unknown library" >&6
4696             esac
4697             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4698             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4699           done
4700         fi
4701
4702
4703      GNOME_DIR=src/gnome-console
4704      gnome_version="Version 1.4"
4705   fi
4706 fi
4707
4708
4709
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715   enableval="$enable_smartalloc"
4716   if test x$enableval = xno; then
4717     support_smartalloc=no
4718   fi
4719 fi;
4720
4721 if test x$support_smartalloc = xyes; then
4722    cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4724 _ACEOF
4725
4726 fi
4727
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733   enableval="$enable_static_tools"
4734   if test x$enableval = xyes; then
4735      support_static_tools=yes
4736    fi
4737 fi;
4738
4739 TTOOL_LDFLAGS=
4740 if test x$support_static_tools = xyes; then
4741    TTOOL_LDFLAGS="-static"
4742 fi
4743
4744
4745 # -------------------------------------------
4746 # static-fd    (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750   enableval="$enable_static_fd"
4751   if test x$enableval = xyes; then
4752      support_static_fd=yes
4753    fi
4754 fi;
4755
4756 STATIC_FD=
4757 if test x$support_static_fd = xyes; then
4758    STATIC_FD="static-bacula-fd"
4759 fi
4760
4761
4762 # -------------------------------------------
4763 # static-sd    (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767   enableval="$enable_static_sd"
4768   if test x$enableval = xyes; then
4769      support_static_sd=yes
4770    fi
4771 fi;
4772
4773 STATIC_SD=
4774 if test x$support_static_sd = xyes; then
4775    STATIC_SD="static-bacula-sd"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-dir   (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784   enableval="$enable_static_dir"
4785   if test x$enableval = xyes; then
4786      support_static_dir=yes
4787    fi
4788 fi;
4789
4790 STATIC_DIR=
4791 if test x$support_static_dir = xyes; then
4792    STATIC_DIR="static-bacula-dir"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-cons  (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801   enableval="$enable_static_cons"
4802   if test x$enableval = xyes; then
4803      support_static_cons=yes
4804    fi
4805 fi;
4806
4807 STATIC_CONS=
4808 STATIC_GNOME_CONS=
4809 if test x$support_static_cons = xyes; then
4810    STATIC_CONS="static-bconsole"
4811    STATIC_GNOME_CONS="static-gnome-console"
4812 fi
4813
4814
4815
4816 # -------------------------------------------
4817 # client_only  (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821   enableval="$enable_client_only"
4822   if test x$enableval = xyes; then
4823      build_client_only=yes
4824    fi
4825 fi;
4826 if test x$build_client_only = xno; then
4827    ALL_DIRS="subdirs"
4828 else
4829    ALL_DIRS=""
4830 fi
4831
4832
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839   enableval="$enable_conio"
4840   if test x$enableval = xno; then
4841     support_conio=no
4842   fi
4843 fi;
4844
4845 got_conio="no"
4846 if test x$support_conio = xyes; then
4847    CONS_OBJ="conio.o"
4848    CONS_SRC="conio.c"
4849    got_conio="yes"
4850    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4852 if test "${ac_cv_header_stdc+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <stdlib.h>
4863 #include <stdarg.h>
4864 #include <string.h>
4865 #include <float.h>
4866
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -s conftest.$ac_objext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   ac_cv_header_stdc=yes
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_cv_header_stdc=no
4893 fi
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4895
4896 if test $ac_cv_header_stdc = yes; then
4897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898   cat >conftest.$ac_ext <<_ACEOF
4899 #line $LINENO "configure"
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #include <string.h>
4906
4907 _ACEOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909   $EGREP "memchr" >/dev/null 2>&1; then
4910   :
4911 else
4912   ac_cv_header_stdc=no
4913 fi
4914 rm -f conftest*
4915
4916 fi
4917
4918 if test $ac_cv_header_stdc = yes; then
4919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920   cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 #include <stdlib.h>
4928
4929 _ACEOF
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931   $EGREP "free" >/dev/null 2>&1; then
4932   :
4933 else
4934   ac_cv_header_stdc=no
4935 fi
4936 rm -f conftest*
4937
4938 fi
4939
4940 if test $ac_cv_header_stdc = yes; then
4941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942   if test "$cross_compiling" = yes; then
4943   :
4944 else
4945   cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <ctype.h>
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4956 #else
4957 # define ISLOWER(c) \
4958                    (('a' <= (c) && (c) <= 'i') \
4959                      || ('j' <= (c) && (c) <= 'r') \
4960                      || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4962 #endif
4963
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965 int
4966 main ()
4967 {
4968   int i;
4969   for (i = 0; i < 256; i++)
4970     if (XOR (islower (i), ISLOWER (i))
4971         || toupper (i) != TOUPPER (i))
4972       exit(2);
4973   exit (0);
4974 }
4975 _ACEOF
4976 rm -f conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978   (eval $ac_link) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   :
4988 else
4989   echo "$as_me: program exited with status $ac_status" >&5
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ( exit $ac_status )
4994 ac_cv_header_stdc=no
4995 fi
4996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 fi
4999 fi
5000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5002 if test $ac_cv_header_stdc = yes; then
5003
5004 cat >>confdefs.h <<\_ACEOF
5005 #define STDC_HEADERS 1
5006 _ACEOF
5007
5008 fi
5009
5010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5021                   inttypes.h stdint.h unistd.h
5022 do
5023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_header" >&5
5025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 $ac_includes_default
5037
5038 #include <$ac_header>
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042   (eval $ac_compile) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -s conftest.$ac_objext'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; }; then
5052   eval "$as_ac_Header=yes"
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 eval "$as_ac_Header=no"
5058 fi
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5064   cat >>confdefs.h <<_ACEOF
5065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 _ACEOF
5067
5068 fi
5069
5070 done
5071
5072
5073
5074 for ac_header in termcap.h
5075 do
5076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078   echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 fi
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5085 else
5086   # Is the header compilable?
5087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 $ac_includes_default
5097 #include <$ac_header>
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101   (eval $ac_compile) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest.$ac_objext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_header_compiler=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_compiler=no
5117 fi
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5121
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <$ac_header>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_c_preproc_warn_flag
5144   else
5145     ac_cpp_err=
5146   fi
5147 else
5148   ac_cpp_err=yes
5149 fi
5150 if test -z "$ac_cpp_err"; then
5151   ac_header_preproc=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156   ac_header_preproc=no
5157 fi
5158 rm -f conftest.err conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5161
5162 # So?  What about this header?
5163 case $ac_header_compiler:$ac_header_preproc in
5164   yes:no )
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169     (
5170       cat <<\_ASBOX
5171 ## ------------------------------------ ##
5172 ## Report this to bug-autoconf@gnu.org. ##
5173 ## ------------------------------------ ##
5174 _ASBOX
5175     ) |
5176       sed "s/^/$as_me: WARNING:     /" >&2
5177     ;;
5178   no:yes )
5179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185     (
5186       cat <<\_ASBOX
5187 ## ------------------------------------ ##
5188 ## Report this to bug-autoconf@gnu.org. ##
5189 ## ------------------------------------ ##
5190 _ASBOX
5191     ) |
5192       sed "s/^/$as_me: WARNING:     /" >&2
5193     ;;
5194 esac
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   eval "$as_ac_Header=$ac_header_preproc"
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204
5205 fi
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207   cat >>confdefs.h <<_ACEOF
5208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5209 _ACEOF
5210
5211 fi
5212
5213 done
5214
5215    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5216 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5217 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-ltermcap  $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229
5230 /* Override any gcc2 internal prototype to avoid an error.  */
5231 #ifdef __cplusplus
5232 extern "C"
5233 #endif
5234 /* We use char because int might match the return type of a gcc2
5235    builtin and then its argument prototype would still apply.  */
5236 char tgetent ();
5237 int
5238 main ()
5239 {
5240 tgetent ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247   (eval $ac_link) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest$ac_exeext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_lib_termcap_tgetent=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_lib_termcap_tgetent=no
5263 fi
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5268 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5269 if test $ac_cv_lib_termcap_tgetent = yes; then
5270   CONS_LIBS="-ltermcap"
5271 fi
5272
5273    support_readline=no
5274
5275 cat >>confdefs.h <<\_ACEOF
5276 #define HAVE_CONIO 1
5277 _ACEOF
5278
5279 fi
5280
5281
5282 # ---------------------------------------------------
5283 # Check for readline support/directory (default off)
5284 # ---------------------------------------------------
5285 # this allows you to turn it completely off
5286 # Check whether --enable-readline or --disable-readline was given.
5287 if test "${enable_readline+set}" = set; then
5288   enableval="$enable_readline"
5289   if test x$enableval = xno; then
5290     support_readline=no
5291   fi
5292 fi;
5293
5294 got_readline="no"
5295 READLINE_SRC=
5296 if test x$support_readline = xyes; then
5297
5298 # Check whether --with-readline or --without-readline was given.
5299 if test "${with_readline+set}" = set; then
5300   withval="$with_readline"
5301
5302         case "$with_readline" in
5303         no) : ;;
5304         yes|*)
5305           if test "$with_readline" != "yes"; then
5306             CONS_INC="-I${with_readline}"
5307             CONS_LDFLAGS="-L$with_readline"
5308           else
5309              with_readline="/usr/include/readline"
5310           fi
5311           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5314 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 fi
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320 else
5321   # Is the header compilable?
5322 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5323 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 #include <${with_readline}/readline.h>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336   (eval $ac_compile) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_header_compiler=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352 fi
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5359 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 #include <${with_readline}/readline.h>
5368 _ACEOF
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } >/dev/null; then
5377   if test -s conftest.err; then
5378     ac_cpp_err=$ac_c_preproc_warn_flag
5379   else
5380     ac_cpp_err=
5381   fi
5382 else
5383   ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386   ac_header_preproc=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391   ac_header_preproc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397 # So?  What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5399   yes:no )
5400     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5404     (
5405       cat <<\_ASBOX
5406 ## ------------------------------------ ##
5407 ## Report this to bug-autoconf@gnu.org. ##
5408 ## ------------------------------------ ##
5409 _ASBOX
5410     ) |
5411       sed "s/^/$as_me: WARNING:     /" >&2
5412     ;;
5413   no:yes )
5414     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5420     (
5421       cat <<\_ASBOX
5422 ## ------------------------------------ ##
5423 ## Report this to bug-autoconf@gnu.org. ##
5424 ## ------------------------------------ ##
5425 _ASBOX
5426     ) |
5427       sed "s/^/$as_me: WARNING:     /" >&2
5428     ;;
5429 esac
5430 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5431 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   eval "$as_ac_Header=$ac_header_preproc"
5436 fi
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439
5440 fi
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442    cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_READLINE 1
5444 _ACEOF
5445
5446                CONS_LIBS="-lreadline -ltermcap"
5447                got_readline="yes"
5448
5449 else
5450    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5451 echo "$as_me: error: *** readline library missing" >&2;}
5452    { (exit 1); exit 1; }; }
5453
5454
5455 fi
5456
5457
5458           ;;
5459         esac
5460
5461 else
5462
5463        # check for standard readline library
5464        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5466 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5467 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5471 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5472 else
5473   # Is the header compilable?
5474 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5475 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 $ac_includes_default
5484 #include </usr/include/readline/readline.h>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest.$ac_objext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_header_compiler=yes
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_compiler=no
5504 fi
5505 rm -f conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6
5508
5509 # Is the header present?
5510 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5511 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 #include </usr/include/readline/readline.h>
5520 _ACEOF
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } >/dev/null; then
5529   if test -s conftest.err; then
5530     ac_cpp_err=$ac_c_preproc_warn_flag
5531   else
5532     ac_cpp_err=
5533   fi
5534 else
5535   ac_cpp_err=yes
5536 fi
5537 if test -z "$ac_cpp_err"; then
5538   ac_header_preproc=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543   ac_header_preproc=no
5544 fi
5545 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5547 echo "${ECHO_T}$ac_header_preproc" >&6
5548
5549 # So?  What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
5551   yes:no )
5552     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5554     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5556     (
5557       cat <<\_ASBOX
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5561 _ASBOX
5562     ) |
5563       sed "s/^/$as_me: WARNING:     /" >&2
5564     ;;
5565   no:yes )
5566     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5570     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5572     (
5573       cat <<\_ASBOX
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5577 _ASBOX
5578     ) |
5579       sed "s/^/$as_me: WARNING:     /" >&2
5580     ;;
5581 esac
5582 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5583 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5584 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5590 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5591
5592 fi
5593 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5594    cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_READLINE 1
5596 _ACEOF
5597
5598            got_readline="yes"
5599            CONS_INC="-I/usr/include/readline"
5600            CONS_LIBS="-lreadline -ltermcap"
5601
5602 else
5603
5604            # Did not find standard library, so try Bacula's default
5605             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5608 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 fi
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5614 else
5615   # Is the header compilable?
5616 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 $ac_includes_default
5626 #include <${TOP_DIR}/depkgs/readline/readline.h>
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -s conftest.$ac_objext'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_header_compiler=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #include <${TOP_DIR}/depkgs/readline/readline.h>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } >/dev/null; then
5671   if test -s conftest.err; then
5672     ac_cpp_err=$ac_c_preproc_warn_flag
5673   else
5674     ac_cpp_err=
5675   fi
5676 else
5677   ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680   ac_header_preproc=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685   ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So?  What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5693   yes:no )
5694     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698     (
5699       cat <<\_ASBOX
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5703 _ASBOX
5704     ) |
5705       sed "s/^/$as_me: WARNING:     /" >&2
5706     ;;
5707   no:yes )
5708     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714     (
5715       cat <<\_ASBOX
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5719 _ASBOX
5720     ) |
5721       sed "s/^/$as_me: WARNING:     /" >&2
5722     ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5725 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   eval "$as_ac_Header=$ac_header_preproc"
5730 fi
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733
5734 fi
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736    cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5738 _ACEOF
5739
5740                  got_readline="yes"
5741                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5742                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5743                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5744                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5745
5746 else
5747    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5748 echo "$as_me: error: *** readline library missing" >&2;}
5749    { (exit 1); exit 1; }; }
5750
5751
5752 fi
5753
5754
5755
5756
5757 fi
5758
5759
5760
5761
5762 fi;
5763 fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774 # Minimal stuff for readline Makefile configuration
5775 MAKE_SHELL=/bin/sh
5776
5777
5778 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5779 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5780 if test "${ac_cv_header_stat_broken+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5792
5793 #if defined(S_ISBLK) && defined(S_IFDIR)
5794 # if S_ISBLK (S_IFDIR)
5795 You lose.
5796 # endif
5797 #endif
5798
5799 #if defined(S_ISBLK) && defined(S_IFCHR)
5800 # if S_ISBLK (S_IFCHR)
5801 You lose.
5802 # endif
5803 #endif
5804
5805 #if defined(S_ISLNK) && defined(S_IFREG)
5806 # if S_ISLNK (S_IFREG)
5807 You lose.
5808 # endif
5809 #endif
5810
5811 #if defined(S_ISSOCK) && defined(S_IFREG)
5812 # if S_ISSOCK (S_IFREG)
5813 You lose.
5814 # endif
5815 #endif
5816
5817 _ACEOF
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819   $EGREP "You lose" >/dev/null 2>&1; then
5820   ac_cv_header_stat_broken=yes
5821 else
5822   ac_cv_header_stat_broken=no
5823 fi
5824 rm -f conftest*
5825
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5829 if test $ac_cv_header_stat_broken = yes; then
5830
5831 cat >>confdefs.h <<\_ACEOF
5832 #define STAT_MACROS_BROKEN 1
5833 _ACEOF
5834
5835 fi
5836
5837
5838
5839
5840
5841
5842 ac_header_dirent=no
5843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5844   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5845 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 #include <sys/types.h>
5858 #include <$ac_hdr>
5859
5860 int
5861 main ()
5862 {
5863 if ((DIR *) 0)
5864 return 0;
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   eval "$as_ac_Header=yes"
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 eval "$as_ac_Header=no"
5887 fi
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893   cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 ac_header_dirent=$ac_hdr; break
5898 fi
5899
5900 done
5901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5902 if test $ac_header_dirent = dirent.h; then
5903   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_func_search_save_LIBS=$LIBS
5909 ac_cv_search_opendir=no
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917
5918 /* Override any gcc2 internal prototype to avoid an error.  */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923    builtin and then its argument prototype would still apply.  */
5924 char opendir ();
5925 int
5926 main ()
5927 {
5928 opendir ();
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_search_opendir="none required"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 fi
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 if test "$ac_cv_search_opendir" = no; then
5953   for ac_lib in dir; do
5954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5955     cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962
5963 /* Override any gcc2 internal prototype to avoid an error.  */
5964 #ifdef __cplusplus
5965 extern "C"
5966 #endif
5967 /* We use char because int might match the return type of a gcc2
5968    builtin and then its argument prototype would still apply.  */
5969 char opendir ();
5970 int
5971 main ()
5972 {
5973 opendir ();
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980   (eval $ac_link) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -s conftest$ac_exeext'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; }; then
5990   ac_cv_search_opendir="-l$ac_lib"
5991 break
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 fi
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998   done
5999 fi
6000 LIBS=$ac_func_search_save_LIBS
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6003 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6004 if test "$ac_cv_search_opendir" != no; then
6005   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6006
6007 fi
6008
6009 else
6010   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024
6025 /* Override any gcc2 internal prototype to avoid an error.  */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 /* We use char because int might match the return type of a gcc2
6030    builtin and then its argument prototype would still apply.  */
6031 char opendir ();
6032 int
6033 main ()
6034 {
6035 opendir ();
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042   (eval $ac_link) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -s conftest$ac_exeext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   ac_cv_search_opendir="none required"
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 fi
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6060   for ac_lib in x; do
6061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6062     cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 /* Override any gcc2 internal prototype to avoid an error.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 /* We use char because int might match the return type of a gcc2
6075    builtin and then its argument prototype would still apply.  */
6076 char opendir ();
6077 int
6078 main ()
6079 {
6080 opendir ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_search_opendir="-l$ac_lib"
6098 break
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 fi
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105   done
6106 fi
6107 LIBS=$ac_func_search_save_LIBS
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6113
6114 fi
6115
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6128 do
6129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 /* System header to define __stub macros and hopefully few prototypes,
6143     which can conflict with char $ac_func (); below.
6144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145     <limits.h> exists even on freestanding compilers.  */
6146 #ifdef __STDC__
6147 # include <limits.h>
6148 #else
6149 # include <assert.h>
6150 #endif
6151 /* Override any gcc2 internal prototype to avoid an error.  */
6152 #ifdef __cplusplus
6153 extern "C"
6154 {
6155 #endif
6156 /* We use char because int might match the return type of a gcc2
6157    builtin and then its argument prototype would still apply.  */
6158 char $ac_func ();
6159 /* The GNU C library defines this for functions which it implements
6160     to always fail with ENOSYS.  Some functions are actually named
6161     something starting with __ and the normal name is an alias.  */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 choke me
6164 #else
6165 char (*f) () = $ac_func;
6166 #endif
6167 #ifdef __cplusplus
6168 }
6169 #endif
6170
6171 int
6172 main ()
6173 {
6174 return f != $ac_func;
6175   ;
6176   return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181   (eval $ac_link) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -s conftest$ac_exeext'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191   eval "$as_ac_var=yes"
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 eval "$as_ac_var=no"
6197 fi
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6199 fi
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6202 if test `eval echo '${'$as_ac_var'}'` = yes; then
6203   cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6205 _ACEOF
6206
6207 fi
6208 done
6209
6210
6211 for ac_func in nanosleep
6212 do
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 /* System header to define __stub macros and hopefully few prototypes,
6227     which can conflict with char $ac_func (); below.
6228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229     <limits.h> exists even on freestanding compilers.  */
6230 #ifdef __STDC__
6231 # include <limits.h>
6232 #else
6233 # include <assert.h>
6234 #endif
6235 /* Override any gcc2 internal prototype to avoid an error.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 {
6239 #endif
6240 /* We use char because int might match the return type of a gcc2
6241    builtin and then its argument prototype would still apply.  */
6242 char $ac_func ();
6243 /* The GNU C library defines this for functions which it implements
6244     to always fail with ENOSYS.  Some functions are actually named
6245     something starting with __ and the normal name is an alias.  */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 choke me
6248 #else
6249 char (*f) () = $ac_func;
6250 #endif
6251 #ifdef __cplusplus
6252 }
6253 #endif
6254
6255 int
6256 main ()
6257 {
6258 return f != $ac_func;
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265   (eval $ac_link) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } &&
6269          { ac_try='test -s conftest$ac_exeext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   eval "$as_ac_var=yes"
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 eval "$as_ac_var=no"
6281 fi
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6286 if test `eval echo '${'$as_ac_var'}'` = yes; then
6287   cat >>confdefs.h <<_ACEOF
6288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6289 _ACEOF
6290
6291 fi
6292 done
6293
6294
6295
6296 for ac_header in varargs.h
6297 do
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300   echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 fi
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6307 else
6308   # Is the header compilable?
6309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 $ac_includes_default
6319 #include <$ac_header>
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323   (eval $ac_compile) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -s conftest.$ac_objext'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; }; then
6333   ac_header_compiler=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_compiler=no
6339 fi
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6342 echo "${ECHO_T}$ac_header_compiler" >&6
6343
6344 # Is the header present?
6345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <$ac_header>
6355 _ACEOF
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } >/dev/null; then
6364   if test -s conftest.err; then
6365     ac_cpp_err=$ac_c_preproc_warn_flag
6366   else
6367     ac_cpp_err=
6368   fi
6369 else
6370   ac_cpp_err=yes
6371 fi
6372 if test -z "$ac_cpp_err"; then
6373   ac_header_preproc=yes
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378   ac_header_preproc=no
6379 fi
6380 rm -f conftest.err conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382 echo "${ECHO_T}$ac_header_preproc" >&6
6383
6384 # So?  What about this header?
6385 case $ac_header_compiler:$ac_header_preproc in
6386   yes:no )
6387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391     (
6392       cat <<\_ASBOX
6393 ## ------------------------------------ ##
6394 ## Report this to bug-autoconf@gnu.org. ##
6395 ## ------------------------------------ ##
6396 _ASBOX
6397     ) |
6398       sed "s/^/$as_me: WARNING:     /" >&2
6399     ;;
6400   no:yes )
6401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6407     (
6408       cat <<\_ASBOX
6409 ## ------------------------------------ ##
6410 ## Report this to bug-autoconf@gnu.org. ##
6411 ## ------------------------------------ ##
6412 _ASBOX
6413     ) |
6414       sed "s/^/$as_me: WARNING:     /" >&2
6415     ;;
6416 esac
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   eval "$as_ac_Header=$ac_header_preproc"
6423 fi
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426
6427 fi
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429   cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 _ACEOF
6432
6433 fi
6434
6435 done
6436
6437
6438 # End of readline/conio stuff
6439 # -----------------------------------------------------------------------
6440
6441
6442 # ---------------------------------------------------
6443 # Check for GMP support/directory
6444 # ---------------------------------------------------
6445 #GMP_SRC=
6446 #local_gmp="no"
6447 #AC_ARG_WITH(gmp,
6448 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6449 #  [
6450 #     case "$with_gmp" in
6451 #     no) : ;;
6452 #     yes|*)
6453 #       if test "$with_gmp" != "yes"; then
6454 #         GMP_INC="-I$with_gmp"
6455 #         GMP_LIBS="-lgmp"
6456 #         GMP_LDFLAGS="-L$with_gmp"
6457 #       else
6458 #          with_gmp="/usr/include"
6459 #       fi
6460 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6461 #          [ AC_MSG_RESULT(yes)
6462 #            AC_DEFINE(HAVE_GMP)
6463 #            GMP_LIBS="-lgmp"
6464 #            got_gmp="yes"
6465 #          ],
6466 #          [ AC_MSG_ERROR([*** gmp library missing])
6467 #          ]
6468 #       )
6469 #       ;;
6470 #     esac
6471 #  ],[
6472 #    # check for standard gmp library
6473 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6474 #    [ AC_MSG_RESULT(yes)
6475 #      AC_DEFINE(HAVE_GMP)
6476 #      got_gmp="yes"
6477 #      GMP_INC=
6478 #      GMP_LIBS="-lgmp"
6479 #    ], [
6480 #      # Did not find standard library, so use our own
6481 #      AC_MSG_RESULT(yes)
6482 #      AC_DEFINE(HAVE_GMP)
6483 #      got_gmp="yes"
6484 #      local_gmp="yes"
6485 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6486 #      GMP_LIBS="-lgmp"
6487 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6488 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6489 #    ])
6490 #  ]
6491 #)
6492 #AC_SUBST(GMP_INC)
6493 #AC_SUBST(GMP_LIBS)
6494 #AC_SUBST(GMP_LDFLAGS)
6495 #AC_SUBST(GMP_SRC)
6496
6497 # End of GMP stuff
6498 # -----------------------------------------------------------------------
6499
6500
6501 # ---------------------------------------------------
6502 # Check for CWEB support/directory
6503 # ---------------------------------------------------
6504 #CWEB_SRC=
6505 #CWEB=/bin
6506 #local_cweb="no"
6507 #AC_ARG_WITH(cweb,
6508 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6509 #  [
6510 #     case "$with_cweb" in
6511 #     no) : ;;
6512 #     yes|*)
6513 #       if test "$with_cweb" != "yes"; then
6514 #         CWEB_INC="-I$with_cweb"
6515 #         CWEB_LIBS="-lcweb"
6516 #         CWEB_LDFLAGS="-L$with_cweb"
6517 #       else
6518 #          with_cweb="/usr/include"
6519 #       fi
6520 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6521 #          [ AC_MSG_RESULT(yes)
6522 #            AC_DEFINE(HAVE_CWEB)
6523 #            CWEB_LIBS="-lcweb"
6524 #            got_cweb="yes"
6525 #          ],
6526 #          [ AC_MSG_ERROR([*** cweb library missing])
6527 #          ]
6528 #       )
6529 #       ;;
6530 #     esac
6531 #  ],[
6532 #    # check for standard cweb library
6533 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6534 #    [ AC_MSG_RESULT(yes)
6535 #      AC_DEFINE(HAVE_CWEB)
6536 #      got_cweb="yes"
6537 #      CWEB_INC=
6538 #      CWEB_LIBS="-lcweb"
6539 #    ], [
6540 #      # Did not find starndard library, so use our own
6541 #      AC_MSG_RESULT(yes)
6542 #      AC_DEFINE(HAVE_CWEB)
6543 #      got_cweb="yes"
6544 #      local_cweb="yes"
6545 #      CWEB=${TOP_DIR}/depkgs/cweb
6546 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6547 #      CWEB_LIBS="-lcweb"
6548 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6549 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6550 #    ])
6551 #  ]
6552 #)
6553 #AC_SUBST(CWEB)
6554 #AC_SUBST(CWEB_INC)
6555 #AC_SUBST(CWEB_LIBS)
6556 #AC_SUBST(CWEB_LDFLAGS)
6557 #AC_SUBST(CWEB_SRC)
6558
6559 # End of CWEB stuff
6560 # -----------------------------------------------------------------------
6561
6562
6563
6564 # -----------------------------------------------------------
6565 # Check whether user wants TCP wrappers support (default off)
6566 # -----------------------------------------------------------
6567 TCPW_MSG="no"
6568
6569 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6570 if test "${with_tcp_wrappers+set}" = set; then
6571   withval="$with_tcp_wrappers"
6572
6573     if test "x$withval" != "xno" ; then
6574        saved_LIBS="$LIBS"
6575        LIBS="$saved_LIBS -lwrap"
6576        echo "$as_me:$LINENO: checking for libwrap" >&5
6577 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6578        cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585  #include <tcpd.h>
6586              int deny_severity = 0;
6587              int allow_severity = 0;
6588              struct request_info *req;
6589 int
6590 main ()
6591 {
6592  hosts_access(req);
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609
6610             echo "$as_me:$LINENO: result: yes" >&5
6611 echo "${ECHO_T}yes" >&6
6612             cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_LIBWRAP 1
6614 _ACEOF
6615
6616             TCPW_MSG="yes"
6617
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622
6623             LIBS="$saved_LIBS -lwrap -lnsl"
6624             cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631  #include <tcpd.h>
6632                  int deny_severity = 0;
6633                  int allow_severity = 0;
6634                  struct request_info *req;
6635 int
6636 main ()
6637 {
6638  hosts_access(req);
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645   (eval $ac_link) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } &&
6649          { ac_try='test -s conftest$ac_exeext'
6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651   (eval $ac_try) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; }; then
6655
6656                  echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658                  cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_LIBWRAP 1
6660 _ACEOF
6661
6662                  TCPW_MSG="yes"
6663
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6669 echo "$as_me: error: *** libwrap missing" >&2;}
6670    { (exit 1); exit 1; }; }
6671
6672 fi
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677     fi
6678
6679
6680 fi;
6681
6682 # ------------------------------------------
6683 # Where to place working dir
6684 # ------------------------------------------
6685 working_dir=`eval echo ${prefix}/var/bacula/working`
6686
6687 # Check whether --with-working-dir or --without-working-dir was given.
6688 if test "${with_working_dir+set}" = set; then
6689   withval="$with_working_dir"
6690
6691        if test "x$withval" != "xno" ; then
6692               working_dir=$withval
6693        fi
6694
6695
6696 fi;
6697
6698
6699
6700
6701 # ------------------------------------------
6702 # Where to place scriptdir (script files)
6703 # ------------------------------------------
6704 scriptdir=`eval echo ${sysconfdir}`
6705
6706 # Check whether --with-scriptdir or --without-scriptdir was given.
6707 if test "${with_scriptdir+set}" = set; then
6708   withval="$with_scriptdir"
6709
6710        if test "x$withval" != "xno" ; then
6711               scriptdir=$withval
6712        fi
6713
6714
6715 fi;
6716
6717
6718
6719
6720 # ------------------------------------------
6721 # Where to send dump email
6722 # ------------------------------------------
6723 dump_email=root@localhost
6724
6725 # Check whether --with-dump-email or --without-dump-email was given.
6726 if test "${with_dump_email+set}" = set; then
6727   withval="$with_dump_email"
6728
6729        if test "x$withval" != "xno" ; then
6730               dump_email=$withval
6731        fi
6732
6733
6734 fi;
6735
6736
6737
6738 # ------------------------------------------
6739 # Where to send job email
6740 # ------------------------------------------
6741 job_email=root@localhost
6742
6743 # Check whether --with-job-email or --without-job-email was given.
6744 if test "${with_job_email+set}" = set; then
6745   withval="$with_job_email"
6746
6747        if test "x$withval" != "xno" ; then
6748               job_email=$withval
6749        fi
6750
6751
6752 fi;
6753
6754
6755
6756 # ------------------------------------------
6757 # Where to find smtp host
6758 # ------------------------------------------
6759 smtp_host=localhost
6760
6761 # Check whether --with-smtp_host or --without-smtp_host was given.
6762 if test "${with_smtp_host+set}" = set; then
6763   withval="$with_smtp_host"
6764
6765        if test "x$withval" != "xno" ; then
6766               smtp_host=$withval
6767        fi
6768
6769
6770 fi;
6771
6772
6773
6774
6775 # ------------------------------------
6776 # Where to place pid files
6777 # ------------------------------------
6778 piddir=/var/run
6779
6780 # Check whether --with-pid-dir or --without-pid-dir was given.
6781 if test "${with_pid_dir+set}" = set; then
6782   withval="$with_pid_dir"
6783
6784         if test "x$withval" != "xno" ; then
6785             piddir=$withval
6786         fi
6787
6788
6789 fi;
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define _PATH_BACULA_PIDDIR "$piddir"
6793 _ACEOF
6794
6795
6796
6797
6798 # ------------------------------------
6799 # Where to place subsys "lock file"
6800 # ------------------------------------
6801 subsysdir=/var/run/subsys
6802
6803 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6804 if test "${with_subsys_dir+set}" = set; then
6805   withval="$with_subsys_dir"
6806
6807         if test "x$withval" != "xno" ; then
6808             subsysdir=$withval
6809         fi
6810
6811
6812 fi;
6813
6814
6815
6816
6817
6818 # ------------------------------------
6819 # Where to start assigning ports
6820 # ------------------------------------
6821 baseport=9101
6822
6823 # Check whether --with-baseport or --without-baseport was given.
6824 if test "${with_baseport+set}" = set; then
6825   withval="$with_baseport"
6826
6827         if test "x$withval" != "xno" ; then
6828              baseport=$withval
6829         fi
6830
6831
6832 fi;
6833
6834
6835 dir_port=`expr $baseport`
6836 fd_port=`expr $baseport + 1`
6837 sd_port=`expr $fd_port + 1`
6838
6839
6840
6841
6842
6843
6844 # ------------------------------------------
6845 # Generate passwords
6846 # ------------------------------------------
6847 dir_password=
6848
6849 # Check whether --with-dir-password or --without-dir-password was given.
6850 if test "${with_dir_password+set}" = set; then
6851   withval="$with_dir_password"
6852
6853        if test "x$withval" != "xno" ; then
6854            dir_password=$withval
6855        fi
6856
6857
6858 fi;
6859
6860 if test "x$dir_password" = "x" ; then
6861    if test "x$OPENSSL" = "xnone" ; then
6862 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6863       key=`autoconf/randpass 33`
6864    else
6865       key=`openssl rand -base64 33`
6866    fi
6867    dir_password=$key
6868 fi
6869
6870 fd_password=
6871
6872 # Check whether --with-fd-password or --without-fd-password was given.
6873 if test "${with_fd_password+set}" = set; then
6874   withval="$with_fd_password"
6875
6876        if test "x$withval" != "xno" ; then
6877            fd_password=$withval
6878        fi
6879
6880
6881 fi;
6882
6883 if test "x$fd_password" = "x" ; then
6884    if test "x$OPENSSL" = "xnone" ; then
6885 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6886       key=`autoconf/randpass 37`
6887    else
6888       key=`openssl rand -base64 33`
6889    fi
6890    fd_password=$key
6891 fi
6892
6893 sd_password=
6894
6895 # Check whether --with-sd-password or --without-sd-password was given.
6896 if test "${with_sd_password+set}" = set; then
6897   withval="$with_sd_password"
6898
6899        if test "x$withval" != "xno" ; then
6900            sd_password=$withval
6901        fi
6902
6903
6904 fi;
6905
6906 if test "x$sd_password" = "x" ; then
6907    if test "x$OPENSSL" = "xnone" ; then
6908 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6909       key=`autoconf/randpass 41`
6910    else
6911       key=`openssl rand -base64 33`
6912    fi
6913    sd_password=$key
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922 #
6923 # Handle users and groups for each daemon
6924 #
6925 dir_user=
6926
6927 # Check whether --with-dir_user or --without-dir_user was given.
6928 if test "${with_dir_user+set}" = set; then
6929   withval="$with_dir_user"
6930
6931         if test "x$withval" != "x" ; then
6932              dir_user=$withval
6933         fi
6934
6935
6936 fi;
6937
6938 dir_group=
6939
6940 # Check whether --with-dir_group or --without-dir_group was given.
6941 if test "${with_dir_group+set}" = set; then
6942   withval="$with_dir_group"
6943
6944         if test "x$withval" != "x" ; then
6945              dir_group=$withval
6946         fi
6947
6948
6949 fi;
6950
6951 sd_user=
6952
6953 # Check whether --with-sd_user or --without-sd_user was given.
6954 if test "${with_sd_user+set}" = set; then
6955   withval="$with_sd_user"
6956
6957         if test "x$withval" != "x" ; then
6958              sd_user=$withval
6959         fi
6960
6961
6962 fi;
6963
6964 sd_group=
6965
6966 # Check whether --with-sd_group or --without-sd_group was given.
6967 if test "${with_sd_group+set}" = set; then
6968   withval="$with_sd_group"
6969
6970         if test "x$withval" != "x" ; then
6971              sd_group=$withval
6972         fi
6973
6974
6975 fi;
6976
6977 fd_user=
6978
6979 # Check whether --with-fd_user or --without-fd_user was given.
6980 if test "${with_fd_user+set}" = set; then
6981   withval="$with_fd_user"
6982
6983         if test "x$withval" != "x" ; then
6984              fd_user=$withval
6985         fi
6986
6987
6988 fi;
6989
6990 fd_group=
6991
6992 # Check whether --with-fd_group or --without-fd_group was given.
6993 if test "${with_fd_group+set}" = set; then
6994   withval="$with_fd_group"
6995
6996         if test "x$withval" != "x" ; then
6997              fd_group=$withval
6998         fi
6999
7000
7001 fi;
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 # ------------------------------------------------
7014 # Bacula check for various SQL database engines
7015 # ------------------------------------------------
7016
7017 db_found=no
7018 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7019 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7020
7021 # Check whether --with-postgresql or --without-postgresql was given.
7022 if test "${with_postgresql+set}" = set; then
7023   withval="$with_postgresql"
7024
7025   if test "$withval" != "no"; then
7026       if test "$db_found" = "yes"; then
7027           echo "$as_me:$LINENO: result: error" >&5
7028 echo "${ECHO_T}error" >&6
7029           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7030 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7031    { (exit 1); exit 1; }; };
7032       fi
7033       if test "$withval" = "yes"; then
7034           if test -f /usr/local/include/libpq-fe.h; then
7035               POSTGRESQL_INCDIR=/usr/local/include
7036               POSTGRESQL_LIBDIR=/usr/local/lib
7037               POSTGRESQL_BINDIR=/usr/local/bin
7038           elif test -f /usr/include/libpq-fe.h; then
7039               POSTGRESQL_INCDIR=/usr/include
7040               POSTGRESQL_LIBDIR=/usr/lib
7041               POSTGRESQL_BINDIR=/usr/bin
7042           elif test -f /usr/include/pgsql/libpq-fe.h; then
7043               POSTGRESQL_INCDIR=/usr/include/pgsql
7044               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7045               POSTGRESQL_BINDIR=/usr/bin
7046           else
7047               echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7050 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7051    { (exit 1); exit 1; }; }
7052           fi
7053       elif test -f $withval/libpq-fe.h; then
7054           POSTGRESQL_INCDIR=$withval
7055           POSTGRESQL_LIBDIR=$withval
7056           POSTGRESQL_BINDIR=$withval
7057       else
7058           echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6
7060           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7061 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7062    { (exit 1); exit 1; }; }
7063       fi
7064       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7065       echo "$as_me:$LINENO: checking for crypt" >&5
7066 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7067 if test "${ac_cv_func_crypt+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   cat >conftest.$ac_ext <<_ACEOF
7071 #line $LINENO "configure"
7072 /* confdefs.h.  */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h.  */
7077 /* System header to define __stub macros and hopefully few prototypes,
7078     which can conflict with char crypt (); below.
7079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080     <limits.h> exists even on freestanding compilers.  */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086 /* Override any gcc2 internal prototype to avoid an error.  */
7087 #ifdef __cplusplus
7088 extern "C"
7089 {
7090 #endif
7091 /* We use char because int might match the return type of a gcc2
7092    builtin and then its argument prototype would still apply.  */
7093 char crypt ();
7094 /* The GNU C library defines this for functions which it implements
7095     to always fail with ENOSYS.  Some functions are actually named
7096     something starting with __ and the normal name is an alias.  */
7097 #if defined (__stub_crypt) || defined (__stub___crypt)
7098 choke me
7099 #else
7100 char (*f) () = crypt;
7101 #endif
7102 #ifdef __cplusplus
7103 }
7104 #endif
7105
7106 int
7107 main ()
7108 {
7109 return f != crypt;
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116   (eval $ac_link) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); } &&
7120          { ac_try='test -s conftest$ac_exeext'
7121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122   (eval $ac_try) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); }; }; then
7126   ac_cv_func_crypt=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 ac_cv_func_crypt=no
7132 fi
7133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7134 fi
7135 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7136 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7137 if test $ac_cv_func_crypt = yes; then
7138   :
7139 else
7140   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7141 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7142 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   ac_check_lib_save_LIBS=$LIBS
7146 LIBS="-lcrypt  $LIBS"
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154
7155 /* Override any gcc2 internal prototype to avoid an error.  */
7156 #ifdef __cplusplus
7157 extern "C"
7158 #endif
7159 /* We use char because int might match the return type of a gcc2
7160    builtin and then its argument prototype would still apply.  */
7161 char crypt ();
7162 int
7163 main ()
7164 {
7165 crypt ();
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172   (eval $ac_link) 2>&5
7173   ac_status=$?
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -s conftest$ac_exeext'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; }; then
7182   ac_cv_lib_crypt_crypt=yes
7183 else
7184   echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_cv_lib_crypt_crypt=no
7188 fi
7189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7190 LIBS=$ac_check_lib_save_LIBS
7191 fi
7192 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7193 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7194 if test $ac_cv_lib_crypt_crypt = yes; then
7195   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7196 fi
7197
7198 fi
7199
7200       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7201       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7202       SQL_BINDIR=$POSTGRESQL_BINDIR
7203       cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_POSTGRESQL 1
7205 _ACEOF
7206
7207       echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7209       db_found=yes
7210       support_postgresql=yes
7211       db_name=PostgreSQL
7212       DB_NAME=postgresql
7213   else
7214       echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7216   fi
7217
7218 else
7219
7220   echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222
7223 fi;
7224
7225
7226
7227
7228
7229
7230
7231 db_found=no
7232 echo "$as_me:$LINENO: checking for MySQL support" >&5
7233 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7234
7235 # Check whether --with-mysql or --without-mysql was given.
7236 if test "${with_mysql+set}" = set; then
7237   withval="$with_mysql"
7238
7239   if test "$withval" != "no"; then
7240         if test "$withval" = "yes"; then
7241                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7242                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7243                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7244                         MYSQL_BINDIR=/usr/local/mysql/bin
7245                 elif test -f /usr/include/mysql/mysql.h; then
7246                         MYSQL_INCDIR=/usr/include/mysql
7247                         MYSQL_LIBDIR=/usr/lib/mysql
7248                         MYSQL_BINDIR=/usr/bin
7249                 elif test -f /usr/include/mysql.h; then
7250                         MYSQL_INCDIR=/usr/include
7251                         MYSQL_LIBDIR=/usr/lib
7252                         MYSQL_BINDIR=/usr/bin
7253                 elif test -f /usr/local/include/mysql/mysql.h; then
7254                         MYSQL_INCDIR=/usr/local/include/mysql
7255                         MYSQL_LIBDIR=/usr/local/lib/mysql
7256                         MYSQL_BINDIR=/usr/local/bin
7257                 elif test -f /usr/local/include/mysql.h; then
7258                         MYSQL_INCDIR=/usr/local/include
7259                         MYSQL_LIBDIR=/usr/local/lib
7260                         MYSQL_BINDIR=/usr/local/bin
7261                 else
7262                    echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7264                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7265 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7266    { (exit 1); exit 1; }; }
7267                 fi
7268         else
7269                 if test -f $withval/include/mysql/mysql.h; then
7270                         MYSQL_INCDIR=$withval/include/mysql
7271                         MYSQL_LIBDIR=$withval/lib/mysql
7272                         MYSQL_BINDIR=$withval/bin
7273                 elif test -f $withval/include/mysql.h; then
7274                         MYSQL_INCDIR=$withval/include
7275                         MYSQL_LIBDIR=$withval/lib
7276                         MYSQL_BINDIR=$withval/bin
7277                 else
7278                    echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6
7280                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7281 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7282    { (exit 1); exit 1; }; }
7283                 fi
7284         fi
7285     SQL_INCLUDE=-I$MYSQL_INCDIR
7286     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7287        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7288        cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_THREAD_SAFE_MYSQL 1
7290 _ACEOF
7291
7292     else
7293        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7294     fi
7295     SQL_BINDIR=$MYSQL_BINDIR
7296
7297     cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_MYSQL 1
7299 _ACEOF
7300
7301     echo "$as_me:$LINENO: result: yes" >&5
7302 echo "${ECHO_T}yes" >&6
7303     db_found=yes
7304     support_mysql=yes
7305     db_name=MySQL
7306     DB_NAME=mysql
7307
7308   else
7309         echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7311   fi
7312
7313 else
7314
7315     echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6
7317
7318 fi;
7319
7320
7321 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7322 if test "${with_embedded_mysql+set}" = set; then
7323   withval="$with_embedded_mysql"
7324
7325   if test "$withval" != "no"; then
7326         if test "$withval" = "yes"; then
7327                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7328                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7329                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7330                         MYSQL_BINDIR=/usr/local/mysql/bin
7331                 elif test -f /usr/include/mysql/mysql.h; then
7332                         MYSQL_INCDIR=/usr/include/mysql
7333                         MYSQL_LIBDIR=/usr/lib/mysql
7334                         MYSQL_BINDIR=/usr/bin
7335                 elif test -f /usr/include/mysql.h; then
7336                         MYSQL_INCDIR=/usr/include
7337                         MYSQL_LIBDIR=/usr/lib
7338                         MYSQL_BINDIR=/usr/bin
7339                 elif test -f /usr/local/include/mysql/mysql.h; then
7340                         MYSQL_INCDIR=/usr/local/include/mysql
7341                         MYSQL_LIBDIR=/usr/local/lib/mysql
7342                         MYSQL_BINDIR=/usr/local/bin
7343                 elif test -f /usr/local/include/mysql.h; then
7344                         MYSQL_INCDIR=/usr/local/include
7345                         MYSQL_LIBDIR=/usr/local/lib
7346                         MYSQL_BINDIR=/usr/local/bin
7347                 else
7348                    echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7351 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7352    { (exit 1); exit 1; }; }
7353                 fi
7354         else
7355                 if test -f $withval/include/mysql/mysql.h; then
7356                         MYSQL_INCDIR=$withval/include/mysql
7357                         MYSQL_LIBDIR=$withval/lib/mysql
7358                         MYSQL_BINDIR=$withval/bin
7359                 elif test -f $withval/include/mysql.h; then
7360                         MYSQL_INCDIR=$withval/include
7361                         MYSQL_LIBDIR=$withval/lib
7362                         MYSQL_BINDIR=$withval/bin
7363                 else
7364                    echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7367 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7368    { (exit 1); exit 1; }; }
7369                 fi
7370         fi
7371     SQL_INCLUDE=-I$MYSQL_INCDIR
7372     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7373     SQL_BINDIR=$MYSQL_BINDIR
7374
7375     cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_MYSQL 1
7377 _ACEOF
7378
7379     cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_EMBEDDED_MYSQL 1
7381 _ACEOF
7382
7383     echo "$as_me:$LINENO: result: yes" >&5
7384 echo "${ECHO_T}yes" >&6
7385     db_found=yes
7386     support_mysql=yes
7387     db_name=MySQL
7388     DB_NAME=mysql
7389
7390   else
7391         echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7393   fi
7394
7395 else
7396
7397   echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7399
7400 fi;
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 db_found=no
7411 echo "$as_me:$LINENO: checking for SQLite support" >&5
7412 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7413
7414 # Check whether --with-sqlite or --without-sqlite was given.
7415 if test "${with_sqlite+set}" = set; then
7416   withval="$with_sqlite"
7417
7418   if test "$withval" != "no"; then
7419         if test "$withval" = "yes"; then
7420                 if test -f /usr/local/include/sqlite.h; then
7421                         SQLITE_INCDIR=/usr/local/include
7422                         SQLITE_LIBDIR=/usr/local/lib
7423                         SQLITE_BINDIR=/usr/local/bin
7424                 elif test -f /usr/include/sqlite.h; then
7425                         SQLITE_INCDIR=/usr/include
7426                         SQLITE_LIBDIR=/usr/lib
7427                         SQLITE_BINDIR=/usr/bin
7428                 else
7429                    echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7432 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7433    { (exit 1); exit 1; }; }
7434                 fi
7435         else
7436                 if test -f $withval/sqlite.h; then
7437                         SQLITE_INCDIR=$withval
7438                         SQLITE_LIBDIR=$withval
7439                         SQLITE_BINDIR=$withval
7440                 else
7441                    echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7444 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7445    { (exit 1); exit 1; }; }
7446                 fi
7447         fi
7448     SQL_INCLUDE=-I$SQLITE_INCDIR
7449     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7450     SQL_BINDIR=$SQLITE_BINDIR
7451
7452     cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_SQLITE 1
7454 _ACEOF
7455
7456     echo "$as_me:$LINENO: result: yes" >&5
7457 echo "${ECHO_T}yes" >&6
7458     db_found=yes
7459     support_sqlite=yes
7460     db_name=SQLite
7461     DB_NAME=sqlite
7462
7463   else
7464         echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466   fi
7467
7468 else
7469
7470   echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472
7473 fi;
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define PROTOTYPES 1
7485 _ACEOF
7486
7487
7488 if test -z "$CFLAGS"; then
7489     if test -z "$CCOPTS"; then
7490         CCOPTS='-g -O2'
7491     fi
7492     CFLAGS="$CCOPTS"
7493 fi
7494
7495
7496
7497
7498 largefile_support="no"
7499
7500    # Check whether --enable-largefile or --disable-largefile was given.
7501 if test "${enable_largefile+set}" = set; then
7502   enableval="$enable_largefile"
7503
7504 fi;
7505    if test "$enable_largefile" != no; then
7506      if test -n "$ac_tool_prefix"; then
7507   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7509 echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511 if test "${ac_cv_prog_GETCONF+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   if test -n "$GETCONF"; then
7515   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522   for ac_exec_ext in '' $ac_executable_extensions; do
7523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529 done
7530
7531 fi
7532 fi
7533 GETCONF=$ac_cv_prog_GETCONF
7534 if test -n "$GETCONF"; then
7535   echo "$as_me:$LINENO: result: $GETCONF" >&5
7536 echo "${ECHO_T}$GETCONF" >&6
7537 else
7538   echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7540 fi
7541
7542 fi
7543 if test -z "$ac_cv_prog_GETCONF"; then
7544   ac_ct_GETCONF=$GETCONF
7545   # Extract the first word of "getconf", so it can be a program name with args.
7546 set dummy getconf; ac_word=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   if test -n "$ac_ct_GETCONF"; then
7553   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_prog_ac_ct_GETCONF="getconf"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568
7569 fi
7570 fi
7571 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7572 if test -n "$ac_ct_GETCONF"; then
7573   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7574 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7575 else
7576   echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7578 fi
7579
7580   GETCONF=$ac_ct_GETCONF
7581 else
7582   GETCONF="$ac_cv_prog_GETCONF"
7583 fi
7584
7585      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7586 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7587 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7591         ac_cv_sys_largefile_CFLAGS=no
7592         case "$host_os" in
7593            # IRIX 6.2 and later require cc -n32.
7594            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7595              if test "$GCC" != yes; then
7596                ac_cv_sys_largefile_CFLAGS=-n32
7597              fi
7598              ac_save_CC="$CC"
7599              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7600              cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607
7608 int
7609 main ()
7610 {
7611
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest$ac_exeext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   :
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_cv_sys_largefile_CFLAGS=no
7634 fi
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636              CC="$ac_save_CC"
7637            esac
7638       }
7639 fi
7640 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7641 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7642      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7643 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7644 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7648         ac_cv_sys_largefile_LDFLAGS=no
7649
7650       }
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7653 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7654      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7655 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7656 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7660         ac_cv_sys_largefile_LIBS=no
7661
7662       }
7663 fi
7664 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7665 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7666
7667      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7668        case "$ac_flag" in
7669        no) ;;
7670        -D_FILE_OFFSET_BITS=*) ;;
7671        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7672        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7673        -D?* | -I?*)
7674          case "$ac_flag" in
7675    no) ;;
7676    ?*)
7677      case "$CPPFLAGS" in
7678      '') CPPFLAGS="$ac_flag" ;;
7679      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7680      esac ;;
7681    esac ;;
7682        *)
7683          case "$ac_flag" in
7684    no) ;;
7685    ?*)
7686      case "$CFLAGS" in
7687      '') CFLAGS="$ac_flag" ;;
7688      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7689      esac ;;
7690    esac ;;
7691        esac
7692      done
7693      case "$ac_cv_sys_largefile_LDFLAGS" in
7694    no) ;;
7695    ?*)
7696      case "$LDFLAGS" in
7697      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7698      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7699      esac ;;
7700    esac
7701      case "$ac_cv_sys_largefile_LIBS" in
7702    no) ;;
7703    ?*)
7704      case "$LIBS" in
7705      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7706      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7707      esac ;;
7708    esac
7709      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7710 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7711 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   ac_cv_sys_file_offset_bits=no
7715       case "$host_os" in
7716         # HP-UX 10.20 and later
7717         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7718           ac_cv_sys_file_offset_bits=64 ;;
7719         esac
7720       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7721         case "$ac_flag" in
7722         -D_FILE_OFFSET_BITS)
7723           ac_cv_sys_file_offset_bits=1 ;;
7724         -D_FILE_OFFSET_BITS=*)
7725           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7726         esac
7727       done
7728
7729 fi
7730 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7731 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7732    if test "$ac_cv_sys_file_offset_bits" != no; then
7733
7734 cat >>confdefs.h <<_ACEOF
7735 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7736 _ACEOF
7737
7738    fi
7739      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7740 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7741 if test "${ac_cv_sys_largefile_source+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   ac_cv_sys_largefile_source=no
7745       case "$host_os" in
7746         # HP-UX 10.20 and later
7747         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7748           ac_cv_sys_largefile_source=1 ;;
7749         esac
7750       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7751         case "$ac_flag" in
7752         -D_LARGEFILE_SOURCE)
7753           ac_cv_sys_largefile_source=1 ;;
7754         -D_LARGEFILE_SOURCE=*)
7755           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7756         esac
7757       done
7758
7759 fi
7760 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7761 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7762    if test "$ac_cv_sys_largefile_source" != no; then
7763
7764 cat >>confdefs.h <<_ACEOF
7765 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7766 _ACEOF
7767
7768    fi
7769      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7770 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7771 if test "${ac_cv_sys_large_files+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   ac_cv_sys_large_files=no
7775       case "$host_os" in
7776         # AIX 4.2 and later
7777         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7778           ac_cv_sys_large_files=1 ;;
7779         esac
7780       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7781         case "$ac_flag" in
7782         -D_LARGE_FILES)
7783           ac_cv_sys_large_files=1 ;;
7784         -D_LARGE_FILES=*)
7785           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7786         esac
7787       done
7788
7789 fi
7790 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7791 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7792    if test "$ac_cv_sys_large_files" != no; then
7793
7794 cat >>confdefs.h <<_ACEOF
7795 #define _LARGE_FILES $ac_cv_sys_large_files
7796 _ACEOF
7797
7798    fi
7799    fi
7800
7801
7802
7803 echo "$as_me:$LINENO: checking for X" >&5
7804 echo $ECHO_N "checking for X... $ECHO_C" >&6
7805
7806
7807 # Check whether --with-x or --without-x was given.
7808 if test "${with_x+set}" = set; then
7809   withval="$with_x"
7810
7811 fi;
7812 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7813 if test "x$with_x" = xno; then
7814   # The user explicitly disabled X.
7815   have_x=disabled
7816 else
7817   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7818     # Both variables are already set.
7819     have_x=yes
7820   else
7821     if test "${ac_cv_have_x+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   # One or both of the vars are not set, and there is no cached value.
7825 ac_x_includes=no ac_x_libraries=no
7826 rm -fr conftest.dir
7827 if mkdir conftest.dir; then
7828   cd conftest.dir
7829   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7830   cat >Imakefile <<'_ACEOF'
7831 acfindx:
7832         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7833 _ACEOF
7834   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7835     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7836     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7837     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7838     for ac_extension in a so sl; do
7839       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7840          test -f $ac_im_libdir/libX11.$ac_extension; then
7841         ac_im_usrlibdir=$ac_im_libdir; break
7842       fi
7843     done
7844     # Screen out bogus values from the imake configuration.  They are
7845     # bogus both because they are the default anyway, and because
7846     # using them would break gcc on systems where it needs fixed includes.
7847     case $ac_im_incroot in
7848         /usr/include) ;;
7849         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7850     esac
7851     case $ac_im_usrlibdir in
7852         /usr/lib | /lib) ;;
7853         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7854     esac
7855   fi
7856   cd ..
7857   rm -fr conftest.dir
7858 fi
7859
7860 # Standard set of common directories for X headers.
7861 # Check X11 before X11Rn because it is often a symlink to the current release.
7862 ac_x_header_dirs='
7863 /usr/X11/include
7864 /usr/X11R6/include
7865 /usr/X11R5/include
7866 /usr/X11R4/include
7867
7868 /usr/include/X11
7869 /usr/include/X11R6
7870 /usr/include/X11R5
7871 /usr/include/X11R4
7872
7873 /usr/local/X11/include
7874 /usr/local/X11R6/include
7875 /usr/local/X11R5/include
7876 /usr/local/X11R4/include
7877
7878 /usr/local/include/X11
7879 /usr/local/include/X11R6
7880 /usr/local/include/X11R5
7881 /usr/local/include/X11R4
7882
7883 /usr/X386/include
7884 /usr/x386/include
7885 /usr/XFree86/include/X11
7886
7887 /usr/include
7888 /usr/local/include
7889 /usr/unsupported/include
7890 /usr/athena/include
7891 /usr/local/x11r5/include
7892 /usr/lpp/Xamples/include
7893
7894 /usr/openwin/include
7895 /usr/openwin/share/include'
7896
7897 if test "$ac_x_includes" = no; then
7898   # Guess where to find include files, by looking for Intrinsic.h.
7899   # First, try using that file with no special directory specified.
7900   cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907 #include <X11/Intrinsic.h>
7908 _ACEOF
7909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
7914   cat conftest.err >&5
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } >/dev/null; then
7917   if test -s conftest.err; then
7918     ac_cpp_err=$ac_c_preproc_warn_flag
7919   else
7920     ac_cpp_err=
7921   fi
7922 else
7923   ac_cpp_err=yes
7924 fi
7925 if test -z "$ac_cpp_err"; then
7926   # We can compile using X headers with no special include directory.
7927 ac_x_includes=
7928 else
7929   echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932   for ac_dir in $ac_x_header_dirs; do
7933   if test -r "$ac_dir/X11/Intrinsic.h"; then
7934     ac_x_includes=$ac_dir
7935     break
7936   fi
7937 done
7938 fi
7939 rm -f conftest.err conftest.$ac_ext
7940 fi # $ac_x_includes = no
7941
7942 if test "$ac_x_libraries" = no; then
7943   # Check for the libraries.
7944   # See if we find them without any special options.
7945   # Don't add to $LIBS permanently.
7946   ac_save_LIBS=$LIBS
7947   LIBS="-lXt $LIBS"
7948   cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 #include <X11/Intrinsic.h>
7956 int
7957 main ()
7958 {
7959 XtMalloc (0)
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   LIBS=$ac_save_LIBS
7977 # We can link X programs with no special library path.
7978 ac_x_libraries=
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 LIBS=$ac_save_LIBS
7984 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7985 do
7986   # Don't even attempt the hair of trying to link an X program!
7987   for ac_extension in a so sl; do
7988     if test -r $ac_dir/libXt.$ac_extension; then
7989       ac_x_libraries=$ac_dir
7990       break 2
7991     fi
7992   done
7993 done
7994 fi
7995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7996 fi # $ac_x_libraries = no
7997
7998 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7999   # Didn't find X anywhere.  Cache the known absence of X.
8000   ac_cv_have_x="have_x=no"
8001 else
8002   # Record where we found X for the cache.
8003   ac_cv_have_x="have_x=yes \
8004                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8005 fi
8006 fi
8007
8008   fi
8009   eval "$ac_cv_have_x"
8010 fi # $with_x != no
8011
8012 if test "$have_x" != yes; then
8013   echo "$as_me:$LINENO: result: $have_x" >&5
8014 echo "${ECHO_T}$have_x" >&6
8015   no_x=yes
8016 else
8017   # If each of the values was on the command line, it overrides each guess.
8018   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8019   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8020   # Update the cache value to reflect the command line values.
8021   ac_cv_have_x="have_x=yes \
8022                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8023   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8024 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8025 fi
8026
8027 if test "$no_x" = yes; then
8028   # Not all programs may use this symbol, but it does not hurt to define it.
8029
8030 cat >>confdefs.h <<\_ACEOF
8031 #define X_DISPLAY_MISSING 1
8032 _ACEOF
8033
8034   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8035 else
8036   if test -n "$x_includes"; then
8037     X_CFLAGS="$X_CFLAGS -I$x_includes"
8038   fi
8039
8040   # It would also be nice to do this for all -L options, not just this one.
8041   if test -n "$x_libraries"; then
8042     X_LIBS="$X_LIBS -L$x_libraries"
8043     # For Solaris; some versions of Sun CC require a space after -R and
8044     # others require no space.  Words are not sufficient . . . .
8045     case `(uname -sr) 2>/dev/null` in
8046     "SunOS 5"*)
8047       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8048 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8049       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8050       cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068   (eval $ac_link) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_R_nospace=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_R_nospace=no
8084 fi
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086       if test $ac_R_nospace = yes; then
8087         echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089         X_LIBS="$X_LIBS -R$x_libraries"
8090       else
8091         LIBS="$ac_xsave_LIBS -R $x_libraries"
8092         cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110   (eval $ac_link) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_R_space=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_R_space=no
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128         if test $ac_R_space = yes; then
8129           echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8131           X_LIBS="$X_LIBS -R $x_libraries"
8132         else
8133           echo "$as_me:$LINENO: result: neither works" >&5
8134 echo "${ECHO_T}neither works" >&6
8135         fi
8136       fi
8137       LIBS=$ac_xsave_LIBS
8138     esac
8139   fi
8140
8141   # Check for system-dependent libraries X programs must link with.
8142   # Do this before checking for the system-independent R6 libraries
8143   # (-lICE), since we may need -lsocket or whatever for X linking.
8144
8145   if test "$ISC" = yes; then
8146     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8147   else
8148     # Martyn Johnson says this is needed for Ultrix, if the X
8149     # libraries were built with DECnet support.  And Karl Berry says
8150     # the Alpha needs dnet_stub (dnet does not exist).
8151     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8152     cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159
8160 /* Override any gcc2 internal prototype to avoid an error.  */
8161 #ifdef __cplusplus
8162 extern "C"
8163 #endif
8164 /* We use char because int might match the return type of a gcc2
8165    builtin and then its argument prototype would still apply.  */
8166 char XOpenDisplay ();
8167 int
8168 main ()
8169 {
8170 XOpenDisplay ();
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177   (eval $ac_link) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   :
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8193 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8194 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-ldnet  $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8206
8207 /* Override any gcc2 internal prototype to avoid an error.  */
8208 #ifdef __cplusplus
8209 extern "C"
8210 #endif
8211 /* We use char because int might match the return type of a gcc2
8212    builtin and then its argument prototype would still apply.  */
8213 char dnet_ntoa ();
8214 int
8215 main ()
8216 {
8217 dnet_ntoa ();
8218   ;
8219   return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224   (eval $ac_link) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } &&
8228          { ac_try='test -s conftest$ac_exeext'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_lib_dnet_dnet_ntoa=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 ac_cv_lib_dnet_dnet_ntoa=no
8240 fi
8241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8245 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8246 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8247   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8248 fi
8249
8250     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8251       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8252 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8253 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-ldnet_stub  $LIBS"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8260 /* confdefs.h.  */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h.  */
8265
8266 /* Override any gcc2 internal prototype to avoid an error.  */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 /* We use char because int might match the return type of a gcc2
8271    builtin and then its argument prototype would still apply.  */
8272 char dnet_ntoa ();
8273 int
8274 main ()
8275 {
8276 dnet_ntoa ();
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283   (eval $ac_link) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); } &&
8287          { ac_try='test -s conftest$ac_exeext'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; }; then
8293   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ac_cv_lib_dnet_stub_dnet_ntoa=no
8299 fi
8300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301 LIBS=$ac_check_lib_save_LIBS
8302 fi
8303 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8304 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8305 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8306   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8307 fi
8308
8309     fi
8310 fi
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8312     LIBS="$ac_xsave_LIBS"
8313
8314     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8315     # to get the SysV transport functions.
8316     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8317     # needs -lnsl.
8318     # The nsl library prevents programs from opening the X display
8319     # on Irix 5.2, according to T.E. Dickey.
8320     # The functions gethostbyname, getservbyname, and inet_addr are
8321     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8322     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8323 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8324 if test "${ac_cv_func_gethostbyname+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 /* System header to define __stub macros and hopefully few prototypes,
8335     which can conflict with char gethostbyname (); below.
8336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337     <limits.h> exists even on freestanding compilers.  */
8338 #ifdef __STDC__
8339 # include <limits.h>
8340 #else
8341 # include <assert.h>
8342 #endif
8343 /* Override any gcc2 internal prototype to avoid an error.  */
8344 #ifdef __cplusplus
8345 extern "C"
8346 {
8347 #endif
8348 /* We use char because int might match the return type of a gcc2
8349    builtin and then its argument prototype would still apply.  */
8350 char gethostbyname ();
8351 /* The GNU C library defines this for functions which it implements
8352     to always fail with ENOSYS.  Some functions are actually named
8353     something starting with __ and the normal name is an alias.  */
8354 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8355 choke me
8356 #else
8357 char (*f) () = gethostbyname;
8358 #endif
8359 #ifdef __cplusplus
8360 }
8361 #endif
8362
8363 int
8364 main ()
8365 {
8366 return f != gethostbyname;
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373   (eval $ac_link) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -s conftest$ac_exeext'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   ac_cv_func_gethostbyname=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_cv_func_gethostbyname=no
8389 fi
8390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8393 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8394
8395     if test $ac_cv_func_gethostbyname = no; then
8396       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8397 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8398 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lnsl  $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 /* Override any gcc2 internal prototype to avoid an error.  */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char gethostbyname ();
8418 int
8419 main ()
8420 {
8421 gethostbyname ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428   (eval $ac_link) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -s conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   ac_cv_lib_nsl_gethostbyname=yes
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 ac_cv_lib_nsl_gethostbyname=no
8444 fi
8445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446 LIBS=$ac_check_lib_save_LIBS
8447 fi
8448 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8449 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8450 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8451   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8452 fi
8453
8454       if test $ac_cv_lib_nsl_gethostbyname = no; then
8455         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8456 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8457 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   ac_check_lib_save_LIBS=$LIBS
8461 LIBS="-lbsd  $LIBS"
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469
8470 /* Override any gcc2 internal prototype to avoid an error.  */
8471 #ifdef __cplusplus
8472 extern "C"
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char gethostbyname ();
8477 int
8478 main ()
8479 {
8480 gethostbyname ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; }; then
8497   ac_cv_lib_bsd_gethostbyname=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_lib_bsd_gethostbyname=no
8503 fi
8504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8508 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8509 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8510   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8511 fi
8512
8513       fi
8514     fi
8515
8516     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8517     # socket/setsockopt and other routines are undefined under SCO ODT
8518     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8519     # on later versions), says Simon Leinen: it contains gethostby*
8520     # variants that don't use the name server (or something).  -lsocket
8521     # must be given before -lnsl if both are needed.  We assume that
8522     # if connect needs -lnsl, so does gethostbyname.
8523     echo "$as_me:$LINENO: checking for connect" >&5
8524 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8525 if test "${ac_cv_func_connect+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 /* System header to define __stub macros and hopefully few prototypes,
8536     which can conflict with char connect (); below.
8537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8538     <limits.h> exists even on freestanding compilers.  */
8539 #ifdef __STDC__
8540 # include <limits.h>
8541 #else
8542 # include <assert.h>
8543 #endif
8544 /* Override any gcc2 internal prototype to avoid an error.  */
8545 #ifdef __cplusplus
8546 extern "C"
8547 {
8548 #endif
8549 /* We use char because int might match the return type of a gcc2
8550    builtin and then its argument prototype would still apply.  */
8551 char connect ();
8552 /* The GNU C library defines this for functions which it implements
8553     to always fail with ENOSYS.  Some functions are actually named
8554     something starting with __ and the normal name is an alias.  */
8555 #if defined (__stub_connect) || defined (__stub___connect)
8556 choke me
8557 #else
8558 char (*f) () = connect;
8559 #endif
8560 #ifdef __cplusplus
8561 }
8562 #endif
8563
8564 int
8565 main ()
8566 {
8567 return f != connect;
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574   (eval $ac_link) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -s conftest$ac_exeext'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; }; then
8584   ac_cv_func_connect=yes
8585 else
8586   echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ac_cv_func_connect=no
8590 fi
8591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8592 fi
8593 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8594 echo "${ECHO_T}$ac_cv_func_connect" >&6
8595
8596     if test $ac_cv_func_connect = no; then
8597       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8598 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8599 if test "${ac_cv_lib_socket_connect+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605 #line $LINENO "configure"
8606 /* confdefs.h.  */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h.  */
8611
8612 /* Override any gcc2 internal prototype to avoid an error.  */
8613 #ifdef __cplusplus
8614 extern "C"
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617    builtin and then its argument prototype would still apply.  */
8618 char connect ();
8619 int
8620 main ()
8621 {
8622 connect ();
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629   (eval $ac_link) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -s conftest$ac_exeext'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; }; then
8639   ac_cv_lib_socket_connect=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ac_cv_lib_socket_connect=no
8645 fi
8646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8647 LIBS=$ac_check_lib_save_LIBS
8648 fi
8649 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8650 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8651 if test $ac_cv_lib_socket_connect = yes; then
8652   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8653 fi
8654
8655     fi
8656
8657     # Guillermo Gomez says -lposix is necessary on A/UX.
8658     echo "$as_me:$LINENO: checking for remove" >&5
8659 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8660 if test "${ac_cv_func_remove+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 /* System header to define __stub macros and hopefully few prototypes,
8671     which can conflict with char remove (); below.
8672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673     <limits.h> exists even on freestanding compilers.  */
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 {
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685    builtin and then its argument prototype would still apply.  */
8686 char remove ();
8687 /* The GNU C library defines this for functions which it implements
8688     to always fail with ENOSYS.  Some functions are actually named
8689     something starting with __ and the normal name is an alias.  */
8690 #if defined (__stub_remove) || defined (__stub___remove)
8691 choke me
8692 #else
8693 char (*f) () = remove;
8694 #endif
8695 #ifdef __cplusplus
8696 }
8697 #endif
8698
8699 int
8700 main ()
8701 {
8702 return f != remove;
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -s conftest$ac_exeext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_cv_func_remove=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_func_remove=no
8725 fi
8726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8727 fi
8728 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8729 echo "${ECHO_T}$ac_cv_func_remove" >&6
8730
8731     if test $ac_cv_func_remove = no; then
8732       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8733 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8734 if test "${ac_cv_lib_posix_remove+set}" = set; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737   ac_check_lib_save_LIBS=$LIBS
8738 LIBS="-lposix  $LIBS"
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746
8747 /* Override any gcc2 internal prototype to avoid an error.  */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 /* We use char because int might match the return type of a gcc2
8752    builtin and then its argument prototype would still apply.  */
8753 char remove ();
8754 int
8755 main ()
8756 {
8757 remove ();
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764   (eval $ac_link) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_cv_lib_posix_remove=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_cv_lib_posix_remove=no
8780 fi
8781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8783 fi
8784 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8785 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8786 if test $ac_cv_lib_posix_remove = yes; then
8787   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8788 fi
8789
8790     fi
8791
8792     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8793     echo "$as_me:$LINENO: checking for shmat" >&5
8794 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8795 if test "${ac_cv_func_shmat+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806     which can conflict with char shmat (); below.
8807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808     <limits.h> exists even on freestanding compilers.  */
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8814 /* Override any gcc2 internal prototype to avoid an error.  */
8815 #ifdef __cplusplus
8816 extern "C"
8817 {
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820    builtin and then its argument prototype would still apply.  */
8821 char shmat ();
8822 /* The GNU C library defines this for functions which it implements
8823     to always fail with ENOSYS.  Some functions are actually named
8824     something starting with __ and the normal name is an alias.  */
8825 #if defined (__stub_shmat) || defined (__stub___shmat)
8826 choke me
8827 #else
8828 char (*f) () = shmat;
8829 #endif
8830 #ifdef __cplusplus
8831 }
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 return f != shmat;
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844   (eval $ac_link) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -s conftest$ac_exeext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_cv_func_shmat=yes
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_func_shmat=no
8860 fi
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8864 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8865
8866     if test $ac_cv_func_shmat = no; then
8867       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8868 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8869 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   ac_check_lib_save_LIBS=$LIBS
8873 LIBS="-lipc  $LIBS"
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line $LINENO "configure"
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881
8882 /* Override any gcc2 internal prototype to avoid an error.  */
8883 #ifdef __cplusplus
8884 extern "C"
8885 #endif
8886 /* We use char because int might match the return type of a gcc2
8887    builtin and then its argument prototype would still apply.  */
8888 char shmat ();
8889 int
8890 main ()
8891 {
8892 shmat ();
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899   (eval $ac_link) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -s conftest$ac_exeext'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; }; then
8909   ac_cv_lib_ipc_shmat=yes
8910 else
8911   echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 ac_cv_lib_ipc_shmat=no
8915 fi
8916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8918 fi
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8920 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8921 if test $ac_cv_lib_ipc_shmat = yes; then
8922   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8923 fi
8924
8925     fi
8926   fi
8927
8928   # Check for libraries that X11R6 Xt/Xaw programs need.
8929   ac_save_LDFLAGS=$LDFLAGS
8930   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8931   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8932   # check for ICE first), but we must link in the order -lSM -lICE or
8933   # we get undefined symbols.  So assume we have SM if we have ICE.
8934   # These have to be linked with before -lX11, unlike the other
8935   # libraries we check for below, so use a different variable.
8936   # John Interrante, Karl Berry
8937   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8938 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8939 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952 /* Override any gcc2 internal prototype to avoid an error.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957    builtin and then its argument prototype would still apply.  */
8958 char IceConnectionNumber ();
8959 int
8960 main ()
8961 {
8962 IceConnectionNumber ();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -s conftest$ac_exeext'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   ac_cv_lib_ICE_IceConnectionNumber=yes
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_lib_ICE_IceConnectionNumber=no
8985 fi
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 LIBS=$ac_check_lib_save_LIBS
8988 fi
8989 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8992   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8993 fi
8994
8995   LDFLAGS=$ac_save_LDFLAGS
8996
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022 for ac_header in \
9023         assert.h \
9024         fcntl.h \
9025         grp.h \
9026         pwd.h \
9027         libc.h \
9028         limits.h \
9029         stdarg.h \
9030         stdlib.h \
9031         stdint.h \
9032         string.h \
9033         termios.h \
9034         unistd.h \
9035         sys/byteorder.h \
9036         sys/ioctl.h \
9037         sys/select.h \
9038         sys/sockio.h \
9039         sys/time.h \
9040         sys/socket.h \
9041         arpa/nameser.h \
9042         resolv.h \
9043         mtio.h \
9044         sys/mtio.h \
9045
9046 do
9047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049   echo "$as_me:$LINENO: checking for $ac_header" >&5
9050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 fi
9054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9056 else
9057   # Is the header compilable?
9058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9062 /* confdefs.h.  */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h.  */
9067 $ac_includes_default
9068 #include <$ac_header>
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072   (eval $ac_compile) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -s conftest.$ac_objext'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_header_compiler=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_header_compiler=no
9088 fi
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6
9092
9093 # Is the header present?
9094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 #include <$ac_header>
9104 _ACEOF
9105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9107   ac_status=$?
9108   grep -v '^ *+' conftest.er1 >conftest.err
9109   rm -f conftest.er1
9110   cat conftest.err >&5
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } >/dev/null; then
9113   if test -s conftest.err; then
9114     ac_cpp_err=$ac_c_preproc_warn_flag
9115   else
9116     ac_cpp_err=
9117   fi
9118 else
9119   ac_cpp_err=yes
9120 fi
9121 if test -z "$ac_cpp_err"; then
9122   ac_header_preproc=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127   ac_header_preproc=no
9128 fi
9129 rm -f conftest.err conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9131 echo "${ECHO_T}$ac_header_preproc" >&6
9132
9133 # So?  What about this header?
9134 case $ac_header_compiler:$ac_header_preproc in
9135   yes:no )
9136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9140     (
9141       cat <<\_ASBOX
9142 ## ------------------------------------ ##
9143 ## Report this to bug-autoconf@gnu.org. ##
9144 ## ------------------------------------ ##
9145 _ASBOX
9146     ) |
9147       sed "s/^/$as_me: WARNING:     /" >&2
9148     ;;
9149   no:yes )
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156     (
9157       cat <<\_ASBOX
9158 ## ------------------------------------ ##
9159 ## Report this to bug-autoconf@gnu.org. ##
9160 ## ------------------------------------ ##
9161 _ASBOX
9162     ) |
9163       sed "s/^/$as_me: WARNING:     /" >&2
9164     ;;
9165 esac
9166 echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   eval "$as_ac_Header=$ac_header_preproc"
9172 fi
9173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9175
9176 fi
9177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9178   cat >>confdefs.h <<_ACEOF
9179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 _ACEOF
9181
9182 fi
9183
9184 done
9185
9186 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9187 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9188 if test "${ac_cv_header_stdc+set}" = set; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191   cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 #include <stdlib.h>
9199 #include <stdarg.h>
9200 #include <string.h>
9201 #include <float.h>
9202
9203 int
9204 main ()
9205 {
9206
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } &&
9217          { ac_try='test -s conftest.$ac_objext'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; }; then
9223   ac_cv_header_stdc=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 ac_cv_header_stdc=no
9229 fi
9230 rm -f conftest.$ac_objext conftest.$ac_ext
9231
9232 if test $ac_cv_header_stdc = yes; then
9233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9234   cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241 #include <string.h>
9242
9243 _ACEOF
9244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9245   $EGREP "memchr" >/dev/null 2>&1; then
9246   :
9247 else
9248   ac_cv_header_stdc=no
9249 fi
9250 rm -f conftest*
9251
9252 fi
9253
9254 if test $ac_cv_header_stdc = yes; then
9255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9256   cat >conftest.$ac_ext <<_ACEOF
9257 #line $LINENO "configure"
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263 #include <stdlib.h>
9264
9265 _ACEOF
9266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9267   $EGREP "free" >/dev/null 2>&1; then
9268   :
9269 else
9270   ac_cv_header_stdc=no
9271 fi
9272 rm -f conftest*
9273
9274 fi
9275
9276 if test $ac_cv_header_stdc = yes; then
9277   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9278   if test "$cross_compiling" = yes; then
9279   :
9280 else
9281   cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288 #include <ctype.h>
9289 #if ((' ' & 0x0FF) == 0x020)
9290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9292 #else
9293 # define ISLOWER(c) \
9294                    (('a' <= (c) && (c) <= 'i') \
9295                      || ('j' <= (c) && (c) <= 'r') \
9296                      || ('s' <= (c) && (c) <= 'z'))
9297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9298 #endif
9299
9300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9301 int
9302 main ()
9303 {
9304   int i;
9305   for (i = 0; i < 256; i++)
9306     if (XOR (islower (i), ISLOWER (i))
9307         || toupper (i) != TOUPPER (i))
9308       exit(2);
9309   exit (0);
9310 }
9311 _ACEOF
9312 rm -f conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314   (eval $ac_link) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   :
9324 else
9325   echo "$as_me: program exited with status $ac_status" >&5
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ( exit $ac_status )
9330 ac_cv_header_stdc=no
9331 fi
9332 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 fi
9335 fi
9336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9338 if test $ac_cv_header_stdc = yes; then
9339
9340 cat >>confdefs.h <<\_ACEOF
9341 #define STDC_HEADERS 1
9342 _ACEOF
9343
9344 fi
9345
9346 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9347 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9348 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   cat >conftest.$ac_ext <<_ACEOF
9352 #line $LINENO "configure"
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 #include <sys/types.h>
9359 int
9360 main ()
9361 {
9362 return makedev(0, 0);
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369   (eval $ac_link) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -s conftest$ac_exeext'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_header_sys_types_h_makedev=yes
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_header_sys_types_h_makedev=no
9385 fi
9386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9387
9388 fi
9389 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9390 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9391
9392 if test $ac_cv_header_sys_types_h_makedev = no; then
9393 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9394   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9395 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9396 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9400 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9401 else
9402   # Is the header compilable?
9403 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9404 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 $ac_includes_default
9413 #include <sys/mkdev.h>
9414 _ACEOF
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417   (eval $ac_compile) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_header_compiler=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_compiler=no
9433 fi
9434 rm -f conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9436 echo "${ECHO_T}$ac_header_compiler" >&6
9437
9438 # Is the header present?
9439 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9440 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448 #include <sys/mkdev.h>
9449 _ACEOF
9450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } >/dev/null; then
9458   if test -s conftest.err; then
9459     ac_cpp_err=$ac_c_preproc_warn_flag
9460   else
9461     ac_cpp_err=
9462   fi
9463 else
9464   ac_cpp_err=yes
9465 fi
9466 if test -z "$ac_cpp_err"; then
9467   ac_header_preproc=yes
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472   ac_header_preproc=no
9473 fi
9474 rm -f conftest.err conftest.$ac_ext
9475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9476 echo "${ECHO_T}$ac_header_preproc" >&6
9477
9478 # So?  What about this header?
9479 case $ac_header_compiler:$ac_header_preproc in
9480   yes:no )
9481     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9482 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9483     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9484 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9485     (
9486       cat <<\_ASBOX
9487 ## ------------------------------------ ##
9488 ## Report this to bug-autoconf@gnu.org. ##
9489 ## ------------------------------------ ##
9490 _ASBOX
9491     ) |
9492       sed "s/^/$as_me: WARNING:     /" >&2
9493     ;;
9494   no:yes )
9495     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9496 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9497     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9498 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9499     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9500 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9501     (
9502       cat <<\_ASBOX
9503 ## ------------------------------------ ##
9504 ## Report this to bug-autoconf@gnu.org. ##
9505 ## ------------------------------------ ##
9506 _ASBOX
9507     ) |
9508       sed "s/^/$as_me: WARNING:     /" >&2
9509     ;;
9510 esac
9511 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9512 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9513 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9517 fi
9518 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9519 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9520
9521 fi
9522 if test $ac_cv_header_sys_mkdev_h = yes; then
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define MAJOR_IN_MKDEV 1
9526 _ACEOF
9527
9528 fi
9529
9530
9531
9532   if test $ac_cv_header_sys_mkdev_h = no; then
9533     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9534   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9535 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 fi
9539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9541 else
9542   # Is the header compilable?
9543 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9544 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9545 cat >conftest.$ac_ext <<_ACEOF
9546 #line $LINENO "configure"
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 $ac_includes_default
9553 #include <sys/sysmacros.h>
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557   (eval $ac_compile) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); } &&
9561          { ac_try='test -s conftest.$ac_objext'
9562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_header_compiler=yes
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 ac_header_compiler=no
9573 fi
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9576 echo "${ECHO_T}$ac_header_compiler" >&6
9577
9578 # Is the header present?
9579 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9580 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588 #include <sys/sysmacros.h>
9589 _ACEOF
9590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } >/dev/null; then
9598   if test -s conftest.err; then
9599     ac_cpp_err=$ac_c_preproc_warn_flag
9600   else
9601     ac_cpp_err=
9602   fi
9603 else
9604   ac_cpp_err=yes
9605 fi
9606 if test -z "$ac_cpp_err"; then
9607   ac_header_preproc=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612   ac_header_preproc=no
9613 fi
9614 rm -f conftest.err conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6
9617
9618 # So?  What about this header?
9619 case $ac_header_compiler:$ac_header_preproc in
9620   yes:no )
9621     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9625     (
9626       cat <<\_ASBOX
9627 ## ------------------------------------ ##
9628 ## Report this to bug-autoconf@gnu.org. ##
9629 ## ------------------------------------ ##
9630 _ASBOX
9631     ) |
9632       sed "s/^/$as_me: WARNING:     /" >&2
9633     ;;
9634   no:yes )
9635     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9636 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9637     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9638 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9639     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9640 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9641     (
9642       cat <<\_ASBOX
9643 ## ------------------------------------ ##
9644 ## Report this to bug-autoconf@gnu.org. ##
9645 ## ------------------------------------ ##
9646 _ASBOX
9647     ) |
9648       sed "s/^/$as_me: WARNING:     /" >&2
9649     ;;
9650 esac
9651 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9652 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9653 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9657 fi
9658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9659 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9660
9661 fi
9662 if test $ac_cv_header_sys_sysmacros_h = yes; then
9663
9664 cat >>confdefs.h <<\_ACEOF
9665 #define MAJOR_IN_SYSMACROS 1
9666 _ACEOF
9667
9668 fi
9669
9670
9671   fi
9672 fi
9673
9674
9675
9676
9677
9678
9679 ac_header_dirent=no
9680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9681   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9682 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 #include <sys/types.h>
9695 #include <$ac_hdr>
9696
9697 int
9698 main ()
9699 {
9700 if ((DIR *) 0)
9701 return 0;
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708   (eval $ac_compile) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -s conftest.$ac_objext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   eval "$as_ac_Header=yes"
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 eval "$as_ac_Header=no"
9724 fi
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9726 fi
9727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9730   cat >>confdefs.h <<_ACEOF
9731 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9732 _ACEOF
9733
9734 ac_header_dirent=$ac_hdr; break
9735 fi
9736
9737 done
9738 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9739 if test $ac_header_dirent = dirent.h; then
9740   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9742 if test "${ac_cv_search_opendir+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   ac_func_search_save_LIBS=$LIBS
9746 ac_cv_search_opendir=no
9747 cat >conftest.$ac_ext <<_ACEOF
9748 #line $LINENO "configure"
9749 /* confdefs.h.  */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h.  */
9754
9755 /* Override any gcc2 internal prototype to avoid an error.  */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 /* We use char because int might match the return type of a gcc2
9760    builtin and then its argument prototype would still apply.  */
9761 char opendir ();
9762 int
9763 main ()
9764 {
9765 opendir ();
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772   (eval $ac_link) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -s conftest$ac_exeext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_cv_search_opendir="none required"
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 fi
9788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9789 if test "$ac_cv_search_opendir" = no; then
9790   for ac_lib in dir; do
9791     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9792     cat >conftest.$ac_ext <<_ACEOF
9793 #line $LINENO "configure"
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799
9800 /* Override any gcc2 internal prototype to avoid an error.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 /* We use char because int might match the return type of a gcc2
9805    builtin and then its argument prototype would still apply.  */
9806 char opendir ();
9807 int
9808 main ()
9809 {
9810 opendir ();
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817   (eval $ac_link) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -s conftest$ac_exeext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_cv_search_opendir="-l$ac_lib"
9828 break
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 fi
9834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9835   done
9836 fi
9837 LIBS=$ac_func_search_save_LIBS
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9841 if test "$ac_cv_search_opendir" != no; then
9842   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9843
9844 fi
9845
9846 else
9847   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9849 if test "${ac_cv_search_opendir+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   ac_func_search_save_LIBS=$LIBS
9853 ac_cv_search_opendir=no
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861
9862 /* Override any gcc2 internal prototype to avoid an error.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 /* We use char because int might match the return type of a gcc2
9867    builtin and then its argument prototype would still apply.  */
9868 char opendir ();
9869 int
9870 main ()
9871 {
9872 opendir ();
9873   ;
9874   return 0;
9875 }
9876 _ACEOF
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879   (eval $ac_link) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } &&
9883          { ac_try='test -s conftest$ac_exeext'
9884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885   (eval $ac_try) 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; }; then
9889   ac_cv_search_opendir="none required"
9890 else
9891   echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 fi
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896 if test "$ac_cv_search_opendir" = no; then
9897   for ac_lib in x; do
9898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9899     cat >conftest.$ac_ext <<_ACEOF
9900 #line $LINENO "configure"
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906
9907 /* Override any gcc2 internal prototype to avoid an error.  */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912    builtin and then its argument prototype would still apply.  */
9913 char opendir ();
9914 int
9915 main ()
9916 {
9917 opendir ();
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924   (eval $ac_link) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -s conftest$ac_exeext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_cv_search_opendir="-l$ac_lib"
9935 break
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 fi
9941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9942   done
9943 fi
9944 LIBS=$ac_func_search_save_LIBS
9945 fi
9946 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9947 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9948 if test "$ac_cv_search_opendir" != no; then
9949   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9950
9951 fi
9952
9953 fi
9954
9955 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9956 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9957 if test "${ac_cv_header_stat_broken+set}" = set; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960   cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <sys/types.h>
9968 #include <sys/stat.h>
9969
9970 #if defined(S_ISBLK) && defined(S_IFDIR)
9971 # if S_ISBLK (S_IFDIR)
9972 You lose.
9973 # endif
9974 #endif
9975
9976 #if defined(S_ISBLK) && defined(S_IFCHR)
9977 # if S_ISBLK (S_IFCHR)
9978 You lose.
9979 # endif
9980 #endif
9981
9982 #if defined(S_ISLNK) && defined(S_IFREG)
9983 # if S_ISLNK (S_IFREG)
9984 You lose.
9985 # endif
9986 #endif
9987
9988 #if defined(S_ISSOCK) && defined(S_IFREG)
9989 # if S_ISSOCK (S_IFREG)
9990 You lose.
9991 # endif
9992 #endif
9993
9994 _ACEOF
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996   $EGREP "You lose" >/dev/null 2>&1; then
9997   ac_cv_header_stat_broken=yes
9998 else
9999   ac_cv_header_stat_broken=no
10000 fi
10001 rm -f conftest*
10002
10003 fi
10004 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10006 if test $ac_cv_header_stat_broken = yes; then
10007
10008 cat >>confdefs.h <<\_ACEOF
10009 #define STAT_MACROS_BROKEN 1
10010 _ACEOF
10011
10012 fi
10013
10014 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10015 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10016 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026 #include <sys/types.h>
10027 #include <sys/wait.h>
10028 #ifndef WEXITSTATUS
10029 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10030 #endif
10031 #ifndef WIFEXITED
10032 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10033 #endif
10034
10035 int
10036 main ()
10037 {
10038   int s;
10039   wait (&s);
10040   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047   (eval $ac_compile) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -s conftest.$ac_objext'
10052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053   (eval $ac_try) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; }; then
10057   ac_cv_header_sys_wait_h=yes
10058 else
10059   echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ac_cv_header_sys_wait_h=no
10063 fi
10064 rm -f conftest.$ac_objext conftest.$ac_ext
10065 fi
10066 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10067 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10068 if test $ac_cv_header_sys_wait_h = yes; then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_SYS_WAIT_H 1
10072 _ACEOF
10073
10074 fi
10075
10076 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10077 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10078 if test "${ac_cv_header_time+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 #include <sys/types.h>
10089 #include <sys/time.h>
10090 #include <time.h>
10091
10092 int
10093 main ()
10094 {
10095 if ((struct tm *) 0)
10096 return 0;
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103   (eval $ac_compile) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } &&
10107          { ac_try='test -s conftest.$ac_objext'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; }; then
10113   ac_cv_header_time=yes
10114 else
10115   echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_cv_header_time=no
10119 fi
10120 rm -f conftest.$ac_objext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10123 echo "${ECHO_T}$ac_cv_header_time" >&6
10124 if test $ac_cv_header_time = yes; then
10125
10126 cat >>confdefs.h <<\_ACEOF
10127 #define TIME_WITH_SYS_TIME 1
10128 _ACEOF
10129
10130 fi
10131
10132
10133 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10134 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10135 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   cat >conftest.$ac_ext <<_ACEOF
10139 #line $LINENO "configure"
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145 $ac_includes_default
10146 int
10147 main ()
10148 {
10149 static struct stat ac_aggr;
10150 if (ac_aggr.st_blksize)
10151 return 0;
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158   (eval $ac_compile) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } &&
10162          { ac_try='test -s conftest.$ac_objext'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   ac_cv_member_struct_stat_st_blksize=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 $ac_includes_default
10181 int
10182 main ()
10183 {
10184 static struct stat ac_aggr;
10185 if (sizeof ac_aggr.st_blksize)
10186 return 0;
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193   (eval $ac_compile) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } &&
10197          { ac_try='test -s conftest.$ac_objext'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   ac_cv_member_struct_stat_st_blksize=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ac_cv_member_struct_stat_st_blksize=no
10209 fi
10210 rm -f conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 rm -f conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10216 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10217
10218 cat >>confdefs.h <<_ACEOF
10219 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10220 _ACEOF
10221
10222
10223 cat >>confdefs.h <<\_ACEOF
10224 #define HAVE_ST_BLKSIZE 1
10225 _ACEOF
10226
10227 fi
10228
10229
10230 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10231 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10232 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 $ac_includes_default
10243 int
10244 main ()
10245 {
10246 static struct stat ac_aggr;
10247 if (ac_aggr.st_blocks)
10248 return 0;
10249   ;
10250   return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255   (eval $ac_compile) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -s conftest.$ac_objext'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_member_struct_stat_st_blocks=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 $ac_includes_default
10278 int
10279 main ()
10280 {
10281 static struct stat ac_aggr;
10282 if (sizeof ac_aggr.st_blocks)
10283 return 0;
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290   (eval $ac_compile) 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -s conftest.$ac_objext'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_member_struct_stat_st_blocks=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_cv_member_struct_stat_st_blocks=no
10306 fi
10307 rm -f conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 rm -f conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10312 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10313 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10314
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10317 _ACEOF
10318
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_ST_BLOCKS 1
10322 _ACEOF
10323
10324 else
10325   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10326 fi
10327
10328
10329 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10330 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10331 if test "${ac_cv_struct_tm+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 #include <sys/types.h>
10342 #include <time.h>
10343
10344 int
10345 main ()
10346 {
10347 struct tm *tp; tp->tm_sec;
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -s conftest.$ac_objext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_struct_tm=time.h
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_cv_struct_tm=sys/time.h
10370 fi
10371 rm -f conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10375 if test $ac_cv_struct_tm = sys/time.h; then
10376
10377 cat >>confdefs.h <<\_ACEOF
10378 #define TM_IN_SYS_TIME 1
10379 _ACEOF
10380
10381 fi
10382
10383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <sys/types.h>
10396 #include <$ac_cv_struct_tm>
10397
10398
10399 int
10400 main ()
10401 {
10402 static struct tm ac_aggr;
10403 if (ac_aggr.tm_zone)
10404 return 0;
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411   (eval $ac_compile) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } &&
10415          { ac_try='test -s conftest.$ac_objext'
10416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417   (eval $ac_try) 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); }; }; then
10421   ac_cv_member_struct_tm_tm_zone=yes
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 #include <sys/types.h>
10434 #include <$ac_cv_struct_tm>
10435
10436
10437 int
10438 main ()
10439 {
10440 static struct tm ac_aggr;
10441 if (sizeof ac_aggr.tm_zone)
10442 return 0;
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } &&
10453          { ac_try='test -s conftest.$ac_objext'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   ac_cv_member_struct_tm_tm_zone=yes
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464 ac_cv_member_struct_tm_tm_zone=no
10465 fi
10466 rm -f conftest.$ac_objext conftest.$ac_ext
10467 fi
10468 rm -f conftest.$ac_objext conftest.$ac_ext
10469 fi
10470 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10471 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10472 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10473
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_STRUCT_TM_TM_ZONE 1
10476 _ACEOF
10477
10478
10479 fi
10480
10481 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10482
10483 cat >>confdefs.h <<\_ACEOF
10484 #define HAVE_TM_ZONE 1
10485 _ACEOF
10486
10487 else
10488   echo "$as_me:$LINENO: checking for tzname" >&5
10489 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10490 if test "${ac_cv_var_tzname+set}" = set; then
10491   echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493   cat >conftest.$ac_ext <<_ACEOF
10494 #line $LINENO "configure"
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500 #include <time.h>
10501 #ifndef tzname /* For SGI.  */
10502 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 atoi(*tzname);
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515   (eval $ac_link) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } &&
10519          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10525   ac_cv_var_tzname=yes
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 ac_cv_var_tzname=no
10531 fi
10532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10533 fi
10534 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10535 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10536   if test $ac_cv_var_tzname = yes; then
10537
10538 cat >>confdefs.h <<\_ACEOF
10539 #define HAVE_TZNAME 1
10540 _ACEOF
10541
10542   fi
10543 fi
10544
10545
10546 echo "$as_me:$LINENO: checking for utime.h" >&5
10547 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10548 if test "${ba_cv_header_utime_h+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   cat >conftest.$ac_ext <<_ACEOF
10552 #line $LINENO "configure"
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558
10559 #include <sys/types.h>
10560 #include <utime.h>
10561 int
10562 main ()
10563 {
10564 struct utimbuf foo
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571   (eval $ac_compile) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ba_cv_header_utime_h=yes
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ba_cv_header_utime_h=no
10587 fi
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10589 fi
10590 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10591 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10592 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10593 #define HAVE_UTIME_H 1
10594 _ACEOF
10595
10596
10597 echo "$as_me:$LINENO: checking for socklen_t" >&5
10598 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10599 if test "${ba_cv_header_socklen_t+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602   cat >conftest.$ac_ext <<_ACEOF
10603 #line $LINENO "configure"
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609
10610 #include <sys/types.h>
10611 #include <sys/socket.h>
10612 int
10613 main ()
10614 {
10615 socklen_t x
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622   (eval $ac_compile) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ba_cv_header_socklen_t=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ba_cv_header_socklen_t=no
10638 fi
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10640 fi
10641 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10642 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10643 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_SOCKLEN_T 1
10645 _ACEOF
10646
10647
10648 echo "$as_me:$LINENO: checking for bigendian" >&5
10649 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10650 if test "${ba_cv_bigendian+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   if test "$cross_compiling" = yes; then
10654   ba_cv_bigendian=no
10655 else
10656   cat >conftest.$ac_ext <<_ACEOF
10657 #line $LINENO "configure"
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667   (eval $ac_link) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   ba_cv_bigendian=yes
10677 else
10678   echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ( exit $ac_status )
10683 ba_cv_bigendian=no
10684 fi
10685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10686 fi
10687 fi
10688 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10689 echo "${ECHO_T}$ba_cv_bigendian" >&6
10690 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_BIGENDIAN 1
10692 _ACEOF
10693
10694
10695
10696 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10697 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10698 if test "${ac_cv_c_const+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708
10709 int
10710 main ()
10711 {
10712 /* FIXME: Include the comments suggested by Paul. */
10713 #ifndef __cplusplus
10714   /* Ultrix mips cc rejects this.  */
10715   typedef int charset[2];
10716   const charset x;
10717   /* SunOS 4.1.1 cc rejects this.  */
10718   char const *const *ccp;
10719   char **p;
10720   /* NEC SVR4.0.2 mips cc rejects this.  */
10721   struct point {int x, y;};
10722   static struct point const zero = {0,0};
10723   /* AIX XL C 1.02.0.0 rejects this.
10724      It does not let you subtract one const X* pointer from another in
10725      an arm of an if-expression whose if-part is not a constant
10726      expression */
10727   const char *g = "string";
10728   ccp = &g + (g ? g-g : 0);
10729   /* HPUX 7.0 cc rejects these. */
10730   ++ccp;
10731   p = (char**) ccp;
10732   ccp = (char const *const *) p;
10733   { /* SCO 3.2v4 cc rejects this.  */
10734     char *t;
10735     char const *s = 0 ? (char *) 0 : (char const *) 0;
10736
10737     *t++ = 0;
10738   }
10739   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10740     int x[] = {25, 17};
10741     const int *foo = &x[0];
10742     ++foo;
10743   }
10744   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10745     typedef const int *iptr;
10746     iptr p = 0;
10747     ++p;
10748   }
10749   { /* AIX XL C 1.02.0.0 rejects this saying
10750        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10751     struct s { int j; const int *ap[3]; };
10752     struct s *b; b->j = 5;
10753   }
10754   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10755     const int foo = 10;
10756   }
10757 #endif
10758
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765   (eval $ac_compile) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_c_const=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_c_const=no
10781 fi
10782 rm -f conftest.$ac_objext conftest.$ac_ext
10783 fi
10784 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10785 echo "${ECHO_T}$ac_cv_c_const" >&6
10786 if test $ac_cv_c_const = no; then
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define const
10790 _ACEOF
10791
10792 fi
10793
10794
10795
10796 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10797 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10798 fstype=no
10799 # The order of these tests is important.
10800 cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807 #include <sys/statvfs.h>
10808 #include <sys/fstyp.h>
10809 _ACEOF
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812   ac_status=$?
10813   grep -v '^ *+' conftest.er1 >conftest.err
10814   rm -f conftest.er1
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } >/dev/null; then
10818   if test -s conftest.err; then
10819     ac_cpp_err=$ac_c_preproc_warn_flag
10820   else
10821     ac_cpp_err=
10822   fi
10823 else
10824   ac_cpp_err=yes
10825 fi
10826 if test -z "$ac_cpp_err"; then
10827   cat >>confdefs.h <<\_ACEOF
10828 #define FSTYPE_STATVFS 1
10829 _ACEOF
10830  fstype=SVR4
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835
10836 fi
10837 rm -f conftest.err conftest.$ac_ext
10838 if test $fstype = no; then
10839 cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 #include <sys/statfs.h>
10847 #include <sys/fstyp.h>
10848 _ACEOF
10849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10851   ac_status=$?
10852   grep -v '^ *+' conftest.er1 >conftest.err
10853   rm -f conftest.er1
10854   cat conftest.err >&5
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } >/dev/null; then
10857   if test -s conftest.err; then
10858     ac_cpp_err=$ac_c_preproc_warn_flag
10859   else
10860     ac_cpp_err=
10861   fi
10862 else
10863   ac_cpp_err=yes
10864 fi
10865 if test -z "$ac_cpp_err"; then
10866   cat >>confdefs.h <<\_ACEOF
10867 #define FSTYPE_USG_STATFS 1
10868 _ACEOF
10869  fstype=SVR3
10870 else
10871   echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874
10875 fi
10876 rm -f conftest.err conftest.$ac_ext
10877 fi
10878 if test $fstype = no; then
10879 cat >conftest.$ac_ext <<_ACEOF
10880 #line $LINENO "configure"
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 #include <sys/statfs.h>
10887 #include <sys/vmount.h>
10888 _ACEOF
10889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } >/dev/null; then
10897   if test -s conftest.err; then
10898     ac_cpp_err=$ac_c_preproc_warn_flag
10899   else
10900     ac_cpp_err=
10901   fi
10902 else
10903   ac_cpp_err=yes
10904 fi
10905 if test -z "$ac_cpp_err"; then
10906   cat >>confdefs.h <<\_ACEOF
10907 #define FSTYPE_AIX_STATFS 1
10908 _ACEOF
10909  fstype=AIX
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914
10915 fi
10916 rm -f conftest.err conftest.$ac_ext
10917 fi
10918 if test $fstype = no; then
10919 cat >conftest.$ac_ext <<_ACEOF
10920 #line $LINENO "configure"
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 #include <mntent.h>
10927 _ACEOF
10928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10930   ac_status=$?
10931   grep -v '^ *+' conftest.er1 >conftest.err
10932   rm -f conftest.er1
10933   cat conftest.err >&5
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); } >/dev/null; then
10936   if test -s conftest.err; then
10937     ac_cpp_err=$ac_c_preproc_warn_flag
10938   else
10939     ac_cpp_err=
10940   fi
10941 else
10942   ac_cpp_err=yes
10943 fi
10944 if test -z "$ac_cpp_err"; then
10945   cat >>confdefs.h <<\_ACEOF
10946 #define FSTYPE_MNTENT 1
10947 _ACEOF
10948  fstype=4.3BSD
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953
10954 fi
10955 rm -f conftest.err conftest.$ac_ext
10956 fi
10957 if test $fstype = no; then
10958 cat >conftest.$ac_ext <<_ACEOF
10959 #line $LINENO "configure"
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 #include <sys/mount.h>
10966
10967 _ACEOF
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969   $EGREP "f_type;" >/dev/null 2>&1; then
10970   cat >>confdefs.h <<\_ACEOF
10971 #define FSTYPE_STATFS 1
10972 _ACEOF
10973  fstype=4.4BSD/OSF1
10974 fi
10975 rm -f conftest*
10976
10977 fi
10978 if test $fstype = no; then
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <sys/mount.h>
10987 #include <sys/fs_types.h>
10988 _ACEOF
10989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } >/dev/null; then
10997   if test -s conftest.err; then
10998     ac_cpp_err=$ac_c_preproc_warn_flag
10999   else
11000     ac_cpp_err=
11001   fi
11002 else
11003   ac_cpp_err=yes
11004 fi
11005 if test -z "$ac_cpp_err"; then
11006   cat >>confdefs.h <<\_ACEOF
11007 #define FSTYPE_GETMNT 1
11008 _ACEOF
11009  fstype=Ultrix
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014
11015 fi
11016 rm -f conftest.err conftest.$ac_ext
11017 fi
11018 echo "$as_me:$LINENO: result: $fstype" >&5
11019 echo "${ECHO_T}$fstype" >&6
11020
11021 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11022 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11023 if test "${ac_cv_type_signal+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 #include <sys/types.h>
11034 #include <signal.h>
11035 #ifdef signal
11036 # undef signal
11037 #endif
11038 #ifdef __cplusplus
11039 extern "C" void (*signal (int, void (*)(int)))(int);
11040 #else
11041 void (*signal ()) ();
11042 #endif
11043
11044 int
11045 main ()
11046 {
11047 int i;
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054   (eval $ac_compile) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -s conftest.$ac_objext'
11059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060   (eval $ac_try) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; }; then
11064   ac_cv_type_signal=void
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 ac_cv_type_signal=int
11070 fi
11071 rm -f conftest.$ac_objext conftest.$ac_ext
11072 fi
11073 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11074 echo "${ECHO_T}$ac_cv_type_signal" >&6
11075
11076 cat >>confdefs.h <<_ACEOF
11077 #define RETSIGTYPE $ac_cv_type_signal
11078 _ACEOF
11079
11080
11081
11082 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11083 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11084 if test "${bash_cv_signal_vintage+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087
11088   cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 #include <signal.h>
11096 int
11097 main ()
11098 {
11099
11100     sigset_t ss;
11101     struct sigaction sa;
11102     sigemptyset(&ss); sigsuspend(&ss);
11103     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11104     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11105
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112   (eval $ac_link) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } &&
11116          { ac_try='test -s conftest$ac_exeext'
11117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118   (eval $ac_try) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   bash_cv_signal_vintage=posix
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127
11128     cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <signal.h>
11136 int
11137 main ()
11138 {
11139
11140         int mask = sigmask(SIGINT);
11141         sigsetmask(mask); sigblock(mask); sigpause(mask);
11142
11143   ;
11144   return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149   (eval $ac_link) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } &&
11153          { ac_try='test -s conftest$ac_exeext'
11154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155   (eval $ac_try) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; }; then
11159   bash_cv_signal_vintage=4.2bsd
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164
11165       cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172
11173         #include <signal.h>
11174         RETSIGTYPE foo() { }
11175 int
11176 main ()
11177 {
11178
11179                 int mask = sigmask(SIGINT);
11180                 sigset(SIGINT, foo); sigrelse(SIGINT);
11181                 sighold(SIGINT); sigpause(SIGINT);
11182
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189   (eval $ac_link) 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } &&
11193          { ac_try='test -s conftest$ac_exeext'
11194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195   (eval $ac_try) 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; }; then
11199   bash_cv_signal_vintage=svr3
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 bash_cv_signal_vintage=v7
11205
11206 fi
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208
11209 fi
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11211
11212 fi
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214
11215 fi
11216
11217 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11218 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11219 if test "$bash_cv_signal_vintage" = posix; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define HAVE_POSIX_SIGNALS 1
11222 _ACEOF
11223
11224 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_BSD_SIGNALS 1
11227 _ACEOF
11228
11229 elif test "$bash_cv_signal_vintage" = svr3; then
11230 cat >>confdefs.h <<\_ACEOF
11231 #define HAVE_USG_SIGHOLD 1
11232 _ACEOF
11233
11234 fi
11235
11236 echo "$as_me:$LINENO: checking for mode_t" >&5
11237 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11238 if test "${ac_cv_type_mode_t+set}" = set; then
11239   echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241   cat >conftest.$ac_ext <<_ACEOF
11242 #line $LINENO "configure"
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 int
11250 main ()
11251 {
11252 if ((mode_t *) 0)
11253   return 0;
11254 if (sizeof (mode_t))
11255   return 0;
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262   (eval $ac_compile) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268   (eval $ac_try) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); }; }; then
11272   ac_cv_type_mode_t=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ac_cv_type_mode_t=no
11278 fi
11279 rm -f conftest.$ac_objext conftest.$ac_ext
11280 fi
11281 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11282 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11283 if test $ac_cv_type_mode_t = yes; then
11284   :
11285 else
11286
11287 cat >>confdefs.h <<_ACEOF
11288 #define mode_t int
11289 _ACEOF
11290
11291 fi
11292
11293 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11294 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11295 if test "${ac_cv_type_uid_t+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #include <sys/types.h>
11306
11307 _ACEOF
11308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11309   $EGREP "uid_t" >/dev/null 2>&1; then
11310   ac_cv_type_uid_t=yes
11311 else
11312   ac_cv_type_uid_t=no
11313 fi
11314 rm -f conftest*
11315
11316 fi
11317 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11318 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11319 if test $ac_cv_type_uid_t = no; then
11320
11321 cat >>confdefs.h <<\_ACEOF
11322 #define uid_t int
11323 _ACEOF
11324
11325
11326 cat >>confdefs.h <<\_ACEOF
11327 #define gid_t int
11328 _ACEOF
11329
11330 fi
11331
11332 echo "$as_me:$LINENO: checking for size_t" >&5
11333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11334 if test "${ac_cv_type_size_t+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 $ac_includes_default
11345 int
11346 main ()
11347 {
11348 if ((size_t *) 0)
11349   return 0;
11350 if (sizeof (size_t))
11351   return 0;
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358   (eval $ac_compile) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -s conftest.$ac_objext'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }; then
11368   ac_cv_type_size_t=yes
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_cv_type_size_t=no
11374 fi
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11376 fi
11377 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11378 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11379 if test $ac_cv_type_size_t = yes; then
11380   :
11381 else
11382
11383 cat >>confdefs.h <<_ACEOF
11384 #define size_t unsigned
11385 _ACEOF
11386
11387 fi
11388
11389 echo "$as_me:$LINENO: checking for pid_t" >&5
11390 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11391 if test "${ac_cv_type_pid_t+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   cat >conftest.$ac_ext <<_ACEOF
11395 #line $LINENO "configure"
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401 $ac_includes_default
11402 int
11403 main ()
11404 {
11405 if ((pid_t *) 0)
11406   return 0;
11407 if (sizeof (pid_t))
11408   return 0;
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415   (eval $ac_compile) 2>&5
11416   ac_status=$?
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } &&
11419          { ac_try='test -s conftest.$ac_objext'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_cv_type_pid_t=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 ac_cv_type_pid_t=no
11431 fi
11432 rm -f conftest.$ac_objext conftest.$ac_ext
11433 fi
11434 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11435 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11436 if test $ac_cv_type_pid_t = yes; then
11437   :
11438 else
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define pid_t int
11442 _ACEOF
11443
11444 fi
11445
11446 echo "$as_me:$LINENO: checking for off_t" >&5
11447 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11448 if test "${ac_cv_type_off_t+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   cat >conftest.$ac_ext <<_ACEOF
11452 #line $LINENO "configure"
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458 $ac_includes_default
11459 int
11460 main ()
11461 {
11462 if ((off_t *) 0)
11463   return 0;
11464 if (sizeof (off_t))
11465   return 0;
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472   (eval $ac_compile) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } &&
11476          { ac_try='test -s conftest.$ac_objext'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; }; then
11482   ac_cv_type_off_t=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 ac_cv_type_off_t=no
11488 fi
11489 rm -f conftest.$ac_objext conftest.$ac_ext
11490 fi
11491 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11492 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11493 if test $ac_cv_type_off_t = yes; then
11494   :
11495 else
11496
11497 cat >>confdefs.h <<_ACEOF
11498 #define off_t long
11499 _ACEOF
11500
11501 fi
11502
11503 echo "$as_me:$LINENO: checking for ino_t" >&5
11504 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11505 if test "${ac_cv_type_ino_t+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 int
11517 main ()
11518 {
11519 if ((ino_t *) 0)
11520   return 0;
11521 if (sizeof (ino_t))
11522   return 0;
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529   (eval $ac_compile) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } &&
11533          { ac_try='test -s conftest.$ac_objext'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   ac_cv_type_ino_t=yes
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_cv_type_ino_t=no
11545 fi
11546 rm -f conftest.$ac_objext conftest.$ac_ext
11547 fi
11548 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11549 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11550 if test $ac_cv_type_ino_t = yes; then
11551   :
11552 else
11553
11554 cat >>confdefs.h <<_ACEOF
11555 #define ino_t unsigned long
11556 _ACEOF
11557
11558 fi
11559
11560 echo "$as_me:$LINENO: checking for dev_t" >&5
11561 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11562 if test "${ac_cv_type_dev_t+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   cat >conftest.$ac_ext <<_ACEOF
11566 #line $LINENO "configure"
11567 /* confdefs.h.  */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h.  */
11572 $ac_includes_default
11573 int
11574 main ()
11575 {
11576 if ((dev_t *) 0)
11577   return 0;
11578 if (sizeof (dev_t))
11579   return 0;
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 rm -f conftest.$ac_objext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11586   (eval $ac_compile) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } &&
11590          { ac_try='test -s conftest.$ac_objext'
11591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592   (eval $ac_try) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   ac_cv_type_dev_t=yes
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 ac_cv_type_dev_t=no
11602 fi
11603 rm -f conftest.$ac_objext conftest.$ac_ext
11604 fi
11605 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11606 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11607 if test $ac_cv_type_dev_t = yes; then
11608   :
11609 else
11610
11611 cat >>confdefs.h <<_ACEOF
11612 #define dev_t unsigned long
11613 _ACEOF
11614
11615 fi
11616
11617 echo "$as_me:$LINENO: checking for daddr_t" >&5
11618 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11619 if test "${ac_cv_type_daddr_t+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629 $ac_includes_default
11630 int
11631 main ()
11632 {
11633 if ((daddr_t *) 0)
11634   return 0;
11635 if (sizeof (daddr_t))
11636   return 0;
11637   ;
11638   return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643   (eval $ac_compile) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } &&
11647          { ac_try='test -s conftest.$ac_objext'
11648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649   (eval $ac_try) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; }; then
11653   ac_cv_type_daddr_t=yes
11654 else
11655   echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 ac_cv_type_daddr_t=no
11659 fi
11660 rm -f conftest.$ac_objext conftest.$ac_ext
11661 fi
11662 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11663 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11664 if test $ac_cv_type_daddr_t = yes; then
11665   :
11666 else
11667
11668 cat >>confdefs.h <<_ACEOF
11669 #define daddr_t long
11670 _ACEOF
11671
11672 fi
11673
11674 echo "$as_me:$LINENO: checking for major_t" >&5
11675 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11676 if test "${ac_cv_type_major_t+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 $ac_includes_default
11687 int
11688 main ()
11689 {
11690 if ((major_t *) 0)
11691   return 0;
11692 if (sizeof (major_t))
11693   return 0;
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700   (eval $ac_compile) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } &&
11704          { ac_try='test -s conftest.$ac_objext'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   ac_cv_type_major_t=yes
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_cv_type_major_t=no
11716 fi
11717 rm -f conftest.$ac_objext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11720 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11721 if test $ac_cv_type_major_t = yes; then
11722   :
11723 else
11724
11725 cat >>confdefs.h <<_ACEOF
11726 #define major_t int
11727 _ACEOF
11728
11729 fi
11730
11731 echo "$as_me:$LINENO: checking for minor_t" >&5
11732 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11733 if test "${ac_cv_type_minor_t+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 #line $LINENO "configure"
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743 $ac_includes_default
11744 int
11745 main ()
11746 {
11747 if ((minor_t *) 0)
11748   return 0;
11749 if (sizeof (minor_t))
11750   return 0;
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757   (eval $ac_compile) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11767   ac_cv_type_minor_t=yes
11768 else
11769   echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772 ac_cv_type_minor_t=no
11773 fi
11774 rm -f conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11777 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11778 if test $ac_cv_type_minor_t = yes; then
11779   :
11780 else
11781
11782 cat >>confdefs.h <<_ACEOF
11783 #define minor_t int
11784 _ACEOF
11785
11786 fi
11787
11788 echo "$as_me:$LINENO: checking for ssize_t" >&5
11789 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11790 if test "${ac_cv_type_ssize_t+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   cat >conftest.$ac_ext <<_ACEOF
11794 #line $LINENO "configure"
11795 /* confdefs.h.  */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h.  */
11800 $ac_includes_default
11801 int
11802 main ()
11803 {
11804 if ((ssize_t *) 0)
11805   return 0;
11806 if (sizeof (ssize_t))
11807   return 0;
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814   (eval $ac_compile) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } &&
11818          { ac_try='test -s conftest.$ac_objext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   ac_cv_type_ssize_t=yes
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_cv_type_ssize_t=no
11830 fi
11831 rm -f conftest.$ac_objext conftest.$ac_ext
11832 fi
11833 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11834 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11835 if test $ac_cv_type_ssize_t = yes; then
11836   :
11837 else
11838
11839 cat >>confdefs.h <<_ACEOF
11840 #define ssize_t int
11841 _ACEOF
11842
11843 fi
11844
11845 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11846 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11847 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   cat >conftest.$ac_ext <<_ACEOF
11851 #line $LINENO "configure"
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 $ac_includes_default
11858 int
11859 main ()
11860 {
11861 static struct stat ac_aggr;
11862 if (ac_aggr.st_blocks)
11863 return 0;
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870   (eval $ac_compile) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -s conftest.$ac_objext'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   ac_cv_member_struct_stat_st_blocks=yes
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 $ac_includes_default
11893 int
11894 main ()
11895 {
11896 static struct stat ac_aggr;
11897 if (sizeof ac_aggr.st_blocks)
11898 return 0;
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905   (eval $ac_compile) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -s conftest.$ac_objext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_member_struct_stat_st_blocks=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_member_struct_stat_st_blocks=no
11921 fi
11922 rm -f conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 rm -f conftest.$ac_objext conftest.$ac_ext
11925 fi
11926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11927 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11928 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11929
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11932 _ACEOF
11933
11934
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_ST_BLOCKS 1
11937 _ACEOF
11938
11939 else
11940   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11941 fi
11942
11943
11944
11945 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11946 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11947 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 int
11959 main ()
11960 {
11961 static struct stat ac_aggr;
11962 if (ac_aggr.st_rdev)
11963 return 0;
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970   (eval $ac_compile) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -s conftest.$ac_objext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_member_struct_stat_st_rdev=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 cat >conftest.$ac_ext <<_ACEOF
11986 #line $LINENO "configure"
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 $ac_includes_default
11993 int
11994 main ()
11995 {
11996 static struct stat ac_aggr;
11997 if (sizeof ac_aggr.st_rdev)
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>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } &&
12009          { ac_try='test -s conftest.$ac_objext'
12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011   (eval $ac_try) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; }; then
12015   ac_cv_member_struct_stat_st_rdev=yes
12016 else
12017   echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_member_struct_stat_st_rdev=no
12021 fi
12022 rm -f conftest.$ac_objext conftest.$ac_ext
12023 fi
12024 rm -f conftest.$ac_objext conftest.$ac_ext
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12027 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12028 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12029
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_STRUCT_STAT_ST_RDEV 1
12032 _ACEOF
12033
12034
12035 cat >>confdefs.h <<\_ACEOF
12036 #define HAVE_ST_RDEV 1
12037 _ACEOF
12038
12039 fi
12040
12041
12042 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12044 if test "${ac_cv_struct_tm+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 #include <sys/types.h>
12055 #include <time.h>
12056
12057 int
12058 main ()
12059 {
12060 struct tm *tp; tp->tm_sec;
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067   (eval $ac_compile) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -s conftest.$ac_objext'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; }; then
12077   ac_cv_struct_tm=time.h
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_cv_struct_tm=sys/time.h
12083 fi
12084 rm -f conftest.$ac_objext conftest.$ac_ext
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12087 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12088 if test $ac_cv_struct_tm = sys/time.h; then
12089
12090 cat >>confdefs.h <<\_ACEOF
12091 #define TM_IN_SYS_TIME 1
12092 _ACEOF
12093
12094 fi
12095
12096 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12097 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12098 if test "${ac_cv_c_const+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108
12109 int
12110 main ()
12111 {
12112 /* FIXME: Include the comments suggested by Paul. */
12113 #ifndef __cplusplus
12114   /* Ultrix mips cc rejects this.  */
12115   typedef int charset[2];
12116   const charset x;
12117   /* SunOS 4.1.1 cc rejects this.  */
12118   char const *const *ccp;
12119   char **p;
12120   /* NEC SVR4.0.2 mips cc rejects this.  */
12121   struct point {int x, y;};
12122   static struct point const zero = {0,0};
12123   /* AIX XL C 1.02.0.0 rejects this.
12124      It does not let you subtract one const X* pointer from another in
12125      an arm of an if-expression whose if-part is not a constant
12126      expression */
12127   const char *g = "string";
12128   ccp = &g + (g ? g-g : 0);
12129   /* HPUX 7.0 cc rejects these. */
12130   ++ccp;
12131   p = (char**) ccp;
12132   ccp = (char const *const *) p;
12133   { /* SCO 3.2v4 cc rejects this.  */
12134     char *t;
12135     char const *s = 0 ? (char *) 0 : (char const *) 0;
12136
12137     *t++ = 0;
12138   }
12139   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12140     int x[] = {25, 17};
12141     const int *foo = &x[0];
12142     ++foo;
12143   }
12144   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12145     typedef const int *iptr;
12146     iptr p = 0;
12147     ++p;
12148   }
12149   { /* AIX XL C 1.02.0.0 rejects this saying
12150        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12151     struct s { int j; const int *ap[3]; };
12152     struct s *b; b->j = 5;
12153   }
12154   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12155     const int foo = 10;
12156   }
12157 #endif
12158
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165   (eval $ac_compile) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } &&
12169          { ac_try='test -s conftest.$ac_objext'
12170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171   (eval $ac_try) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_cv_c_const=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_cv_c_const=no
12181 fi
12182 rm -f conftest.$ac_objext conftest.$ac_ext
12183 fi
12184 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12185 echo "${ECHO_T}$ac_cv_c_const" >&6
12186 if test $ac_cv_c_const = no; then
12187
12188 cat >>confdefs.h <<\_ACEOF
12189 #define const
12190 _ACEOF
12191
12192 fi
12193
12194
12195
12196 echo "$as_me:$LINENO: checking for char" >&5
12197 echo $ECHO_N "checking for char... $ECHO_C" >&6
12198 if test "${ac_cv_type_char+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   cat >conftest.$ac_ext <<_ACEOF
12202 #line $LINENO "configure"
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208 $ac_includes_default
12209 int
12210 main ()
12211 {
12212 if ((char *) 0)
12213   return 0;
12214 if (sizeof (char))
12215   return 0;
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222   (eval $ac_compile) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -s conftest.$ac_objext'
12227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228   (eval $ac_try) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; }; then
12232   ac_cv_type_char=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ac_cv_type_char=no
12238 fi
12239 rm -f conftest.$ac_objext conftest.$ac_ext
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12242 echo "${ECHO_T}$ac_cv_type_char" >&6
12243
12244 echo "$as_me:$LINENO: checking size of char" >&5
12245 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12246 if test "${ac_cv_sizeof_char+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   if test "$ac_cv_type_char" = yes; then
12250   # The cast to unsigned long works around a bug in the HP C Compiler
12251   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253   # This bug is HP SR number 8606223364.
12254   if test "$cross_compiling" = yes; then
12255   # Depending upon the size, compute the lo and hi bounds.
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 $ac_includes_default
12264 int
12265 main ()
12266 {
12267 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12268 test_array [0] = 0
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } &&
12280          { ac_try='test -s conftest.$ac_objext'
12281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282   (eval $ac_try) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; }; then
12286   ac_lo=0 ac_mid=0
12287   while :; do
12288     cat >conftest.$ac_ext <<_ACEOF
12289 #line $LINENO "configure"
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295 $ac_includes_default
12296 int
12297 main ()
12298 {
12299 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12300 test_array [0] = 0
12301
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>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -s conftest.$ac_objext'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318   ac_hi=$ac_mid; break
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 ac_lo=`expr $ac_mid + 1`
12324                     if test $ac_lo -le $ac_mid; then
12325                       ac_lo= ac_hi=
12326                       break
12327                     fi
12328                     ac_mid=`expr 2 '*' $ac_mid + 1`
12329 fi
12330 rm -f conftest.$ac_objext conftest.$ac_ext
12331   done
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 cat >conftest.$ac_ext <<_ACEOF
12337 #line $LINENO "configure"
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343 $ac_includes_default
12344 int
12345 main ()
12346 {
12347 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12348 test_array [0] = 0
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356   (eval $ac_compile) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -s conftest.$ac_objext'
12361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362   (eval $ac_try) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; }; then
12366   ac_hi=-1 ac_mid=-1
12367   while :; do
12368     cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 $ac_includes_default
12376 int
12377 main ()
12378 {
12379 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12380 test_array [0] = 0
12381
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388   (eval $ac_compile) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_lo=$ac_mid; break
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_hi=`expr '(' $ac_mid ')' - 1`
12404                        if test $ac_mid -le $ac_hi; then
12405                          ac_lo= ac_hi=
12406                          break
12407                        fi
12408                        ac_mid=`expr 2 '*' $ac_mid`
12409 fi
12410 rm -f conftest.$ac_objext conftest.$ac_ext
12411   done
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_lo= ac_hi=
12417 fi
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 rm -f conftest.$ac_objext conftest.$ac_ext
12421 # Binary search between lo and hi bounds.
12422 while test "x$ac_lo" != "x$ac_hi"; do
12423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 $ac_includes_default
12432 int
12433 main ()
12434 {
12435 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12436 test_array [0] = 0
12437
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444   (eval $ac_compile) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -s conftest.$ac_objext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_hi=$ac_mid
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ac_lo=`expr '(' $ac_mid ')' + 1`
12460 fi
12461 rm -f conftest.$ac_objext conftest.$ac_ext
12462 done
12463 case $ac_lo in
12464 ?*) ac_cv_sizeof_char=$ac_lo;;
12465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12466 See \`config.log' for more details." >&5
12467 echo "$as_me: error: cannot compute sizeof (char), 77
12468 See \`config.log' for more details." >&2;}
12469    { (exit 1); exit 1; }; } ;;
12470 esac
12471 else
12472   if test "$cross_compiling" = yes; then
12473   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12474 See \`config.log' for more details." >&5
12475 echo "$as_me: error: cannot run test program while cross compiling
12476 See \`config.log' for more details." >&2;}
12477    { (exit 1); exit 1; }; }
12478 else
12479   cat >conftest.$ac_ext <<_ACEOF
12480 #line $LINENO "configure"
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 $ac_includes_default
12487 long longval () { return (long) (sizeof (char)); }
12488 unsigned long ulongval () { return (long) (sizeof (char)); }
12489 #include <stdio.h>
12490 #include <stdlib.h>
12491 int
12492 main ()
12493 {
12494
12495   FILE *f = fopen ("conftest.val", "w");
12496   if (! f)
12497     exit (1);
12498   if (((long) (sizeof (char))) < 0)
12499     {
12500       long i = longval ();
12501       if (i != ((long) (sizeof (char))))
12502         exit (1);
12503       fprintf (f, "%ld\n", i);
12504     }
12505   else
12506     {
12507       unsigned long i = ulongval ();
12508       if (i != ((long) (sizeof (char))))
12509         exit (1);
12510       fprintf (f, "%lu\n", i);
12511     }
12512   exit (ferror (f) || fclose (f) != 0);
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520   (eval $ac_link) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; }; then
12529   ac_cv_sizeof_char=`cat conftest.val`
12530 else
12531   echo "$as_me: program exited with status $ac_status" >&5
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ( exit $ac_status )
12536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12537 See \`config.log' for more details." >&5
12538 echo "$as_me: error: cannot compute sizeof (char), 77
12539 See \`config.log' for more details." >&2;}
12540    { (exit 1); exit 1; }; }
12541 fi
12542 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 fi
12544 fi
12545 rm -f conftest.val
12546 else
12547   ac_cv_sizeof_char=0
12548 fi
12549 fi
12550 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12551 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF_CHAR $ac_cv_sizeof_char
12554 _ACEOF
12555
12556
12557 echo "$as_me:$LINENO: checking for short int" >&5
12558 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12559 if test "${ac_cv_type_short_int+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   cat >conftest.$ac_ext <<_ACEOF
12563 #line $LINENO "configure"
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569 $ac_includes_default
12570 int
12571 main ()
12572 {
12573 if ((short int *) 0)
12574   return 0;
12575 if (sizeof (short int))
12576   return 0;
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583   (eval $ac_compile) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }; then
12593   ac_cv_type_short_int=yes
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_cv_type_short_int=no
12599 fi
12600 rm -f conftest.$ac_objext conftest.$ac_ext
12601 fi
12602 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12603 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12604
12605 echo "$as_me:$LINENO: checking size of short int" >&5
12606 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12607 if test "${ac_cv_sizeof_short_int+set}" = set; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610   if test "$ac_cv_type_short_int" = yes; then
12611   # The cast to unsigned long works around a bug in the HP C Compiler
12612   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12613   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12614   # This bug is HP SR number 8606223364.
12615   if test "$cross_compiling" = yes; then
12616   # Depending upon the size, compute the lo and hi bounds.
12617 cat >conftest.$ac_ext <<_ACEOF
12618 #line $LINENO "configure"
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 $ac_includes_default
12625 int
12626 main ()
12627 {
12628 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12629 test_array [0] = 0
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -s conftest.$ac_objext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_lo=0 ac_mid=0
12648   while :; do
12649     cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656 $ac_includes_default
12657 int
12658 main ()
12659 {
12660 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12661 test_array [0] = 0
12662
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669   (eval $ac_compile) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -s conftest.$ac_objext'
12674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675   (eval $ac_try) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; }; then
12679   ac_hi=$ac_mid; break
12680 else
12681   echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ac_lo=`expr $ac_mid + 1`
12685                     if test $ac_lo -le $ac_mid; then
12686                       ac_lo= ac_hi=
12687                       break
12688                     fi
12689                     ac_mid=`expr 2 '*' $ac_mid + 1`
12690 fi
12691 rm -f conftest.$ac_objext conftest.$ac_ext
12692   done
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 cat >conftest.$ac_ext <<_ACEOF
12698 #line $LINENO "configure"
12699 /* confdefs.h.  */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h.  */
12704 $ac_includes_default
12705 int
12706 main ()
12707 {
12708 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12709 test_array [0] = 0
12710
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717   (eval $ac_compile) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -s conftest.$ac_objext'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; }; then
12727   ac_hi=-1 ac_mid=-1
12728   while :; do
12729     cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736 $ac_includes_default
12737 int
12738 main ()
12739 {
12740 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12741 test_array [0] = 0
12742
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749   (eval $ac_compile) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } &&
12753          { ac_try='test -s conftest.$ac_objext'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_lo=$ac_mid; break
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 ac_hi=`expr '(' $ac_mid ')' - 1`
12765                        if test $ac_mid -le $ac_hi; then
12766                          ac_lo= ac_hi=
12767                          break
12768                        fi
12769                        ac_mid=`expr 2 '*' $ac_mid`
12770 fi
12771 rm -f conftest.$ac_objext conftest.$ac_ext
12772   done
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_lo= ac_hi=
12778 fi
12779 rm -f conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12782 # Binary search between lo and hi bounds.
12783 while test "x$ac_lo" != "x$ac_hi"; do
12784   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12785   cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792 $ac_includes_default
12793 int
12794 main ()
12795 {
12796 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12797 test_array [0] = 0
12798
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805   (eval $ac_compile) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } &&
12809          { ac_try='test -s conftest.$ac_objext'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815   ac_hi=$ac_mid
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_lo=`expr '(' $ac_mid ')' + 1`
12821 fi
12822 rm -f conftest.$ac_objext conftest.$ac_ext
12823 done
12824 case $ac_lo in
12825 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12827 See \`config.log' for more details." >&5
12828 echo "$as_me: error: cannot compute sizeof (short int), 77
12829 See \`config.log' for more details." >&2;}
12830    { (exit 1); exit 1; }; } ;;
12831 esac
12832 else
12833   if test "$cross_compiling" = yes; then
12834   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12835 See \`config.log' for more details." >&5
12836 echo "$as_me: error: cannot run test program while cross compiling
12837 See \`config.log' for more details." >&2;}
12838    { (exit 1); exit 1; }; }
12839 else
12840   cat >conftest.$ac_ext <<_ACEOF
12841 #line $LINENO "configure"
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847 $ac_includes_default
12848 long longval () { return (long) (sizeof (short int)); }
12849 unsigned long ulongval () { return (long) (sizeof (short int)); }
12850 #include <stdio.h>
12851 #include <stdlib.h>
12852 int
12853 main ()
12854 {
12855
12856   FILE *f = fopen ("conftest.val", "w");
12857   if (! f)
12858     exit (1);
12859   if (((long) (sizeof (short int))) < 0)
12860     {
12861       long i = longval ();
12862       if (i != ((long) (sizeof (short int))))
12863         exit (1);
12864       fprintf (f, "%ld\n", i);
12865     }
12866   else
12867     {
12868       unsigned long i = ulongval ();
12869       if (i != ((long) (sizeof (short int))))
12870         exit (1);
12871       fprintf (f, "%lu\n", i);
12872     }
12873   exit (ferror (f) || fclose (f) != 0);
12874
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 rm -f conftest$ac_exeext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881   (eval $ac_link) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_cv_sizeof_short_int=`cat conftest.val`
12891 else
12892   echo "$as_me: program exited with status $ac_status" >&5
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 ( exit $ac_status )
12897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12898 See \`config.log' for more details." >&5
12899 echo "$as_me: error: cannot compute sizeof (short int), 77
12900 See \`config.log' for more details." >&2;}
12901    { (exit 1); exit 1; }; }
12902 fi
12903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12904 fi
12905 fi
12906 rm -f conftest.val
12907 else
12908   ac_cv_sizeof_short_int=0
12909 fi
12910 fi
12911 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12912 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12913 cat >>confdefs.h <<_ACEOF
12914 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12915 _ACEOF
12916
12917
12918 echo "$as_me:$LINENO: checking for int" >&5
12919 echo $ECHO_N "checking for int... $ECHO_C" >&6
12920 if test "${ac_cv_type_int+set}" = set; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 /* confdefs.h.  */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h.  */
12930 $ac_includes_default
12931 int
12932 main ()
12933 {
12934 if ((int *) 0)
12935   return 0;
12936 if (sizeof (int))
12937   return 0;
12938   ;
12939   return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944   (eval $ac_compile) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); } &&
12948          { ac_try='test -s conftest.$ac_objext'
12949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950   (eval $ac_try) 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   ac_cv_type_int=yes
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 ac_cv_type_int=no
12960 fi
12961 rm -f conftest.$ac_objext conftest.$ac_ext
12962 fi
12963 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12964 echo "${ECHO_T}$ac_cv_type_int" >&6
12965
12966 echo "$as_me:$LINENO: checking size of int" >&5
12967 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12968 if test "${ac_cv_sizeof_int+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   if test "$ac_cv_type_int" = yes; then
12972   # The cast to unsigned long works around a bug in the HP C Compiler
12973   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12974   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12975   # This bug is HP SR number 8606223364.
12976   if test "$cross_compiling" = yes; then
12977   # Depending upon the size, compute the lo and hi bounds.
12978 cat >conftest.$ac_ext <<_ACEOF
12979 #line $LINENO "configure"
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 $ac_includes_default
12986 int
12987 main ()
12988 {
12989 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12990 test_array [0] = 0
12991
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12998   (eval $ac_compile) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -s conftest.$ac_objext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   ac_lo=0 ac_mid=0
13009   while :; do
13010     cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 $ac_includes_default
13018 int
13019 main ()
13020 {
13021 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13022 test_array [0] = 0
13023
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030   (eval $ac_compile) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -s conftest.$ac_objext'
13035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036   (eval $ac_try) 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_hi=$ac_mid; break
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ac_lo=`expr $ac_mid + 1`
13046                     if test $ac_lo -le $ac_mid; then
13047                       ac_lo= ac_hi=
13048                       break
13049                     fi
13050                     ac_mid=`expr 2 '*' $ac_mid + 1`
13051 fi
13052 rm -f conftest.$ac_objext conftest.$ac_ext
13053   done
13054 else
13055   echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058 cat >conftest.$ac_ext <<_ACEOF
13059 #line $LINENO "configure"
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 $ac_includes_default
13066 int
13067 main ()
13068 {
13069 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13070 test_array [0] = 0
13071
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078   (eval $ac_compile) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } &&
13082          { ac_try='test -s conftest.$ac_objext'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   ac_hi=-1 ac_mid=-1
13089   while :; do
13090     cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097 $ac_includes_default
13098 int
13099 main ()
13100 {
13101 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13102 test_array [0] = 0
13103
13104   ;
13105   return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110   (eval $ac_compile) 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); } &&
13114          { ac_try='test -s conftest.$ac_objext'
13115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116   (eval $ac_try) 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }; }; then
13120   ac_lo=$ac_mid; break
13121 else
13122   echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13124
13125 ac_hi=`expr '(' $ac_mid ')' - 1`
13126                        if test $ac_mid -le $ac_hi; then
13127                          ac_lo= ac_hi=
13128                          break
13129                        fi
13130                        ac_mid=`expr 2 '*' $ac_mid`
13131 fi
13132 rm -f conftest.$ac_objext conftest.$ac_ext
13133   done
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_lo= ac_hi=
13139 fi
13140 rm -f conftest.$ac_objext conftest.$ac_ext
13141 fi
13142 rm -f conftest.$ac_objext conftest.$ac_ext
13143 # Binary search between lo and hi bounds.
13144 while test "x$ac_lo" != "x$ac_hi"; do
13145   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13146   cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 $ac_includes_default
13154 int
13155 main ()
13156 {
13157 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13158 test_array [0] = 0
13159
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166   (eval $ac_compile) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -s conftest.$ac_objext'
13171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172   (eval $ac_try) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; }; then
13176   ac_hi=$ac_mid
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_lo=`expr '(' $ac_mid ')' + 1`
13182 fi
13183 rm -f conftest.$ac_objext conftest.$ac_ext
13184 done
13185 case $ac_lo in
13186 ?*) ac_cv_sizeof_int=$ac_lo;;
13187 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13188 See \`config.log' for more details." >&5
13189 echo "$as_me: error: cannot compute sizeof (int), 77
13190 See \`config.log' for more details." >&2;}
13191    { (exit 1); exit 1; }; } ;;
13192 esac
13193 else
13194   if test "$cross_compiling" = yes; then
13195   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13196 See \`config.log' for more details." >&5
13197 echo "$as_me: error: cannot run test program while cross compiling
13198 See \`config.log' for more details." >&2;}
13199    { (exit 1); exit 1; }; }
13200 else
13201   cat >conftest.$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 $ac_includes_default
13209 long longval () { return (long) (sizeof (int)); }
13210 unsigned long ulongval () { return (long) (sizeof (int)); }
13211 #include <stdio.h>
13212 #include <stdlib.h>
13213 int
13214 main ()
13215 {
13216
13217   FILE *f = fopen ("conftest.val", "w");
13218   if (! f)
13219     exit (1);
13220   if (((long) (sizeof (int))) < 0)
13221     {
13222       long i = longval ();
13223       if (i != ((long) (sizeof (int))))
13224         exit (1);
13225       fprintf (f, "%ld\n", i);
13226     }
13227   else
13228     {
13229       unsigned long i = ulongval ();
13230       if (i != ((long) (sizeof (int))))
13231         exit (1);
13232       fprintf (f, "%lu\n", i);
13233     }
13234   exit (ferror (f) || fclose (f) != 0);
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242   (eval $ac_link) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_cv_sizeof_int=`cat conftest.val`
13252 else
13253   echo "$as_me: program exited with status $ac_status" >&5
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 ( exit $ac_status )
13258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13259 See \`config.log' for more details." >&5
13260 echo "$as_me: error: cannot compute sizeof (int), 77
13261 See \`config.log' for more details." >&2;}
13262    { (exit 1); exit 1; }; }
13263 fi
13264 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13265 fi
13266 fi
13267 rm -f conftest.val
13268 else
13269   ac_cv_sizeof_int=0
13270 fi
13271 fi
13272 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13273 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13274 cat >>confdefs.h <<_ACEOF
13275 #define SIZEOF_INT $ac_cv_sizeof_int
13276 _ACEOF
13277
13278
13279 echo "$as_me:$LINENO: checking for long int" >&5
13280 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13281 if test "${ac_cv_type_long_int+set}" = set; then
13282   echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284   cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 $ac_includes_default
13292 int
13293 main ()
13294 {
13295 if ((long int *) 0)
13296   return 0;
13297 if (sizeof (long int))
13298   return 0;
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13305   (eval $ac_compile) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } &&
13309          { ac_try='test -s conftest.$ac_objext'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; }; then
13315   ac_cv_type_long_int=yes
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ac_cv_type_long_int=no
13321 fi
13322 rm -f conftest.$ac_objext conftest.$ac_ext
13323 fi
13324 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13325 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13326
13327 echo "$as_me:$LINENO: checking size of long int" >&5
13328 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13329 if test "${ac_cv_sizeof_long_int+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   if test "$ac_cv_type_long_int" = yes; then
13333   # The cast to unsigned long works around a bug in the HP C Compiler
13334   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13335   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13336   # This bug is HP SR number 8606223364.
13337   if test "$cross_compiling" = yes; then
13338   # Depending upon the size, compute the lo and hi bounds.
13339 cat >conftest.$ac_ext <<_ACEOF
13340 #line $LINENO "configure"
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346 $ac_includes_default
13347 int
13348 main ()
13349 {
13350 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13351 test_array [0] = 0
13352
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359   (eval $ac_compile) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } &&
13363          { ac_try='test -s conftest.$ac_objext'
13364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365   (eval $ac_try) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   ac_lo=0 ac_mid=0
13370   while :; do
13371     cat >conftest.$ac_ext <<_ACEOF
13372 #line $LINENO "configure"
13373 /* confdefs.h.  */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h.  */
13378 $ac_includes_default
13379 int
13380 main ()
13381 {
13382 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13383 test_array [0] = 0
13384
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391   (eval $ac_compile) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } &&
13395          { ac_try='test -s conftest.$ac_objext'
13396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397   (eval $ac_try) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_hi=$ac_mid; break
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ac_lo=`expr $ac_mid + 1`
13407                     if test $ac_lo -le $ac_mid; then
13408                       ac_lo= ac_hi=
13409                       break
13410                     fi
13411                     ac_mid=`expr 2 '*' $ac_mid + 1`
13412 fi
13413 rm -f conftest.$ac_objext conftest.$ac_ext
13414   done
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 $ac_includes_default
13427 int
13428 main ()
13429 {
13430 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13431 test_array [0] = 0
13432
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439   (eval $ac_compile) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -s conftest.$ac_objext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449   ac_hi=-1 ac_mid=-1
13450   while :; do
13451     cat >conftest.$ac_ext <<_ACEOF
13452 #line $LINENO "configure"
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458 $ac_includes_default
13459 int
13460 main ()
13461 {
13462 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13463 test_array [0] = 0
13464
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 rm -f conftest.$ac_objext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13471   (eval $ac_compile) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); } &&
13475          { ac_try='test -s conftest.$ac_objext'
13476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477   (eval $ac_try) 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; }; then
13481   ac_lo=$ac_mid; break
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_hi=`expr '(' $ac_mid ')' - 1`
13487                        if test $ac_mid -le $ac_hi; then
13488                          ac_lo= ac_hi=
13489                          break
13490                        fi
13491                        ac_mid=`expr 2 '*' $ac_mid`
13492 fi
13493 rm -f conftest.$ac_objext conftest.$ac_ext
13494   done
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 ac_lo= ac_hi=
13500 fi
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13502 fi
13503 rm -f conftest.$ac_objext conftest.$ac_ext
13504 # Binary search between lo and hi bounds.
13505 while test "x$ac_lo" != "x$ac_hi"; do
13506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13507   cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 $ac_includes_default
13515 int
13516 main ()
13517 {
13518 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13519 test_array [0] = 0
13520
13521   ;
13522   return 0;
13523 }
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527   (eval $ac_compile) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -s conftest.$ac_objext'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_hi=$ac_mid
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_lo=`expr '(' $ac_mid ')' + 1`
13543 fi
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13545 done
13546 case $ac_lo in
13547 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13549 See \`config.log' for more details." >&5
13550 echo "$as_me: error: cannot compute sizeof (long int), 77
13551 See \`config.log' for more details." >&2;}
13552    { (exit 1); exit 1; }; } ;;
13553 esac
13554 else
13555   if test "$cross_compiling" = yes; then
13556   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13557 See \`config.log' for more details." >&5
13558 echo "$as_me: error: cannot run test program while cross compiling
13559 See \`config.log' for more details." >&2;}
13560    { (exit 1); exit 1; }; }
13561 else
13562   cat >conftest.$ac_ext <<_ACEOF
13563 #line $LINENO "configure"
13564 /* confdefs.h.  */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h.  */
13569 $ac_includes_default
13570 long longval () { return (long) (sizeof (long int)); }
13571 unsigned long ulongval () { return (long) (sizeof (long int)); }
13572 #include <stdio.h>
13573 #include <stdlib.h>
13574 int
13575 main ()
13576 {
13577
13578   FILE *f = fopen ("conftest.val", "w");
13579   if (! f)
13580     exit (1);
13581   if (((long) (sizeof (long int))) < 0)
13582     {
13583       long i = longval ();
13584       if (i != ((long) (sizeof (long int))))
13585         exit (1);
13586       fprintf (f, "%ld\n", i);
13587     }
13588   else
13589     {
13590       unsigned long i = ulongval ();
13591       if (i != ((long) (sizeof (long int))))
13592         exit (1);
13593       fprintf (f, "%lu\n", i);
13594     }
13595   exit (ferror (f) || fclose (f) != 0);
13596
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603   (eval $ac_link) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; }; then
13612   ac_cv_sizeof_long_int=`cat conftest.val`
13613 else
13614   echo "$as_me: program exited with status $ac_status" >&5
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ( exit $ac_status )
13619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13620 See \`config.log' for more details." >&5
13621 echo "$as_me: error: cannot compute sizeof (long int), 77
13622 See \`config.log' for more details." >&2;}
13623    { (exit 1); exit 1; }; }
13624 fi
13625 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 fi
13628 rm -f conftest.val
13629 else
13630   ac_cv_sizeof_long_int=0
13631 fi
13632 fi
13633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13634 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13635 cat >>confdefs.h <<_ACEOF
13636 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13637 _ACEOF
13638
13639
13640 echo "$as_me:$LINENO: checking for long long int" >&5
13641 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13642 if test "${ac_cv_type_long_long_int+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 $ac_includes_default
13653 int
13654 main ()
13655 {
13656 if ((long long int *) 0)
13657   return 0;
13658 if (sizeof (long long int))
13659   return 0;
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ac_cv_type_long_long_int=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_cv_type_long_long_int=no
13682 fi
13683 rm -f conftest.$ac_objext conftest.$ac_ext
13684 fi
13685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13686 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13687
13688 echo "$as_me:$LINENO: checking size of long long int" >&5
13689 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13690 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   if test "$ac_cv_type_long_long_int" = yes; then
13694   # The cast to unsigned long works around a bug in the HP C Compiler
13695   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13696   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13697   # This bug is HP SR number 8606223364.
13698   if test "$cross_compiling" = yes; then
13699   # Depending upon the size, compute the lo and hi bounds.
13700 cat >conftest.$ac_ext <<_ACEOF
13701 #line $LINENO "configure"
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707 $ac_includes_default
13708 int
13709 main ()
13710 {
13711 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13712 test_array [0] = 0
13713
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720   (eval $ac_compile) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_lo=0 ac_mid=0
13731   while :; do
13732     cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13734 /* confdefs.h.  */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h.  */
13739 $ac_includes_default
13740 int
13741 main ()
13742 {
13743 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13744 test_array [0] = 0
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest.$ac_objext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13752   (eval $ac_compile) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -s conftest.$ac_objext'
13757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758   (eval $ac_try) 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762   ac_hi=$ac_mid; break
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 ac_lo=`expr $ac_mid + 1`
13768                     if test $ac_lo -le $ac_mid; then
13769                       ac_lo= ac_hi=
13770                       break
13771                     fi
13772                     ac_mid=`expr 2 '*' $ac_mid + 1`
13773 fi
13774 rm -f conftest.$ac_objext conftest.$ac_ext
13775   done
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 int
13789 main ()
13790 {
13791 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13792 test_array [0] = 0
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800   (eval $ac_compile) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_hi=-1 ac_mid=-1
13811   while :; do
13812     cat >conftest.$ac_ext <<_ACEOF
13813 #line $LINENO "configure"
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_includes_default
13820 int
13821 main ()
13822 {
13823 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13824 test_array [0] = 0
13825
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832   (eval $ac_compile) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } &&
13836          { ac_try='test -s conftest.$ac_objext'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_lo=$ac_mid; break
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_hi=`expr '(' $ac_mid ')' - 1`
13848                        if test $ac_mid -le $ac_hi; then
13849                          ac_lo= ac_hi=
13850                          break
13851                        fi
13852                        ac_mid=`expr 2 '*' $ac_mid`
13853 fi
13854 rm -f conftest.$ac_objext conftest.$ac_ext
13855   done
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860 ac_lo= ac_hi=
13861 fi
13862 rm -f conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 rm -f conftest.$ac_objext conftest.$ac_ext
13865 # Binary search between lo and hi bounds.
13866 while test "x$ac_lo" != "x$ac_hi"; do
13867   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13868   cat >conftest.$ac_ext <<_ACEOF
13869 #line $LINENO "configure"
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875 $ac_includes_default
13876 int
13877 main ()
13878 {
13879 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13880 test_array [0] = 0
13881
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888   (eval $ac_compile) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -s conftest.$ac_objext'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   ac_hi=$ac_mid
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 ac_lo=`expr '(' $ac_mid ')' + 1`
13904 fi
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13906 done
13907 case $ac_lo in
13908 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13909 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13910 See \`config.log' for more details." >&5
13911 echo "$as_me: error: cannot compute sizeof (long long int), 77
13912 See \`config.log' for more details." >&2;}
13913    { (exit 1); exit 1; }; } ;;
13914 esac
13915 else
13916   if test "$cross_compiling" = yes; then
13917   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13918 See \`config.log' for more details." >&5
13919 echo "$as_me: error: cannot run test program while cross compiling
13920 See \`config.log' for more details." >&2;}
13921    { (exit 1); exit 1; }; }
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930 $ac_includes_default
13931 long longval () { return (long) (sizeof (long long int)); }
13932 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13933 #include <stdio.h>
13934 #include <stdlib.h>
13935 int
13936 main ()
13937 {
13938
13939   FILE *f = fopen ("conftest.val", "w");
13940   if (! f)
13941     exit (1);
13942   if (((long) (sizeof (long long int))) < 0)
13943     {
13944       long i = longval ();
13945       if (i != ((long) (sizeof (long long int))))
13946         exit (1);
13947       fprintf (f, "%ld\n", i);
13948     }
13949   else
13950     {
13951       unsigned long i = ulongval ();
13952       if (i != ((long) (sizeof (long long int))))
13953         exit (1);
13954       fprintf (f, "%lu\n", i);
13955     }
13956   exit (ferror (f) || fclose (f) != 0);
13957
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest$ac_exeext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13964   (eval $ac_link) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969   (eval $ac_try) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; }; then
13973   ac_cv_sizeof_long_long_int=`cat conftest.val`
13974 else
13975   echo "$as_me: program exited with status $ac_status" >&5
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ( exit $ac_status )
13980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13981 See \`config.log' for more details." >&5
13982 echo "$as_me: error: cannot compute sizeof (long long int), 77
13983 See \`config.log' for more details." >&2;}
13984    { (exit 1); exit 1; }; }
13985 fi
13986 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 fi
13989 rm -f conftest.val
13990 else
13991   ac_cv_sizeof_long_long_int=0
13992 fi
13993 fi
13994 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13995 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13996 cat >>confdefs.h <<_ACEOF
13997 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13998 _ACEOF
13999
14000
14001 echo "$as_me:$LINENO: checking for int *" >&5
14002 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14003 if test "${ac_cv_type_int_p+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013 $ac_includes_default
14014 int
14015 main ()
14016 {
14017 if ((int * *) 0)
14018   return 0;
14019 if (sizeof (int *))
14020   return 0;
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027   (eval $ac_compile) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -s conftest.$ac_objext'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }; then
14037   ac_cv_type_int_p=yes
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_cv_type_int_p=no
14043 fi
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14047 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14048
14049 echo "$as_me:$LINENO: checking size of int *" >&5
14050 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14051 if test "${ac_cv_sizeof_int_p+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   if test "$ac_cv_type_int_p" = yes; then
14055   # The cast to unsigned long works around a bug in the HP C Compiler
14056   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14057   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14058   # This bug is HP SR number 8606223364.
14059   if test "$cross_compiling" = yes; then
14060   # Depending upon the size, compute the lo and hi bounds.
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 $ac_includes_default
14069 int
14070 main ()
14071 {
14072 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14073 test_array [0] = 0
14074
14075   ;
14076   return 0;
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081   (eval $ac_compile) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -s conftest.$ac_objext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   ac_lo=0 ac_mid=0
14092   while :; do
14093     cat >conftest.$ac_ext <<_ACEOF
14094 #line $LINENO "configure"
14095 /* confdefs.h.  */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h.  */
14100 $ac_includes_default
14101 int
14102 main ()
14103 {
14104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14105 test_array [0] = 0
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113   (eval $ac_compile) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } &&
14117          { ac_try='test -s conftest.$ac_objext'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; }; then
14123   ac_hi=$ac_mid; break
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_lo=`expr $ac_mid + 1`
14129                     if test $ac_lo -le $ac_mid; then
14130                       ac_lo= ac_hi=
14131                       break
14132                     fi
14133                     ac_mid=`expr 2 '*' $ac_mid + 1`
14134 fi
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14136   done
14137 else
14138   echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 $ac_includes_default
14149 int
14150 main ()
14151 {
14152 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14153 test_array [0] = 0
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -s conftest.$ac_objext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_hi=-1 ac_mid=-1
14172   while :; do
14173     cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 $ac_includes_default
14181 int
14182 main ()
14183 {
14184 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14185 test_array [0] = 0
14186
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193   (eval $ac_compile) 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_lo=$ac_mid; break
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_hi=`expr '(' $ac_mid ')' - 1`
14209                        if test $ac_mid -le $ac_hi; then
14210                          ac_lo= ac_hi=
14211                          break
14212                        fi
14213                        ac_mid=`expr 2 '*' $ac_mid`
14214 fi
14215 rm -f conftest.$ac_objext conftest.$ac_ext
14216   done
14217 else
14218   echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221 ac_lo= ac_hi=
14222 fi
14223 rm -f conftest.$ac_objext conftest.$ac_ext
14224 fi
14225 rm -f conftest.$ac_objext conftest.$ac_ext
14226 # Binary search between lo and hi bounds.
14227 while test "x$ac_lo" != "x$ac_hi"; do
14228   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14229   cat >conftest.$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 int
14238 main ()
14239 {
14240 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14241 test_array [0] = 0
14242
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249   (eval $ac_compile) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -s conftest.$ac_objext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_hi=$ac_mid
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ac_lo=`expr '(' $ac_mid ')' + 1`
14265 fi
14266 rm -f conftest.$ac_objext conftest.$ac_ext
14267 done
14268 case $ac_lo in
14269 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14271 See \`config.log' for more details." >&5
14272 echo "$as_me: error: cannot compute sizeof (int *), 77
14273 See \`config.log' for more details." >&2;}
14274    { (exit 1); exit 1; }; } ;;
14275 esac
14276 else
14277   if test "$cross_compiling" = yes; then
14278   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14279 See \`config.log' for more details." >&5
14280 echo "$as_me: error: cannot run test program while cross compiling
14281 See \`config.log' for more details." >&2;}
14282    { (exit 1); exit 1; }; }
14283 else
14284   cat >conftest.$ac_ext <<_ACEOF
14285 #line $LINENO "configure"
14286 /* confdefs.h.  */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h.  */
14291 $ac_includes_default
14292 long longval () { return (long) (sizeof (int *)); }
14293 unsigned long ulongval () { return (long) (sizeof (int *)); }
14294 #include <stdio.h>
14295 #include <stdlib.h>
14296 int
14297 main ()
14298 {
14299
14300   FILE *f = fopen ("conftest.val", "w");
14301   if (! f)
14302     exit (1);
14303   if (((long) (sizeof (int *))) < 0)
14304     {
14305       long i = longval ();
14306       if (i != ((long) (sizeof (int *))))
14307         exit (1);
14308       fprintf (f, "%ld\n", i);
14309     }
14310   else
14311     {
14312       unsigned long i = ulongval ();
14313       if (i != ((long) (sizeof (int *))))
14314         exit (1);
14315       fprintf (f, "%lu\n", i);
14316     }
14317   exit (ferror (f) || fclose (f) != 0);
14318
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325   (eval $ac_link) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   ac_cv_sizeof_int_p=`cat conftest.val`
14335 else
14336   echo "$as_me: program exited with status $ac_status" >&5
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ( exit $ac_status )
14341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14342 See \`config.log' for more details." >&5
14343 echo "$as_me: error: cannot compute sizeof (int *), 77
14344 See \`config.log' for more details." >&2;}
14345    { (exit 1); exit 1; }; }
14346 fi
14347 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 fi
14350 rm -f conftest.val
14351 else
14352   ac_cv_sizeof_int_p=0
14353 fi
14354 fi
14355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14356 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14357 cat >>confdefs.h <<_ACEOF
14358 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14359 _ACEOF
14360
14361
14362
14363 # Check for sys/types.h types
14364 echo "$as_me:$LINENO: checking for u_int type" >&5
14365 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14366 if test "${ac_cv_have_u_int+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369
14370     cat >conftest.$ac_ext <<_ACEOF
14371 #line $LINENO "configure"
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377  #include <sys/types.h>
14378 int
14379 main ()
14380 {
14381  u_int a; a = 1;
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398    ac_cv_have_u_int="yes"
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403  ac_cv_have_u_int="no"
14404
14405 fi
14406 rm -f conftest.$ac_objext conftest.$ac_ext
14407
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14410 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14411 if test "x$ac_cv_have_u_int" = "xyes" ; then
14412    cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_U_INT 1
14414 _ACEOF
14415
14416    have_u_int=1
14417 fi
14418
14419 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14420 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14421 if test "${ac_cv_have_intmax_t+set}" = set; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424
14425    cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14427 /* confdefs.h.  */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h.  */
14432  #include <sys/types.h>
14433 int
14434 main ()
14435 {
14436  intmax_t a; a = 1;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453    ac_cv_have_intmax_t="yes"
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458
14459          cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466  #include <stdint.h>
14467 int
14468 main ()
14469 {
14470  intmax_t a; a = 1;
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -s conftest.$ac_objext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487    ac_cv_have_intmax_t="yes"
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492  ac_cv_have_intmax_t="no"
14493
14494 fi
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14496
14497
14498 fi
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14500
14501
14502 fi
14503 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14504 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14505 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14506    cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_INTMAX_T 1
14508 _ACEOF
14509
14510    have_intmax_t=1
14511 fi
14512
14513
14514 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14515 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14516 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519
14520    cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527  #include <sys/types.h>
14528 int
14529 main ()
14530 {
14531  u_intmax_t a; a = 1;
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538   (eval $ac_compile) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -s conftest.$ac_objext'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; }; then
14548    ac_cv_have_u_intmax_t="yes"
14549 else
14550   echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553
14554          cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 /* confdefs.h.  */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h.  */
14561  #include <stdint.h>
14562 int
14563 main ()
14564 {
14565  u_intmax_t a; a = 1;
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572   (eval $ac_compile) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } &&
14576          { ac_try='test -s conftest.$ac_objext'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582    ac_cv_have_u_intmax_t="yes"
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587  ac_cv_have_u_intmax_t="no"
14588
14589 fi
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14591
14592
14593 fi
14594 rm -f conftest.$ac_objext conftest.$ac_ext
14595
14596 fi
14597 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14598 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14599 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14600    cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_U_INTMAX_T 1
14602 _ACEOF
14603
14604    have_u_intmax_t=1
14605 fi
14606
14607
14608 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14609 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14610 if test "${ac_cv_have_intxx_t+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613
14614    cat >conftest.$ac_ext <<_ACEOF
14615 #line $LINENO "configure"
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621  #include <sys/types.h>
14622 int
14623 main ()
14624 {
14625  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632   (eval $ac_compile) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -s conftest.$ac_objext'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642    ac_cv_have_intxx_t="yes"
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647  ac_cv_have_intxx_t="no"
14648
14649 fi
14650 rm -f conftest.$ac_objext conftest.$ac_ext
14651
14652 fi
14653 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14654 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14655 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14656    cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_INTXX_T 1
14658 _ACEOF
14659
14660    have_intxx_t=1
14661 fi
14662
14663 echo "$as_me:$LINENO: checking for int64_t type" >&5
14664 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_int64_t+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668
14669    cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676  #include <sys/types.h>
14677 int
14678 main ()
14679 {
14680  int64_t a; a = 1;
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687   (eval $ac_compile) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -s conftest.$ac_objext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697    ac_cv_have_int64_t="yes"
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702  ac_cv_have_int64_t="no"
14703
14704 fi
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14706
14707 fi
14708 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14709 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14710 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14711    cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_INT64_T 1
14713 _ACEOF
14714
14715    have_int64_t=1
14716 fi
14717
14718 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14719 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14720 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723
14724    cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 /* confdefs.h.  */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h.  */
14731  #include <sys/types.h>
14732 int
14733 main ()
14734 {
14735  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742   (eval $ac_compile) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -s conftest.$ac_objext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752    ac_cv_have_u_intxx_t="yes"
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757  ac_cv_have_u_intxx_t="no"
14758
14759 fi
14760 rm -f conftest.$ac_objext conftest.$ac_ext
14761
14762 fi
14763 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14764 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14765 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14766    cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_U_INTXX_T 1
14768 _ACEOF
14769
14770    have_u_intxx_t=1
14771 fi
14772
14773 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14774 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14775 if test "${ac_cv_have_u_int64_t+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778
14779    cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786  #include <sys/types.h>
14787 int
14788 main ()
14789 {
14790  u_int64_t a; a = 1;
14791   ;
14792   return 0;
14793 }
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797   (eval $ac_compile) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -s conftest.$ac_objext'
14802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803   (eval $ac_try) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807    ac_cv_have_u_int64_t="yes"
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812  ac_cv_have_u_int64_t="no"
14813
14814 fi
14815 rm -f conftest.$ac_objext conftest.$ac_ext
14816
14817 fi
14818 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14819 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14820 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14821    cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_U_INT64_T 1
14823 _ACEOF
14824
14825    have_u_int64_t=1
14826 fi
14827
14828 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14829            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14830 then
14831    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14832 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14833    cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840  #include <sys/bitypes.h>
14841 int
14842 main ()
14843 {
14844  int8_t a; int16_t b; int32_t c;
14845         u_int8_t e; u_int16_t f; u_int32_t g;
14846         a = b = c = e = f = g = 1;
14847   ;
14848   return 0;
14849 }
14850 _ACEOF
14851 rm -f conftest.$ac_objext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853   (eval $ac_compile) 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } &&
14857          { ac_try='test -s conftest.$ac_objext'
14858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859   (eval $ac_try) 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); }; }; then
14863    cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_U_INTXX_T 1
14865 _ACEOF
14866
14867         cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_INTXX_T 1
14869 _ACEOF
14870
14871         cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_SYS_BITYPES_H 1
14873 _ACEOF
14874
14875         echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881  echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6
14883
14884 fi
14885 rm -f conftest.$ac_objext conftest.$ac_ext
14886 fi
14887
14888 if test -z "$have_u_intxx_t" ; then
14889    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14890 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14891 if test "${ac_cv_have_uintxx_t+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894
14895       cat >conftest.$ac_ext <<_ACEOF
14896 #line $LINENO "configure"
14897 /* confdefs.h.  */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h.  */
14902  #include <sys/types.h>
14903 int
14904 main ()
14905 {
14906  uint8_t a; uint16_t b;
14907            uint32_t c; a = b = c = 1;
14908   ;
14909   return 0;
14910 }
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914   (eval $ac_compile) 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_cv_have_uintxx_t="yes"
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929  ac_cv_have_uintxx_t="no"
14930
14931 fi
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14933
14934 fi
14935 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14936 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14937    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14938       cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_UINTXX_T 1
14940 _ACEOF
14941
14942    fi
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959 for ac_func in \
14960         fork \
14961         getcwd \
14962         gethostname \
14963         getpid \
14964         gettimeofday \
14965         setpgid \
14966         setpgrp \
14967         setsid \
14968         signal \
14969         strerror \
14970         strncmp \
14971         strncpy \
14972         vfprintf \
14973
14974 do
14975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14976 echo "$as_me:$LINENO: checking for $ac_func" >&5
14977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14978 if eval "test \"\${$as_ac_var+set}\" = set"; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   cat >conftest.$ac_ext <<_ACEOF
14982 #line $LINENO "configure"
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 /* System header to define __stub macros and hopefully few prototypes,
14989     which can conflict with char $ac_func (); below.
14990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14991     <limits.h> exists even on freestanding compilers.  */
14992 #ifdef __STDC__
14993 # include <limits.h>
14994 #else
14995 # include <assert.h>
14996 #endif
14997 /* Override any gcc2 internal prototype to avoid an error.  */
14998 #ifdef __cplusplus
14999 extern "C"
15000 {
15001 #endif
15002 /* We use char because int might match the return type of a gcc2
15003    builtin and then its argument prototype would still apply.  */
15004 char $ac_func ();
15005 /* The GNU C library defines this for functions which it implements
15006     to always fail with ENOSYS.  Some functions are actually named
15007     something starting with __ and the normal name is an alias.  */
15008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15009 choke me
15010 #else
15011 char (*f) () = $ac_func;
15012 #endif
15013 #ifdef __cplusplus
15014 }
15015 #endif
15016
15017 int
15018 main ()
15019 {
15020 return f != $ac_func;
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15027   (eval $ac_link) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } &&
15031          { ac_try='test -s conftest$ac_exeext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   eval "$as_ac_var=yes"
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 eval "$as_ac_var=no"
15043 fi
15044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15045 fi
15046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15048 if test `eval echo '${'$as_ac_var'}'` = yes; then
15049   cat >>confdefs.h <<_ACEOF
15050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 _ACEOF
15052
15053 else
15054   echo 'configure: cannot find needed function.'; exit 1
15055
15056 fi
15057 done
15058
15059
15060
15061 for ac_func in fchdir
15062 do
15063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064 echo "$as_me:$LINENO: checking for $ac_func" >&5
15065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066 if eval "test \"\${$as_ac_var+set}\" = set"; then
15067   echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069   cat >conftest.$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 /* System header to define __stub macros and hopefully few prototypes,
15077     which can conflict with char $ac_func (); below.
15078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079     <limits.h> exists even on freestanding compilers.  */
15080 #ifdef __STDC__
15081 # include <limits.h>
15082 #else
15083 # include <assert.h>
15084 #endif
15085 /* Override any gcc2 internal prototype to avoid an error.  */
15086 #ifdef __cplusplus
15087 extern "C"
15088 {
15089 #endif
15090 /* We use char because int might match the return type of a gcc2
15091    builtin and then its argument prototype would still apply.  */
15092 char $ac_func ();
15093 /* The GNU C library defines this for functions which it implements
15094     to always fail with ENOSYS.  Some functions are actually named
15095     something starting with __ and the normal name is an alias.  */
15096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15097 choke me
15098 #else
15099 char (*f) () = $ac_func;
15100 #endif
15101 #ifdef __cplusplus
15102 }
15103 #endif
15104
15105 int
15106 main ()
15107 {
15108 return f != $ac_func;
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115   (eval $ac_link) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest$ac_exeext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   eval "$as_ac_var=yes"
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 eval "$as_ac_var=no"
15131 fi
15132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15133 fi
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137   cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139 _ACEOF
15140  cat >>confdefs.h <<\_ACEOF
15141 #define HAVE_FCHDIR 1
15142 _ACEOF
15143
15144 fi
15145 done
15146
15147
15148 for ac_func in strtoll
15149 do
15150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15151 echo "$as_me:$LINENO: checking for $ac_func" >&5
15152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15153 if eval "test \"\${$as_ac_var+set}\" = set"; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 /* System header to define __stub macros and hopefully few prototypes,
15164     which can conflict with char $ac_func (); below.
15165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15166     <limits.h> exists even on freestanding compilers.  */
15167 #ifdef __STDC__
15168 # include <limits.h>
15169 #else
15170 # include <assert.h>
15171 #endif
15172 /* Override any gcc2 internal prototype to avoid an error.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 {
15176 #endif
15177 /* We use char because int might match the return type of a gcc2
15178    builtin and then its argument prototype would still apply.  */
15179 char $ac_func ();
15180 /* The GNU C library defines this for functions which it implements
15181     to always fail with ENOSYS.  Some functions are actually named
15182     something starting with __ and the normal name is an alias.  */
15183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15184 choke me
15185 #else
15186 char (*f) () = $ac_func;
15187 #endif
15188 #ifdef __cplusplus
15189 }
15190 #endif
15191
15192 int
15193 main ()
15194 {
15195 return f != $ac_func;
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15202   (eval $ac_link) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } &&
15206          { ac_try='test -s conftest$ac_exeext'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }; then
15212   eval "$as_ac_var=yes"
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 eval "$as_ac_var=no"
15218 fi
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 fi
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15223 if test `eval echo '${'$as_ac_var'}'` = yes; then
15224   cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15226 _ACEOF
15227  cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_STRTOLL 1
15229 _ACEOF
15230
15231 fi
15232 done
15233
15234
15235
15236 for ac_func in chflags
15237 do
15238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15239 echo "$as_me:$LINENO: checking for $ac_func" >&5
15240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_var+set}\" = set"; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   cat >conftest.$ac_ext <<_ACEOF
15245 #line $LINENO "configure"
15246 /* confdefs.h.  */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h.  */
15251 /* System header to define __stub macros and hopefully few prototypes,
15252     which can conflict with char $ac_func (); below.
15253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15254     <limits.h> exists even on freestanding compilers.  */
15255 #ifdef __STDC__
15256 # include <limits.h>
15257 #else
15258 # include <assert.h>
15259 #endif
15260 /* Override any gcc2 internal prototype to avoid an error.  */
15261 #ifdef __cplusplus
15262 extern "C"
15263 {
15264 #endif
15265 /* We use char because int might match the return type of a gcc2
15266    builtin and then its argument prototype would still apply.  */
15267 char $ac_func ();
15268 /* The GNU C library defines this for functions which it implements
15269     to always fail with ENOSYS.  Some functions are actually named
15270     something starting with __ and the normal name is an alias.  */
15271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15272 choke me
15273 #else
15274 char (*f) () = $ac_func;
15275 #endif
15276 #ifdef __cplusplus
15277 }
15278 #endif
15279
15280 int
15281 main ()
15282 {
15283 return f != $ac_func;
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15290   (eval $ac_link) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } &&
15294          { ac_try='test -s conftest$ac_exeext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   eval "$as_ac_var=yes"
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 eval "$as_ac_var=no"
15306 fi
15307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15308 fi
15309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15311 if test `eval echo '${'$as_ac_var'}'` = yes; then
15312   cat >>confdefs.h <<_ACEOF
15313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15314 _ACEOF
15315
15316 fi
15317 done
15318
15319
15320
15321
15322
15323
15324 for ac_func in snprintf vsnprintf gethostid getdomainname
15325 do
15326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 echo "$as_me:$LINENO: checking for $ac_func" >&5
15328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_var+set}\" = set"; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332   cat >conftest.$ac_ext <<_ACEOF
15333 #line $LINENO "configure"
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 /* System header to define __stub macros and hopefully few prototypes,
15340     which can conflict with char $ac_func (); below.
15341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15342     <limits.h> exists even on freestanding compilers.  */
15343 #ifdef __STDC__
15344 # include <limits.h>
15345 #else
15346 # include <assert.h>
15347 #endif
15348 /* Override any gcc2 internal prototype to avoid an error.  */
15349 #ifdef __cplusplus
15350 extern "C"
15351 {
15352 #endif
15353 /* We use char because int might match the return type of a gcc2
15354    builtin and then its argument prototype would still apply.  */
15355 char $ac_func ();
15356 /* The GNU C library defines this for functions which it implements
15357     to always fail with ENOSYS.  Some functions are actually named
15358     something starting with __ and the normal name is an alias.  */
15359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 choke me
15361 #else
15362 char (*f) () = $ac_func;
15363 #endif
15364 #ifdef __cplusplus
15365 }
15366 #endif
15367
15368 int
15369 main ()
15370 {
15371 return f != $ac_func;
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378   (eval $ac_link) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -s conftest$ac_exeext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   eval "$as_ac_var=yes"
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 eval "$as_ac_var=no"
15394 fi
15395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396 fi
15397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15399 if test `eval echo '${'$as_ac_var'}'` = yes; then
15400   cat >>confdefs.h <<_ACEOF
15401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15402 _ACEOF
15403
15404 fi
15405 done
15406
15407
15408
15409
15410
15411
15412 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15413 do
15414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 echo "$as_me:$LINENO: checking for $ac_func" >&5
15416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15417 if eval "test \"\${$as_ac_var+set}\" = set"; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   cat >conftest.$ac_ext <<_ACEOF
15421 #line $LINENO "configure"
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 /* System header to define __stub macros and hopefully few prototypes,
15428     which can conflict with char $ac_func (); below.
15429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15430     <limits.h> exists even on freestanding compilers.  */
15431 #ifdef __STDC__
15432 # include <limits.h>
15433 #else
15434 # include <assert.h>
15435 #endif
15436 /* Override any gcc2 internal prototype to avoid an error.  */
15437 #ifdef __cplusplus
15438 extern "C"
15439 {
15440 #endif
15441 /* We use char because int might match the return type of a gcc2
15442    builtin and then its argument prototype would still apply.  */
15443 char $ac_func ();
15444 /* The GNU C library defines this for functions which it implements
15445     to always fail with ENOSYS.  Some functions are actually named
15446     something starting with __ and the normal name is an alias.  */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448 choke me
15449 #else
15450 char (*f) () = $ac_func;
15451 #endif
15452 #ifdef __cplusplus
15453 }
15454 #endif
15455
15456 int
15457 main ()
15458 {
15459 return f != $ac_func;
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466   (eval $ac_link) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } &&
15470          { ac_try='test -s conftest$ac_exeext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476   eval "$as_ac_var=yes"
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 eval "$as_ac_var=no"
15482 fi
15483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15484 fi
15485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15487 if test `eval echo '${'$as_ac_var'}'` = yes; then
15488   cat >>confdefs.h <<_ACEOF
15489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15490 _ACEOF
15491
15492 fi
15493 done
15494
15495
15496 # If resolver functions are not in libc check for -lnsl or -lresolv.
15497 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15498 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15499 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 /* System header to define __stub macros and hopefully few prototypes,
15510     which can conflict with char gethostbyname_r (); below.
15511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15512     <limits.h> exists even on freestanding compilers.  */
15513 #ifdef __STDC__
15514 # include <limits.h>
15515 #else
15516 # include <assert.h>
15517 #endif
15518 /* Override any gcc2 internal prototype to avoid an error.  */
15519 #ifdef __cplusplus
15520 extern "C"
15521 {
15522 #endif
15523 /* We use char because int might match the return type of a gcc2
15524    builtin and then its argument prototype would still apply.  */
15525 char gethostbyname_r ();
15526 /* The GNU C library defines this for functions which it implements
15527     to always fail with ENOSYS.  Some functions are actually named
15528     something starting with __ and the normal name is an alias.  */
15529 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15530 choke me
15531 #else
15532 char (*f) () = gethostbyname_r;
15533 #endif
15534 #ifdef __cplusplus
15535 }
15536 #endif
15537
15538 int
15539 main ()
15540 {
15541 return f != gethostbyname_r;
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15548   (eval $ac_link) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } &&
15552          { ac_try='test -s conftest$ac_exeext'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; }; then
15558   ac_cv_func_gethostbyname_r=yes
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 ac_cv_func_gethostbyname_r=no
15564 fi
15565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15566 fi
15567 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15568 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15569 if test $ac_cv_func_gethostbyname_r = yes; then
15570   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15571 echo "${ECHO_T}using libc's resolver" >&6
15572 else
15573
15574 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15575 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15576 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15577   echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579   ac_check_lib_save_LIBS=$LIBS
15580 LIBS="-lnsl  $LIBS"
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588
15589 /* Override any gcc2 internal prototype to avoid an error.  */
15590 #ifdef __cplusplus
15591 extern "C"
15592 #endif
15593 /* We use char because int might match the return type of a gcc2
15594    builtin and then its argument prototype would still apply.  */
15595 char gethostbyname_r ();
15596 int
15597 main ()
15598 {
15599 gethostbyname_r ();
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606   (eval $ac_link) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } &&
15610          { ac_try='test -s 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_lib_nsl_gethostbyname_r=yes
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 ac_cv_lib_nsl_gethostbyname_r=no
15622 fi
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_check_lib_save_LIBS
15625 fi
15626 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15627 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15628 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15629   cat >>confdefs.h <<_ACEOF
15630 #define HAVE_LIBNSL 1
15631 _ACEOF
15632
15633   LIBS="-lnsl $LIBS"
15634
15635 fi
15636
15637
15638 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15639 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15640 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15641   echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643   ac_check_lib_save_LIBS=$LIBS
15644 LIBS="-lresolv  $LIBS"
15645 cat >conftest.$ac_ext <<_ACEOF
15646 #line $LINENO "configure"
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652
15653 /* Override any gcc2 internal prototype to avoid an error.  */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 /* We use char because int might match the return type of a gcc2
15658    builtin and then its argument prototype would still apply.  */
15659 char gethostbyname_r ();
15660 int
15661 main ()
15662 {
15663 gethostbyname_r ();
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670   (eval $ac_link) 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -s conftest$ac_exeext'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; }; then
15680   ac_cv_lib_resolv_gethostbyname_r=yes
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 ac_cv_lib_resolv_gethostbyname_r=no
15686 fi
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15689 fi
15690 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15691 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15692 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15693   cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LIBRESOLV 1
15695 _ACEOF
15696
15697   LIBS="-lresolv $LIBS"
15698
15699 fi
15700
15701 fi
15702
15703
15704
15705 # Find where sockets are (especially for Solaris)
15706 echo "$as_me:$LINENO: checking for socket" >&5
15707 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15708 if test "${ac_cv_func_socket+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 /* System header to define __stub macros and hopefully few prototypes,
15719     which can conflict with char socket (); below.
15720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15721     <limits.h> exists even on freestanding compilers.  */
15722 #ifdef __STDC__
15723 # include <limits.h>
15724 #else
15725 # include <assert.h>
15726 #endif
15727 /* Override any gcc2 internal prototype to avoid an error.  */
15728 #ifdef __cplusplus
15729 extern "C"
15730 {
15731 #endif
15732 /* We use char because int might match the return type of a gcc2
15733    builtin and then its argument prototype would still apply.  */
15734 char socket ();
15735 /* The GNU C library defines this for functions which it implements
15736     to always fail with ENOSYS.  Some functions are actually named
15737     something starting with __ and the normal name is an alias.  */
15738 #if defined (__stub_socket) || defined (__stub___socket)
15739 choke me
15740 #else
15741 char (*f) () = socket;
15742 #endif
15743 #ifdef __cplusplus
15744 }
15745 #endif
15746
15747 int
15748 main ()
15749 {
15750 return f != socket;
15751   ;
15752   return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757   (eval $ac_link) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } &&
15761          { ac_try='test -s conftest$ac_exeext'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767   ac_cv_func_socket=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 ac_cv_func_socket=no
15773 fi
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775 fi
15776 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15777 echo "${ECHO_T}$ac_cv_func_socket" >&6
15778 if test $ac_cv_func_socket = yes; then
15779   echo "$as_me:$LINENO: result: using libc's socket" >&5
15780 echo "${ECHO_T}using libc's socket" >&6
15781 else
15782
15783 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15784 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15785 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-lxnet  $LIBS"
15790 cat >conftest.$ac_ext <<_ACEOF
15791 #line $LINENO "configure"
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797
15798 /* Override any gcc2 internal prototype to avoid an error.  */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 /* We use char because int might match the return type of a gcc2
15803    builtin and then its argument prototype would still apply.  */
15804 char socket ();
15805 int
15806 main ()
15807 {
15808 socket ();
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815   (eval $ac_link) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -s conftest$ac_exeext'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825   ac_cv_lib_xnet_socket=yes
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 ac_cv_lib_xnet_socket=no
15831 fi
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15833 LIBS=$ac_check_lib_save_LIBS
15834 fi
15835 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15836 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15837 if test $ac_cv_lib_xnet_socket = yes; then
15838   cat >>confdefs.h <<_ACEOF
15839 #define HAVE_LIBXNET 1
15840 _ACEOF
15841
15842   LIBS="-lxnet $LIBS"
15843
15844 fi
15845
15846
15847 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15848 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15849 if test "${ac_cv_lib_socket_socket+set}" = set; then
15850   echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852   ac_check_lib_save_LIBS=$LIBS
15853 LIBS="-lsocket  $LIBS"
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861
15862 /* Override any gcc2 internal prototype to avoid an error.  */
15863 #ifdef __cplusplus
15864 extern "C"
15865 #endif
15866 /* We use char because int might match the return type of a gcc2
15867    builtin and then its argument prototype would still apply.  */
15868 char socket ();
15869 int
15870 main ()
15871 {
15872 socket ();
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879   (eval $ac_link) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } &&
15883          { ac_try='test -s conftest$ac_exeext'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; }; then
15889   ac_cv_lib_socket_socket=yes
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 ac_cv_lib_socket_socket=no
15895 fi
15896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15897 LIBS=$ac_check_lib_save_LIBS
15898 fi
15899 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15900 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15901 if test $ac_cv_lib_socket_socket = yes; then
15902   cat >>confdefs.h <<_ACEOF
15903 #define HAVE_LIBSOCKET 1
15904 _ACEOF
15905
15906   LIBS="-lsocket $LIBS"
15907
15908 fi
15909
15910
15911 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15912 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15913 if test "${ac_cv_lib_inet_socket+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-linet  $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line $LINENO "configure"
15920 /* confdefs.h.  */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h.  */
15925
15926 /* Override any gcc2 internal prototype to avoid an error.  */
15927 #ifdef __cplusplus
15928 extern "C"
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931    builtin and then its argument prototype would still apply.  */
15932 char socket ();
15933 int
15934 main ()
15935 {
15936 socket ();
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943   (eval $ac_link) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } &&
15947          { ac_try='test -s conftest$ac_exeext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   ac_cv_lib_inet_socket=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_cv_lib_inet_socket=no
15959 fi
15960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15961 LIBS=$ac_check_lib_save_LIBS
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15964 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15965 if test $ac_cv_lib_inet_socket = yes; then
15966   cat >>confdefs.h <<_ACEOF
15967 #define HAVE_LIBINET 1
15968 _ACEOF
15969
15970   LIBS="-linet $LIBS"
15971
15972 fi
15973
15974 fi
15975
15976
15977
15978 for ac_func in inet_pton
15979 do
15980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981 echo "$as_me:$LINENO: checking for $ac_func" >&5
15982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_var+set}\" = set"; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993 /* System header to define __stub macros and hopefully few prototypes,
15994     which can conflict with char $ac_func (); below.
15995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15996     <limits.h> exists even on freestanding compilers.  */
15997 #ifdef __STDC__
15998 # include <limits.h>
15999 #else
16000 # include <assert.h>
16001 #endif
16002 /* Override any gcc2 internal prototype to avoid an error.  */
16003 #ifdef __cplusplus
16004 extern "C"
16005 {
16006 #endif
16007 /* We use char because int might match the return type of a gcc2
16008    builtin and then its argument prototype would still apply.  */
16009 char $ac_func ();
16010 /* The GNU C library defines this for functions which it implements
16011     to always fail with ENOSYS.  Some functions are actually named
16012     something starting with __ and the normal name is an alias.  */
16013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16014 choke me
16015 #else
16016 char (*f) () = $ac_func;
16017 #endif
16018 #ifdef __cplusplus
16019 }
16020 #endif
16021
16022 int
16023 main ()
16024 {
16025 return f != $ac_func;
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext conftest$ac_exeext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16032   (eval $ac_link) 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); } &&
16036          { ac_try='test -s conftest$ac_exeext'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; }; then
16042   eval "$as_ac_var=yes"
16043 else
16044   echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 eval "$as_ac_var=no"
16048 fi
16049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16050 fi
16051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16053 if test `eval echo '${'$as_ac_var'}'` = yes; then
16054   cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16056 _ACEOF
16057  cat >>confdefs.h <<\_ACEOF
16058 #define HAVE_INET_PTON 1
16059 _ACEOF
16060
16061 fi
16062 done
16063
16064
16065
16066 for ac_func in strftime
16067 do
16068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16069 echo "$as_me:$LINENO: checking for $ac_func" >&5
16070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16071 if eval "test \"\${$as_ac_var+set}\" = set"; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   cat >conftest.$ac_ext <<_ACEOF
16075 #line $LINENO "configure"
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 /* System header to define __stub macros and hopefully few prototypes,
16082     which can conflict with char $ac_func (); below.
16083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16084     <limits.h> exists even on freestanding compilers.  */
16085 #ifdef __STDC__
16086 # include <limits.h>
16087 #else
16088 # include <assert.h>
16089 #endif
16090 /* Override any gcc2 internal prototype to avoid an error.  */
16091 #ifdef __cplusplus
16092 extern "C"
16093 {
16094 #endif
16095 /* We use char because int might match the return type of a gcc2
16096    builtin and then its argument prototype would still apply.  */
16097 char $ac_func ();
16098 /* The GNU C library defines this for functions which it implements
16099     to always fail with ENOSYS.  Some functions are actually named
16100     something starting with __ and the normal name is an alias.  */
16101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16102 choke me
16103 #else
16104 char (*f) () = $ac_func;
16105 #endif
16106 #ifdef __cplusplus
16107 }
16108 #endif
16109
16110 int
16111 main ()
16112 {
16113 return f != $ac_func;
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120   (eval $ac_link) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } &&
16124          { ac_try='test -s conftest$ac_exeext'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   eval "$as_ac_var=yes"
16131 else
16132   echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135 eval "$as_ac_var=no"
16136 fi
16137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16138 fi
16139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16141 if test `eval echo '${'$as_ac_var'}'` = yes; then
16142   cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16144 _ACEOF
16145
16146 else
16147   # strftime is in -lintl on SCO UNIX.
16148 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16149 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16150 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16151   echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153   ac_check_lib_save_LIBS=$LIBS
16154 LIBS="-lintl  $LIBS"
16155 cat >conftest.$ac_ext <<_ACEOF
16156 #line $LINENO "configure"
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162
16163 /* Override any gcc2 internal prototype to avoid an error.  */
16164 #ifdef __cplusplus
16165 extern "C"
16166 #endif
16167 /* We use char because int might match the return type of a gcc2
16168    builtin and then its argument prototype would still apply.  */
16169 char strftime ();
16170 int
16171 main ()
16172 {
16173 strftime ();
16174   ;
16175   return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180   (eval $ac_link) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); } &&
16184          { ac_try='test -s conftest$ac_exeext'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_cv_lib_intl_strftime=yes
16191 else
16192   echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_cv_lib_intl_strftime=no
16196 fi
16197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16198 LIBS=$ac_check_lib_save_LIBS
16199 fi
16200 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16201 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16202 if test $ac_cv_lib_intl_strftime = yes; then
16203   cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_STRFTIME 1
16205 _ACEOF
16206
16207 LIBS="-lintl $LIBS"
16208 fi
16209
16210 fi
16211 done
16212
16213
16214 for ac_func in vprintf
16215 do
16216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16217 echo "$as_me:$LINENO: checking for $ac_func" >&5
16218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16219 if eval "test \"\${$as_ac_var+set}\" = set"; then
16220   echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222   cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229 /* System header to define __stub macros and hopefully few prototypes,
16230     which can conflict with char $ac_func (); below.
16231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16232     <limits.h> exists even on freestanding compilers.  */
16233 #ifdef __STDC__
16234 # include <limits.h>
16235 #else
16236 # include <assert.h>
16237 #endif
16238 /* Override any gcc2 internal prototype to avoid an error.  */
16239 #ifdef __cplusplus
16240 extern "C"
16241 {
16242 #endif
16243 /* We use char because int might match the return type of a gcc2
16244    builtin and then its argument prototype would still apply.  */
16245 char $ac_func ();
16246 /* The GNU C library defines this for functions which it implements
16247     to always fail with ENOSYS.  Some functions are actually named
16248     something starting with __ and the normal name is an alias.  */
16249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16250 choke me
16251 #else
16252 char (*f) () = $ac_func;
16253 #endif
16254 #ifdef __cplusplus
16255 }
16256 #endif
16257
16258 int
16259 main ()
16260 {
16261 return f != $ac_func;
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268   (eval $ac_link) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } &&
16272          { ac_try='test -s conftest$ac_exeext'
16273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274   (eval $ac_try) 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; }; then
16278   eval "$as_ac_var=yes"
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 eval "$as_ac_var=no"
16284 fi
16285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16286 fi
16287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16289 if test `eval echo '${'$as_ac_var'}'` = yes; then
16290   cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16292 _ACEOF
16293
16294 echo "$as_me:$LINENO: checking for _doprnt" >&5
16295 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16296 if test "${ac_cv_func__doprnt+set}" = set; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   cat >conftest.$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 /* System header to define __stub macros and hopefully few prototypes,
16307     which can conflict with char _doprnt (); below.
16308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16309     <limits.h> exists even on freestanding compilers.  */
16310 #ifdef __STDC__
16311 # include <limits.h>
16312 #else
16313 # include <assert.h>
16314 #endif
16315 /* Override any gcc2 internal prototype to avoid an error.  */
16316 #ifdef __cplusplus
16317 extern "C"
16318 {
16319 #endif
16320 /* We use char because int might match the return type of a gcc2
16321    builtin and then its argument prototype would still apply.  */
16322 char _doprnt ();
16323 /* The GNU C library defines this for functions which it implements
16324     to always fail with ENOSYS.  Some functions are actually named
16325     something starting with __ and the normal name is an alias.  */
16326 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16327 choke me
16328 #else
16329 char (*f) () = _doprnt;
16330 #endif
16331 #ifdef __cplusplus
16332 }
16333 #endif
16334
16335 int
16336 main ()
16337 {
16338 return f != _doprnt;
16339   ;
16340   return 0;
16341 }
16342 _ACEOF
16343 rm -f conftest.$ac_objext conftest$ac_exeext
16344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16345   (eval $ac_link) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -s conftest$ac_exeext'
16350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351   (eval $ac_try) 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   ac_cv_func__doprnt=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360 ac_cv_func__doprnt=no
16361 fi
16362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16363 fi
16364 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16365 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16366 if test $ac_cv_func__doprnt = yes; then
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_DOPRNT 1
16370 _ACEOF
16371
16372 fi
16373
16374 fi
16375 done
16376
16377
16378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16379 # for constant arguments.  Useless!
16380 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16382 if test "${ac_cv_working_alloca_h+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   cat >conftest.$ac_ext <<_ACEOF
16386 #line $LINENO "configure"
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 #include <alloca.h>
16393 int
16394 main ()
16395 {
16396 char *p = (char *) alloca (2 * sizeof (int));
16397   ;
16398   return 0;
16399 }
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403   (eval $ac_link) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } &&
16407          { ac_try='test -s conftest$ac_exeext'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_working_alloca_h=yes
16414 else
16415   echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 ac_cv_working_alloca_h=no
16419 fi
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16421 fi
16422 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16423 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16424 if test $ac_cv_working_alloca_h = yes; then
16425
16426 cat >>confdefs.h <<\_ACEOF
16427 #define HAVE_ALLOCA_H 1
16428 _ACEOF
16429
16430 fi
16431
16432 echo "$as_me:$LINENO: checking for alloca" >&5
16433 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16434 if test "${ac_cv_func_alloca_works+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.$ac_ext <<_ACEOF
16438 #line $LINENO "configure"
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444 #ifdef __GNUC__
16445 # define alloca __builtin_alloca
16446 #else
16447 # ifdef _MSC_VER
16448 #  include <malloc.h>
16449 #  define alloca _alloca
16450 # else
16451 #  if HAVE_ALLOCA_H
16452 #   include <alloca.h>
16453 #  else
16454 #   ifdef _AIX
16455  #pragma alloca
16456 #   else
16457 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16458 char *alloca ();
16459 #    endif
16460 #   endif
16461 #  endif
16462 # endif
16463 #endif
16464
16465 int
16466 main ()
16467 {
16468 char *p = (char *) alloca (1);
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475   (eval $ac_link) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } &&
16479          { ac_try='test -s conftest$ac_exeext'
16480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481   (eval $ac_try) 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; }; then
16485   ac_cv_func_alloca_works=yes
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 ac_cv_func_alloca_works=no
16491 fi
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16493 fi
16494 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16495 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16496
16497 if test $ac_cv_func_alloca_works = yes; then
16498
16499 cat >>confdefs.h <<\_ACEOF
16500 #define HAVE_ALLOCA 1
16501 _ACEOF
16502
16503 else
16504   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16505 # that cause trouble.  Some versions do not even contain alloca or
16506 # contain a buggy version.  If you still want to use their alloca,
16507 # use ar to extract alloca.o from them instead of compiling alloca.c.
16508
16509 ALLOCA=alloca.$ac_objext
16510
16511 cat >>confdefs.h <<\_ACEOF
16512 #define C_ALLOCA 1
16513 _ACEOF
16514
16515
16516 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16517 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16518 if test "${ac_cv_os_cray+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   cat >conftest.$ac_ext <<_ACEOF
16522 #line $LINENO "configure"
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 #if defined(CRAY) && ! defined(CRAY2)
16529 webecray
16530 #else
16531 wenotbecray
16532 #endif
16533
16534 _ACEOF
16535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16536   $EGREP "webecray" >/dev/null 2>&1; then
16537   ac_cv_os_cray=yes
16538 else
16539   ac_cv_os_cray=no
16540 fi
16541 rm -f conftest*
16542
16543 fi
16544 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16545 echo "${ECHO_T}$ac_cv_os_cray" >&6
16546 if test $ac_cv_os_cray = yes; then
16547   for ac_func in _getb67 GETB67 getb67; do
16548     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16549 echo "$as_me:$LINENO: checking for $ac_func" >&5
16550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16551 if eval "test \"\${$as_ac_var+set}\" = set"; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562     which can conflict with char $ac_func (); below.
16563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564     <limits.h> exists even on freestanding compilers.  */
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570 /* Override any gcc2 internal prototype to avoid an error.  */
16571 #ifdef __cplusplus
16572 extern "C"
16573 {
16574 #endif
16575 /* We use char because int might match the return type of a gcc2
16576    builtin and then its argument prototype would still apply.  */
16577 char $ac_func ();
16578 /* The GNU C library defines this for functions which it implements
16579     to always fail with ENOSYS.  Some functions are actually named
16580     something starting with __ and the normal name is an alias.  */
16581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16582 choke me
16583 #else
16584 char (*f) () = $ac_func;
16585 #endif
16586 #ifdef __cplusplus
16587 }
16588 #endif
16589
16590 int
16591 main ()
16592 {
16593 return f != $ac_func;
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600   (eval $ac_link) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -s conftest$ac_exeext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   eval "$as_ac_var=yes"
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 eval "$as_ac_var=no"
16616 fi
16617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618 fi
16619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16621 if test `eval echo '${'$as_ac_var'}'` = yes; then
16622
16623 cat >>confdefs.h <<_ACEOF
16624 #define CRAY_STACKSEG_END $ac_func
16625 _ACEOF
16626
16627     break
16628 fi
16629
16630   done
16631 fi
16632
16633 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16634 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16635 if test "${ac_cv_c_stack_direction+set}" = set; then
16636   echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638   if test "$cross_compiling" = yes; then
16639   ac_cv_c_stack_direction=0
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 int
16649 find_stack_direction ()
16650 {
16651   static char *addr = 0;
16652   auto char dummy;
16653   if (addr == 0)
16654     {
16655       addr = &dummy;
16656       return find_stack_direction ();
16657     }
16658   else
16659     return (&dummy > addr) ? 1 : -1;
16660 }
16661
16662 int
16663 main ()
16664 {
16665   exit (find_stack_direction () < 0);
16666 }
16667 _ACEOF
16668 rm -f conftest$ac_exeext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16670   (eval $ac_link) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_cv_c_stack_direction=1
16680 else
16681   echo "$as_me: program exited with status $ac_status" >&5
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ( exit $ac_status )
16686 ac_cv_c_stack_direction=-1
16687 fi
16688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16689 fi
16690 fi
16691 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16692 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16693
16694 cat >>confdefs.h <<_ACEOF
16695 #define STACK_DIRECTION $ac_cv_c_stack_direction
16696 _ACEOF
16697
16698
16699 fi
16700
16701 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16702 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16703 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16704 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   ac_check_lib_save_LIBS=$LIBS
16708 LIBS="-lsun  $LIBS"
16709 cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716
16717 /* Override any gcc2 internal prototype to avoid an error.  */
16718 #ifdef __cplusplus
16719 extern "C"
16720 #endif
16721 /* We use char because int might match the return type of a gcc2
16722    builtin and then its argument prototype would still apply.  */
16723 char getmntent ();
16724 int
16725 main ()
16726 {
16727 getmntent ();
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734   (eval $ac_link) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -s conftest$ac_exeext'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   ac_cv_lib_sun_getmntent=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_cv_lib_sun_getmntent=no
16750 fi
16751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16753 fi
16754 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16755 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16756 if test $ac_cv_lib_sun_getmntent = yes; then
16757   LIBS="-lsun $LIBS"
16758 else
16759   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16760 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16761 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16762   echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764   ac_check_lib_save_LIBS=$LIBS
16765 LIBS="-lseq  $LIBS"
16766 cat >conftest.$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16768 /* confdefs.h.  */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h.  */
16773
16774 /* Override any gcc2 internal prototype to avoid an error.  */
16775 #ifdef __cplusplus
16776 extern "C"
16777 #endif
16778 /* We use char because int might match the return type of a gcc2
16779    builtin and then its argument prototype would still apply.  */
16780 char getmntent ();
16781 int
16782 main ()
16783 {
16784 getmntent ();
16785   ;
16786   return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791   (eval $ac_link) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } &&
16795          { ac_try='test -s conftest$ac_exeext'
16796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797   (eval $ac_try) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; }; then
16801   ac_cv_lib_seq_getmntent=yes
16802 else
16803   echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 ac_cv_lib_seq_getmntent=no
16807 fi
16808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16810 fi
16811 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16812 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16813 if test $ac_cv_lib_seq_getmntent = yes; then
16814   LIBS="-lseq $LIBS"
16815 else
16816   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16817 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16818 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   ac_check_lib_save_LIBS=$LIBS
16822 LIBS="-lgen  $LIBS"
16823 cat >conftest.$ac_ext <<_ACEOF
16824 #line $LINENO "configure"
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830
16831 /* Override any gcc2 internal prototype to avoid an error.  */
16832 #ifdef __cplusplus
16833 extern "C"
16834 #endif
16835 /* We use char because int might match the return type of a gcc2
16836    builtin and then its argument prototype would still apply.  */
16837 char getmntent ();
16838 int
16839 main ()
16840 {
16841 getmntent ();
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848   (eval $ac_link) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -s 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_lib_gen_getmntent=yes
16859 else
16860   echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_cv_lib_gen_getmntent=no
16864 fi
16865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16867 fi
16868 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16869 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16870 if test $ac_cv_lib_gen_getmntent = yes; then
16871   LIBS="-lgen $LIBS"
16872 fi
16873
16874 fi
16875
16876 fi
16877
16878
16879 for ac_func in getmntent
16880 do
16881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16882 echo "$as_me:$LINENO: checking for $ac_func" >&5
16883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16884 if eval "test \"\${$as_ac_var+set}\" = set"; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16889 /* confdefs.h.  */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h.  */
16894 /* System header to define __stub macros and hopefully few prototypes,
16895     which can conflict with char $ac_func (); below.
16896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897     <limits.h> exists even on freestanding compilers.  */
16898 #ifdef __STDC__
16899 # include <limits.h>
16900 #else
16901 # include <assert.h>
16902 #endif
16903 /* Override any gcc2 internal prototype to avoid an error.  */
16904 #ifdef __cplusplus
16905 extern "C"
16906 {
16907 #endif
16908 /* We use char because int might match the return type of a gcc2
16909    builtin and then its argument prototype would still apply.  */
16910 char $ac_func ();
16911 /* The GNU C library defines this for functions which it implements
16912     to always fail with ENOSYS.  Some functions are actually named
16913     something starting with __ and the normal name is an alias.  */
16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915 choke me
16916 #else
16917 char (*f) () = $ac_func;
16918 #endif
16919 #ifdef __cplusplus
16920 }
16921 #endif
16922
16923 int
16924 main ()
16925 {
16926 return f != $ac_func;
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933   (eval $ac_link) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   eval "$as_ac_var=yes"
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 eval "$as_ac_var=no"
16949 fi
16950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16951 fi
16952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16954 if test `eval echo '${'$as_ac_var'}'` = yes; then
16955   cat >>confdefs.h <<_ACEOF
16956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16957 _ACEOF
16958
16959 fi
16960 done
16961
16962
16963 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16964 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16965 if test "${ac_cv_func_closedir_void+set}" = set; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968   if test "$cross_compiling" = yes; then
16969   ac_cv_func_closedir_void=yes
16970 else
16971   cat >conftest.$ac_ext <<_ACEOF
16972 #line $LINENO "configure"
16973 /* confdefs.h.  */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h.  */
16978 $ac_includes_default
16979 #include <$ac_header_dirent>
16980 #ifndef __cplusplus
16981 int closedir ();
16982 #endif
16983
16984 int
16985 main ()
16986 {
16987 exit (closedir (opendir (".")) != 0);
16988   ;
16989   return 0;
16990 }
16991 _ACEOF
16992 rm -f conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994   (eval $ac_link) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999   (eval $ac_try) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; }; then
17003   ac_cv_func_closedir_void=no
17004 else
17005   echo "$as_me: program exited with status $ac_status" >&5
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ( exit $ac_status )
17010 ac_cv_func_closedir_void=yes
17011 fi
17012 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17013 fi
17014 fi
17015 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17016 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17017 if test $ac_cv_func_closedir_void = yes; then
17018
17019 cat >>confdefs.h <<\_ACEOF
17020 #define CLOSEDIR_VOID 1
17021 _ACEOF
17022
17023 fi
17024
17025 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17026 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17027 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17028   echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030   if test "$cross_compiling" = yes; then
17031   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17032 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17033    { (exit 1); exit 1; }; }
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 #line $LINENO "configure"
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 #if HAVE_UNISTD_H
17043 # include <unistd.h>
17044 #endif
17045
17046 int
17047 main ()
17048 {
17049 /* If this system has a BSD-style setpgrp which takes arguments,
17050   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17051   exit successfully. */
17052   exit (setpgrp (1,1) == -1 ? 0 : 1);
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 rm -f conftest$ac_exeext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059   (eval $ac_link) 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064   (eval $ac_try) 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   ac_cv_func_setpgrp_void=no
17069 else
17070   echo "$as_me: program exited with status $ac_status" >&5
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 ( exit $ac_status )
17075 ac_cv_func_setpgrp_void=yes
17076 fi
17077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17078 fi
17079 fi
17080 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17081 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17082 if test $ac_cv_func_setpgrp_void = yes; then
17083
17084 cat >>confdefs.h <<\_ACEOF
17085 #define SETPGRP_VOID 1
17086 _ACEOF
17087
17088 fi
17089                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17090 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17091 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17092   echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094   # Some versions of Solaris, SCO, and the GNU C Library
17095    # have a broken or incompatible fnmatch.
17096    # So we run a test program.  If we are cross-compiling, take no chance.
17097    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17098    if test "$cross_compiling" = yes; then
17099   ac_cv_func_fnmatch_works=cross
17100 else
17101   cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 #include <fnmatch.h>
17109 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17110 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17111
17112 int
17113 main ()
17114 {
17115 exit
17116            (!(y ("a*", "abc", 0)
17117               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17118               && y ("a\\\\bc", "abc", 0)
17119               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17120               && y ("*x", ".x", 0)
17121               && n ("*x", ".x", FNM_PERIOD)
17122               && 1));
17123   ;
17124   return 0;
17125 }
17126 _ACEOF
17127 rm -f conftest$ac_exeext
17128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17129   (eval $ac_link) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   ac_cv_func_fnmatch_works=yes
17139 else
17140   echo "$as_me: program exited with status $ac_status" >&5
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 ( exit $ac_status )
17145 ac_cv_func_fnmatch_works=no
17146 fi
17147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17148 fi
17149 fi
17150 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17151 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17152 if test $ac_cv_func_fnmatch_works = yes; then
17153
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_FNMATCH 1
17156 _ACEOF
17157
17158 fi
17159
17160
17161
17162
17163
17164 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17165 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17166 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17167   echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169   ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lxpg4  $LIBS"
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178
17179 /* Override any gcc2 internal prototype to avoid an error.  */
17180 #ifdef __cplusplus
17181 extern "C"
17182 #endif
17183 /* We use char because int might match the return type of a gcc2
17184    builtin and then its argument prototype would still apply.  */
17185 char setlocale ();
17186 int
17187 main ()
17188 {
17189 setlocale ();
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196   (eval $ac_link) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); } &&
17200          { ac_try='test -s conftest$ac_exeext'
17201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202   (eval $ac_try) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; }; then
17206   ac_cv_lib_xpg4_setlocale=yes
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211 ac_cv_lib_xpg4_setlocale=no
17212 fi
17213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17215 fi
17216 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17217 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17218 if test $ac_cv_lib_xpg4_setlocale = yes; then
17219   LIBS="$LIBS -lxpg4"
17220 fi
17221
17222
17223
17224
17225 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17226 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17227 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   ac_check_lib_save_LIBS=$LIBS
17231 LIBS="-lsun  $LIBS"
17232 cat >conftest.$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239
17240 /* Override any gcc2 internal prototype to avoid an error.  */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 /* We use char because int might match the return type of a gcc2
17245    builtin and then its argument prototype would still apply.  */
17246 char getpwnam ();
17247 int
17248 main ()
17249 {
17250 getpwnam ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); } &&
17261          { ac_try='test -s conftest$ac_exeext'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267   ac_cv_lib_sun_getpwnam=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_cv_lib_sun_getpwnam=no
17273 fi
17274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17276 fi
17277 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17278 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17279 if test $ac_cv_lib_sun_getpwnam = yes; then
17280   cat >>confdefs.h <<_ACEOF
17281 #define HAVE_LIBSUN 1
17282 _ACEOF
17283
17284   LIBS="-lsun $LIBS"
17285
17286 fi
17287
17288
17289
17290 for ac_header in zlib.h
17291 do
17292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294   echo "$as_me:$LINENO: checking for $ac_header" >&5
17295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 fi
17299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17301 else
17302   # Is the header compilable?
17303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17306 #line $LINENO "configure"
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312 $ac_includes_default
17313 #include <$ac_header>
17314 _ACEOF
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317   (eval $ac_compile) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } &&
17321          { ac_try='test -s conftest.$ac_objext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_header_compiler=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 ac_header_compiler=no
17333 fi
17334 rm -f conftest.$ac_objext conftest.$ac_ext
17335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17336 echo "${ECHO_T}$ac_header_compiler" >&6
17337
17338 # Is the header present?
17339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17341 cat >conftest.$ac_ext <<_ACEOF
17342 #line $LINENO "configure"
17343 /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348 #include <$ac_header>
17349 _ACEOF
17350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } >/dev/null; then
17358   if test -s conftest.err; then
17359     ac_cpp_err=$ac_c_preproc_warn_flag
17360   else
17361     ac_cpp_err=
17362   fi
17363 else
17364   ac_cpp_err=yes
17365 fi
17366 if test -z "$ac_cpp_err"; then
17367   ac_header_preproc=yes
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372   ac_header_preproc=no
17373 fi
17374 rm -f conftest.err conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17376 echo "${ECHO_T}$ac_header_preproc" >&6
17377
17378 # So?  What about this header?
17379 case $ac_header_compiler:$ac_header_preproc in
17380   yes:no )
17381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17385     (
17386       cat <<\_ASBOX
17387 ## ------------------------------------ ##
17388 ## Report this to bug-autoconf@gnu.org. ##
17389 ## ------------------------------------ ##
17390 _ASBOX
17391     ) |
17392       sed "s/^/$as_me: WARNING:     /" >&2
17393     ;;
17394   no:yes )
17395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17397     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17401     (
17402       cat <<\_ASBOX
17403 ## ------------------------------------ ##
17404 ## Report this to bug-autoconf@gnu.org. ##
17405 ## ------------------------------------ ##
17406 _ASBOX
17407     ) |
17408       sed "s/^/$as_me: WARNING:     /" >&2
17409     ;;
17410 esac
17411 echo "$as_me:$LINENO: checking for $ac_header" >&5
17412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416   eval "$as_ac_Header=$ac_header_preproc"
17417 fi
17418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17420
17421 fi
17422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17423   cat >>confdefs.h <<_ACEOF
17424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17425 _ACEOF
17426
17427 fi
17428
17429 done
17430
17431 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17432 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17433 if test "${ac_cv_lib_z_deflate+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lz  $LIBS"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445
17446 /* Override any gcc2 internal prototype to avoid an error.  */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451    builtin and then its argument prototype would still apply.  */
17452 char deflate ();
17453 int
17454 main ()
17455 {
17456 deflate ();
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463   (eval $ac_link) 2>&5
17464   ac_status=$?
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -s conftest$ac_exeext'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; }; then
17473   ac_cv_lib_z_deflate=yes
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478 ac_cv_lib_z_deflate=no
17479 fi
17480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS
17482 fi
17483 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17484 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17485 if test $ac_cv_lib_z_deflate = yes; then
17486   FDLIBS="-lz"
17487 fi
17488
17489 have_zlib=no
17490 if test x$FDLIBS = x-lz; then
17491   cat >>confdefs.h <<\_ACEOF
17492 #define HAVE_LIBZ 1
17493 _ACEOF
17494
17495   have_zlib=yes
17496 fi
17497
17498 PTHREAD_LIB=""
17499 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17500 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17501 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17502   echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504   ac_check_lib_save_LIBS=$LIBS
17505 LIBS="-lpthread  $LIBS"
17506 cat >conftest.$ac_ext <<_ACEOF
17507 #line $LINENO "configure"
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513
17514 /* Override any gcc2 internal prototype to avoid an error.  */
17515 #ifdef __cplusplus
17516 extern "C"
17517 #endif
17518 /* We use char because int might match the return type of a gcc2
17519    builtin and then its argument prototype would still apply.  */
17520 char pthread_create ();
17521 int
17522 main ()
17523 {
17524 pthread_create ();
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531   (eval $ac_link) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17541   ac_cv_lib_pthread_pthread_create=yes
17542 else
17543   echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_cv_lib_pthread_pthread_create=no
17547 fi
17548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17550 fi
17551 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17552 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17553 if test $ac_cv_lib_pthread_pthread_create = yes; then
17554   PTHREAD_LIB="-lpthread"
17555 else
17556   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17557 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17558 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   ac_check_lib_save_LIBS=$LIBS
17562 LIBS="-lpthreads  $LIBS"
17563 cat >conftest.$ac_ext <<_ACEOF
17564 #line $LINENO "configure"
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570
17571 /* Override any gcc2 internal prototype to avoid an error.  */
17572 #ifdef __cplusplus
17573 extern "C"
17574 #endif
17575 /* We use char because int might match the return type of a gcc2
17576    builtin and then its argument prototype would still apply.  */
17577 char pthread_create ();
17578 int
17579 main ()
17580 {
17581 pthread_create ();
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588   (eval $ac_link) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598   ac_cv_lib_pthreads_pthread_create=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 ac_cv_lib_pthreads_pthread_create=no
17604 fi
17605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17606 LIBS=$ac_check_lib_save_LIBS
17607 fi
17608 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17609 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17610 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17611   PTHREAD_LIB="-lpthreads"
17612 else
17613   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17614 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17615 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17616   echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618   ac_check_lib_save_LIBS=$LIBS
17619 LIBS="-lc_r  $LIBS"
17620 cat >conftest.$ac_ext <<_ACEOF
17621 #line $LINENO "configure"
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627
17628 /* Override any gcc2 internal prototype to avoid an error.  */
17629 #ifdef __cplusplus
17630 extern "C"
17631 #endif
17632 /* We use char because int might match the return type of a gcc2
17633    builtin and then its argument prototype would still apply.  */
17634 char pthread_create ();
17635 int
17636 main ()
17637 {
17638 pthread_create ();
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645   (eval $ac_link) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } &&
17649          { ac_try='test -s conftest$ac_exeext'
17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651   (eval $ac_try) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   ac_cv_lib_c_r_pthread_create=yes
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ac_cv_lib_c_r_pthread_create=no
17661 fi
17662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17663 LIBS=$ac_check_lib_save_LIBS
17664 fi
17665 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17666 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17667 if test $ac_cv_lib_c_r_pthread_create = yes; then
17668   PTHREAD_LIB="-lc_r"
17669 else
17670   echo "$as_me:$LINENO: checking for pthread_create" >&5
17671 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17672 if test "${ac_cv_func_pthread_create+set}" = set; then
17673   echo $ECHO_N "(cached) $ECHO_C" >&6
17674 else
17675   cat >conftest.$ac_ext <<_ACEOF
17676 #line $LINENO "configure"
17677 /* confdefs.h.  */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h.  */
17682 /* System header to define __stub macros and hopefully few prototypes,
17683     which can conflict with char pthread_create (); below.
17684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685     <limits.h> exists even on freestanding compilers.  */
17686 #ifdef __STDC__
17687 # include <limits.h>
17688 #else
17689 # include <assert.h>
17690 #endif
17691 /* Override any gcc2 internal prototype to avoid an error.  */
17692 #ifdef __cplusplus
17693 extern "C"
17694 {
17695 #endif
17696 /* We use char because int might match the return type of a gcc2
17697    builtin and then its argument prototype would still apply.  */
17698 char pthread_create ();
17699 /* The GNU C library defines this for functions which it implements
17700     to always fail with ENOSYS.  Some functions are actually named
17701     something starting with __ and the normal name is an alias.  */
17702 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17703 choke me
17704 #else
17705 char (*f) () = pthread_create;
17706 #endif
17707 #ifdef __cplusplus
17708 }
17709 #endif
17710
17711 int
17712 main ()
17713 {
17714 return f != pthread_create;
17715   ;
17716   return 0;
17717 }
17718 _ACEOF
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721   (eval $ac_link) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -s conftest$ac_exeext'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; }; then
17731   ac_cv_func_pthread_create=yes
17732 else
17733   echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 ac_cv_func_pthread_create=no
17737 fi
17738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17739 fi
17740 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17741 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17742
17743
17744 fi
17745
17746
17747 fi
17748
17749
17750 fi
17751
17752
17753
17754 cat >>confdefs.h <<\_ACEOF
17755 #define FDLIBS 1
17756 _ACEOF
17757
17758
17759
17760 CFLAGS=${CFLAGS--O}
17761 LDFLAGS=${LDFLAGS--O}
17762 DB_LIBS="${SQL_LFLAGS}"
17763
17764 CPPFLAGS="$CPPFLAGS"
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779 OBJLIST=
17780
17781
17782 lld="lld"
17783 llu="llu"
17784
17785 WCFLAGS=
17786 WLDFLAGS=
17787
17788 #
17789 # Finally we set appropriate distribution specific
17790 #  variables and defaults
17791 #
17792 # PFILES are platform specific files
17793 PFILES="platforms/Makefile"
17794 PSCMD="ps -e"
17795 WIN32=
17796 hostname=`uname -n | cut -d '.' -f 1`
17797 case "$DISTNAME" in
17798 aix)
17799         DISTVER=`uname -r`
17800         PSCMD="ps -e -o pid,comm"
17801         PFILES="${PFILES} \
17802            platforms/aix/Makefile"
17803         TAPEDRIVE="/dev/rmt0.1"
17804   ;;
17805 alpha)
17806         DISTVER=`uname -r`
17807         PTHREAD_LIB="-lpthread -lexc"
17808         if test "${CC}" = "gcc" ; then
17809            lld="lld"
17810            llu="llu"
17811         else
17812            lld="ld"
17813            llu="lu"
17814         fi
17815         TAPEDRIVE="/dev/nrmt0"
17816   ;;
17817 bsdi)
17818         DISTVER=`uname -a |awk '{print $3}'`
17819         TAPEDRIVE="/dev/nrmt0"
17820         PTHREAD_LIB="-pthread"
17821         CFLAGS="${CFLAGS} -pthread"
17822         PSCMD="ps -x -o pid,command"
17823         lld="qd"
17824         llu="qu"
17825         PFILES="${PFILES} \
17826             platforms/bsdi/Makefile \
17827             platforms/bsdi/bacula-fd \
17828             platforms/bsdi/bacula-sd \
17829             platforms/bsdi/bacula-dir"
17830         largefile_support="yes"
17831   ;;
17832 cygwin)
17833         DISTVER=`uname -a |awk '{print $3}'`
17834         TAPEDRIVE="/dev/nrst0"
17835         WIN32=win32
17836         WCFLAGS="-mwindows"
17837         WLDFLAGS="-mwindows"
17838   ;;
17839 darwin)
17840         DISTVER=`uname -r`
17841         TAPEDRIVE="/dev/nst0"
17842         PSCMD="ps -e -o pid,command"
17843         PFILES="${PFILES} \
17844            platforms/darwin/Makefile"
17845   ;;
17846 debian)
17847         DISTVER=`cat /etc/debian_version`
17848         TAPEDRIVE="/dev/nrst0"
17849         PSCMD="ps -e -o pid,command"
17850   ;;
17851 freebsd)
17852         DISTVER=`uname -a |awk '{print $3}'`
17853         VER=`echo $DISTVER | cut -c 1`
17854         if test x$VER = x4 ; then
17855            PTHREAD_LIB="-pthread"
17856            CFLAGS="${CFLAGS} -pthread"
17857         fi
17858         lld="qd"
17859         llu="qu"
17860         TAPEDRIVE="/dev/nrsa0"
17861         PSCMD="ps -x -o pid,command"
17862         PFILES="${PFILES} \
17863             platforms/freebsd/Makefile \
17864             platforms/freebsd/bacula-fd \
17865             platforms/freebsd/bacula-sd \
17866             platforms/freebsd/bacula-dir"
17867         largefile_support="yes"
17868   ;;
17869 hpux)
17870         PSCMD="UNIX95=1 ps -e -o pid,comm"
17871         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17872         DISTVER=`uname -r`
17873         TAPEDRIVE="/dev/rmt/0hnb"
17874   ;;
17875 irix)
17876         DISTVER=`uname -r`
17877         TAPEDRIVE="/dev/rmt/0cbn"
17878         PSCMD="ps -e -o pid,comm"
17879         PFILES="${PFILES} \
17880             platforms/irix/Makefile \
17881             platforms/irix/bacula-fd \
17882             platforms/irix/bacula-sd \
17883             platforms/irix/bacula-dir"
17884   ;;
17885 netbsd)
17886         DISTVER=`uname -a |awk '{print $3}'`
17887         lld="qd"
17888         llu="qu"
17889         TAPEDRIVE="/dev/nrst0"
17890         PSCMD="ps -a -o pid,command"
17891         PTHREAD_LIB="-pthread"
17892         CFLAGS="${CFLAGS} -pthread"
17893   ;;
17894 openbsd)
17895         DISTVER=`uname -a |awk '{print $3}'`
17896         lld="qd"
17897         llu="qu"
17898         TAPEDRIVE="/dev/nrst0"
17899         PSCMD="ps -a -o pid,command"
17900         PTHREAD_LIB="-pthread"
17901         CFLAGS="${CFLAGS} -pthread"
17902         PFILES="${PFILES} \
17903             platforms/openbsd/Makefile \
17904             platforms/openbsd/bacula-fd \
17905             platforms/openbsd/bacula-sd \
17906             platforms/openbsd/bacula-dir"
17907   ;;
17908 redhat)
17909         if test `cat /etc/redhat-release | grep release |\
17910                    cut -f 3 -d ' '`x = "Enterprise"x ; then
17911            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17912                     cut -f 6 -d ' '`
17913         else
17914             DISTVER=`cat /etc/redhat-release | grep release |\
17915                      cut -f 5 -d ' '`
17916         fi
17917         TAPEDRIVE="/dev/nst0"
17918         PSCMD="ps -e -o pid,command"
17919         PFILES="${PFILES} \
17920             platforms/redhat/Makefile \
17921             platforms/redhat/bacula-fd \
17922             platforms/redhat/bacula-sd \
17923             platforms/redhat/bacula-dir \
17924             platforms/redhat/bacula.spec \
17925             "
17926         hostname=`hostname -s`
17927   ;;
17928 mandrake)
17929         DISTVER=`cat /etc/mandrake-release | grep release |\
17930            cut -f 5 -d ' '`
17931         TAPEDRIVE="/dev/nst0"
17932         PSCMD="ps -e -o pid,command"
17933         PFILES="${PFILES} \
17934             platforms/mandrake/Makefile \
17935             platforms/mandrake/bacula-fd \
17936             platforms/mandrake/bacula-sd \
17937             platforms/mandrake/bacula-dir \
17938             platforms/mandrake/bacula.spec \
17939             "
17940   ;;
17941 gentoo)
17942         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17943         TAPEDRIVE="/dev/nst0"
17944         PSCMD="ps -e -o pid,command"
17945         PFILES="${PFILES} \
17946             platforms/gentoo/Makefile \
17947             platforms/gentoo/bacula-fd \
17948             platforms/gentoo/bacula-sd \
17949             platforms/gentoo/bacula-dir"
17950   ;;
17951 slackware)
17952         DISTVER=`cat /etc/slackware-version`
17953         TAPEDRIVE="/dev/nst0"
17954         PSCMD="ps -e -o pid,command"
17955         PFILES="${PFILES} \
17956             platforms/slackware/Makefile \
17957             platforms/slackware/rc.bacula-fd \
17958             platforms/slackware/rc.bacula-sd \
17959             platforms/slackware/rc.bacula-dir\
17960             platforms/slackware/functions.bacula"
17961   ;;
17962 solaris)
17963         DISTVER=`uname -r`
17964         TAPEDRIVE="/dev/rmt/0cbn"
17965         PSCMD="ps -e -o pid,comm"
17966         PFILES="${PFILES} \
17967             platforms/solaris/Makefile \
17968             platforms/solaris/bacula-fd \
17969             platforms/solaris/bacula-sd \
17970             platforms/solaris/bacula-dir"
17971         if test x$DISTVER = x5.6 ; then
17972             cat >>confdefs.h <<\_ACEOF
17973 #define HAVE_OLD_SOCKOPT 1
17974 _ACEOF
17975
17976         fi
17977   ;;
17978 suse)
17979         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17980             cut -f 3 -d ' '`
17981         TAPEDRIVE="/dev/nst0"
17982         PSCMD="ps -e -o pid,command"
17983         PFILES="${PFILES} \
17984             platforms/suse/Makefile \
17985             platforms/suse/bacula-fd \
17986             platforms/suse/bacula-sd \
17987             platforms/suse/bacula-dir \
17988             platforms/suse/bacula \
17989             platforms/suse/bacula.spec"
17990   ;;
17991 suse5)
17992         DISTNAME=suse
17993         DISTVER=5.x
17994         TAPEDRIVE="/dev/nst0"
17995         PSCMD="ps -e -o pid,command"
17996         PFILES="${PFILES} \
17997             platforms/suse/Makefile \
17998             platforms/suse/bacula-fd \
17999             platforms/suse/bacula-sd \
18000             platforms/suse/bacula-dir"
18001   ;;
18002 unknown)
18003         DISTVER=unknown
18004         TAPEDRIVE="/dev/nst0"
18005   ;;
18006 *)
18007   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18008   ;;
18009 esac
18010
18011
18012
18013 LIBS="$PTHREAD_LIB $LIBS"
18014
18015 cat >>confdefs.h <<_ACEOF
18016 #define lld "$lld"
18017 _ACEOF
18018
18019 cat >>confdefs.h <<_ACEOF
18020 #define llu "$llu"
18021 _ACEOF
18022
18023
18024
18025
18026
18027
18028
18029 MCOMMON=./autoconf/Make.common
18030
18031
18032 if test "x${subsysdir}" = "x${sbindir}" ; then
18033    echo " "
18034    echo " "
18035    echo "You have set both --sbindir and --with-subsys-dir"
18036    echo "  equal to: ${subsysdir} "
18037    echo "This is not permitted. Please reconfigure."
18038    echo " "
18039    echo "Aborting configuration ..."
18040    echo " "
18041    echo " "
18042    exit 1
18043 fi
18044
18045                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/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/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer 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/tconsole/Makefile 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 $PFILES"
18046           ac_config_commands="$ac_config_commands default"
18047 cat >confcache <<\_ACEOF
18048 # This file is a shell script that caches the results of configure
18049 # tests run on this system so they can be shared between configure
18050 # scripts and configure runs, see configure's option --config-cache.
18051 # It is not useful on other systems.  If it contains results you don't
18052 # want to keep, you may remove or edit it.
18053 #
18054 # config.status only pays attention to the cache file if you give it
18055 # the --recheck option to rerun configure.
18056 #
18057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18059 # following values.
18060
18061 _ACEOF
18062
18063 # The following way of writing the cache mishandles newlines in values,
18064 # but we know of no workaround that is simple, portable, and efficient.
18065 # So, don't put newlines in cache variables' values.
18066 # Ultrix sh set writes to stderr and can't be redirected directly,
18067 # and sets the high bit in the cache file unless we assign to the vars.
18068 {
18069   (set) 2>&1 |
18070     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18071     *ac_space=\ *)
18072       # `set' does not quote correctly, so add quotes (double-quote
18073       # substitution turns \\\\ into \\, and sed turns \\ into \).
18074       sed -n \
18075         "s/'/'\\\\''/g;
18076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18077       ;;
18078     *)
18079       # `set' quotes correctly as required by POSIX, so do not add quotes.
18080       sed -n \
18081         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18082       ;;
18083     esac;
18084 } |
18085   sed '
18086      t clear
18087      : clear
18088      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18089      t end
18090      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18091      : end' >>confcache
18092 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18093   if test -w $cache_file; then
18094     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18095     cat confcache >$cache_file
18096   else
18097     echo "not updating unwritable cache $cache_file"
18098   fi
18099 fi
18100 rm -f confcache
18101
18102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18103 # Let make expand exec_prefix.
18104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18105
18106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18107 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18108 # trailing colons and then remove the whole line if VPATH becomes empty
18109 # (actually we leave an empty line to preserve line numbers).
18110 if test "x$srcdir" = x.; then
18111   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18112 s/:*\$(srcdir):*/:/;
18113 s/:*\${srcdir}:*/:/;
18114 s/:*@srcdir@:*/:/;
18115 s/^\([^=]*=[    ]*\):*/\1/;
18116 s/:*$//;
18117 s/^[^=]*=[      ]*$//;
18118 }'
18119 fi
18120
18121 DEFS=-DHAVE_CONFIG_H
18122
18123 ac_libobjs=
18124 ac_ltlibobjs=
18125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18126   # 1. Remove the extension, and $U if already installed.
18127   ac_i=`echo "$ac_i" |
18128          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18129   # 2. Add them.
18130   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18131   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18132 done
18133 LIBOBJS=$ac_libobjs
18134
18135 LTLIBOBJS=$ac_ltlibobjs
18136
18137
18138
18139 : ${CONFIG_STATUS=./config.status}
18140 ac_clean_files_save=$ac_clean_files
18141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18142 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18143 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18144 cat >$CONFIG_STATUS <<_ACEOF
18145 #! $SHELL
18146 # Generated by $as_me.
18147 # Run this file to recreate the current configuration.
18148 # Compiler output produced by configure, useful for debugging
18149 # configure, is in config.log if it exists.
18150
18151 debug=false
18152 ac_cs_recheck=false
18153 ac_cs_silent=false
18154 SHELL=\${CONFIG_SHELL-$SHELL}
18155 _ACEOF
18156
18157 cat >>$CONFIG_STATUS <<\_ACEOF
18158 ## --------------------- ##
18159 ## M4sh Initialization.  ##
18160 ## --------------------- ##
18161
18162 # Be Bourne compatible
18163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18164   emulate sh
18165   NULLCMD=:
18166   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18167   # is contrary to our usage.  Disable this feature.
18168   alias -g '${1+"$@"}'='"$@"'
18169 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18170   set -o posix
18171 fi
18172
18173 # Support unset when possible.
18174 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18175   as_unset=unset
18176 else
18177   as_unset=false
18178 fi
18179
18180
18181 # Work around bugs in pre-3.0 UWIN ksh.
18182 $as_unset ENV MAIL MAILPATH
18183 PS1='$ '
18184 PS2='> '
18185 PS4='+ '
18186
18187 # NLS nuisances.
18188 for as_var in \
18189   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18190   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18191   LC_TELEPHONE LC_TIME
18192 do
18193   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18194     eval $as_var=C; export $as_var
18195   else
18196     $as_unset $as_var
18197   fi
18198 done
18199
18200 # Required to use basename.
18201 if expr a : '\(a\)' >/dev/null 2>&1; then
18202   as_expr=expr
18203 else
18204   as_expr=false
18205 fi
18206
18207 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18208   as_basename=basename
18209 else
18210   as_basename=false
18211 fi
18212
18213
18214 # Name of the executable.
18215 as_me=`$as_basename "$0" ||
18216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18217          X"$0" : 'X\(//\)$' \| \
18218          X"$0" : 'X\(/\)$' \| \
18219          .     : '\(.\)' 2>/dev/null ||
18220 echo X/"$0" |
18221     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18222           /^X\/\(\/\/\)$/{ s//\1/; q; }
18223           /^X\/\(\/\).*/{ s//\1/; q; }
18224           s/.*/./; q'`
18225
18226
18227 # PATH needs CR, and LINENO needs CR and PATH.
18228 # Avoid depending upon Character Ranges.
18229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18232 as_cr_digits='0123456789'
18233 as_cr_alnum=$as_cr_Letters$as_cr_digits
18234
18235 # The user is always right.
18236 if test "${PATH_SEPARATOR+set}" != set; then
18237   echo "#! /bin/sh" >conf$$.sh
18238   echo  "exit 0"   >>conf$$.sh
18239   chmod +x conf$$.sh
18240   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18241     PATH_SEPARATOR=';'
18242   else
18243     PATH_SEPARATOR=:
18244   fi
18245   rm -f conf$$.sh
18246 fi
18247
18248
18249   as_lineno_1=$LINENO
18250   as_lineno_2=$LINENO
18251   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18252   test "x$as_lineno_1" != "x$as_lineno_2" &&
18253   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18254   # Find who we are.  Look in the path if we contain no path at all
18255   # relative or not.
18256   case $0 in
18257     *[\\/]* ) as_myself=$0 ;;
18258     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18259 for as_dir in $PATH
18260 do
18261   IFS=$as_save_IFS
18262   test -z "$as_dir" && as_dir=.
18263   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18264 done
18265
18266        ;;
18267   esac
18268   # We did not find ourselves, most probably we were run as `sh COMMAND'
18269   # in which case we are not to be found in the path.
18270   if test "x$as_myself" = x; then
18271     as_myself=$0
18272   fi
18273   if test ! -f "$as_myself"; then
18274     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18275 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18276    { (exit 1); exit 1; }; }
18277   fi
18278   case $CONFIG_SHELL in
18279   '')
18280     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18281 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18282 do
18283   IFS=$as_save_IFS
18284   test -z "$as_dir" && as_dir=.
18285   for as_base in sh bash ksh sh5; do
18286          case $as_dir in
18287          /*)
18288            if ("$as_dir/$as_base" -c '
18289   as_lineno_1=$LINENO
18290   as_lineno_2=$LINENO
18291   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18292   test "x$as_lineno_1" != "x$as_lineno_2" &&
18293   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18294              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18295              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18296              CONFIG_SHELL=$as_dir/$as_base
18297              export CONFIG_SHELL
18298              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18299            fi;;
18300          esac
18301        done
18302 done
18303 ;;
18304   esac
18305
18306   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18307   # uniformly replaced by the line number.  The first 'sed' inserts a
18308   # line-number line before each line; the second 'sed' does the real
18309   # work.  The second script uses 'N' to pair each line-number line
18310   # with the numbered line, and appends trailing '-' during
18311   # substitution so that $LINENO is not a special case at line end.
18312   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18313   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18314   sed '=' <$as_myself |
18315     sed '
18316       N
18317       s,$,-,
18318       : loop
18319       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18320       t loop
18321       s,-$,,
18322       s,^['$as_cr_digits']*\n,,
18323     ' >$as_me.lineno &&
18324   chmod +x $as_me.lineno ||
18325     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18326 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18327    { (exit 1); exit 1; }; }
18328
18329   # Don't try to exec as it changes $[0], causing all sort of problems
18330   # (the dirname of $[0] is not the place where we might find the
18331   # original and so on.  Autoconf is especially sensible to this).
18332   . ./$as_me.lineno
18333   # Exit status is that of the last command.
18334   exit
18335 }
18336
18337
18338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18339   *c*,-n*) ECHO_N= ECHO_C='
18340 ' ECHO_T='      ' ;;
18341   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18342   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18343 esac
18344
18345 if expr a : '\(a\)' >/dev/null 2>&1; then
18346   as_expr=expr
18347 else
18348   as_expr=false
18349 fi
18350
18351 rm -f conf$$ conf$$.exe conf$$.file
18352 echo >conf$$.file
18353 if ln -s conf$$.file conf$$ 2>/dev/null; then
18354   # We could just check for DJGPP; but this test a) works b) is more generic
18355   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18356   if test -f conf$$.exe; then
18357     # Don't use ln at all; we don't have any links
18358     as_ln_s='cp -p'
18359   else
18360     as_ln_s='ln -s'
18361   fi
18362 elif ln conf$$.file conf$$ 2>/dev/null; then
18363   as_ln_s=ln
18364 else
18365   as_ln_s='cp -p'
18366 fi
18367 rm -f conf$$ conf$$.exe conf$$.file
18368
18369 if mkdir -p . 2>/dev/null; then
18370   as_mkdir_p=:
18371 else
18372   as_mkdir_p=false
18373 fi
18374
18375 as_executable_p="test -f"
18376
18377 # Sed expression to map a string onto a valid CPP name.
18378 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18379
18380 # Sed expression to map a string onto a valid variable name.
18381 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18382
18383
18384 # IFS
18385 # We need space, tab and new line, in precisely that order.
18386 as_nl='
18387 '
18388 IFS="   $as_nl"
18389
18390 # CDPATH.
18391 $as_unset CDPATH
18392
18393 exec 6>&1
18394
18395 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18396 # report actual input values of CONFIG_FILES etc. instead of their
18397 # values after options handling.  Logging --version etc. is OK.
18398 exec 5>>config.log
18399 {
18400   echo
18401   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18402 ## Running $as_me. ##
18403 _ASBOX
18404 } >&5
18405 cat >&5 <<_CSEOF
18406
18407 This file was extended by $as_me, which was
18408 generated by GNU Autoconf 2.57.  Invocation command line was
18409
18410   CONFIG_FILES    = $CONFIG_FILES
18411   CONFIG_HEADERS  = $CONFIG_HEADERS
18412   CONFIG_LINKS    = $CONFIG_LINKS
18413   CONFIG_COMMANDS = $CONFIG_COMMANDS
18414   $ $0 $@
18415
18416 _CSEOF
18417 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18418 echo >&5
18419 _ACEOF
18420
18421 # Files that config.status was made for.
18422 if test -n "$ac_config_files"; then
18423   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18424 fi
18425
18426 if test -n "$ac_config_headers"; then
18427   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18428 fi
18429
18430 if test -n "$ac_config_links"; then
18431   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18432 fi
18433
18434 if test -n "$ac_config_commands"; then
18435   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18436 fi
18437
18438 cat >>$CONFIG_STATUS <<\_ACEOF
18439
18440 ac_cs_usage="\
18441 \`$as_me' instantiates files from templates according to the
18442 current configuration.
18443
18444 Usage: $0 [OPTIONS] [FILE]...
18445
18446   -h, --help       print this help, then exit
18447   -V, --version    print version number, then exit
18448   -q, --quiet      do not print progress messages
18449   -d, --debug      don't remove temporary files
18450       --recheck    update $as_me by reconfiguring in the same conditions
18451   --file=FILE[:TEMPLATE]
18452                    instantiate the configuration file FILE
18453   --header=FILE[:TEMPLATE]
18454                    instantiate the configuration header FILE
18455
18456 Configuration files:
18457 $config_files
18458
18459 Configuration headers:
18460 $config_headers
18461
18462 Configuration commands:
18463 $config_commands
18464
18465 Report bugs to <bug-autoconf@gnu.org>."
18466 _ACEOF
18467
18468 cat >>$CONFIG_STATUS <<_ACEOF
18469 ac_cs_version="\\
18470 config.status
18471 configured by $0, generated by GNU Autoconf 2.57,
18472   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18473
18474 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18475 Free Software Foundation, Inc.
18476 This config.status script is free software; the Free Software Foundation
18477 gives unlimited permission to copy, distribute and modify it."
18478 srcdir=$srcdir
18479 INSTALL="$INSTALL"
18480 _ACEOF
18481
18482 cat >>$CONFIG_STATUS <<\_ACEOF
18483 # If no file are specified by the user, then we need to provide default
18484 # value.  By we need to know if files were specified by the user.
18485 ac_need_defaults=:
18486 while test $# != 0
18487 do
18488   case $1 in
18489   --*=*)
18490     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18491     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18492     ac_shift=:
18493     ;;
18494   -*)
18495     ac_option=$1
18496     ac_optarg=$2
18497     ac_shift=shift
18498     ;;
18499   *) # This is not an option, so the user has probably given explicit
18500      # arguments.
18501      ac_option=$1
18502      ac_need_defaults=false;;
18503   esac
18504
18505   case $ac_option in
18506   # Handling of the options.
18507 _ACEOF
18508 cat >>$CONFIG_STATUS <<\_ACEOF
18509   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18510     ac_cs_recheck=: ;;
18511   --version | --vers* | -V )
18512     echo "$ac_cs_version"; exit 0 ;;
18513   --he | --h)
18514     # Conflict between --help and --header
18515     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18516 Try \`$0 --help' for more information." >&5
18517 echo "$as_me: error: ambiguous option: $1
18518 Try \`$0 --help' for more information." >&2;}
18519    { (exit 1); exit 1; }; };;
18520   --help | --hel | -h )
18521     echo "$ac_cs_usage"; exit 0 ;;
18522   --debug | --d* | -d )
18523     debug=: ;;
18524   --file | --fil | --fi | --f )
18525     $ac_shift
18526     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18527     ac_need_defaults=false;;
18528   --header | --heade | --head | --hea )
18529     $ac_shift
18530     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18531     ac_need_defaults=false;;
18532   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18533   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18534     ac_cs_silent=: ;;
18535
18536   # This is an error.
18537   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18538 Try \`$0 --help' for more information." >&5
18539 echo "$as_me: error: unrecognized option: $1
18540 Try \`$0 --help' for more information." >&2;}
18541    { (exit 1); exit 1; }; } ;;
18542
18543   *) ac_config_targets="$ac_config_targets $1" ;;
18544
18545   esac
18546   shift
18547 done
18548
18549 ac_configure_extra_args=
18550
18551 if $ac_cs_silent; then
18552   exec 6>/dev/null
18553   ac_configure_extra_args="$ac_configure_extra_args --silent"
18554 fi
18555
18556 _ACEOF
18557 cat >>$CONFIG_STATUS <<_ACEOF
18558 if \$ac_cs_recheck; then
18559   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18560   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18561 fi
18562
18563 _ACEOF
18564
18565
18566
18567
18568
18569 cat >>$CONFIG_STATUS <<\_ACEOF
18570 for ac_config_target in $ac_config_targets
18571 do
18572   case "$ac_config_target" in
18573   # Handling of arguments.
18574   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18575   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18576   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18577   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18578   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18579   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18580   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18581   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18582   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18583   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18584   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18585   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18586   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18587   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18588   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18589   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18590   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18591   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18592   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18593   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18594   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18595   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18596   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18597   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18598   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18599   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18600   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18601   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18602   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18603   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18604   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18605   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18606   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18607   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18608   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18609   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18610   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18611   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18612   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18613   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18614   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18615   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18616   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18617   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18618   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18619   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18620   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18621   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18622   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18623   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18624   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18625   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18626   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18627   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18628   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18629   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18630   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18631   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18632   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18633   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18634   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18635   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18636   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18637   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18638   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18639   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18640   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18641   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18642   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18643   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18644   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18645   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18646   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18647   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18648   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18649   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18650   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18651   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18652   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18653   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18654 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18655    { (exit 1); exit 1; }; };;
18656   esac
18657 done
18658
18659 # If the user did not use the arguments to specify the items to instantiate,
18660 # then the envvar interface is used.  Set only those that are not.
18661 # We use the long form for the default assignment because of an extremely
18662 # bizarre bug on SunOS 4.1.3.
18663 if $ac_need_defaults; then
18664   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18665   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18666   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18667 fi
18668
18669 # Have a temporary directory for convenience.  Make it in the build tree
18670 # simply because there is no reason to put it here, and in addition,
18671 # creating and moving files from /tmp can sometimes cause problems.
18672 # Create a temporary directory, and hook for its removal unless debugging.
18673 $debug ||
18674 {
18675   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18676   trap '{ (exit 1); exit 1; }' 1 2 13 15
18677 }
18678
18679 # Create a (secure) tmp directory for tmp files.
18680
18681 {
18682   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18683   test -n "$tmp" && test -d "$tmp"
18684 }  ||
18685 {
18686   tmp=./confstat$$-$RANDOM
18687   (umask 077 && mkdir $tmp)
18688 } ||
18689 {
18690    echo "$me: cannot create a temporary directory in ." >&2
18691    { (exit 1); exit 1; }
18692 }
18693
18694 _ACEOF
18695
18696 cat >>$CONFIG_STATUS <<_ACEOF
18697
18698 #
18699 # CONFIG_FILES section.
18700 #
18701
18702 # No need to generate the scripts if there are no CONFIG_FILES.
18703 # This happens for instance when ./config.status config.h
18704 if test -n "\$CONFIG_FILES"; then
18705   # Protect against being on the right side of a sed subst in config.status.
18706   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18707    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18708 s,@SHELL@,$SHELL,;t t
18709 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18710 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18711 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18712 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18713 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18714 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18715 s,@exec_prefix@,$exec_prefix,;t t
18716 s,@prefix@,$prefix,;t t
18717 s,@program_transform_name@,$program_transform_name,;t t
18718 s,@bindir@,$bindir,;t t
18719 s,@sbindir@,$sbindir,;t t
18720 s,@libexecdir@,$libexecdir,;t t
18721 s,@datadir@,$datadir,;t t
18722 s,@sysconfdir@,$sysconfdir,;t t
18723 s,@sharedstatedir@,$sharedstatedir,;t t
18724 s,@localstatedir@,$localstatedir,;t t
18725 s,@libdir@,$libdir,;t t
18726 s,@includedir@,$includedir,;t t
18727 s,@oldincludedir@,$oldincludedir,;t t
18728 s,@infodir@,$infodir,;t t
18729 s,@mandir@,$mandir,;t t
18730 s,@build_alias@,$build_alias,;t t
18731 s,@host_alias@,$host_alias,;t t
18732 s,@target_alias@,$target_alias,;t t
18733 s,@DEFS@,$DEFS,;t t
18734 s,@ECHO_C@,$ECHO_C,;t t
18735 s,@ECHO_N@,$ECHO_N,;t t
18736 s,@ECHO_T@,$ECHO_T,;t t
18737 s,@LIBS@,$LIBS,;t t
18738 s,@BUILD_DIR@,$BUILD_DIR,;t t
18739 s,@TRUEPRG@,$TRUEPRG,;t t
18740 s,@FALSEPRG@,$FALSEPRG,;t t
18741 s,@build@,$build,;t t
18742 s,@build_cpu@,$build_cpu,;t t
18743 s,@build_vendor@,$build_vendor,;t t
18744 s,@build_os@,$build_os,;t t
18745 s,@host@,$host,;t t
18746 s,@host_cpu@,$host_cpu,;t t
18747 s,@host_vendor@,$host_vendor,;t t
18748 s,@host_os@,$host_os,;t t
18749 s,@VERSION@,$VERSION,;t t
18750 s,@DATE@,$DATE,;t t
18751 s,@LSMDATE@,$LSMDATE,;t t
18752 s,@CC@,$CC,;t t
18753 s,@CFLAGS@,$CFLAGS,;t t
18754 s,@LDFLAGS@,$LDFLAGS,;t t
18755 s,@CPPFLAGS@,$CPPFLAGS,;t t
18756 s,@ac_ct_CC@,$ac_ct_CC,;t t
18757 s,@EXEEXT@,$EXEEXT,;t t
18758 s,@OBJEXT@,$OBJEXT,;t t
18759 s,@CXX@,$CXX,;t t
18760 s,@CXXFLAGS@,$CXXFLAGS,;t t
18761 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18762 s,@CPP@,$CPP,;t t
18763 s,@EGREP@,$EGREP,;t t
18764 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18765 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18766 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18767 s,@RANLIB@,$RANLIB,;t t
18768 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18769 s,@MV@,$MV,;t t
18770 s,@RM@,$RM,;t t
18771 s,@CP@,$CP,;t t
18772 s,@SED@,$SED,;t t
18773 s,@AWK@,$AWK,;t t
18774 s,@ECHO@,$ECHO,;t t
18775 s,@CMP@,$CMP,;t t
18776 s,@TBL@,$TBL,;t t
18777 s,@AR@,$AR,;t t
18778 s,@OPENSSL@,$OPENSSL,;t t
18779 s,@MTX@,$MTX,;t t
18780 s,@PKGCONFIG@,$PKGCONFIG,;t t
18781 s,@ARFLAGS@,$ARFLAGS,;t t
18782 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18783 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18784 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18785 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18786 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18787 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18788 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18789 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18790 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18791 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18792 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18793 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18794 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18795 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18796 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18797 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18798 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18799 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18800 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18801 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18802 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18803 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18804 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18805 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18806 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18807 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18808 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18809 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18810 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18811 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18812 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18813 s,@MSGFMT@,$MSGFMT,;t t
18814 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18815 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18816 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18817 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18818 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18819 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18820 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18821 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18822 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18823 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18824 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18825 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18826 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18827 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18828 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18829 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18830 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18831 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18832 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18833 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18834 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18835 s,@GNOME_DIR@,$GNOME_DIR,;t t
18836 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18837 s,@STATIC_FD@,$STATIC_FD,;t t
18838 s,@STATIC_SD@,$STATIC_SD,;t t
18839 s,@STATIC_DIR@,$STATIC_DIR,;t t
18840 s,@STATIC_CONS@,$STATIC_CONS,;t t
18841 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18842 s,@ALL_DIRS@,$ALL_DIRS,;t t
18843 s,@CONS_INC@,$CONS_INC,;t t
18844 s,@CONS_OBJ@,$CONS_OBJ,;t t
18845 s,@CONS_SRC@,$CONS_SRC,;t t
18846 s,@CONS_LIBS@,$CONS_LIBS,;t t
18847 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18848 s,@READLINE_SRC@,$READLINE_SRC,;t t
18849 s,@working_dir@,$working_dir,;t t
18850 s,@scriptdir@,$scriptdir,;t t
18851 s,@dump_email@,$dump_email,;t t
18852 s,@job_email@,$job_email,;t t
18853 s,@smtp_host@,$smtp_host,;t t
18854 s,@piddir@,$piddir,;t t
18855 s,@subsysdir@,$subsysdir,;t t
18856 s,@baseport@,$baseport,;t t
18857 s,@dir_port@,$dir_port,;t t
18858 s,@fd_port@,$fd_port,;t t
18859 s,@sd_port@,$sd_port,;t t
18860 s,@dir_password@,$dir_password,;t t
18861 s,@fd_password@,$fd_password,;t t
18862 s,@sd_password@,$sd_password,;t t
18863 s,@dir_user@,$dir_user,;t t
18864 s,@dir_group@,$dir_group,;t t
18865 s,@sd_user@,$sd_user,;t t
18866 s,@sd_group@,$sd_group,;t t
18867 s,@fd_user@,$fd_user,;t t
18868 s,@fd_group@,$fd_group,;t t
18869 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18870 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18871 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18872 s,@cats@,$cats,;t t
18873 s,@DB_NAME@,$DB_NAME,;t t
18874 s,@GETCONF@,$GETCONF,;t t
18875 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18876 s,@X_CFLAGS@,$X_CFLAGS,;t t
18877 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18878 s,@X_LIBS@,$X_LIBS,;t t
18879 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18880 s,@LIBOBJS@,$LIBOBJS,;t t
18881 s,@ALLOCA@,$ALLOCA,;t t
18882 s,@FDLIBS@,$FDLIBS,;t t
18883 s,@DEBUG@,$DEBUG,;t t
18884 s,@DINCLUDE@,$DINCLUDE,;t t
18885 s,@DLIB@,$DLIB,;t t
18886 s,@DB_LIBS@,$DB_LIBS,;t t
18887 s,@WCFLAGS@,$WCFLAGS,;t t
18888 s,@WLDFLAGS@,$WLDFLAGS,;t t
18889 s,@OBJLIST@,$OBJLIST,;t t
18890 s,@hostname@,$hostname,;t t
18891 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18892 s,@PSCMD@,$PSCMD,;t t
18893 s,@WIN32@,$WIN32,;t t
18894 s,@DISTNAME@,$DISTNAME,;t t
18895 s,@DISTVER@,$DISTVER,;t t
18896 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18897 /@MCOMMON@/r $MCOMMON
18898 s,@MCOMMON@,,;t t
18899 CEOF
18900
18901 _ACEOF
18902
18903   cat >>$CONFIG_STATUS <<\_ACEOF
18904   # Split the substitutions into bite-sized pieces for seds with
18905   # small command number limits, like on Digital OSF/1 and HP-UX.
18906   ac_max_sed_lines=48
18907   ac_sed_frag=1 # Number of current file.
18908   ac_beg=1 # First line for current file.
18909   ac_end=$ac_max_sed_lines # Line after last line for current file.
18910   ac_more_lines=:
18911   ac_sed_cmds=
18912   while $ac_more_lines; do
18913     if test $ac_beg -gt 1; then
18914       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18915     else
18916       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18917     fi
18918     if test ! -s $tmp/subs.frag; then
18919       ac_more_lines=false
18920     else
18921       # The purpose of the label and of the branching condition is to
18922       # speed up the sed processing (if there are no `@' at all, there
18923       # is no need to browse any of the substitutions).
18924       # These are the two extra sed commands mentioned above.
18925       (echo ':t
18926   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18927       if test -z "$ac_sed_cmds"; then
18928         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18929       else
18930         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18931       fi
18932       ac_sed_frag=`expr $ac_sed_frag + 1`
18933       ac_beg=$ac_end
18934       ac_end=`expr $ac_end + $ac_max_sed_lines`
18935     fi
18936   done
18937   if test -z "$ac_sed_cmds"; then
18938     ac_sed_cmds=cat
18939   fi
18940 fi # test -n "$CONFIG_FILES"
18941
18942 _ACEOF
18943 cat >>$CONFIG_STATUS <<\_ACEOF
18944 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18945   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18946   case $ac_file in
18947   - | *:- | *:-:* ) # input from stdin
18948         cat >$tmp/stdin
18949         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18951   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18952         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18953   * )   ac_file_in=$ac_file.in ;;
18954   esac
18955
18956   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18957   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959          X"$ac_file" : 'X\(//\)[^/]' \| \
18960          X"$ac_file" : 'X\(//\)$' \| \
18961          X"$ac_file" : 'X\(/\)' \| \
18962          .     : '\(.\)' 2>/dev/null ||
18963 echo X"$ac_file" |
18964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18965           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18966           /^X\(\/\/\)$/{ s//\1/; q; }
18967           /^X\(\/\).*/{ s//\1/; q; }
18968           s/.*/./; q'`
18969   { if $as_mkdir_p; then
18970     mkdir -p "$ac_dir"
18971   else
18972     as_dir="$ac_dir"
18973     as_dirs=
18974     while test ! -d "$as_dir"; do
18975       as_dirs="$as_dir $as_dirs"
18976       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978          X"$as_dir" : 'X\(//\)[^/]' \| \
18979          X"$as_dir" : 'X\(//\)$' \| \
18980          X"$as_dir" : 'X\(/\)' \| \
18981          .     : '\(.\)' 2>/dev/null ||
18982 echo X"$as_dir" |
18983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18985           /^X\(\/\/\)$/{ s//\1/; q; }
18986           /^X\(\/\).*/{ s//\1/; q; }
18987           s/.*/./; q'`
18988     done
18989     test ! -n "$as_dirs" || mkdir $as_dirs
18990   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18992    { (exit 1); exit 1; }; }; }
18993
18994   ac_builddir=.
18995
18996 if test "$ac_dir" != .; then
18997   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18998   # A "../" for each directory in $ac_dir_suffix.
18999   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19000 else
19001   ac_dir_suffix= ac_top_builddir=
19002 fi
19003
19004 case $srcdir in
19005   .)  # No --srcdir option.  We are building in place.
19006     ac_srcdir=.
19007     if test -z "$ac_top_builddir"; then
19008        ac_top_srcdir=.
19009     else
19010        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19011     fi ;;
19012   [\\/]* | ?:[\\/]* )  # Absolute path.
19013     ac_srcdir=$srcdir$ac_dir_suffix;
19014     ac_top_srcdir=$srcdir ;;
19015   *) # Relative path.
19016     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19017     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19018 esac
19019 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19020 # absolute.
19021 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19022 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19023 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19024 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19025
19026
19027   case $INSTALL in
19028   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19029   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19030   esac
19031
19032   if test x"$ac_file" != x-; then
19033     { echo "$as_me:$LINENO: creating $ac_file" >&5
19034 echo "$as_me: creating $ac_file" >&6;}
19035     rm -f "$ac_file"
19036   fi
19037   # Let's still pretend it is `configure' which instantiates (i.e., don't
19038   # use $as_me), people would be surprised to read:
19039   #    /* config.h.  Generated by config.status.  */
19040   if test x"$ac_file" = x-; then
19041     configure_input=
19042   else
19043     configure_input="$ac_file.  "
19044   fi
19045   configure_input=$configure_input"Generated from `echo $ac_file_in |
19046                                      sed 's,.*/,,'` by configure."
19047
19048   # First look for the input files in the build tree, otherwise in the
19049   # src tree.
19050   ac_file_inputs=`IFS=:
19051     for f in $ac_file_in; do
19052       case $f in
19053       -) echo $tmp/stdin ;;
19054       [\\/$]*)
19055          # Absolute (can't be DOS-style, as IFS=:)
19056          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19057 echo "$as_me: error: cannot find input file: $f" >&2;}
19058    { (exit 1); exit 1; }; }
19059          echo $f;;
19060       *) # Relative
19061          if test -f "$f"; then
19062            # Build tree
19063            echo $f
19064          elif test -f "$srcdir/$f"; then
19065            # Source tree
19066            echo $srcdir/$f
19067          else
19068            # /dev/null tree
19069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19070 echo "$as_me: error: cannot find input file: $f" >&2;}
19071    { (exit 1); exit 1; }; }
19072          fi;;
19073       esac
19074     done` || { (exit 1); exit 1; }
19075 _ACEOF
19076 cat >>$CONFIG_STATUS <<_ACEOF
19077   sed "$ac_vpsub
19078 $extrasub
19079 _ACEOF
19080 cat >>$CONFIG_STATUS <<\_ACEOF
19081 :t
19082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19083 s,@configure_input@,$configure_input,;t t
19084 s,@srcdir@,$ac_srcdir,;t t
19085 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19086 s,@top_srcdir@,$ac_top_srcdir,;t t
19087 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19088 s,@builddir@,$ac_builddir,;t t
19089 s,@abs_builddir@,$ac_abs_builddir,;t t
19090 s,@top_builddir@,$ac_top_builddir,;t t
19091 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19092 s,@INSTALL@,$ac_INSTALL,;t t
19093 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19094   rm -f $tmp/stdin
19095   if test x"$ac_file" != x-; then
19096     mv $tmp/out $ac_file
19097   else
19098     cat $tmp/out
19099     rm -f $tmp/out
19100   fi
19101
19102 done
19103 _ACEOF
19104 cat >>$CONFIG_STATUS <<\_ACEOF
19105
19106 #
19107 # CONFIG_HEADER section.
19108 #
19109
19110 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19111 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19112 #
19113 # ac_d sets the value in "#define NAME VALUE" lines.
19114 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19115 ac_dB='[        ].*$,\1#\2'
19116 ac_dC=' '
19117 ac_dD=',;t'
19118 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19119 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19120 ac_uB='$,\1#\2define\3'
19121 ac_uC=' '
19122 ac_uD=',;t'
19123
19124 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19125   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19126   case $ac_file in
19127   - | *:- | *:-:* ) # input from stdin
19128         cat >$tmp/stdin
19129         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19130         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19131   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19132         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19133   * )   ac_file_in=$ac_file.in ;;
19134   esac
19135
19136   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19137 echo "$as_me: creating $ac_file" >&6;}
19138
19139   # First look for the input files in the build tree, otherwise in the
19140   # src tree.
19141   ac_file_inputs=`IFS=:
19142     for f in $ac_file_in; do
19143       case $f in
19144       -) echo $tmp/stdin ;;
19145       [\\/$]*)
19146          # Absolute (can't be DOS-style, as IFS=:)
19147          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19148 echo "$as_me: error: cannot find input file: $f" >&2;}
19149    { (exit 1); exit 1; }; }
19150          echo $f;;
19151       *) # Relative
19152          if test -f "$f"; then
19153            # Build tree
19154            echo $f
19155          elif test -f "$srcdir/$f"; then
19156            # Source tree
19157            echo $srcdir/$f
19158          else
19159            # /dev/null tree
19160            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19161 echo "$as_me: error: cannot find input file: $f" >&2;}
19162    { (exit 1); exit 1; }; }
19163          fi;;
19164       esac
19165     done` || { (exit 1); exit 1; }
19166   # Remove the trailing spaces.
19167   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19168
19169 _ACEOF
19170
19171 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19172 # `conftest.undefs', that substitutes the proper values into
19173 # config.h.in to produce config.h.  The first handles `#define'
19174 # templates, and the second `#undef' templates.
19175 # And first: Protect against being on the right side of a sed subst in
19176 # config.status.  Protect against being in an unquoted here document
19177 # in config.status.
19178 rm -f conftest.defines conftest.undefs
19179 # Using a here document instead of a string reduces the quoting nightmare.
19180 # Putting comments in sed scripts is not portable.
19181 #
19182 # `end' is used to avoid that the second main sed command (meant for
19183 # 0-ary CPP macros) applies to n-ary macro definitions.
19184 # See the Autoconf documentation for `clear'.
19185 cat >confdef2sed.sed <<\_ACEOF
19186 s/[\\&,]/\\&/g
19187 s,[\\$`],\\&,g
19188 t clear
19189 : clear
19190 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19191 t end
19192 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19193 : end
19194 _ACEOF
19195 # If some macros were called several times there might be several times
19196 # the same #defines, which is useless.  Nevertheless, we may not want to
19197 # sort them, since we want the *last* AC-DEFINE to be honored.
19198 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19199 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19200 rm -f confdef2sed.sed
19201
19202 # This sed command replaces #undef with comments.  This is necessary, for
19203 # example, in the case of _POSIX_SOURCE, which is predefined and required
19204 # on some systems where configure will not decide to define it.
19205 cat >>conftest.undefs <<\_ACEOF
19206 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19207 _ACEOF
19208
19209 # Break up conftest.defines because some shells have a limit on the size
19210 # of here documents, and old seds have small limits too (100 cmds).
19211 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19212 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19213 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19214 echo '  :' >>$CONFIG_STATUS
19215 rm -f conftest.tail
19216 while grep . conftest.defines >/dev/null
19217 do
19218   # Write a limited-size here document to $tmp/defines.sed.
19219   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19220   # Speed up: don't consider the non `#define' lines.
19221   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19222   # Work around the forget-to-reset-the-flag bug.
19223   echo 't clr' >>$CONFIG_STATUS
19224   echo ': clr' >>$CONFIG_STATUS
19225   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19226   echo 'CEOF
19227   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19228   rm -f $tmp/in
19229   mv $tmp/out $tmp/in
19230 ' >>$CONFIG_STATUS
19231   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19232   rm -f conftest.defines
19233   mv conftest.tail conftest.defines
19234 done
19235 rm -f conftest.defines
19236 echo '  fi # grep' >>$CONFIG_STATUS
19237 echo >>$CONFIG_STATUS
19238
19239 # Break up conftest.undefs because some shells have a limit on the size
19240 # of here documents, and old seds have small limits too (100 cmds).
19241 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19242 rm -f conftest.tail
19243 while grep . conftest.undefs >/dev/null
19244 do
19245   # Write a limited-size here document to $tmp/undefs.sed.
19246   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19247   # Speed up: don't consider the non `#undef'
19248   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19249   # Work around the forget-to-reset-the-flag bug.
19250   echo 't clr' >>$CONFIG_STATUS
19251   echo ': clr' >>$CONFIG_STATUS
19252   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19253   echo 'CEOF
19254   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19255   rm -f $tmp/in
19256   mv $tmp/out $tmp/in
19257 ' >>$CONFIG_STATUS
19258   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19259   rm -f conftest.undefs
19260   mv conftest.tail conftest.undefs
19261 done
19262 rm -f conftest.undefs
19263
19264 cat >>$CONFIG_STATUS <<\_ACEOF
19265   # Let's still pretend it is `configure' which instantiates (i.e., don't
19266   # use $as_me), people would be surprised to read:
19267   #    /* config.h.  Generated by config.status.  */
19268   if test x"$ac_file" = x-; then
19269     echo "/* Generated by configure.  */" >$tmp/config.h
19270   else
19271     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19272   fi
19273   cat $tmp/in >>$tmp/config.h
19274   rm -f $tmp/in
19275   if test x"$ac_file" != x-; then
19276     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19277       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19278 echo "$as_me: $ac_file is unchanged" >&6;}
19279     else
19280       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282          X"$ac_file" : 'X\(//\)[^/]' \| \
19283          X"$ac_file" : 'X\(//\)$' \| \
19284          X"$ac_file" : 'X\(/\)' \| \
19285          .     : '\(.\)' 2>/dev/null ||
19286 echo X"$ac_file" |
19287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19289           /^X\(\/\/\)$/{ s//\1/; q; }
19290           /^X\(\/\).*/{ s//\1/; q; }
19291           s/.*/./; q'`
19292       { if $as_mkdir_p; then
19293     mkdir -p "$ac_dir"
19294   else
19295     as_dir="$ac_dir"
19296     as_dirs=
19297     while test ! -d "$as_dir"; do
19298       as_dirs="$as_dir $as_dirs"
19299       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19301          X"$as_dir" : 'X\(//\)[^/]' \| \
19302          X"$as_dir" : 'X\(//\)$' \| \
19303          X"$as_dir" : 'X\(/\)' \| \
19304          .     : '\(.\)' 2>/dev/null ||
19305 echo X"$as_dir" |
19306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19308           /^X\(\/\/\)$/{ s//\1/; q; }
19309           /^X\(\/\).*/{ s//\1/; q; }
19310           s/.*/./; q'`
19311     done
19312     test ! -n "$as_dirs" || mkdir $as_dirs
19313   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19315    { (exit 1); exit 1; }; }; }
19316
19317       rm -f $ac_file
19318       mv $tmp/config.h $ac_file
19319     fi
19320   else
19321     cat $tmp/config.h
19322     rm -f $tmp/config.h
19323   fi
19324 done
19325 _ACEOF
19326 cat >>$CONFIG_STATUS <<\_ACEOF
19327
19328 #
19329 # CONFIG_COMMANDS section.
19330 #
19331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19332   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19333   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19334   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336          X"$ac_dest" : 'X\(//\)[^/]' \| \
19337          X"$ac_dest" : 'X\(//\)$' \| \
19338          X"$ac_dest" : 'X\(/\)' \| \
19339          .     : '\(.\)' 2>/dev/null ||
19340 echo X"$ac_dest" |
19341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19342           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19343           /^X\(\/\/\)$/{ s//\1/; q; }
19344           /^X\(\/\).*/{ s//\1/; q; }
19345           s/.*/./; q'`
19346   ac_builddir=.
19347
19348 if test "$ac_dir" != .; then
19349   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19350   # A "../" for each directory in $ac_dir_suffix.
19351   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19352 else
19353   ac_dir_suffix= ac_top_builddir=
19354 fi
19355
19356 case $srcdir in
19357   .)  # No --srcdir option.  We are building in place.
19358     ac_srcdir=.
19359     if test -z "$ac_top_builddir"; then
19360        ac_top_srcdir=.
19361     else
19362        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19363     fi ;;
19364   [\\/]* | ?:[\\/]* )  # Absolute path.
19365     ac_srcdir=$srcdir$ac_dir_suffix;
19366     ac_top_srcdir=$srcdir ;;
19367   *) # Relative path.
19368     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19369     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19370 esac
19371 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19372 # absolute.
19373 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19374 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19375 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19376 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19377
19378
19379   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19380 echo "$as_me: executing $ac_dest commands" >&6;}
19381   case $ac_dest in
19382     default ) (echo "Doing make of dependencies"; make depend;)
19383  ;;
19384   esac
19385 done
19386 _ACEOF
19387
19388 cat >>$CONFIG_STATUS <<\_ACEOF
19389
19390 { (exit 0); exit 0; }
19391 _ACEOF
19392 chmod +x $CONFIG_STATUS
19393 ac_clean_files=$ac_clean_files_save
19394
19395
19396 # configure is writing to config.log, and then calls config.status.
19397 # config.status does its own redirection, appending to config.log.
19398 # Unfortunately, on DOS this fails, as config.log is still kept open
19399 # by configure, so config.status won't be able to write to it; its
19400 # output is simply discarded.  So we exec the FD to /dev/null,
19401 # effectively closing config.log, so it can be properly (re)opened and
19402 # appended to by config.status.  When coming back to configure, we
19403 # need to make the FD available again.
19404 if test "$no_create" != yes; then
19405   ac_cs_success=:
19406   ac_config_status_args=
19407   test "$silent" = yes &&
19408     ac_config_status_args="$ac_config_status_args --quiet"
19409   exec 5>/dev/null
19410   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19411   exec 5>>config.log
19412   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19413   # would make configure fail if this is the last instruction.
19414   $ac_cs_success || { (exit 1); exit 1; }
19415 fi
19416
19417
19418 cd scripts
19419 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19420 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19421 cd ..
19422
19423 c=src/cats
19424
19425 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19426 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19427
19428 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19429 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19430
19431 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19432 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19433
19434 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19435 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19436
19437 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19438 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19439
19440 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19441 chmod 755 $c/sqlite
19442 chmod 755 $c/mysql
19443
19444 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19445    largefile_support="yes"
19446 fi
19447
19448 #
19449 # A whole lot of hand springs to get the compiler version.
19450 #  This is because gcc changed the output in version 3.0
19451 #
19452 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19453 if test "x${CCVERSION}" = "x" ; then
19454   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19455 fi
19456 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19457 if test x"${CXXVERSION}" = x ; then
19458   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19459 fi
19460
19461 if test "x${subsysdir}" = "x${sbindir}" ; then
19462    echo " "
19463    echo " "
19464    echo "You have set --sbindir and --with-subsys-dir"
19465    echo "  both equal to: ${subsysdir} "
19466    echo "  This is not permitted. Please reconfigure."
19467    echo "Aborting configuration ..."
19468    echo " "
19469    echo " "
19470    exit 1
19471 fi
19472
19473 echo "
19474 Configuration on `date`:
19475
19476   Host:                       $host -- ${DISTNAME} ${DISTVER}
19477   Bacula version:             ${VERSION} (${DATE})
19478   Source code location:       ${srcdir}
19479   Install binaries:           ${sbindir}
19480   Install config files:       ${sysconfdir}
19481   Scripts directory:          ${scriptdir}
19482   Working directory:          ${working_dir}
19483   PID directory:              ${piddir}
19484   Subsys directory:           ${subsysdir}
19485   C Compiler:                 ${CC} ${CCVERSION}
19486   C++ Compiler:               ${CXX} ${CXXVERSION}
19487   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19488   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19489   Libraries:                  ${LIBS}
19490   Statically Linked Tools:    ${support_static_tools}
19491   Statically Linked FD:       ${support_static_fd}
19492   Statically Linked SD:       ${support_static_sd}
19493   Statically Linked DIR:      ${support_static_dir}
19494   Statically Linked CONS:     ${support_static_cons}
19495   Database type:              ${db_name}
19496   Database lib:               ${DB_LIBS}
19497
19498   Job Output Email:           ${job_email}
19499   Traceback Email:            ${dump_email}
19500   SMTP Host Address:          ${smtp_host}
19501
19502   Director Port:              ${dir_port}
19503   File daemon Port:           ${fd_port}
19504   Storage daemon Port:        ${sd_port}
19505
19506   Director User:              ${dir_user}
19507   Director Group:             ${dir_group}
19508   Storage Daemon User:        ${sd_user}
19509   Storage DaemonGroup:        ${sd_group}
19510   File Daemon User:           ${fd_user}
19511   File Daemon Group:          ${fd_group}
19512
19513   SQL binaries Directory      ${SQL_BINDIR}
19514
19515   Large file support:         $largefile_support
19516   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19517   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19518   TCP Wrappers support:       ${TCPW_MSG}
19519   ZLIB support:               ${have_zlib}
19520   enable-smartalloc:          ${support_smartalloc}
19521   enable-gnome:               ${support_gnome} ${gnome_version}
19522   client-only:                ${build_client_only}
19523
19524   " > config.out
19525
19526 cat config.out
19527
19528 # old stuff
19529 # cweb support:               ${got_cweb} ${CWEB_SRC}
19530 # gmp support:                ${got_gmp} ${GMP_SRC}