]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add PostgreSQL support droppped in revision 1.88.
[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 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
898 Which DBMS do you want to use (please select only one):
899   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
900                           install directory, default is to search through
901                           a number of common places for the MySQL files.
902
903 Which DBMS do you want to use (please select only one):
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 Which DBMS do you want to use (please select only one):
909   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
910                           install directory, default is to search through
911                           a number of common places for the SQLite files.
912   --with-x                use the X Window System
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CXX         C++ compiler command
922   CXXFLAGS    C++ compiler flags
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 _ACEOF
929 fi
930
931 if test "$ac_init_help" = "recursive"; then
932   # If there are subdirs, report their specific --help.
933   ac_popdir=`pwd`
934   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935     test -d $ac_dir || continue
936     ac_builddir=.
937
938 if test "$ac_dir" != .; then
939   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940   # A "../" for each directory in $ac_dir_suffix.
941   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 else
943   ac_dir_suffix= ac_top_builddir=
944 fi
945
946 case $srcdir in
947   .)  # No --srcdir option.  We are building in place.
948     ac_srcdir=.
949     if test -z "$ac_top_builddir"; then
950        ac_top_srcdir=.
951     else
952        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953     fi ;;
954   [\\/]* | ?:[\\/]* )  # Absolute path.
955     ac_srcdir=$srcdir$ac_dir_suffix;
956     ac_top_srcdir=$srcdir ;;
957   *) # Relative path.
958     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959     ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 esac
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 # absolute.
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core core.* *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 BUILD_DIR=`pwd`
1332 cd ..
1333 TOP_DIR=`pwd`
1334 cd ${BUILD_DIR}
1335
1336 ac_aux_dir=
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338   if test -f $ac_dir/install-sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install-sh -c"
1341     break
1342   elif test -f $ac_dir/install.sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install.sh -c"
1345     break
1346   elif test -f $ac_dir/shtool; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/shtool install -c"
1349     break
1350   fi
1351 done
1352 if test -z "$ac_aux_dir"; then
1353   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
1361           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1362
1363
1364
1365
1366
1367 for ac_prog in true
1368 do
1369   # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374   echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376   case $TRUEPRG in
1377   [\\/]* | ?:[\\/]*)
1378   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379   ;;
1380   *)
1381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   for ac_exec_ext in '' $ac_executable_extensions; do
1387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390     break 2
1391   fi
1392 done
1393 done
1394
1395   ;;
1396 esac
1397 fi
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1399
1400 if test -n "$TRUEPRG"; then
1401   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406 fi
1407
1408   test -n "$TRUEPRG" && break
1409 done
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1411
1412 for ac_prog in false
1413 do
1414   # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   case $FALSEPRG in
1422   [\\/]* | ?:[\\/]*)
1423   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424   ;;
1425   *)
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   for ac_exec_ext in '' $ac_executable_extensions; do
1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435     break 2
1436   fi
1437 done
1438 done
1439
1440   ;;
1441 esac
1442 fi
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1444
1445 if test -n "$FALSEPRG"; then
1446   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1448 else
1449   echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453   test -n "$FALSEPRG" && break
1454 done
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1456
1457
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471   ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475    { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1484 build=$ac_cv_build
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497   ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 fi
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1506 host=$ac_cv_host
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512
1513 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 echo "configuring for bacula $VERSION ($DATE)"
1517
1518
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554   echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_CC"; then
1563   ac_ct_CC=$CC
1564   # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$ac_ct_CC"; then
1572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_ac_ct_CC="gcc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   CC=$ac_ct_CC
1600 else
1601   CC="$ac_cv_prog_CC"
1602 fi
1603
1604 if test -z "$CC"; then
1605   if test -n "$ac_tool_prefix"; then
1606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$CC"; then
1614   ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_CC="${ac_tool_prefix}cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643   ac_ct_CC=$CC
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   CC=$ac_ct_CC
1680 else
1681   CC="$ac_cv_prog_CC"
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$CC"; then
1694   ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696   ac_prog_rejected=no
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705        ac_prog_rejected=yes
1706        continue
1707      fi
1708     ac_cv_prog_CC="cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# != 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725   fi
1726 fi
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   for ac_prog in cl
1742   do
1743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778     test -n "$CC" && break
1779   done
1780 fi
1781 if test -z "$CC"; then
1782   ac_ct_CC=$CC
1783   for ac_prog in cl
1784 do
1785   # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   if test -n "$ac_ct_CC"; then
1793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798   IFS=$as_save_IFS
1799   test -z "$as_dir" && as_dir=.
1800   for ac_exec_ext in '' $ac_executable_extensions; do
1801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802     ac_cv_prog_ac_ct_CC="$ac_prog"
1803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804     break 2
1805   fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   test -n "$ac_ct_CC" && break
1821 done
1822
1823   CC=$ac_ct_CC
1824 fi
1825
1826 fi
1827
1828
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833    { (exit 1); exit 1; }; }
1834
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837      "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840   (eval $ac_compiler --version </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845   (eval $ac_compiler -v </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850   (eval $ac_compiler -V </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1857 /* confdefs.h.  */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h.  */
1862
1863 int
1864 main ()
1865 {
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1875 # of exeext.
1876 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1877 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880   (eval $ac_link_default) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }; then
1884   # Find the output, starting from the most likely.  This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # resort.
1887
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 ac_cv_exeext=
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 do
1894   test -f "$ac_file" || continue
1895   case $ac_file in
1896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897         ;;
1898     conftest.$ac_ext )
1899         # This is the source file.
1900         ;;
1901     [ab].out )
1902         # We found the default executable, but exeext='' is most
1903         # certainly right.
1904         break;;
1905     *.* )
1906         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907         # FIXME: I believe we export ac_cv_exeext for Libtool,
1908         # but it would be cool to find out if it's true.  Does anybody
1909         # maintain Libtool? --akim.
1910         export ac_cv_exeext
1911         break;;
1912     * )
1913         break;;
1914   esac
1915 done
1916 else
1917   echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924    { (exit 77); exit 77; }; }
1925 fi
1926
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1930
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938   if { ac_try='./$ac_file'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944     cross_compiling=no
1945   else
1946     if test "$cross_compiling" = maybe; then
1947         cross_compiling=yes
1948     else
1949         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956     fi
1957   fi
1958 fi
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run.  If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1970
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974   (eval $ac_link) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }; then
1978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 # `rm'.
1982 for ac_file in conftest.exe conftest conftest.*; do
1983   test -f "$ac_file" || continue
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987           export ac_cv_exeext
1988           break;;
1989     * ) break;;
1990   esac
1991 done
1992 else
1993   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2006 ac_exeext=$EXEEXT
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 rm -f conftest.o conftest.obj
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030   (eval $ac_compile) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }; then
2034   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035   case $ac_file in
2036     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2037     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038        break;;
2039   esac
2040 done
2041 else
2042   echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2055 echo "${ECHO_T}$ac_cv_objext" >&6
2056 OBJEXT=$ac_cv_objext
2057 ac_objext=$OBJEXT
2058 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -s conftest.$ac_objext'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; }; then
2094   ac_compiler_gnu=yes
2095 else
2096   echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_compiler_gnu=no
2100 fi
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2103
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2107 GCC=`test $ac_compiler_gnu = yes && echo yes`
2108 ac_test_CFLAGS=${CFLAGS+set}
2109 ac_save_CFLAGS=$CFLAGS
2110 CFLAGS="-g"
2111 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2112 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2113 if test "${ac_cv_prog_cc_g+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 /* confdefs.h.  */
2119 _ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h.  */
2123
2124 int
2125 main ()
2126 {
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134   (eval $ac_compile) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -s conftest.$ac_objext'
2139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140   (eval $ac_try) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; }; then
2144   ac_cv_prog_cc_g=yes
2145 else
2146   echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_cv_prog_cc_g=no
2150 fi
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2155 if test "$ac_test_CFLAGS" = set; then
2156   CFLAGS=$ac_save_CFLAGS
2157 elif test $ac_cv_prog_cc_g = yes; then
2158   if test "$GCC" = yes; then
2159     CFLAGS="-g -O2"
2160   else
2161     CFLAGS="-g"
2162   fi
2163 else
2164   if test "$GCC" = yes; then
2165     CFLAGS="-O2"
2166   else
2167     CFLAGS=
2168   fi
2169 fi
2170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   ac_cv_prog_cc_stdc=no
2176 ac_save_CC=$CC
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184 #include <stdarg.h>
2185 #include <stdio.h>
2186 #include <sys/types.h>
2187 #include <sys/stat.h>
2188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2189 struct buf { int x; };
2190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2192      char **p;
2193      int i;
2194 {
2195   return p[i];
2196 }
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2198 {
2199   char *s;
2200   va_list v;
2201   va_start (v,p);
2202   s = g (p, va_arg (v,int));
2203   va_end (v);
2204   return s;
2205 }
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2210 int argc;
2211 char **argv;
2212 int
2213 main ()
2214 {
2215 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 # Don't try gcc -ansi; that turns off useful extensions and
2221 # breaks some systems' header files.
2222 # AIX                   -qlanglvl=ansi
2223 # Ultrix and OSF/1      -std1
2224 # HP-UX 10.20 and later -Ae
2225 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2226 # SVR4                  -Xc -D__EXTENSIONS__
2227 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2228 do
2229   CC="$ac_save_CC $ac_arg"
2230   rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); } &&
2236          { ac_try='test -s conftest.$ac_objext'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   ac_cv_prog_cc_stdc=$ac_arg
2243 break
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 fi
2249 rm -f conftest.$ac_objext
2250 done
2251 rm -f conftest.$ac_ext conftest.$ac_objext
2252 CC=$ac_save_CC
2253
2254 fi
2255
2256 case "x$ac_cv_prog_cc_stdc" in
2257   x|xno)
2258     echo "$as_me:$LINENO: result: none needed" >&5
2259 echo "${ECHO_T}none needed" >&6 ;;
2260   *)
2261     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2263     CC="$CC $ac_cv_prog_cc_stdc" ;;
2264 esac
2265
2266 # Some people use a C++ compiler to compile C.  Since we use `exit',
2267 # in C++ we need to declare it.  In case someone uses the same compiler
2268 # for both compiling C and C++ we need to have the C++ compiler decide
2269 # the declaration of exit, since it's the most demanding environment.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #ifndef __cplusplus
2272   choke me
2273 #endif
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   for ac_declaration in \
2288    ''\
2289    '#include <stdlib.h>' \
2290    'extern "C" void std::exit (int) throw (); using std::exit;' \
2291    'extern "C" void std::exit (int); using std::exit;' \
2292    'extern "C" void exit (int) throw ();' \
2293    'extern "C" void exit (int);' \
2294    'void exit (int);'
2295 do
2296   cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303 #include <stdlib.h>
2304 $ac_declaration
2305 int
2306 main ()
2307 {
2308 exit (42);
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -s conftest.$ac_objext'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325   :
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 continue
2331 fi
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333   cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   break
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371   echo '#ifdef __cplusplus' >>confdefs.h
2372   echo $ac_declaration      >>confdefs.h
2373   echo '#endif'             >>confdefs.h
2374 fi
2375
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388 ac_ext=cc
2389 ac_cpp='$CXXCPP $CPPFLAGS'
2390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2395   do
2396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CXX+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$CXX"; then
2404   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 CXX=$ac_cv_prog_CXX
2423 if test -n "$CXX"; then
2424   echo "$as_me:$LINENO: result: $CXX" >&5
2425 echo "${ECHO_T}$CXX" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431     test -n "$CXX" && break
2432   done
2433 fi
2434 if test -z "$CXX"; then
2435   ac_ct_CXX=$CXX
2436   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2437 do
2438   # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CXX"; then
2446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_ac_ct_CXX="$ac_prog"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461
2462 fi
2463 fi
2464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2465 if test -n "$ac_ct_CXX"; then
2466   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2467 echo "${ECHO_T}$ac_ct_CXX" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473   test -n "$ac_ct_CXX" && break
2474 done
2475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2476
2477   CXX=$ac_ct_CXX
2478 fi
2479
2480
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483      "checking for C++ compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486   (eval $ac_compiler --version </dev/null >&5) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491   (eval $ac_compiler -v </dev/null >&5) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496   (eval $ac_compiler -V </dev/null >&5) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }
2500
2501 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2502 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2503 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517 #ifndef __GNUC__
2518        choke me
2519 #endif
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2550 GXX=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CXXFLAGS=${CXXFLAGS+set}
2552 ac_save_CXXFLAGS=$CXXFLAGS
2553 CXXFLAGS="-g"
2554 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cxx_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566
2567 int
2568 main ()
2569 {
2570
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577   (eval $ac_compile) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cxx_g=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_cv_prog_cxx_g=no
2593 fi
2594 rm -f conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2598 if test "$ac_test_CXXFLAGS" = set; then
2599   CXXFLAGS=$ac_save_CXXFLAGS
2600 elif test $ac_cv_prog_cxx_g = yes; then
2601   if test "$GXX" = yes; then
2602     CXXFLAGS="-g -O2"
2603   else
2604     CXXFLAGS="-g"
2605   fi
2606 else
2607   if test "$GXX" = yes; then
2608     CXXFLAGS="-O2"
2609   else
2610     CXXFLAGS=
2611   fi
2612 fi
2613 for ac_declaration in \
2614    ''\
2615    '#include <stdlib.h>' \
2616    'extern "C" void std::exit (int) throw (); using std::exit;' \
2617    'extern "C" void std::exit (int); using std::exit;' \
2618    'extern "C" void exit (int) throw ();' \
2619    'extern "C" void exit (int);' \
2620    'void exit (int);'
2621 do
2622   cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #include <stdlib.h>
2630 $ac_declaration
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   :
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 continue
2657 fi
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659   cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2661 /* confdefs.h.  */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h.  */
2666 $ac_declaration
2667 int
2668 main ()
2669 {
2670 exit (42);
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677   (eval $ac_compile) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   break
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 fi
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2694 done
2695 rm -f conftest*
2696 if test -n "$ac_declaration"; then
2697   echo '#ifdef __cplusplus' >>confdefs.h
2698   echo $ac_declaration      >>confdefs.h
2699   echo '#endif'             >>confdefs.h
2700 fi
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708 if test "x$CC" != xcc; then
2709   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2710 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2711 else
2712   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2713 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2714 fi
2715 set dummy $CC; ac_cc=`echo $2 |
2716                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2717 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727
2728 int
2729 main ()
2730 {
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 # Make sure it works both with $CC and with simple cc.
2737 # We do the test twice because some compilers refuse to overwrite an
2738 # existing .o file with -o, though they will create one.
2739 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2740 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); };
2750 then
2751   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2752   if test "x$CC" != xcc; then
2753     # Test first that cc exists at all.
2754     if { ac_try='cc -c conftest.$ac_ext >&5'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); };
2771       then
2772         # cc works too.
2773         :
2774       else
2775         # cc exists but doesn't like -o.
2776         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2777       fi
2778     fi
2779   fi
2780 else
2781   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2782 fi
2783 rm -f conftest*
2784
2785 fi
2786 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2787   echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2789 else
2790   echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2792
2793 cat >>confdefs.h <<\_ACEOF
2794 #define NO_MINUS_C_MINUS_O 1
2795 _ACEOF
2796
2797 fi
2798
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2806 # On Suns, sometimes $CPP names a directory.
2807 if test -n "$CPP" && test -d "$CPP"; then
2808   CPP=
2809 fi
2810 if test -z "$CPP"; then
2811   if test "${ac_cv_prog_CPP+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814       # Double quotes because CPP needs to be expanded
2815     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2816     do
2817       ac_preproc_ok=false
2818 for ac_c_preproc_warn_flag in '' yes
2819 do
2820   # Use a header file that comes with gcc, so configuring glibc
2821   # with a fresh cross-compiler works.
2822   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823   # <limits.h> exists even on freestanding compilers.
2824   # On the NeXT, cc -E runs the code through the compiler's parser,
2825   # not just through cpp. "Syntax error" is here to catch this case.
2826   cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833 #ifdef __STDC__
2834 # include <limits.h>
2835 #else
2836 # include <assert.h>
2837 #endif
2838                      Syntax error
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } >/dev/null; then
2848   if test -s conftest.err; then
2849     ac_cpp_err=$ac_c_preproc_warn_flag
2850   else
2851     ac_cpp_err=
2852   fi
2853 else
2854   ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857   :
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862   # Broken: fails on valid input.
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_ext
2866
2867   # OK, works on sane cases.  Now check whether non-existent headers
2868   # can be detected and how.
2869   cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 #include <ac_nonexistent.h>
2877 _ACEOF
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } >/dev/null; then
2886   if test -s conftest.err; then
2887     ac_cpp_err=$ac_c_preproc_warn_flag
2888   else
2889     ac_cpp_err=
2890   fi
2891 else
2892   ac_cpp_err=yes
2893 fi
2894 if test -z "$ac_cpp_err"; then
2895   # Broken: success on invalid input.
2896 continue
2897 else
2898   echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901   # Passes both tests.
2902 ac_preproc_ok=:
2903 break
2904 fi
2905 rm -f conftest.err conftest.$ac_ext
2906
2907 done
2908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909 rm -f conftest.err conftest.$ac_ext
2910 if $ac_preproc_ok; then
2911   break
2912 fi
2913
2914     done
2915     ac_cv_prog_CPP=$CPP
2916
2917 fi
2918   CPP=$ac_cv_prog_CPP
2919 else
2920   ac_cv_prog_CPP=$CPP
2921 fi
2922 echo "$as_me:$LINENO: result: $CPP" >&5
2923 echo "${ECHO_T}$CPP" >&6
2924 ac_preproc_ok=false
2925 for ac_c_preproc_warn_flag in '' yes
2926 do
2927   # Use a header file that comes with gcc, so configuring glibc
2928   # with a fresh cross-compiler works.
2929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2930   # <limits.h> exists even on freestanding compilers.
2931   # On the NeXT, cc -E runs the code through the compiler's parser,
2932   # not just through cpp. "Syntax error" is here to catch this case.
2933   cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957   else
2958     ac_cpp_err=
2959   fi
2960 else
2961   ac_cpp_err=yes
2962 fi
2963 if test -z "$ac_cpp_err"; then
2964   :
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969   # Broken: fails on valid input.
2970 continue
2971 fi
2972 rm -f conftest.err conftest.$ac_ext
2973
2974   # OK, works on sane cases.  Now check whether non-existent headers
2975   # can be detected and how.
2976   cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995   else
2996     ac_cpp_err=
2997   fi
2998 else
2999   ac_cpp_err=yes
3000 fi
3001 if test -z "$ac_cpp_err"; then
3002   # Broken: success on invalid input.
3003 continue
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008   # Passes both tests.
3009 ac_preproc_ok=:
3010 break
3011 fi
3012 rm -f conftest.err conftest.$ac_ext
3013
3014 done
3015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3016 rm -f conftest.err conftest.$ac_ext
3017 if $ac_preproc_ok; then
3018   :
3019 else
3020   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&2;}
3024    { (exit 1); exit 1; }; }
3025 fi
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034 echo "$as_me:$LINENO: checking for egrep" >&5
3035 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3036 if test "${ac_cv_prog_egrep+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3040     then ac_cv_prog_egrep='grep -E'
3041     else ac_cv_prog_egrep='egrep'
3042     fi
3043 fi
3044 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3045 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3046  EGREP=$ac_cv_prog_egrep
3047
3048
3049 if test $ac_cv_c_compiler_gnu = yes; then
3050     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3051 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3052 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055     ac_pattern="Autoconf.*'x'"
3056   cat >conftest.$ac_ext <<_ACEOF
3057 #line $LINENO "configure"
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 #include <sgtty.h>
3064 Autoconf TIOCGETP
3065 _ACEOF
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3068   ac_cv_prog_gcc_traditional=yes
3069 else
3070   ac_cv_prog_gcc_traditional=no
3071 fi
3072 rm -f conftest*
3073
3074
3075   if test $ac_cv_prog_gcc_traditional = no; then
3076     cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #include <termio.h>
3084 Autoconf TCGETA
3085 _ACEOF
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3088   ac_cv_prog_gcc_traditional=yes
3089 fi
3090 rm -f conftest*
3091
3092   fi
3093 fi
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3096   if test $ac_cv_prog_gcc_traditional = yes; then
3097     CC="$CC -traditional"
3098   fi
3099 fi
3100
3101 if test x$CC = xgcc
3102 then
3103    cat >>confdefs.h <<\_ACEOF
3104 #define HAVE_GCC 1
3105 _ACEOF
3106
3107 fi
3108
3109 # Find a good install program.  We prefer a C program (faster),
3110 # so one script is as good as another.  But avoid the broken or
3111 # incompatible versions:
3112 # SysV /etc/install, /usr/sbin/install
3113 # SunOS /usr/etc/install
3114 # IRIX /sbin/install
3115 # AIX /bin/install
3116 # AmigaOS /C/install, which installs bootblocks on floppy discs
3117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3120 # ./install, which can be erroneously created by make from ./install.sh.
3121 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3122 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   # Account for people who put trailing slashes in PATH elements.
3133 case $as_dir/ in
3134   ./ | .// | /cC/* | \
3135   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136   /usr/ucb/* ) ;;
3137   *)
3138     # OSF1 and SCO ODT 3.0 have their own names for install.
3139     # Don't use installbsd from OSF since it installs stuff as root
3140     # by default.
3141     for ac_prog in ginstall scoinst install; do
3142       for ac_exec_ext in '' $ac_executable_extensions; do
3143         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3144           if test $ac_prog = install &&
3145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3146             # AIX install.  It has an incompatible calling convention.
3147             :
3148           elif test $ac_prog = install &&
3149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3150             # program-specific install script used by HP pwplus--don't use.
3151             :
3152           else
3153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3154             break 3
3155           fi
3156         fi
3157       done
3158     done
3159     ;;
3160 esac
3161 done
3162
3163
3164 fi
3165   if test "${ac_cv_path_install+set}" = set; then
3166     INSTALL=$ac_cv_path_install
3167   else
3168     # As a last resort, use the slow shell script.  We don't cache a
3169     # path for INSTALL within a source directory, because that will
3170     # break other packages using the cache if that directory is
3171     # removed, or if the path is relative.
3172     INSTALL=$ac_install_sh
3173   fi
3174 fi
3175 echo "$as_me:$LINENO: result: $INSTALL" >&5
3176 echo "${ECHO_T}$INSTALL" >&6
3177
3178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3179 # It thinks the first close brace ends the variable substitution.
3180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181
3182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3183
3184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3185
3186 if test -n "$ac_tool_prefix"; then
3187   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$RANLIB"; then
3195   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211 fi
3212 fi
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215   echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3217 else
3218   echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221
3222 fi
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224   ac_ct_RANLIB=$RANLIB
3225   # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   if test -n "$ac_ct_RANLIB"; then
3233   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240   for ac_exec_ext in '' $ac_executable_extensions; do
3241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242     ac_cv_prog_ac_ct_RANLIB="ranlib"
3243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247 done
3248
3249   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3250 fi
3251 fi
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 else
3257   echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3259 fi
3260
3261   RANLIB=$ac_ct_RANLIB
3262 else
3263   RANLIB="$ac_cv_prog_RANLIB"
3264 fi
3265
3266 # Extract the first word of "mv", so it can be a program name with args.
3267 set dummy mv; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_path_MV+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   case $MV in
3274   [\\/]* | ?:[\\/]*)
3275   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3276   ;;
3277   *)
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   for ac_exec_ext in '' $ac_executable_extensions; do
3284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287     break 2
3288   fi
3289 done
3290 done
3291
3292   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3293   ;;
3294 esac
3295 fi
3296 MV=$ac_cv_path_MV
3297
3298 if test -n "$MV"; then
3299   echo "$as_me:$LINENO: result: $MV" >&5
3300 echo "${ECHO_T}$MV" >&6
3301 else
3302   echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306 # Extract the first word of "rm", so it can be a program name with args.
3307 set dummy rm; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_path_RM+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   case $RM in
3314   [\\/]* | ?:[\\/]*)
3315   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3316   ;;
3317   *)
3318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321   IFS=$as_save_IFS
3322   test -z "$as_dir" && as_dir=.
3323   for ac_exec_ext in '' $ac_executable_extensions; do
3324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330 done
3331
3332   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3333   ;;
3334 esac
3335 fi
3336 RM=$ac_cv_path_RM
3337
3338 if test -n "$RM"; then
3339   echo "$as_me:$LINENO: result: $RM" >&5
3340 echo "${ECHO_T}$RM" >&6
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 # Extract the first word of "cp", so it can be a program name with args.
3347 set dummy cp; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_path_CP+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   case $CP in
3354   [\\/]* | ?:[\\/]*)
3355   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3356   ;;
3357   *)
3358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363   for ac_exec_ext in '' $ac_executable_extensions; do
3364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370 done
3371
3372   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3373   ;;
3374 esac
3375 fi
3376 CP=$ac_cv_path_CP
3377
3378 if test -n "$CP"; then
3379   echo "$as_me:$LINENO: result: $CP" >&5
3380 echo "${ECHO_T}$CP" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 # Extract the first word of "sed", so it can be a program name with args.
3387 set dummy sed; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_path_SED+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   case $SED in
3394   [\\/]* | ?:[\\/]*)
3395   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3396   ;;
3397   *)
3398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3413   ;;
3414 esac
3415 fi
3416 SED=$ac_cv_path_SED
3417
3418 if test -n "$SED"; then
3419   echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3421 else
3422   echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426 # Extract the first word of "awk", so it can be a program name with args.
3427 set dummy awk; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_path_AWK+set}" = set; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   case $AWK in
3434   [\\/]* | ?:[\\/]*)
3435   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3436   ;;
3437   *)
3438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443   for ac_exec_ext in '' $ac_executable_extensions; do
3444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450 done
3451
3452   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3453   ;;
3454 esac
3455 fi
3456 AWK=$ac_cv_path_AWK
3457
3458 if test -n "$AWK"; then
3459   echo "$as_me:$LINENO: result: $AWK" >&5
3460 echo "${ECHO_T}$AWK" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3464 fi
3465
3466 # Extract the first word of "echo", so it can be a program name with args.
3467 set dummy echo; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_path_ECHO+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   case $ECHO in
3474   [\\/]* | ?:[\\/]*)
3475   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3476   ;;
3477   *)
3478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490 done
3491
3492   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3493   ;;
3494 esac
3495 fi
3496 ECHO=$ac_cv_path_ECHO
3497
3498 if test -n "$ECHO"; then
3499   echo "$as_me:$LINENO: result: $ECHO" >&5
3500 echo "${ECHO_T}$ECHO" >&6
3501 else
3502   echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3504 fi
3505
3506 # Extract the first word of "cmp", so it can be a program name with args.
3507 set dummy cmp; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_CMP+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   case $CMP in
3514   [\\/]* | ?:[\\/]*)
3515   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3516   ;;
3517   *)
3518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523   for ac_exec_ext in '' $ac_executable_extensions; do
3524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530 done
3531
3532   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3533   ;;
3534 esac
3535 fi
3536 CMP=$ac_cv_path_CMP
3537
3538 if test -n "$CMP"; then
3539   echo "$as_me:$LINENO: result: $CMP" >&5
3540 echo "${ECHO_T}$CMP" >&6
3541 else
3542   echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3544 fi
3545
3546 # Extract the first word of "tbl", so it can be a program name with args.
3547 set dummy tbl; ac_word=$2
3548 echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550 if test "${ac_cv_path_TBL+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   case $TBL in
3554   [\\/]* | ?:[\\/]*)
3555   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3556   ;;
3557   *)
3558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563   for ac_exec_ext in '' $ac_executable_extensions; do
3564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570 done
3571
3572   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3573   ;;
3574 esac
3575 fi
3576 TBL=$ac_cv_path_TBL
3577
3578 if test -n "$TBL"; then
3579   echo "$as_me:$LINENO: result: $TBL" >&5
3580 echo "${ECHO_T}$TBL" >&6
3581 else
3582   echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584 fi
3585
3586 # Extract the first word of "ar", so it can be a program name with args.
3587 set dummy ar; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_path_AR+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   case $AR in
3594   [\\/]* | ?:[\\/]*)
3595   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3596   ;;
3597   *)
3598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610 done
3611
3612   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3613   ;;
3614 esac
3615 fi
3616 AR=$ac_cv_path_AR
3617
3618 if test -n "$AR"; then
3619   echo "$as_me:$LINENO: result: $AR" >&5
3620 echo "${ECHO_T}$AR" >&6
3621 else
3622   echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3624 fi
3625
3626 # Extract the first word of "ranlib", so it can be a program name with args.
3627 set dummy ranlib; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_path_RANLIB+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   case $RANLIB in
3634   [\\/]* | ?:[\\/]*)
3635   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3636   ;;
3637   *)
3638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643   for ac_exec_ext in '' $ac_executable_extensions; do
3644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647     break 2
3648   fi
3649 done
3650 done
3651
3652   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3653   ;;
3654 esac
3655 fi
3656 RANLIB=$ac_cv_path_RANLIB
3657
3658 if test -n "$RANLIB"; then
3659   echo "$as_me:$LINENO: result: $RANLIB" >&5
3660 echo "${ECHO_T}$RANLIB" >&6
3661 else
3662   echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664 fi
3665
3666 # Extract the first word of "openssl", so it can be a program name with args.
3667 set dummy openssl; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_path_OPENSSL+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   case $OPENSSL in
3674   [\\/]* | ?:[\\/]*)
3675   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3676   ;;
3677   *)
3678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_exec_ext in '' $ac_executable_extensions; do
3684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690 done
3691
3692   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3693   ;;
3694 esac
3695 fi
3696 OPENSSL=$ac_cv_path_OPENSSL
3697
3698 if test -n "$OPENSSL"; then
3699   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3700 echo "${ECHO_T}$OPENSSL" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704 fi
3705
3706 # Extract the first word of "mtx", so it can be a program name with args.
3707 set dummy mtx; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_path_MTX+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   case $MTX in
3714   [\\/]* | ?:[\\/]*)
3715   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3716   ;;
3717   *)
3718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723   for ac_exec_ext in '' $ac_executable_extensions; do
3724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730 done
3731
3732   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3733   ;;
3734 esac
3735 fi
3736 MTX=$ac_cv_path_MTX
3737
3738 if test -n "$MTX"; then
3739   echo "$as_me:$LINENO: result: $MTX" >&5
3740 echo "${ECHO_T}$MTX" >&6
3741 else
3742   echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3744 fi
3745
3746 # Extract the first word of "pkg-config", so it can be a program name with args.
3747 set dummy pkg-config; ac_word=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   case $PKGCONFIG in
3754   [\\/]* | ?:[\\/]*)
3755   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3756   ;;
3757   *)
3758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_exec_ext in '' $ac_executable_extensions; do
3764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767     break 2
3768   fi
3769 done
3770 done
3771
3772   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3773   ;;
3774 esac
3775 fi
3776 PKGCONFIG=$ac_cv_path_PKGCONFIG
3777
3778 if test -n "$PKGCONFIG"; then
3779   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3780 echo "${ECHO_T}$PKGCONFIG" >&6
3781 else
3782   echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3784 fi
3785
3786
3787 test -n "$ARFLAG" || ARFLAGS="cr"
3788
3789
3790 MAKE_SHELL=/bin/sh
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800 echo "$as_me:$LINENO: checking for Operating System" >&5
3801 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3802
3803 case $host_os in
3804   *cygwin* ) CYGWIN=yes;;
3805          * ) CYGWIN=no;;
3806 esac
3807
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3809 then
3810
3811
3812 if $TRUEPRG; then
3813   HAVE_SUN_OS_TRUE=
3814   HAVE_SUN_OS_FALSE='#'
3815 else
3816   HAVE_SUN_OS_TRUE='#'
3817   HAVE_SUN_OS_FALSE=
3818 fi
3819         cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3821 _ACEOF
3822
3823 else
3824
3825
3826 if $FALSEPRG; then
3827   HAVE_SUN_OS_TRUE=
3828   HAVE_SUN_OS_FALSE='#'
3829 else
3830   HAVE_SUN_OS_TRUE='#'
3831   HAVE_SUN_OS_FALSE=
3832 fi
3833 fi
3834
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3836 then
3837
3838
3839 if $TRUEPRG; then
3840   HAVE_OSF1_OS_TRUE=
3841   HAVE_OSF1_OS_FALSE='#'
3842 else
3843   HAVE_OSF1_OS_TRUE='#'
3844   HAVE_OSF1_OS_FALSE=
3845 fi
3846         cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3848 _ACEOF
3849
3850 else
3851
3852
3853 if $FALSEPRG; then
3854   HAVE_OSF1_OS_TRUE=
3855   HAVE_OSF1_OS_FALSE='#'
3856 else
3857   HAVE_OSF1_OS_TRUE='#'
3858   HAVE_OSF1_OS_FALSE=
3859 fi
3860 fi
3861
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3863 then
3864
3865
3866 if $TRUEPRG; then
3867   HAVE_AIX_OS_TRUE=
3868   HAVE_AIX_OS_FALSE='#'
3869 else
3870   HAVE_AIX_OS_TRUE='#'
3871   HAVE_AIX_OS_FALSE=
3872 fi
3873         cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3875 _ACEOF
3876
3877 else
3878
3879
3880 if $FALSEPRG; then
3881   HAVE_AIX_OS_TRUE=
3882   HAVE_AIX_OS_FALSE='#'
3883 else
3884   HAVE_AIX_OS_TRUE='#'
3885   HAVE_AIX_OS_FALSE=
3886 fi
3887 fi
3888
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3890 then
3891
3892
3893 if $TRUEPRG; then
3894   HAVE_HPUX_OS_TRUE=
3895   HAVE_HPUX_OS_FALSE='#'
3896 else
3897   HAVE_HPUX_OS_TRUE='#'
3898   HAVE_HPUX_OS_FALSE=
3899 fi
3900         cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3902 _ACEOF
3903
3904 else
3905
3906
3907 if $FALSEPRG; then
3908   HAVE_HPUX_OS_TRUE=
3909   HAVE_HPUX_OS_FALSE='#'
3910 else
3911   HAVE_HPUX_OS_TRUE='#'
3912   HAVE_HPUX_OS_FALSE=
3913 fi
3914 fi
3915
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3917 then
3918
3919
3920 if $TRUEPRG; then
3921   HAVE_LINUX_OS_TRUE=
3922   HAVE_LINUX_OS_FALSE='#'
3923 else
3924   HAVE_LINUX_OS_TRUE='#'
3925   HAVE_LINUX_OS_FALSE=
3926 fi
3927         cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3929 _ACEOF
3930
3931 else
3932
3933
3934 if $FALSEPRG; then
3935   HAVE_LINUX_OS_TRUE=
3936   HAVE_LINUX_OS_FALSE='#'
3937 else
3938   HAVE_LINUX_OS_TRUE='#'
3939   HAVE_LINUX_OS_FALSE=
3940 fi
3941 fi
3942
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3944 then
3945
3946
3947 if $TRUEPRG; then
3948   HAVE_FREEBSD_OS_TRUE=
3949   HAVE_FREEBSD_OS_FALSE='#'
3950 else
3951   HAVE_FREEBSD_OS_TRUE='#'
3952   HAVE_FREEBSD_OS_FALSE=
3953 fi
3954         cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3956 _ACEOF
3957
3958 else
3959
3960
3961 if $FALSEPRG; then
3962   HAVE_FREEBSD_OS_TRUE=
3963   HAVE_FREEBSD_OS_FALSE='#'
3964 else
3965   HAVE_FREEBSD_OS_TRUE='#'
3966   HAVE_FREEBSD_OS_FALSE=
3967 fi
3968 fi
3969
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3971 then
3972
3973
3974 if $TRUEPRG; then
3975   HAVE_NETBSD_OS_TRUE=
3976   HAVE_NETBSD_OS_FALSE='#'
3977 else
3978   HAVE_NETBSD_OS_TRUE='#'
3979   HAVE_NETBSD_OS_FALSE=
3980 fi
3981         cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3983 _ACEOF
3984
3985 else
3986
3987
3988 if $FALSEPRG; then
3989   HAVE_NETBSD_OS_TRUE=
3990   HAVE_NETBSD_OS_FALSE='#'
3991 else
3992   HAVE_NETBSD_OS_TRUE='#'
3993   HAVE_NETBSD_OS_FALSE=
3994 fi
3995 fi
3996
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3998 then
3999
4000
4001 if $TRUEPRG; then
4002   HAVE_OPENBSD_OS_TRUE=
4003   HAVE_OPENBSD_OS_FALSE='#'
4004 else
4005   HAVE_OPENBSD_OS_TRUE='#'
4006   HAVE_OPENBSD_OS_FALSE=
4007 fi
4008         cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4010 _ACEOF
4011
4012 else
4013
4014
4015 if $FALSEPRG; then
4016   HAVE_OPENBSD_OS_TRUE=
4017   HAVE_OPENBSD_OS_FALSE='#'
4018 else
4019   HAVE_OPENBSD_OS_TRUE='#'
4020   HAVE_OPENBSD_OS_FALSE=
4021 fi
4022 fi
4023
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4025 then
4026
4027
4028 if $TRUEPRG; then
4029   HAVE_BSDI_OS_TRUE=
4030   HAVE_BSDI_OS_FALSE='#'
4031 else
4032   HAVE_BSDI_OS_TRUE='#'
4033   HAVE_BSDI_OS_FALSE=
4034 fi
4035         cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4037 _ACEOF
4038
4039 else
4040
4041
4042 if $FALSEPRG; then
4043   HAVE_BSDI_OS_TRUE=
4044   HAVE_BSDI_OS_FALSE='#'
4045 else
4046   HAVE_BSDI_OS_TRUE='#'
4047   HAVE_BSDI_OS_FALSE=
4048 fi
4049 fi
4050
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4052 then
4053
4054
4055 if $TRUEPRG; then
4056   HAVE_SGI_OS_TRUE=
4057   HAVE_SGI_OS_FALSE='#'
4058 else
4059   HAVE_SGI_OS_TRUE='#'
4060   HAVE_SGI_OS_FALSE=
4061 fi
4062         cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4064 _ACEOF
4065
4066 else
4067
4068
4069 if $FALSEPRG; then
4070   HAVE_SGI_OS_TRUE=
4071   HAVE_SGI_OS_FALSE='#'
4072 else
4073   HAVE_SGI_OS_TRUE='#'
4074   HAVE_SGI_OS_FALSE=
4075 fi
4076 fi
4077
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4079 then
4080
4081
4082 if $TRUEPRG; then
4083   HAVE_IRIX_OS_TRUE=
4084   HAVE_IRIX_OS_FALSE='#'
4085 else
4086   HAVE_IRIX_OS_TRUE='#'
4087   HAVE_IRIX_OS_FALSE=
4088 fi
4089         cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4091 _ACEOF
4092
4093 else
4094
4095
4096 if $FALSEPRG; then
4097   HAVE_IRIX_OS_TRUE=
4098   HAVE_IRIX_OS_FALSE='#'
4099 else
4100   HAVE_IRIX_OS_TRUE='#'
4101   HAVE_IRIX_OS_FALSE=
4102 fi
4103 fi
4104
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4106 then
4107
4108
4109 if $TRUEPRG; then
4110   HAVE_DARWIN_OS_TRUE=
4111   HAVE_DARWIN_OS_FALSE='#'
4112 else
4113   HAVE_DARWIN_OS_TRUE='#'
4114   HAVE_DARWIN_OS_FALSE=
4115 fi
4116     cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4118 _ACEOF
4119
4120 else
4121
4122
4123 if $FALSEPRG; then
4124   HAVE_DARWIN_OS_TRUE=
4125   HAVE_DARWIN_OS_FALSE='#'
4126 else
4127   HAVE_DARWIN_OS_TRUE='#'
4128   HAVE_DARWIN_OS_FALSE=
4129 fi
4130 fi
4131
4132 echo "$as_me:$LINENO: result: \" \"" >&5
4133 echo "${ECHO_T}\" \"" >&6
4134
4135
4136 # -----------------------------------------------------------
4137 # ----------------------------------------------------------
4138 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4139 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4140 if test "x$DISTNAME" != "x"
4141 then
4142         echo "distname set to $DISTNAME"
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 then
4145         DISTNAME=alpha
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 then
4148         DISTNAME=aix
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 then
4151         DISTNAME=hpux
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 then
4154         DISTNAME=solaris
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 then
4157         DISTNAME=freebsd
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 then
4160         DISTNAME=netbsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 then
4163         DISTNAME=openbsd
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 then
4166         DISTNAME=irix
4167 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 then
4169         DISTNAME=bsdi
4170 elif test -f /etc/SuSE-release
4171 then
4172         DISTNAME=suse
4173 elif test -d /etc/SuSEconfig
4174 then
4175         DISTNAME=suse5
4176 elif test -f /etc/mandrake-release
4177 then
4178         DISTNAME=mandrake
4179 elif test -f /etc/redhat-release
4180 then
4181         DISTNAME=redhat
4182 elif test -f /etc/gentoo-release
4183 then
4184         DISTNAME=gentoo
4185 elif test -f /etc/debian_version
4186 then
4187         DISTNAME=debian
4188 elif test -f /etc/slackware-version
4189 then
4190         DISTNAME=slackware
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 then
4193     DISTNAME=darwin
4194 elif test -f /etc/engarde-version
4195 then
4196         DISTNAME=engarde
4197 elif test "$CYGWIN" = yes
4198 then
4199         DISTNAME=cygwin
4200         cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4202 _ACEOF
4203
4204 else
4205         DISTNAME=unknown
4206 fi
4207 echo "$as_me:$LINENO: result: \" \"" >&5
4208 echo "${ECHO_T}\" \"" >&6
4209
4210
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4213
4214
4215
4216 if false; then
4217   INSIDE_GNOME_COMMON_TRUE=
4218   INSIDE_GNOME_COMMON_FALSE='#'
4219 else
4220   INSIDE_GNOME_COMMON_TRUE='#'
4221   INSIDE_GNOME_COMMON_FALSE=
4222 fi
4223
4224         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225
4226         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227
4228
4229 # ------------------------------------------------------------------
4230 #  If the user has not set --prefix, we set our default to nothing.
4231 #  In this case, if the user has not set --sysconfdir, we set it
4232 #  to the package default of /etc/bacula.  If either --prefix or
4233 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237         sysconfdir=/etc/bacula
4238     fi
4239     prefix=
4240 fi
4241 sysconfdir=`eval echo ${sysconfdir}`
4242
4243 # -------------------------------------------------------------------------
4244 #  If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247     exec_prefix=${prefix}
4248 fi
4249
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254     sbindir=${exec_prefix}/sbin
4255 fi
4256 sbindir=`eval echo ${sbindir}`
4257
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 #  language is separated by a space.
4261 # ------------------------------------------------------------------
4262 ALL_LINGUAS=""
4263
4264 for ac_prog in msgfmt
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   case $MSGFMT in
4274   [\\/]* | ?:[\\/]*)
4275   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276   ;;
4277   *)
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292   ;;
4293 esac
4294 fi
4295 MSGFMT=$ac_cv_path_MSGFMT
4296
4297 if test -n "$MSGFMT"; then
4298   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   test -n "$MSGFMT" && break
4306 done
4307 test -n "$MSGFMT" || MSGFMT="no"
4308
4309 if test "$MSGFMT" = "no"
4310 then
4311    echo 'msgfmt program not found, disabling NLS !'
4312    USE_NLS=no
4313    USE_INCLUDED_LIBINTL=no
4314 #else
4315 #   AM_GNU_GETTEXT
4316 fi
4317
4318
4319 support_mysql=no
4320 support_sqlite=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=no
4324 support_conio=yes
4325 support_gnome=no
4326 gnome_version=
4327 support_static_tools=no
4328 support_static_fd=no
4329 support_static_sd=no
4330 support_static_dir=no
4331 support_static_cons=no
4332 build_client_only=no
4333 cats=
4334 db_name=Internal
4335 DB_NAME=bdb
4336
4337
4338 # -------------------------------------------
4339 # gnome (default off)
4340 # -------------------------------------------
4341 # Check whether --enable-gnome or --disable-gnome was given.
4342 if test "${enable_gnome+set}" = set; then
4343   enableval="$enable_gnome"
4344   if test x$enableval = xyes; then
4345     support_gnome=yes
4346   fi
4347 fi;
4348
4349 GNOME_DIR=
4350 if test x$support_gnome = xyes; then
4351   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4352   pkg=$?
4353   if test $pkg = 0; then
4354      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4355      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4356      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4357      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358
4359
4360
4361
4362      GNOME_DIR=src/gnome2-console
4363      gnome_version="Version 2.x"
4364   else
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4377 if test "${with_gnome_includes+set}" = set; then
4378   withval="$with_gnome_includes"
4379
4380         CFLAGS="$CFLAGS -I$withval"
4381
4382 fi;
4383
4384
4385 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4386 if test "${with_gnome_libs+set}" = set; then
4387   withval="$with_gnome_libs"
4388
4389         LDFLAGS="$LDFLAGS -L$withval"
4390         gnome_prefix=$withval
4391
4392 fi;
4393
4394
4395 # Check whether --with-gnome or --without-gnome was given.
4396 if test "${with_gnome+set}" = set; then
4397   withval="$with_gnome"
4398   if test x$withval = xyes; then
4399                         want_gnome=yes
4400                                                                         :
4401                 else
4402                         if test "x$withval" = xno; then
4403                                 want_gnome=no
4404                         else
4405                                 want_gnome=yes
4406                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4407                                 CFLAGS="$CFLAGS -I$withval/include"
4408                                 gnome_prefix=$withval/lib
4409                         fi
4410                 fi
4411 else
4412   want_gnome=yes
4413 fi;
4414
4415         if test "x$want_gnome" = xyes; then
4416
4417             # Extract the first word of "gnome-config", so it can be a program name with args.
4418 set dummy gnome-config; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   case $GNOME_CONFIG in
4425   [\\/]* | ?:[\\/]*)
4426   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4427   ;;
4428   *)
4429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for ac_exec_ext in '' $ac_executable_extensions; do
4435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438     break 2
4439   fi
4440 done
4441 done
4442
4443   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4444   ;;
4445 esac
4446 fi
4447 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4448
4449 if test -n "$GNOME_CONFIG"; then
4450   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4451 echo "${ECHO_T}$GNOME_CONFIG" >&6
4452 else
4453   echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4455 fi
4456
4457             if test "$GNOME_CONFIG" = "no"; then
4458               no_gnome_config="yes"
4459             else
4460               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4461 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4462               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4463                 echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4465
4466
4467         # Extract the first word of "orbit-config", so it can be a program name with args.
4468 set dummy orbit-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case $ORBIT_CONFIG in
4475   [\\/]* | ?:[\\/]*)
4476   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4477   ;;
4478   *)
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_exec_ext in '' $ac_executable_extensions; do
4485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491 done
4492
4493   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4494   ;;
4495 esac
4496 fi
4497 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4498
4499 if test -n "$ORBIT_CONFIG"; then
4500   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4501 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4502 else
4503   echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507         # Extract the first word of "orbit-idl", so it can be a program name with args.
4508 set dummy orbit-idl; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   case $ORBIT_IDL in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532
4533   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4534   ;;
4535 esac
4536 fi
4537 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4538
4539 if test -n "$ORBIT_IDL"; then
4540   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4541 echo "${ECHO_T}$ORBIT_IDL" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4548 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4549 if test "${gnome_cv_orbit_found+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552
4553                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4554                         gnome_cv_orbit_found=no
4555                 else
4556                         gnome_cv_orbit_found=yes
4557                 fi
4558
4559 fi
4560 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4561 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4562
4563
4564 if test x$gnome_cv_orbit_found = xyes; then
4565   HAVE_ORBIT_TRUE=
4566   HAVE_ORBIT_FALSE='#'
4567 else
4568   HAVE_ORBIT_TRUE='#'
4569   HAVE_ORBIT_FALSE=
4570 fi
4571         if test x$gnome_cv_orbit_found = xyes; then
4572
4573                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4574                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4575
4576
4577         else
4578                 if test xfail = xfailure; then
4579                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4580 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4581    { (exit 1); exit 1; }; }
4582                 fi
4583         fi
4584
4585         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4586 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4587 if test "${gnome_cv_gnorba_found+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590
4591                 gnome_cv_gnorba_found=no
4592                 if test x$gnome_cv_orbit_found = xyes; then
4593                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4594                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4595                         if test -n "$GNORBA_LIBS"; then
4596                                 gnome_cv_gnorba_found=yes
4597                         fi
4598                 fi
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4602 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4603
4604
4605 if test x$gnome_cv_gnorba_found = xyes; then
4606   HAVE_GNORBA_TRUE=
4607   HAVE_GNORBA_FALSE='#'
4608 else
4609   HAVE_GNORBA_TRUE='#'
4610   HAVE_GNORBA_FALSE=
4611 fi
4612         if test x$gnome_cv_orbit_found = xyes; then
4613
4614                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4615                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4616
4617
4618         else
4619                 if test xfail = xfailure; then
4620                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4621 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4622    { (exit 1); exit 1; }; }
4623                 fi
4624         fi
4625
4626                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4627                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4628                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4629                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4630                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4631                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4632                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4633
4634               else
4635                 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637                 no_gnome_config="yes"
4638               fi
4639             fi
4640
4641             if test x$exec_prefix = xNONE; then
4642                 if test x$prefix = xNONE; then
4643                     gnome_prefix=$ac_default_prefix/lib
4644                 else
4645                     gnome_prefix=$prefix/lib
4646                 fi
4647             else
4648                 gnome_prefix=`eval echo \`echo $libdir\``
4649             fi
4650
4651             if test "$no_gnome_config" = "yes"; then
4652               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4653 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4654               if test -f $gnome_prefix/gnomeConf.sh; then
4655                 echo "$as_me:$LINENO: result: found" >&5
4656 echo "${ECHO_T}found" >&6
4657                 echo "loading gnome configuration from" \
4658                      "$gnome_prefix/gnomeConf.sh"
4659                 . $gnome_prefix/gnomeConf.sh
4660
4661               else
4662                 echo "$as_me:$LINENO: result: not found" >&5
4663 echo "${ECHO_T}not found" >&6
4664                 if test xfail = xfail; then
4665                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4666 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4667    { (exit 1); exit 1; }; }
4668                 fi
4669               fi
4670             fi
4671         fi
4672
4673         if test -n ""; then
4674           n=""
4675           for i in $n; do
4676             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4677 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4678             case $i in
4679               applets)
4680
4681                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4682                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4684               docklets)
4685
4686                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4687                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4689               capplet)
4690
4691                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4692                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4694               *)
4695                 echo "$as_me:$LINENO: result: unknown library" >&5
4696 echo "${ECHO_T}unknown library" >&6
4697             esac
4698             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4699             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4700           done
4701         fi
4702
4703
4704      GNOME_DIR=src/gnome-console
4705      gnome_version="Version 1.4"
4706   fi
4707 fi
4708
4709
4710
4711 # -------------------------------------------
4712 # smartalloc (default off)
4713 # -------------------------------------------
4714 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4715 if test "${enable_smartalloc+set}" = set; then
4716   enableval="$enable_smartalloc"
4717   if test x$enableval = xno; then
4718     support_smartalloc=no
4719   fi
4720 fi;
4721
4722 if test x$support_smartalloc = xyes; then
4723    cat >>confdefs.h <<\_ACEOF
4724 #define SMARTALLOC 1
4725 _ACEOF
4726
4727 fi
4728
4729 # -------------------------------------------
4730 # static-tools (default off)
4731 # -------------------------------------------
4732 # Check whether --enable-static-tools or --disable-static-tools was given.
4733 if test "${enable_static_tools+set}" = set; then
4734   enableval="$enable_static_tools"
4735   if test x$enableval = xyes; then
4736      support_static_tools=yes
4737    fi
4738 fi;
4739
4740 TTOOL_LDFLAGS=
4741 if test x$support_static_tools = xyes; then
4742    TTOOL_LDFLAGS="-static"
4743 fi
4744
4745
4746 # -------------------------------------------
4747 # static-fd    (default off)
4748 # -------------------------------------------
4749 # Check whether --enable-static-fd or --disable-static-fd was given.
4750 if test "${enable_static_fd+set}" = set; then
4751   enableval="$enable_static_fd"
4752   if test x$enableval = xyes; then
4753      support_static_fd=yes
4754    fi
4755 fi;
4756
4757 STATIC_FD=
4758 if test x$support_static_fd = xyes; then
4759    STATIC_FD="static-bacula-fd"
4760 fi
4761
4762
4763 # -------------------------------------------
4764 # static-sd    (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-sd or --disable-static-sd was given.
4767 if test "${enable_static_sd+set}" = set; then
4768   enableval="$enable_static_sd"
4769   if test x$enableval = xyes; then
4770      support_static_sd=yes
4771    fi
4772 fi;
4773
4774 STATIC_SD=
4775 if test x$support_static_sd = xyes; then
4776    STATIC_SD="static-bacula-sd"
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # static-dir   (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-dir or --disable-static-dir was given.
4784 if test "${enable_static_dir+set}" = set; then
4785   enableval="$enable_static_dir"
4786   if test x$enableval = xyes; then
4787      support_static_dir=yes
4788    fi
4789 fi;
4790
4791 STATIC_DIR=
4792 if test x$support_static_dir = xyes; then
4793    STATIC_DIR="static-bacula-dir"
4794 fi
4795
4796
4797 # -------------------------------------------
4798 # static-cons  (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-cons or --disable-static-cons was given.
4801 if test "${enable_static_cons+set}" = set; then
4802   enableval="$enable_static_cons"
4803   if test x$enableval = xyes; then
4804      support_static_cons=yes
4805    fi
4806 fi;
4807
4808 STATIC_CONS=
4809 if test x$support_static_cons = xyes; then
4810    STATIC_CONS="static-bconsole"
4811 fi
4812
4813
4814 # -------------------------------------------
4815 # client_only  (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-client-only or --disable-client-only was given.
4818 if test "${enable_client_only+set}" = set; then
4819   enableval="$enable_client_only"
4820   if test x$enableval = xyes; then
4821      build_client_only=yes
4822    fi
4823 fi;
4824 if test x$build_client_only = xno; then
4825    ALL_DIRS="subdirs"
4826 else
4827    ALL_DIRS=""
4828 fi
4829
4830
4831 # ---------------------------------------------------
4832 # Check for conio (Bacula readline substitute)(
4833 # ---------------------------------------------------
4834 # this allows you to turn it completely off
4835 # Check whether --enable-conio or --disable-conio was given.
4836 if test "${enable_conio+set}" = set; then
4837   enableval="$enable_conio"
4838   if test x$enableval = xno; then
4839     support_conio=no
4840   fi
4841 fi;
4842
4843 got_conio="no"
4844 if test x$support_conio = xyes; then
4845    CONS_OBJ="conio.o"
4846    CONS_SRC="conio.c"
4847    got_conio="yes"
4848    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #include <stdlib.h>
4861 #include <stdarg.h>
4862 #include <string.h>
4863 #include <float.h>
4864
4865 int
4866 main ()
4867 {
4868
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } &&
4879          { ac_try='test -s conftest.$ac_objext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_cv_header_stdc=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 ac_cv_header_stdc=no
4891 fi
4892 rm -f conftest.$ac_objext conftest.$ac_ext
4893
4894 if test $ac_cv_header_stdc = yes; then
4895   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896   cat >conftest.$ac_ext <<_ACEOF
4897 #line $LINENO "configure"
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #include <string.h>
4904
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907   $EGREP "memchr" >/dev/null 2>&1; then
4908   :
4909 else
4910   ac_cv_header_stdc=no
4911 fi
4912 rm -f conftest*
4913
4914 fi
4915
4916 if test $ac_cv_header_stdc = yes; then
4917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4918   cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4920 /* confdefs.h.  */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h.  */
4925 #include <stdlib.h>
4926
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929   $EGREP "free" >/dev/null 2>&1; then
4930   :
4931 else
4932   ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest*
4935
4936 fi
4937
4938 if test $ac_cv_header_stdc = yes; then
4939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940   if test "$cross_compiling" = yes; then
4941   :
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #include <ctype.h>
4951 #if ((' ' & 0x0FF) == 0x020)
4952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4954 #else
4955 # define ISLOWER(c) \
4956                    (('a' <= (c) && (c) <= 'i') \
4957                      || ('j' <= (c) && (c) <= 'r') \
4958                      || ('s' <= (c) && (c) <= 'z'))
4959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4960 #endif
4961
4962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 int
4964 main ()
4965 {
4966   int i;
4967   for (i = 0; i < 256; i++)
4968     if (XOR (islower (i), ISLOWER (i))
4969         || toupper (i) != TOUPPER (i))
4970       exit(2);
4971   exit (0);
4972 }
4973 _ACEOF
4974 rm -f conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976   (eval $ac_link) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   :
4986 else
4987   echo "$as_me: program exited with status $ac_status" >&5
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ( exit $ac_status )
4992 ac_cv_header_stdc=no
4993 fi
4994 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 fi
4997 fi
4998 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4999 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5000 if test $ac_cv_header_stdc = yes; then
5001
5002 cat >>confdefs.h <<\_ACEOF
5003 #define STDC_HEADERS 1
5004 _ACEOF
5005
5006 fi
5007
5008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5019                   inttypes.h stdint.h unistd.h
5020 do
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 $ac_includes_default
5035
5036 #include <$ac_header>
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040   (eval $ac_compile) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } &&
5044          { ac_try='test -s conftest.$ac_objext'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; }; then
5050   eval "$as_ac_Header=yes"
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 eval "$as_ac_Header=no"
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062   cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 _ACEOF
5065
5066 fi
5067
5068 done
5069
5070
5071
5072 for ac_header in termcap.h
5073 do
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076   echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 fi
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 else
5084   # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 $ac_includes_default
5095 #include <$ac_header>
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_header_compiler=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_header_compiler=no
5115 fi
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6
5119
5120 # Is the header present?
5121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #include <$ac_header>
5131 _ACEOF
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } >/dev/null; then
5140   if test -s conftest.err; then
5141     ac_cpp_err=$ac_c_preproc_warn_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   ac_header_preproc=yes
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154   ac_header_preproc=no
5155 fi
5156 rm -f conftest.err conftest.$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6
5159
5160 # So?  What about this header?
5161 case $ac_header_compiler:$ac_header_preproc in
5162   yes:no )
5163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5167     (
5168       cat <<\_ASBOX
5169 ## ------------------------------------ ##
5170 ## Report this to bug-autoconf@gnu.org. ##
5171 ## ------------------------------------ ##
5172 _ASBOX
5173     ) |
5174       sed "s/^/$as_me: WARNING:     /" >&2
5175     ;;
5176   no:yes )
5177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5179     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5183     (
5184       cat <<\_ASBOX
5185 ## ------------------------------------ ##
5186 ## Report this to bug-autoconf@gnu.org. ##
5187 ## ------------------------------------ ##
5188 _ASBOX
5189     ) |
5190       sed "s/^/$as_me: WARNING:     /" >&2
5191     ;;
5192 esac
5193 echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   eval "$as_ac_Header=$ac_header_preproc"
5199 fi
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202
5203 fi
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205   cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5207 _ACEOF
5208
5209 fi
5210
5211 done
5212
5213    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5214 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5215 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   ac_check_lib_save_LIBS=$LIBS
5219 LIBS="-ltermcap  $LIBS"
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5222 /* confdefs.h.  */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h.  */
5227
5228 /* Override any gcc2 internal prototype to avoid an error.  */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 /* We use char because int might match the return type of a gcc2
5233    builtin and then its argument prototype would still apply.  */
5234 char tgetent ();
5235 int
5236 main ()
5237 {
5238 tgetent ();
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245   (eval $ac_link) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -s conftest$ac_exeext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   ac_cv_lib_termcap_tgetent=yes
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_lib_termcap_tgetent=no
5261 fi
5262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5266 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5267 if test $ac_cv_lib_termcap_tgetent = yes; then
5268   CONS_LIBS="-ltermcap"
5269 fi
5270
5271    support_readline=no
5272
5273 cat >>confdefs.h <<\_ACEOF
5274 #define HAVE_CONIO 1
5275 _ACEOF
5276
5277 fi
5278
5279
5280 # ---------------------------------------------------
5281 # Check for readline support/directory (default off)
5282 # ---------------------------------------------------
5283 # this allows you to turn it completely off
5284 # Check whether --enable-readline or --disable-readline was given.
5285 if test "${enable_readline+set}" = set; then
5286   enableval="$enable_readline"
5287   if test x$enableval = xno; then
5288     support_readline=no
5289   fi
5290 fi;
5291
5292 got_readline="no"
5293 READLINE_SRC=
5294 if test x$support_readline = xyes; then
5295
5296 # Check whether --with-readline or --without-readline was given.
5297 if test "${with_readline+set}" = set; then
5298   withval="$with_readline"
5299
5300         case "$with_readline" in
5301         no) : ;;
5302         yes|*)
5303           if test "$with_readline" != "yes"; then
5304             CONS_INC="-I${with_readline}"
5305             CONS_LDFLAGS="-L$with_readline"
5306           else
5307              with_readline="/usr/include/readline"
5308           fi
5309           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5312 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 fi
5316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5318 else
5319   # Is the header compilable?
5320 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5321 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330 #include <${with_readline}/readline.h>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_header_compiler=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_header_compiler=no
5350 fi
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5354
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5357 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 #include <${with_readline}/readline.h>
5366 _ACEOF
5367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } >/dev/null; then
5375   if test -s conftest.err; then
5376     ac_cpp_err=$ac_c_preproc_warn_flag
5377   else
5378     ac_cpp_err=
5379   fi
5380 else
5381   ac_cpp_err=yes
5382 fi
5383 if test -z "$ac_cpp_err"; then
5384   ac_header_preproc=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389   ac_header_preproc=no
5390 fi
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5394
5395 # So?  What about this header?
5396 case $ac_header_compiler:$ac_header_preproc in
5397   yes:no )
5398     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5402     (
5403       cat <<\_ASBOX
5404 ## ------------------------------------ ##
5405 ## Report this to bug-autoconf@gnu.org. ##
5406 ## ------------------------------------ ##
5407 _ASBOX
5408     ) |
5409       sed "s/^/$as_me: WARNING:     /" >&2
5410     ;;
5411   no:yes )
5412     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5414     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5418     (
5419       cat <<\_ASBOX
5420 ## ------------------------------------ ##
5421 ## Report this to bug-autoconf@gnu.org. ##
5422 ## ------------------------------------ ##
5423 _ASBOX
5424     ) |
5425       sed "s/^/$as_me: WARNING:     /" >&2
5426     ;;
5427 esac
5428 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5429 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   eval "$as_ac_Header=$ac_header_preproc"
5434 fi
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437
5438 fi
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440    cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_READLINE 1
5442 _ACEOF
5443
5444                CONS_LIBS="-lreadline -ltermcap"
5445                got_readline="yes"
5446
5447 else
5448    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5449 echo "$as_me: error: *** readline library missing" >&2;}
5450    { (exit 1); exit 1; }; }
5451
5452
5453 fi
5454
5455
5456           ;;
5457         esac
5458
5459 else
5460
5461        # check for standard readline library
5462        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5463   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5464 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5465 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 fi
5468 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5469 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5470 else
5471   # Is the header compilable?
5472 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5473 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 $ac_includes_default
5482 #include </usr/include/readline/readline.h>
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486   (eval $ac_compile) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -s conftest.$ac_objext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_header_compiler=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_header_compiler=no
5502 fi
5503 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6
5506
5507 # Is the header present?
5508 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5509 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 #include </usr/include/readline/readline.h>
5518 _ACEOF
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521   ac_status=$?
5522   grep -v '^ *+' conftest.er1 >conftest.err
5523   rm -f conftest.er1
5524   cat conftest.err >&5
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); } >/dev/null; then
5527   if test -s conftest.err; then
5528     ac_cpp_err=$ac_c_preproc_warn_flag
5529   else
5530     ac_cpp_err=
5531   fi
5532 else
5533   ac_cpp_err=yes
5534 fi
5535 if test -z "$ac_cpp_err"; then
5536   ac_header_preproc=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541   ac_header_preproc=no
5542 fi
5543 rm -f conftest.err conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5545 echo "${ECHO_T}$ac_header_preproc" >&6
5546
5547 # So?  What about this header?
5548 case $ac_header_compiler:$ac_header_preproc in
5549   yes:no )
5550     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5551 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5552     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5554     (
5555       cat <<\_ASBOX
5556 ## ------------------------------------ ##
5557 ## Report this to bug-autoconf@gnu.org. ##
5558 ## ------------------------------------ ##
5559 _ASBOX
5560     ) |
5561       sed "s/^/$as_me: WARNING:     /" >&2
5562     ;;
5563   no:yes )
5564     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5565 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5566     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5570     (
5571       cat <<\_ASBOX
5572 ## ------------------------------------ ##
5573 ## Report this to bug-autoconf@gnu.org. ##
5574 ## ------------------------------------ ##
5575 _ASBOX
5576     ) |
5577       sed "s/^/$as_me: WARNING:     /" >&2
5578     ;;
5579 esac
5580 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5581 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5582 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5588 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5589
5590 fi
5591 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5592    cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_READLINE 1
5594 _ACEOF
5595
5596            got_readline="yes"
5597            CONS_INC="-I/usr/include/readline"
5598            CONS_LIBS="-lreadline -ltermcap"
5599
5600 else
5601
5602            # Did not find standard library, so try Bacula's default
5603             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5606 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 fi
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 else
5613   # Is the header compilable?
5614 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5615 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 $ac_includes_default
5624 #include <${TOP_DIR}/depkgs/readline/readline.h>
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628   (eval $ac_compile) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -s conftest.$ac_objext'
5633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634   (eval $ac_try) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; }; then
5638   ac_header_compiler=yes
5639 else
5640   echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_header_compiler=no
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5647 echo "${ECHO_T}$ac_header_compiler" >&6
5648
5649 # Is the header present?
5650 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5651 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 #include <${TOP_DIR}/depkgs/readline/readline.h>
5660 _ACEOF
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } >/dev/null; then
5669   if test -s conftest.err; then
5670     ac_cpp_err=$ac_c_preproc_warn_flag
5671   else
5672     ac_cpp_err=
5673   fi
5674 else
5675   ac_cpp_err=yes
5676 fi
5677 if test -z "$ac_cpp_err"; then
5678   ac_header_preproc=yes
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683   ac_header_preproc=no
5684 fi
5685 rm -f conftest.err conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6
5688
5689 # So?  What about this header?
5690 case $ac_header_compiler:$ac_header_preproc in
5691   yes:no )
5692     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5696     (
5697       cat <<\_ASBOX
5698 ## ------------------------------------ ##
5699 ## Report this to bug-autoconf@gnu.org. ##
5700 ## ------------------------------------ ##
5701 _ASBOX
5702     ) |
5703       sed "s/^/$as_me: WARNING:     /" >&2
5704     ;;
5705   no:yes )
5706     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5712     (
5713       cat <<\_ASBOX
5714 ## ------------------------------------ ##
5715 ## Report this to bug-autoconf@gnu.org. ##
5716 ## ------------------------------------ ##
5717 _ASBOX
5718     ) |
5719       sed "s/^/$as_me: WARNING:     /" >&2
5720     ;;
5721 esac
5722 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5723 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   eval "$as_ac_Header=$ac_header_preproc"
5728 fi
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731
5732 fi
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734    cat >>confdefs.h <<\_ACEOF
5735 #define HAVE_READLINE 1
5736 _ACEOF
5737
5738                  got_readline="yes"
5739                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5740                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5741                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5742                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5743
5744 else
5745    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5746 echo "$as_me: error: *** readline library missing" >&2;}
5747    { (exit 1); exit 1; }; }
5748
5749
5750 fi
5751
5752
5753
5754
5755 fi
5756
5757
5758
5759
5760 fi;
5761 fi
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 # Minimal stuff for readline Makefile configuration
5773 MAKE_SHELL=/bin/sh
5774
5775
5776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5778 if test "${ac_cv_header_stat_broken+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 #include <sys/types.h>
5789 #include <sys/stat.h>
5790
5791 #if defined(S_ISBLK) && defined(S_IFDIR)
5792 # if S_ISBLK (S_IFDIR)
5793 You lose.
5794 # endif
5795 #endif
5796
5797 #if defined(S_ISBLK) && defined(S_IFCHR)
5798 # if S_ISBLK (S_IFCHR)
5799 You lose.
5800 # endif
5801 #endif
5802
5803 #if defined(S_ISLNK) && defined(S_IFREG)
5804 # if S_ISLNK (S_IFREG)
5805 You lose.
5806 # endif
5807 #endif
5808
5809 #if defined(S_ISSOCK) && defined(S_IFREG)
5810 # if S_ISSOCK (S_IFREG)
5811 You lose.
5812 # endif
5813 #endif
5814
5815 _ACEOF
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817   $EGREP "You lose" >/dev/null 2>&1; then
5818   ac_cv_header_stat_broken=yes
5819 else
5820   ac_cv_header_stat_broken=no
5821 fi
5822 rm -f conftest*
5823
5824 fi
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5826 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5827 if test $ac_cv_header_stat_broken = yes; then
5828
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STAT_MACROS_BROKEN 1
5831 _ACEOF
5832
5833 fi
5834
5835
5836
5837
5838
5839
5840 ac_header_dirent=no
5841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5842   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #include <sys/types.h>
5856 #include <$ac_hdr>
5857
5858 int
5859 main ()
5860 {
5861 if ((DIR *) 0)
5862 return 0;
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   eval "$as_ac_Header=yes"
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 eval "$as_ac_Header=no"
5885 fi
5886 rm -f conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891   cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5893 _ACEOF
5894
5895 ac_header_dirent=$ac_hdr; break
5896 fi
5897
5898 done
5899 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5900 if test $ac_header_dirent = dirent.h; then
5901   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5903 if test "${ac_cv_search_opendir+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_opendir=no
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915
5916 /* Override any gcc2 internal prototype to avoid an error.  */
5917 #ifdef __cplusplus
5918 extern "C"
5919 #endif
5920 /* We use char because int might match the return type of a gcc2
5921    builtin and then its argument prototype would still apply.  */
5922 char opendir ();
5923 int
5924 main ()
5925 {
5926 opendir ();
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933   (eval $ac_link) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest$ac_exeext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_search_opendir="none required"
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 fi
5949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5950 if test "$ac_cv_search_opendir" = no; then
5951   for ac_lib in dir; do
5952     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5953     cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960
5961 /* Override any gcc2 internal prototype to avoid an error.  */
5962 #ifdef __cplusplus
5963 extern "C"
5964 #endif
5965 /* We use char because int might match the return type of a gcc2
5966    builtin and then its argument prototype would still apply.  */
5967 char opendir ();
5968 int
5969 main ()
5970 {
5971 opendir ();
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext conftest$ac_exeext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978   (eval $ac_link) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -s conftest$ac_exeext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   ac_cv_search_opendir="-l$ac_lib"
5989 break
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 fi
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996   done
5997 fi
5998 LIBS=$ac_func_search_save_LIBS
5999 fi
6000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6002 if test "$ac_cv_search_opendir" != no; then
6003   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6004
6005 fi
6006
6007 else
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in x; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6126 do
6127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6128 echo "$as_me:$LINENO: checking for $ac_func" >&5
6129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_var+set}\" = set"; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 /* confdefs.h.  */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h.  */
6140 /* System header to define __stub macros and hopefully few prototypes,
6141     which can conflict with char $ac_func (); below.
6142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143     <limits.h> exists even on freestanding compilers.  */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 {
6153 #endif
6154 /* We use char because int might match the return type of a gcc2
6155    builtin and then its argument prototype would still apply.  */
6156 char $ac_func ();
6157 /* The GNU C library defines this for functions which it implements
6158     to always fail with ENOSYS.  Some functions are actually named
6159     something starting with __ and the normal name is an alias.  */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 choke me
6162 #else
6163 char (*f) () = $ac_func;
6164 #endif
6165 #ifdef __cplusplus
6166 }
6167 #endif
6168
6169 int
6170 main ()
6171 {
6172 return f != $ac_func;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179   (eval $ac_link) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } &&
6183          { ac_try='test -s conftest$ac_exeext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   eval "$as_ac_var=yes"
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 eval "$as_ac_var=no"
6195 fi
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6197 fi
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200 if test `eval echo '${'$as_ac_var'}'` = yes; then
6201   cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 fi
6206 done
6207
6208
6209 for ac_func in nanosleep
6210 do
6211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6212 echo "$as_me:$LINENO: checking for $ac_func" >&5
6213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_var+set}\" = set"; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   cat >conftest.$ac_ext <<_ACEOF
6218 #line $LINENO "configure"
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 /* System header to define __stub macros and hopefully few prototypes,
6225     which can conflict with char $ac_func (); below.
6226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227     <limits.h> exists even on freestanding compilers.  */
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6233 /* Override any gcc2 internal prototype to avoid an error.  */
6234 #ifdef __cplusplus
6235 extern "C"
6236 {
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char $ac_func ();
6241 /* The GNU C library defines this for functions which it implements
6242     to always fail with ENOSYS.  Some functions are actually named
6243     something starting with __ and the normal name is an alias.  */
6244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 choke me
6246 #else
6247 char (*f) () = $ac_func;
6248 #endif
6249 #ifdef __cplusplus
6250 }
6251 #endif
6252
6253 int
6254 main ()
6255 {
6256 return f != $ac_func;
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -s conftest$ac_exeext'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   eval "$as_ac_var=yes"
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 eval "$as_ac_var=no"
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 fi
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285   cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6287 _ACEOF
6288
6289 fi
6290 done
6291
6292
6293
6294 for ac_header in varargs.h
6295 do
6296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298   echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 fi
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305 else
6306   # Is the header compilable?
6307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 $ac_includes_default
6317 #include <$ac_header>
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest.$ac_objext'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_header_compiler=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 ac_header_compiler=no
6337 fi
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6
6341
6342 # Is the header present?
6343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } >/dev/null; then
6362   if test -s conftest.err; then
6363     ac_cpp_err=$ac_c_preproc_warn_flag
6364   else
6365     ac_cpp_err=
6366   fi
6367 else
6368   ac_cpp_err=yes
6369 fi
6370 if test -z "$ac_cpp_err"; then
6371   ac_header_preproc=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376   ac_header_preproc=no
6377 fi
6378 rm -f conftest.err conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6
6381
6382 # So?  What about this header?
6383 case $ac_header_compiler:$ac_header_preproc in
6384   yes:no )
6385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389     (
6390       cat <<\_ASBOX
6391 ## ------------------------------------ ##
6392 ## Report this to bug-autoconf@gnu.org. ##
6393 ## ------------------------------------ ##
6394 _ASBOX
6395     ) |
6396       sed "s/^/$as_me: WARNING:     /" >&2
6397     ;;
6398   no:yes )
6399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6405     (
6406       cat <<\_ASBOX
6407 ## ------------------------------------ ##
6408 ## Report this to bug-autoconf@gnu.org. ##
6409 ## ------------------------------------ ##
6410 _ASBOX
6411     ) |
6412       sed "s/^/$as_me: WARNING:     /" >&2
6413     ;;
6414 esac
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   eval "$as_ac_Header=$ac_header_preproc"
6421 fi
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424
6425 fi
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427   cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 _ACEOF
6430
6431 fi
6432
6433 done
6434
6435
6436 # End of readline/conio stuff
6437 # -----------------------------------------------------------------------
6438
6439
6440 # ---------------------------------------------------
6441 # Check for GMP support/directory
6442 # ---------------------------------------------------
6443 #GMP_SRC=
6444 #local_gmp="no"
6445 #AC_ARG_WITH(gmp,
6446 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6447 #  [
6448 #     case "$with_gmp" in
6449 #     no) : ;;
6450 #     yes|*)
6451 #       if test "$with_gmp" != "yes"; then
6452 #         GMP_INC="-I$with_gmp"
6453 #         GMP_LIBS="-lgmp"
6454 #         GMP_LDFLAGS="-L$with_gmp"
6455 #       else
6456 #          with_gmp="/usr/include"
6457 #       fi
6458 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6459 #          [ AC_MSG_RESULT(yes)
6460 #            AC_DEFINE(HAVE_GMP)
6461 #            GMP_LIBS="-lgmp"
6462 #            got_gmp="yes"
6463 #          ],
6464 #          [ AC_MSG_ERROR([*** gmp library missing])
6465 #          ]
6466 #       )
6467 #       ;;
6468 #     esac
6469 #  ],[
6470 #    # check for standard gmp library
6471 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6472 #    [ AC_MSG_RESULT(yes)
6473 #      AC_DEFINE(HAVE_GMP)
6474 #      got_gmp="yes"
6475 #      GMP_INC=
6476 #      GMP_LIBS="-lgmp"
6477 #    ], [
6478 #      # Did not find standard library, so use our own
6479 #      AC_MSG_RESULT(yes)
6480 #      AC_DEFINE(HAVE_GMP)
6481 #      got_gmp="yes"
6482 #      local_gmp="yes"
6483 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6484 #      GMP_LIBS="-lgmp"
6485 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6486 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6487 #    ])
6488 #  ]
6489 #)
6490 #AC_SUBST(GMP_INC)
6491 #AC_SUBST(GMP_LIBS)
6492 #AC_SUBST(GMP_LDFLAGS)
6493 #AC_SUBST(GMP_SRC)
6494
6495 # End of GMP stuff
6496 # -----------------------------------------------------------------------
6497
6498
6499 # ---------------------------------------------------
6500 # Check for CWEB support/directory
6501 # ---------------------------------------------------
6502 #CWEB_SRC=
6503 #CWEB=/bin
6504 #local_cweb="no"
6505 #AC_ARG_WITH(cweb,
6506 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6507 #  [
6508 #     case "$with_cweb" in
6509 #     no) : ;;
6510 #     yes|*)
6511 #       if test "$with_cweb" != "yes"; then
6512 #         CWEB_INC="-I$with_cweb"
6513 #         CWEB_LIBS="-lcweb"
6514 #         CWEB_LDFLAGS="-L$with_cweb"
6515 #       else
6516 #          with_cweb="/usr/include"
6517 #       fi
6518 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6519 #          [ AC_MSG_RESULT(yes)
6520 #            AC_DEFINE(HAVE_CWEB)
6521 #            CWEB_LIBS="-lcweb"
6522 #            got_cweb="yes"
6523 #          ],
6524 #          [ AC_MSG_ERROR([*** cweb library missing])
6525 #          ]
6526 #       )
6527 #       ;;
6528 #     esac
6529 #  ],[
6530 #    # check for standard cweb library
6531 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6532 #    [ AC_MSG_RESULT(yes)
6533 #      AC_DEFINE(HAVE_CWEB)
6534 #      got_cweb="yes"
6535 #      CWEB_INC=
6536 #      CWEB_LIBS="-lcweb"
6537 #    ], [
6538 #      # Did not find starndard library, so use our own
6539 #      AC_MSG_RESULT(yes)
6540 #      AC_DEFINE(HAVE_CWEB)
6541 #      got_cweb="yes"
6542 #      local_cweb="yes"
6543 #      CWEB=${TOP_DIR}/depkgs/cweb
6544 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6545 #      CWEB_LIBS="-lcweb"
6546 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6547 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6548 #    ])
6549 #  ]
6550 #)
6551 #AC_SUBST(CWEB)
6552 #AC_SUBST(CWEB_INC)
6553 #AC_SUBST(CWEB_LIBS)
6554 #AC_SUBST(CWEB_LDFLAGS)
6555 #AC_SUBST(CWEB_SRC)
6556
6557 # End of CWEB stuff
6558 # -----------------------------------------------------------------------
6559
6560
6561
6562 # -----------------------------------------------------------
6563 # Check whether user wants TCP wrappers support (default off)
6564 # -----------------------------------------------------------
6565 TCPW_MSG="no"
6566
6567 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6568 if test "${with_tcp_wrappers+set}" = set; then
6569   withval="$with_tcp_wrappers"
6570
6571     if test "x$withval" != "xno" ; then
6572        saved_LIBS="$LIBS"
6573        LIBS="$saved_LIBS -lwrap"
6574        echo "$as_me:$LINENO: checking for libwrap" >&5
6575 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6576        cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583  #include <tcpd.h>
6584              int deny_severity = 0;
6585              int allow_severity = 0;
6586              struct request_info *req;
6587 int
6588 main ()
6589 {
6590  hosts_access(req);
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607
6608             echo "$as_me:$LINENO: result: yes" >&5
6609 echo "${ECHO_T}yes" >&6
6610             cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_LIBWRAP 1
6612 _ACEOF
6613
6614             TCPW_MSG="yes"
6615
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620
6621             LIBS="$saved_LIBS -lwrap -lnsl"
6622             cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629  #include <tcpd.h>
6630                  int deny_severity = 0;
6631                  int allow_severity = 0;
6632                  struct request_info *req;
6633 int
6634 main ()
6635 {
6636  hosts_access(req);
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643   (eval $ac_link) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -s conftest$ac_exeext'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653
6654                  echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656                  cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_LIBWRAP 1
6658 _ACEOF
6659
6660                  TCPW_MSG="yes"
6661
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6667 echo "$as_me: error: *** libwrap missing" >&2;}
6668    { (exit 1); exit 1; }; }
6669
6670 fi
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675     fi
6676
6677
6678 fi;
6679
6680 # ------------------------------------------
6681 # Where to place working dir
6682 # ------------------------------------------
6683 working_dir=`eval echo ${sysconfdir}/working`
6684
6685 # Check whether --with-working-dir or --without-working-dir was given.
6686 if test "${with_working_dir+set}" = set; then
6687   withval="$with_working_dir"
6688
6689        if test "x$withval" != "xno" ; then
6690               working_dir=$withval
6691        fi
6692
6693
6694 fi;
6695
6696
6697
6698
6699 # ------------------------------------------
6700 # Where to place scriptdir (script files)
6701 # ------------------------------------------
6702 scriptdir=`eval echo ${sysconfdir}`
6703
6704 # Check whether --with-scriptdir or --without-scriptdir was given.
6705 if test "${with_scriptdir+set}" = set; then
6706   withval="$with_scriptdir"
6707
6708        if test "x$withval" != "xno" ; then
6709               scriptdir=$withval
6710        fi
6711
6712
6713 fi;
6714
6715
6716
6717
6718 # ------------------------------------------
6719 # Where to send dump email
6720 # ------------------------------------------
6721 dump_email=root@localhost
6722
6723 # Check whether --with-dump-email or --without-dump-email was given.
6724 if test "${with_dump_email+set}" = set; then
6725   withval="$with_dump_email"
6726
6727        if test "x$withval" != "xno" ; then
6728               dump_email=$withval
6729        fi
6730
6731
6732 fi;
6733
6734
6735
6736 # ------------------------------------------
6737 # Where to send job email
6738 # ------------------------------------------
6739 job_email=root@localhost
6740
6741 # Check whether --with-job-email or --without-job-email was given.
6742 if test "${with_job_email+set}" = set; then
6743   withval="$with_job_email"
6744
6745        if test "x$withval" != "xno" ; then
6746               job_email=$withval
6747        fi
6748
6749
6750 fi;
6751
6752
6753
6754 # ------------------------------------------
6755 # Where to find smtp host
6756 # ------------------------------------------
6757 smtp_host=localhost
6758
6759 # Check whether --with-smtp_host or --without-smtp_host was given.
6760 if test "${with_smtp_host+set}" = set; then
6761   withval="$with_smtp_host"
6762
6763        if test "x$withval" != "xno" ; then
6764               smtp_host=$withval
6765        fi
6766
6767
6768 fi;
6769
6770
6771
6772
6773 # ------------------------------------
6774 # Where to place pid files
6775 # ------------------------------------
6776 piddir=/var/run
6777
6778 # Check whether --with-pid-dir or --without-pid-dir was given.
6779 if test "${with_pid_dir+set}" = set; then
6780   withval="$with_pid_dir"
6781
6782         if test "x$withval" != "xno" ; then
6783             piddir=$withval
6784         fi
6785
6786
6787 fi;
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define _PATH_BACULA_PIDDIR "$piddir"
6791 _ACEOF
6792
6793
6794
6795
6796 # ------------------------------------
6797 # Where to place subsys "lock file"
6798 # ------------------------------------
6799 subsysdir=/var/run/subsys
6800
6801 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6802 if test "${with_subsys_dir+set}" = set; then
6803   withval="$with_subsys_dir"
6804
6805         if test "x$withval" != "xno" ; then
6806             subsysdir=$withval
6807         fi
6808
6809
6810 fi;
6811
6812
6813
6814
6815
6816 # ------------------------------------
6817 # Where to start assigning ports
6818 # ------------------------------------
6819 baseport=9101
6820
6821 # Check whether --with-baseport or --without-baseport was given.
6822 if test "${with_baseport+set}" = set; then
6823   withval="$with_baseport"
6824
6825         if test "x$withval" != "xno" ; then
6826              baseport=$withval
6827         fi
6828
6829
6830 fi;
6831
6832
6833 dir_port=`expr $baseport`
6834 fd_port=`expr $baseport + 1`
6835 sd_port=`expr $fd_port + 1`
6836
6837
6838
6839
6840
6841
6842 # ------------------------------------------
6843 # Generate passwords
6844 # ------------------------------------------
6845 dir_password=
6846
6847 # Check whether --with-dir-password or --without-dir-password was given.
6848 if test "${with_dir_password+set}" = set; then
6849   withval="$with_dir_password"
6850
6851        if test "x$withval" != "xno" ; then
6852            dir_password=$withval
6853        fi
6854
6855
6856 fi;
6857
6858 if test "x$dir_password" = "x" ; then
6859    if test "x$OPENSSL" = "xnone" ; then
6860 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6861       key=`autoconf/randpass 33`
6862    else
6863       key=`openssl rand -base64 33`
6864    fi
6865    dir_password=$key
6866 fi
6867
6868 fd_password=
6869
6870 # Check whether --with-fd-password or --without-fd-password was given.
6871 if test "${with_fd_password+set}" = set; then
6872   withval="$with_fd_password"
6873
6874        if test "x$withval" != "xno" ; then
6875            fd_password=$withval
6876        fi
6877
6878
6879 fi;
6880
6881 if test "x$fd_password" = "x" ; then
6882    if test "x$OPENSSL" = "xnone" ; then
6883 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6884       key=`autoconf/randpass 37`
6885    else
6886       key=`openssl rand -base64 33`
6887    fi
6888    fd_password=$key
6889 fi
6890
6891 sd_password=
6892
6893 # Check whether --with-sd-password or --without-sd-password was given.
6894 if test "${with_sd_password+set}" = set; then
6895   withval="$with_sd_password"
6896
6897        if test "x$withval" != "xno" ; then
6898            sd_password=$withval
6899        fi
6900
6901
6902 fi;
6903
6904 if test "x$sd_password" = "x" ; then
6905    if test "x$OPENSSL" = "xnone" ; then
6906 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6907       key=`autoconf/randpass 41`
6908    else
6909       key=`openssl rand -base64 33`
6910    fi
6911    sd_password=$key
6912 fi
6913
6914
6915
6916
6917
6918
6919
6920 #
6921 # Handle users and groups for each daemon
6922 #
6923 dir_user=
6924
6925 # Check whether --with-dir_user or --without-dir_user was given.
6926 if test "${with_dir_user+set}" = set; then
6927   withval="$with_dir_user"
6928
6929         if test "x$withval" != "x" ; then
6930              dir_user=$withval
6931         fi
6932
6933
6934 fi;
6935
6936 dir_group=
6937
6938 # Check whether --with-dir_group or --without-dir_group was given.
6939 if test "${with_dir_group+set}" = set; then
6940   withval="$with_dir_group"
6941
6942         if test "x$withval" != "x" ; then
6943              dir_group=$withval
6944         fi
6945
6946
6947 fi;
6948
6949 sd_user=
6950
6951 # Check whether --with-sd_user or --without-sd_user was given.
6952 if test "${with_sd_user+set}" = set; then
6953   withval="$with_sd_user"
6954
6955         if test "x$withval" != "x" ; then
6956              sd_user=$withval
6957         fi
6958
6959
6960 fi;
6961
6962 sd_group=
6963
6964 # Check whether --with-sd_group or --without-sd_group was given.
6965 if test "${with_sd_group+set}" = set; then
6966   withval="$with_sd_group"
6967
6968         if test "x$withval" != "x" ; then
6969              sd_group=$withval
6970         fi
6971
6972
6973 fi;
6974
6975 fd_user=
6976
6977 # Check whether --with-fd_user or --without-fd_user was given.
6978 if test "${with_fd_user+set}" = set; then
6979   withval="$with_fd_user"
6980
6981         if test "x$withval" != "x" ; then
6982              fd_user=$withval
6983         fi
6984
6985
6986 fi;
6987
6988 fd_group=
6989
6990 # Check whether --with-fd_group or --without-fd_group was given.
6991 if test "${with_fd_group+set}" = set; then
6992   withval="$with_fd_group"
6993
6994         if test "x$withval" != "x" ; then
6995              fd_group=$withval
6996         fi
6997
6998
6999 fi;
7000
7001
7002
7003
7004
7005
7006
7007
7008 db_found=no
7009 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7010 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7011
7012 # Check whether --with-postgresql was given.
7013 if test "${with_postgresql+set}" = set; then
7014   withval="$with_postgresql"
7015
7016   if test "$withval" != "no"; then
7017         if test "$withval" = "yes"; then
7018                 if test -f /usr/local/postgresql/include/postgresql/libpq-fe.h; then
7019                         POSTGRESQL_INCDIR=/usr/local/postgresql/include/postgresql
7020                         POSTGRESQL_LIBDIR=/usr/local/postgresql/lib/postgresql
7021                         POSTGRESQL_BINDIR=/usr/local/postgresql/bin
7022                 elif test -f /usr/include/postgresql/libpq-fe.h; then
7023                         POSTGRESQL_INCDIR=/usr/include/postgresql
7024                         POSTGRESQL_LIBDIR=/usr/lib/postgresql
7025                         POSTGRESQL_BINDIR=/usr/bin
7026                 elif test -f /usr/include/libpq-fe.h; then
7027                         POSTGRESQL_INCDIR=/usr/include
7028                         POSTGRESQL_LIBDIR=/usr/lib
7029                         POSTGRESQL_BINDIR=/usr/bin
7030                 elif test -f /usr/local/include/postgresql/libpq-fe.h; then
7031                         POSTGRESQL_INCDIR=/usr/local/include/postgresql
7032                         POSTGRESQL_LIBDIR=/usr/local/lib/postgresql
7033                         POSTGRESQL_BINDIR=/usr/local/bin
7034                 elif 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                 else
7039                    echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7041                    { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7042 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7043    { (exit 1); exit 1; }; }
7044                 fi
7045         else
7046                 if test -f $withval/include/postgresql/libpq-fe.h; then
7047                         POSTGRESQL_INCDIR=$withval/include/postgresql
7048                         POSTGRESQL_LIBDIR=$withval/lib/postgresql
7049                         POSTGRESQL_BINDIR=$withval/bin
7050                 elif test -f $withval/include/libpq-fe.h; then
7051                         POSTGRESQL_INCDIR=$withval/include
7052                         POSTGRESQL_LIBDIR=$withval/lib
7053                         POSTGRESQL_BINDIR=$withval/bin
7054                 else
7055                    echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7057                    { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7058 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7059    { (exit 1); exit 1; }; }
7060                 fi
7061         fi
7062     SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7063     SQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq -lz"
7064     SQL_BINDIR=$POSTGRESQL_BINDIR
7065
7066     cat >>confdefs.h <<\_ACEOF
7067 #define HAVE_POSTGRESQL 1
7068 _ACEOF
7069
7070     echo "$as_me:$LINENO: result: yes" >&5
7071 echo "${ECHO_T}yes" >&6
7072     db_found=yes
7073     support_postgresql=yes
7074     db_name=PostgreSQL
7075     DB_NAME=postgresql
7076
7077   else
7078         echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6
7080   fi
7081
7082 else
7083
7084     echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6
7086
7087 fi;
7088
7089 db_found=no
7090 echo "$as_me:$LINENO: checking for MySQL support" >&5
7091 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7092
7093 # Check whether --with-mysql or --without-mysql was given.
7094 if test "${with_mysql+set}" = set; then
7095   withval="$with_mysql"
7096
7097   if test "$withval" != "no"; then
7098         if test "$withval" = "yes"; then
7099                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7100                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7101                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7102                         MYSQL_BINDIR=/usr/local/mysql/bin
7103                 elif test -f /usr/include/mysql/mysql.h; then
7104                         MYSQL_INCDIR=/usr/include/mysql
7105                         MYSQL_LIBDIR=/usr/lib/mysql
7106                         MYSQL_BINDIR=/usr/bin
7107                 elif test -f /usr/include/mysql.h; then
7108                         MYSQL_INCDIR=/usr/include
7109                         MYSQL_LIBDIR=/usr/lib
7110                         MYSQL_BINDIR=/usr/bin
7111                 elif test -f /usr/local/include/mysql/mysql.h; then
7112                         MYSQL_INCDIR=/usr/local/include/mysql
7113                         MYSQL_LIBDIR=/usr/local/lib/mysql
7114                         MYSQL_BINDIR=/usr/local/bin
7115                 elif test -f /usr/local/include/mysql.h; then
7116                         MYSQL_INCDIR=/usr/local/include
7117                         MYSQL_LIBDIR=/usr/local/lib
7118                         MYSQL_BINDIR=/usr/local/bin
7119                 else
7120                    echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6
7122                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7123 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7124    { (exit 1); exit 1; }; }
7125                 fi
7126         else
7127                 if test -f $withval/include/mysql/mysql.h; then
7128                         MYSQL_INCDIR=$withval/include/mysql
7129                         MYSQL_LIBDIR=$withval/lib/mysql
7130                         MYSQL_BINDIR=$withval/bin
7131                 elif test -f $withval/include/mysql.h; then
7132                         MYSQL_INCDIR=$withval/include
7133                         MYSQL_LIBDIR=$withval/lib
7134                         MYSQL_BINDIR=$withval/bin
7135                 else
7136                    echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7138                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7139 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7140    { (exit 1); exit 1; }; }
7141                 fi
7142         fi
7143     SQL_INCLUDE=-I$MYSQL_INCDIR
7144     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7145        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7146        cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_THREAD_SAFE_MYSQL 1
7148 _ACEOF
7149
7150     else
7151        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7152     fi
7153     SQL_BINDIR=$MYSQL_BINDIR
7154
7155     cat >>confdefs.h <<\_ACEOF
7156 #define HAVE_MYSQL 1
7157 _ACEOF
7158
7159     echo "$as_me:$LINENO: result: yes" >&5
7160 echo "${ECHO_T}yes" >&6
7161     db_found=yes
7162     support_mysql=yes
7163     db_name=MySQL
7164     DB_NAME=mysql
7165
7166   else
7167         echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7169   fi
7170
7171 else
7172
7173     echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175
7176 fi;
7177
7178
7179 echo "$as_me:$LINENO: checking for embedded MySQL support" >&5
7180 echo $ECHO_N "checking for embedded MySQL support... $ECHO_C" >&6
7181
7182 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7183 if test "${with_embedded_mysql+set}" = set; then
7184   withval="$with_embedded_mysql"
7185
7186   if test "$withval" != "no"; then
7187         if test "$withval" = "yes"; then
7188                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7189                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7190                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7191                         MYSQL_BINDIR=/usr/local/mysql/bin
7192                 elif test -f /usr/include/mysql/mysql.h; then
7193                         MYSQL_INCDIR=/usr/include/mysql
7194                         MYSQL_LIBDIR=/usr/lib/mysql
7195                         MYSQL_BINDIR=/usr/bin
7196                 elif test -f /usr/include/mysql.h; then
7197                         MYSQL_INCDIR=/usr/include
7198                         MYSQL_LIBDIR=/usr/lib
7199                         MYSQL_BINDIR=/usr/bin
7200                 elif test -f /usr/local/include/mysql/mysql.h; then
7201                         MYSQL_INCDIR=/usr/local/include/mysql
7202                         MYSQL_LIBDIR=/usr/local/lib/mysql
7203                         MYSQL_BINDIR=/usr/local/bin
7204                 elif test -f /usr/local/include/mysql.h; then
7205                         MYSQL_INCDIR=/usr/local/include
7206                         MYSQL_LIBDIR=/usr/local/lib
7207                         MYSQL_BINDIR=/usr/local/bin
7208                 else
7209                    echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7212 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7213    { (exit 1); exit 1; }; }
7214                 fi
7215         else
7216                 if test -f $withval/include/mysql/mysql.h; then
7217                         MYSQL_INCDIR=$withval/include/mysql
7218                         MYSQL_LIBDIR=$withval/lib/mysql
7219                         MYSQL_BINDIR=$withval/bin
7220                 elif test -f $withval/include/mysql.h; then
7221                         MYSQL_INCDIR=$withval/include
7222                         MYSQL_LIBDIR=$withval/lib
7223                         MYSQL_BINDIR=$withval/bin
7224                 else
7225                    echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7227                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7228 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7229    { (exit 1); exit 1; }; }
7230                 fi
7231         fi
7232     SQL_INCLUDE=-I$MYSQL_INCDIR
7233     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7234     SQL_BINDIR=$MYSQL_BINDIR
7235
7236     cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_MYSQL 1
7238 _ACEOF
7239
7240     cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_EMBEDDED_MYSQL 1
7242 _ACEOF
7243
7244     echo "$as_me:$LINENO: result: yes" >&5
7245 echo "${ECHO_T}yes" >&6
7246     db_found=yes
7247     support_mysql=yes
7248     db_name=MySQL
7249     DB_NAME=mysql
7250
7251   else
7252         echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7254   fi
7255
7256 else
7257
7258   echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260
7261 fi;
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271 db_found=no
7272 echo "$as_me:$LINENO: checking for SQLite support" >&5
7273 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7274
7275 # Check whether --with-sqlite or --without-sqlite was given.
7276 if test "${with_sqlite+set}" = set; then
7277   withval="$with_sqlite"
7278
7279   if test "$withval" != "no"; then
7280         if test "$withval" = "yes"; then
7281                 if test -f /usr/local/include/sqlite.h; then
7282                         SQLITE_INCDIR=/usr/local/include
7283                         SQLITE_LIBDIR=/usr/local/lib
7284                         SQLITE_BINDIR=/usr/local/bin
7285                 elif test -f /usr/include/sqlite.h; then
7286                         SQLITE_INCDIR=/usr/include
7287                         SQLITE_LIBDIR=/usr/lib
7288                         SQLITE_BINDIR=/usr/bin
7289                 else
7290                    echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7293 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7294    { (exit 1); exit 1; }; }
7295                 fi
7296         else
7297                 if test -f $withval/sqlite.h; then
7298                         SQLITE_INCDIR=$withval
7299                         SQLITE_LIBDIR=$withval
7300                         SQLITE_BINDIR=$withval
7301                 else
7302                    echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7305 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7306    { (exit 1); exit 1; }; }
7307                 fi
7308         fi
7309     SQL_INCLUDE=-I$SQLITE_INCDIR
7310     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7311     SQL_BINDIR=$SQLITE_BINDIR
7312
7313     cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_SQLITE 1
7315 _ACEOF
7316
7317     echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7319     db_found=yes
7320     support_sqlite=yes
7321     db_name=SQLite
7322     DB_NAME=sqlite
7323
7324   else
7325         echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7327   fi
7328
7329 else
7330
7331   echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6
7333
7334 fi;
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344 cat >>confdefs.h <<\_ACEOF
7345 #define PROTOTYPES 1
7346 _ACEOF
7347
7348
7349 if test -z "$CFLAGS"; then
7350     if test -z "$CCOPTS"; then
7351         CCOPTS='-g -O2'
7352     fi
7353     CFLAGS="$CCOPTS"
7354 fi
7355
7356
7357
7358
7359 largefile_support="no"
7360
7361    # Check whether --enable-largefile or --disable-largefile was given.
7362 if test "${enable_largefile+set}" = set; then
7363   enableval="$enable_largefile"
7364
7365 fi;
7366    if test "$enable_largefile" != no; then
7367      if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_GETCONF+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   if test -n "$GETCONF"; then
7376   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391
7392 fi
7393 fi
7394 GETCONF=$ac_cv_prog_GETCONF
7395 if test -n "$GETCONF"; then
7396   echo "$as_me:$LINENO: result: $GETCONF" >&5
7397 echo "${ECHO_T}$GETCONF" >&6
7398 else
7399   echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7401 fi
7402
7403 fi
7404 if test -z "$ac_cv_prog_GETCONF"; then
7405   ac_ct_GETCONF=$GETCONF
7406   # Extract the first word of "getconf", so it can be a program name with args.
7407 set dummy getconf; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   if test -n "$ac_ct_GETCONF"; then
7414   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_ac_ct_GETCONF="getconf"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429
7430 fi
7431 fi
7432 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7433 if test -n "$ac_ct_GETCONF"; then
7434   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7435 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7436 else
7437   echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 fi
7440
7441   GETCONF=$ac_ct_GETCONF
7442 else
7443   GETCONF="$ac_cv_prog_GETCONF"
7444 fi
7445
7446      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7447 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7448 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7452         ac_cv_sys_largefile_CFLAGS=no
7453         case "$host_os" in
7454            # IRIX 6.2 and later require cc -n32.
7455            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7456              if test "$GCC" != yes; then
7457                ac_cv_sys_largefile_CFLAGS=-n32
7458              fi
7459              ac_save_CC="$CC"
7460              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7461              cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468
7469 int
7470 main ()
7471 {
7472
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } &&
7483          { ac_try='test -s conftest$ac_exeext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   :
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_sys_largefile_CFLAGS=no
7495 fi
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497              CC="$ac_save_CC"
7498            esac
7499       }
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7502 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7503      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7504 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7505 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7509         ac_cv_sys_largefile_LDFLAGS=no
7510
7511       }
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7514 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7515      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7516 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7517 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7521         ac_cv_sys_largefile_LIBS=no
7522
7523       }
7524 fi
7525 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7526 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7527
7528      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7529        case "$ac_flag" in
7530        no) ;;
7531        -D_FILE_OFFSET_BITS=*) ;;
7532        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7533        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7534        -D?* | -I?*)
7535          case "$ac_flag" in
7536    no) ;;
7537    ?*)
7538      case "$CPPFLAGS" in
7539      '') CPPFLAGS="$ac_flag" ;;
7540      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7541      esac ;;
7542    esac ;;
7543        *)
7544          case "$ac_flag" in
7545    no) ;;
7546    ?*)
7547      case "$CFLAGS" in
7548      '') CFLAGS="$ac_flag" ;;
7549      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7550      esac ;;
7551    esac ;;
7552        esac
7553      done
7554      case "$ac_cv_sys_largefile_LDFLAGS" in
7555    no) ;;
7556    ?*)
7557      case "$LDFLAGS" in
7558      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7559      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7560      esac ;;
7561    esac
7562      case "$ac_cv_sys_largefile_LIBS" in
7563    no) ;;
7564    ?*)
7565      case "$LIBS" in
7566      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7567      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7568      esac ;;
7569    esac
7570      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7571 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7572 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   ac_cv_sys_file_offset_bits=no
7576       case "$host_os" in
7577         # HP-UX 10.20 and later
7578         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7579           ac_cv_sys_file_offset_bits=64 ;;
7580         esac
7581       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7582         case "$ac_flag" in
7583         -D_FILE_OFFSET_BITS)
7584           ac_cv_sys_file_offset_bits=1 ;;
7585         -D_FILE_OFFSET_BITS=*)
7586           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7587         esac
7588       done
7589
7590 fi
7591 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7592 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7593    if test "$ac_cv_sys_file_offset_bits" != no; then
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7597 _ACEOF
7598
7599    fi
7600      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7601 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7602 if test "${ac_cv_sys_largefile_source+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   ac_cv_sys_largefile_source=no
7606       case "$host_os" in
7607         # HP-UX 10.20 and later
7608         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7609           ac_cv_sys_largefile_source=1 ;;
7610         esac
7611       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7612         case "$ac_flag" in
7613         -D_LARGEFILE_SOURCE)
7614           ac_cv_sys_largefile_source=1 ;;
7615         -D_LARGEFILE_SOURCE=*)
7616           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7617         esac
7618       done
7619
7620 fi
7621 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7622 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7623    if test "$ac_cv_sys_largefile_source" != no; then
7624
7625 cat >>confdefs.h <<_ACEOF
7626 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7627 _ACEOF
7628
7629    fi
7630      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7631 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7632 if test "${ac_cv_sys_large_files+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   ac_cv_sys_large_files=no
7636       case "$host_os" in
7637         # AIX 4.2 and later
7638         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7639           ac_cv_sys_large_files=1 ;;
7640         esac
7641       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7642         case "$ac_flag" in
7643         -D_LARGE_FILES)
7644           ac_cv_sys_large_files=1 ;;
7645         -D_LARGE_FILES=*)
7646           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7647         esac
7648       done
7649
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7652 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7653    if test "$ac_cv_sys_large_files" != no; then
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define _LARGE_FILES $ac_cv_sys_large_files
7657 _ACEOF
7658
7659    fi
7660    fi
7661
7662
7663
7664 echo "$as_me:$LINENO: checking for X" >&5
7665 echo $ECHO_N "checking for X... $ECHO_C" >&6
7666
7667
7668 # Check whether --with-x or --without-x was given.
7669 if test "${with_x+set}" = set; then
7670   withval="$with_x"
7671
7672 fi;
7673 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7674 if test "x$with_x" = xno; then
7675   # The user explicitly disabled X.
7676   have_x=disabled
7677 else
7678   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7679     # Both variables are already set.
7680     have_x=yes
7681   else
7682     if test "${ac_cv_have_x+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   # One or both of the vars are not set, and there is no cached value.
7686 ac_x_includes=no ac_x_libraries=no
7687 rm -fr conftest.dir
7688 if mkdir conftest.dir; then
7689   cd conftest.dir
7690   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7691   cat >Imakefile <<'_ACEOF'
7692 acfindx:
7693         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7694 _ACEOF
7695   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7696     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7697     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7698     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7699     for ac_extension in a so sl; do
7700       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7701          test -f $ac_im_libdir/libX11.$ac_extension; then
7702         ac_im_usrlibdir=$ac_im_libdir; break
7703       fi
7704     done
7705     # Screen out bogus values from the imake configuration.  They are
7706     # bogus both because they are the default anyway, and because
7707     # using them would break gcc on systems where it needs fixed includes.
7708     case $ac_im_incroot in
7709         /usr/include) ;;
7710         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7711     esac
7712     case $ac_im_usrlibdir in
7713         /usr/lib | /lib) ;;
7714         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7715     esac
7716   fi
7717   cd ..
7718   rm -fr conftest.dir
7719 fi
7720
7721 # Standard set of common directories for X headers.
7722 # Check X11 before X11Rn because it is often a symlink to the current release.
7723 ac_x_header_dirs='
7724 /usr/X11/include
7725 /usr/X11R6/include
7726 /usr/X11R5/include
7727 /usr/X11R4/include
7728
7729 /usr/include/X11
7730 /usr/include/X11R6
7731 /usr/include/X11R5
7732 /usr/include/X11R4
7733
7734 /usr/local/X11/include
7735 /usr/local/X11R6/include
7736 /usr/local/X11R5/include
7737 /usr/local/X11R4/include
7738
7739 /usr/local/include/X11
7740 /usr/local/include/X11R6
7741 /usr/local/include/X11R5
7742 /usr/local/include/X11R4
7743
7744 /usr/X386/include
7745 /usr/x386/include
7746 /usr/XFree86/include/X11
7747
7748 /usr/include
7749 /usr/local/include
7750 /usr/unsupported/include
7751 /usr/athena/include
7752 /usr/local/x11r5/include
7753 /usr/lpp/Xamples/include
7754
7755 /usr/openwin/include
7756 /usr/openwin/share/include'
7757
7758 if test "$ac_x_includes" = no; then
7759   # Guess where to find include files, by looking for Intrinsic.h.
7760   # First, try using that file with no special directory specified.
7761   cat >conftest.$ac_ext <<_ACEOF
7762 #line $LINENO "configure"
7763 /* confdefs.h.  */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h.  */
7768 #include <X11/Intrinsic.h>
7769 _ACEOF
7770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } >/dev/null; then
7778   if test -s conftest.err; then
7779     ac_cpp_err=$ac_c_preproc_warn_flag
7780   else
7781     ac_cpp_err=
7782   fi
7783 else
7784   ac_cpp_err=yes
7785 fi
7786 if test -z "$ac_cpp_err"; then
7787   # We can compile using X headers with no special include directory.
7788 ac_x_includes=
7789 else
7790   echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793   for ac_dir in $ac_x_header_dirs; do
7794   if test -r "$ac_dir/X11/Intrinsic.h"; then
7795     ac_x_includes=$ac_dir
7796     break
7797   fi
7798 done
7799 fi
7800 rm -f conftest.err conftest.$ac_ext
7801 fi # $ac_x_includes = no
7802
7803 if test "$ac_x_libraries" = no; then
7804   # Check for the libraries.
7805   # See if we find them without any special options.
7806   # Don't add to $LIBS permanently.
7807   ac_save_LIBS=$LIBS
7808   LIBS="-lXt $LIBS"
7809   cat >conftest.$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816 #include <X11/Intrinsic.h>
7817 int
7818 main ()
7819 {
7820 XtMalloc (0)
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827   (eval $ac_link) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -s conftest$ac_exeext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   LIBS=$ac_save_LIBS
7838 # We can link X programs with no special library path.
7839 ac_x_libraries=
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 LIBS=$ac_save_LIBS
7845 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7846 do
7847   # Don't even attempt the hair of trying to link an X program!
7848   for ac_extension in a so sl; do
7849     if test -r $ac_dir/libXt.$ac_extension; then
7850       ac_x_libraries=$ac_dir
7851       break 2
7852     fi
7853   done
7854 done
7855 fi
7856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 fi # $ac_x_libraries = no
7858
7859 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7860   # Didn't find X anywhere.  Cache the known absence of X.
7861   ac_cv_have_x="have_x=no"
7862 else
7863   # Record where we found X for the cache.
7864   ac_cv_have_x="have_x=yes \
7865                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7866 fi
7867 fi
7868
7869   fi
7870   eval "$ac_cv_have_x"
7871 fi # $with_x != no
7872
7873 if test "$have_x" != yes; then
7874   echo "$as_me:$LINENO: result: $have_x" >&5
7875 echo "${ECHO_T}$have_x" >&6
7876   no_x=yes
7877 else
7878   # If each of the values was on the command line, it overrides each guess.
7879   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7880   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7881   # Update the cache value to reflect the command line values.
7882   ac_cv_have_x="have_x=yes \
7883                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7884   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7885 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7886 fi
7887
7888 if test "$no_x" = yes; then
7889   # Not all programs may use this symbol, but it does not hurt to define it.
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define X_DISPLAY_MISSING 1
7893 _ACEOF
7894
7895   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7896 else
7897   if test -n "$x_includes"; then
7898     X_CFLAGS="$X_CFLAGS -I$x_includes"
7899   fi
7900
7901   # It would also be nice to do this for all -L options, not just this one.
7902   if test -n "$x_libraries"; then
7903     X_LIBS="$X_LIBS -L$x_libraries"
7904     # For Solaris; some versions of Sun CC require a space after -R and
7905     # others require no space.  Words are not sufficient . . . .
7906     case `(uname -sr) 2>/dev/null` in
7907     "SunOS 5"*)
7908       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7909 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7910       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7911       cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7913 /* confdefs.h.  */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h.  */
7918
7919 int
7920 main ()
7921 {
7922
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929   (eval $ac_link) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -s conftest$ac_exeext'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; }; then
7939   ac_R_nospace=yes
7940 else
7941   echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944 ac_R_nospace=no
7945 fi
7946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7947       if test $ac_R_nospace = yes; then
7948         echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6
7950         X_LIBS="$X_LIBS -R$x_libraries"
7951       else
7952         LIBS="$ac_xsave_LIBS -R $x_libraries"
7953         cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 int
7962 main ()
7963 {
7964
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971   (eval $ac_link) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -s conftest$ac_exeext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_R_space=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 ac_R_space=no
7987 fi
7988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7989         if test $ac_R_space = yes; then
7990           echo "$as_me:$LINENO: result: yes" >&5
7991 echo "${ECHO_T}yes" >&6
7992           X_LIBS="$X_LIBS -R $x_libraries"
7993         else
7994           echo "$as_me:$LINENO: result: neither works" >&5
7995 echo "${ECHO_T}neither works" >&6
7996         fi
7997       fi
7998       LIBS=$ac_xsave_LIBS
7999     esac
8000   fi
8001
8002   # Check for system-dependent libraries X programs must link with.
8003   # Do this before checking for the system-independent R6 libraries
8004   # (-lICE), since we may need -lsocket or whatever for X linking.
8005
8006   if test "$ISC" = yes; then
8007     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8008   else
8009     # Martyn Johnson says this is needed for Ultrix, if the X
8010     # libraries were built with DECnet support.  And Karl Berry says
8011     # the Alpha needs dnet_stub (dnet does not exist).
8012     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8013     cat >conftest.$ac_ext <<_ACEOF
8014 #line $LINENO "configure"
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 /* Override any gcc2 internal prototype to avoid an error.  */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 /* We use char because int might match the return type of a gcc2
8026    builtin and then its argument prototype would still apply.  */
8027 char XOpenDisplay ();
8028 int
8029 main ()
8030 {
8031 XOpenDisplay ();
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038   (eval $ac_link) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -s conftest$ac_exeext'
8043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   :
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8054 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8055 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-ldnet  $LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067
8068 /* Override any gcc2 internal prototype to avoid an error.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 /* We use char because int might match the return type of a gcc2
8073    builtin and then its argument prototype would still apply.  */
8074 char dnet_ntoa ();
8075 int
8076 main ()
8077 {
8078 dnet_ntoa ();
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085   (eval $ac_link) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } &&
8089          { ac_try='test -s conftest$ac_exeext'
8090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091   (eval $ac_try) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; }; then
8095   ac_cv_lib_dnet_dnet_ntoa=yes
8096 else
8097   echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_cv_lib_dnet_dnet_ntoa=no
8101 fi
8102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103 LIBS=$ac_check_lib_save_LIBS
8104 fi
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8106 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8107 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8108   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8109 fi
8110
8111     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8112       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8113 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   ac_check_lib_save_LIBS=$LIBS
8118 LIBS="-ldnet_stub  $LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 /* Override any gcc2 internal prototype to avoid an error.  */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 /* We use char because int might match the return type of a gcc2
8132    builtin and then its argument prototype would still apply.  */
8133 char dnet_ntoa ();
8134 int
8135 main ()
8136 {
8137 dnet_ntoa ();
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144   (eval $ac_link) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -s conftest$ac_exeext'
8149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150   (eval $ac_try) 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; }; then
8154   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_cv_lib_dnet_stub_dnet_ntoa=no
8160 fi
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8166 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8167   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8168 fi
8169
8170     fi
8171 fi
8172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8173     LIBS="$ac_xsave_LIBS"
8174
8175     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8176     # to get the SysV transport functions.
8177     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8178     # needs -lnsl.
8179     # The nsl library prevents programs from opening the X display
8180     # on Irix 5.2, according to T.E. Dickey.
8181     # The functions gethostbyname, getservbyname, and inet_addr are
8182     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8183     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8185 if test "${ac_cv_func_gethostbyname+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 /* System header to define __stub macros and hopefully few prototypes,
8196     which can conflict with char gethostbyname (); below.
8197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8198     <limits.h> exists even on freestanding compilers.  */
8199 #ifdef __STDC__
8200 # include <limits.h>
8201 #else
8202 # include <assert.h>
8203 #endif
8204 /* Override any gcc2 internal prototype to avoid an error.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 {
8208 #endif
8209 /* We use char because int might match the return type of a gcc2
8210    builtin and then its argument prototype would still apply.  */
8211 char gethostbyname ();
8212 /* The GNU C library defines this for functions which it implements
8213     to always fail with ENOSYS.  Some functions are actually named
8214     something starting with __ and the normal name is an alias.  */
8215 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8216 choke me
8217 #else
8218 char (*f) () = gethostbyname;
8219 #endif
8220 #ifdef __cplusplus
8221 }
8222 #endif
8223
8224 int
8225 main ()
8226 {
8227 return f != gethostbyname;
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234   (eval $ac_link) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } &&
8238          { ac_try='test -s conftest$ac_exeext'
8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240   (eval $ac_try) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; }; then
8244   ac_cv_func_gethostbyname=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_func_gethostbyname=no
8250 fi
8251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8252 fi
8253 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8254 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8255
8256     if test $ac_cv_func_gethostbyname = no; then
8257       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8258 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8259 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   ac_check_lib_save_LIBS=$LIBS
8263 LIBS="-lnsl  $LIBS"
8264 cat >conftest.$ac_ext <<_ACEOF
8265 #line $LINENO "configure"
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271
8272 /* Override any gcc2 internal prototype to avoid an error.  */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 /* We use char because int might match the return type of a gcc2
8277    builtin and then its argument prototype would still apply.  */
8278 char gethostbyname ();
8279 int
8280 main ()
8281 {
8282 gethostbyname ();
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289   (eval $ac_link) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -s conftest$ac_exeext'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   ac_cv_lib_nsl_gethostbyname=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 ac_cv_lib_nsl_gethostbyname=no
8305 fi
8306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8310 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8311 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8312   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8313 fi
8314
8315       if test $ac_cv_lib_nsl_gethostbyname = no; then
8316         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8317 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8318 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   ac_check_lib_save_LIBS=$LIBS
8322 LIBS="-lbsd  $LIBS"
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330
8331 /* Override any gcc2 internal prototype to avoid an error.  */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 /* We use char because int might match the return type of a gcc2
8336    builtin and then its argument prototype would still apply.  */
8337 char gethostbyname ();
8338 int
8339 main ()
8340 {
8341 gethostbyname ();
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348   (eval $ac_link) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -s conftest$ac_exeext'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; }; then
8358   ac_cv_lib_bsd_gethostbyname=yes
8359 else
8360   echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_lib_bsd_gethostbyname=no
8364 fi
8365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366 LIBS=$ac_check_lib_save_LIBS
8367 fi
8368 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8369 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8370 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8371   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8372 fi
8373
8374       fi
8375     fi
8376
8377     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8378     # socket/setsockopt and other routines are undefined under SCO ODT
8379     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8380     # on later versions), says Simon Leinen: it contains gethostby*
8381     # variants that don't use the name server (or something).  -lsocket
8382     # must be given before -lnsl if both are needed.  We assume that
8383     # if connect needs -lnsl, so does gethostbyname.
8384     echo "$as_me:$LINENO: checking for connect" >&5
8385 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8386 if test "${ac_cv_func_connect+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396 /* System header to define __stub macros and hopefully few prototypes,
8397     which can conflict with char connect (); below.
8398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399     <limits.h> exists even on freestanding compilers.  */
8400 #ifdef __STDC__
8401 # include <limits.h>
8402 #else
8403 # include <assert.h>
8404 #endif
8405 /* Override any gcc2 internal prototype to avoid an error.  */
8406 #ifdef __cplusplus
8407 extern "C"
8408 {
8409 #endif
8410 /* We use char because int might match the return type of a gcc2
8411    builtin and then its argument prototype would still apply.  */
8412 char connect ();
8413 /* The GNU C library defines this for functions which it implements
8414     to always fail with ENOSYS.  Some functions are actually named
8415     something starting with __ and the normal name is an alias.  */
8416 #if defined (__stub_connect) || defined (__stub___connect)
8417 choke me
8418 #else
8419 char (*f) () = connect;
8420 #endif
8421 #ifdef __cplusplus
8422 }
8423 #endif
8424
8425 int
8426 main ()
8427 {
8428 return f != connect;
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435   (eval $ac_link) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } &&
8439          { ac_try='test -s conftest$ac_exeext'
8440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441   (eval $ac_try) 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; }; then
8445   ac_cv_func_connect=yes
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_cv_func_connect=no
8451 fi
8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453 fi
8454 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8455 echo "${ECHO_T}$ac_cv_func_connect" >&6
8456
8457     if test $ac_cv_func_connect = no; then
8458       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8459 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8460 if test "${ac_cv_lib_socket_connect+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char connect ();
8480 int
8481 main ()
8482 {
8483 connect ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_lib_socket_connect=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_lib_socket_connect=no
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8511 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8512 if test $ac_cv_lib_socket_connect = yes; then
8513   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8514 fi
8515
8516     fi
8517
8518     # Guillermo Gomez says -lposix is necessary on A/UX.
8519     echo "$as_me:$LINENO: checking for remove" >&5
8520 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8521 if test "${ac_cv_func_remove+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 /* System header to define __stub macros and hopefully few prototypes,
8532     which can conflict with char remove (); below.
8533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8534     <limits.h> exists even on freestanding compilers.  */
8535 #ifdef __STDC__
8536 # include <limits.h>
8537 #else
8538 # include <assert.h>
8539 #endif
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 {
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char remove ();
8548 /* The GNU C library defines this for functions which it implements
8549     to always fail with ENOSYS.  Some functions are actually named
8550     something starting with __ and the normal name is an alias.  */
8551 #if defined (__stub_remove) || defined (__stub___remove)
8552 choke me
8553 #else
8554 char (*f) () = remove;
8555 #endif
8556 #ifdef __cplusplus
8557 }
8558 #endif
8559
8560 int
8561 main ()
8562 {
8563 return f != remove;
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } &&
8574          { ac_try='test -s conftest$ac_exeext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_func_remove=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_cv_func_remove=no
8586 fi
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 fi
8589 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8590 echo "${ECHO_T}$ac_cv_func_remove" >&6
8591
8592     if test $ac_cv_func_remove = no; then
8593       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8594 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8595 if test "${ac_cv_lib_posix_remove+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-lposix  $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 /* Override any gcc2 internal prototype to avoid an error.  */
8609 #ifdef __cplusplus
8610 extern "C"
8611 #endif
8612 /* We use char because int might match the return type of a gcc2
8613    builtin and then its argument prototype would still apply.  */
8614 char remove ();
8615 int
8616 main ()
8617 {
8618 remove ();
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625   (eval $ac_link) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } &&
8629          { ac_try='test -s conftest$ac_exeext'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_cv_lib_posix_remove=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 ac_cv_lib_posix_remove=no
8641 fi
8642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8644 fi
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8646 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8647 if test $ac_cv_lib_posix_remove = yes; then
8648   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8649 fi
8650
8651     fi
8652
8653     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8654     echo "$as_me:$LINENO: checking for shmat" >&5
8655 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8656 if test "${ac_cv_func_shmat+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 /* System header to define __stub macros and hopefully few prototypes,
8667     which can conflict with char shmat (); below.
8668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669     <limits.h> exists even on freestanding compilers.  */
8670 #ifdef __STDC__
8671 # include <limits.h>
8672 #else
8673 # include <assert.h>
8674 #endif
8675 /* Override any gcc2 internal prototype to avoid an error.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 {
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681    builtin and then its argument prototype would still apply.  */
8682 char shmat ();
8683 /* The GNU C library defines this for functions which it implements
8684     to always fail with ENOSYS.  Some functions are actually named
8685     something starting with __ and the normal name is an alias.  */
8686 #if defined (__stub_shmat) || defined (__stub___shmat)
8687 choke me
8688 #else
8689 char (*f) () = shmat;
8690 #endif
8691 #ifdef __cplusplus
8692 }
8693 #endif
8694
8695 int
8696 main ()
8697 {
8698 return f != shmat;
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705   (eval $ac_link) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -s conftest$ac_exeext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_func_shmat=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_func_shmat=no
8721 fi
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 fi
8724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8726
8727     if test $ac_cv_func_shmat = no; then
8728       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lipc  $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742
8743 /* Override any gcc2 internal prototype to avoid an error.  */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 /* We use char because int might match the return type of a gcc2
8748    builtin and then its argument prototype would still apply.  */
8749 char shmat ();
8750 int
8751 main ()
8752 {
8753 shmat ();
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -s conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_lib_ipc_shmat=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_lib_ipc_shmat=no
8776 fi
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8782 if test $ac_cv_lib_ipc_shmat = yes; then
8783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8784 fi
8785
8786     fi
8787   fi
8788
8789   # Check for libraries that X11R6 Xt/Xaw programs need.
8790   ac_save_LDFLAGS=$LDFLAGS
8791   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8792   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8793   # check for ICE first), but we must link in the order -lSM -lICE or
8794   # we get undefined symbols.  So assume we have SM if we have ICE.
8795   # These have to be linked with before -lX11, unlike the other
8796   # libraries we check for below, so use a different variable.
8797   # John Interrante, Karl Berry
8798   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   ac_check_lib_save_LIBS=$LIBS
8804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813 /* Override any gcc2 internal prototype to avoid an error.  */
8814 #ifdef __cplusplus
8815 extern "C"
8816 #endif
8817 /* We use char because int might match the return type of a gcc2
8818    builtin and then its argument prototype would still apply.  */
8819 char IceConnectionNumber ();
8820 int
8821 main ()
8822 {
8823 IceConnectionNumber ();
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830   (eval $ac_link) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -s conftest$ac_exeext'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   ac_cv_lib_ICE_IceConnectionNumber=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845 ac_cv_lib_ICE_IceConnectionNumber=no
8846 fi
8847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8849 fi
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8851 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8852 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8853   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8854 fi
8855
8856   LDFLAGS=$ac_save_LDFLAGS
8857
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 for ac_header in \
8884         assert.h \
8885         fcntl.h \
8886         grp.h \
8887         pwd.h \
8888         libc.h \
8889         limits.h \
8890         stdarg.h \
8891         stdlib.h \
8892         stdint.h \
8893         string.h \
8894         termios.h \
8895         unistd.h \
8896         sys/byteorder.h \
8897         sys/ioctl.h \
8898         sys/select.h \
8899         sys/sockio.h \
8900         sys/time.h \
8901         sys/socket.h \
8902         arpa/nameser.h \
8903         resolv.h \
8904         mtio.h \
8905         sys/mtio.h \
8906
8907 do
8908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8910   echo "$as_me:$LINENO: checking for $ac_header" >&5
8911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 fi
8915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8917 else
8918   # Is the header compilable?
8919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8921 cat >conftest.$ac_ext <<_ACEOF
8922 #line $LINENO "configure"
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928 $ac_includes_default
8929 #include <$ac_header>
8930 _ACEOF
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933   (eval $ac_compile) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -s conftest.$ac_objext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   ac_header_compiler=yes
8944 else
8945   echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_header_compiler=no
8949 fi
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8952 echo "${ECHO_T}$ac_header_compiler" >&6
8953
8954 # Is the header present?
8955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 #include <$ac_header>
8965 _ACEOF
8966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8968   ac_status=$?
8969   grep -v '^ *+' conftest.er1 >conftest.err
8970   rm -f conftest.er1
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } >/dev/null; then
8974   if test -s conftest.err; then
8975     ac_cpp_err=$ac_c_preproc_warn_flag
8976   else
8977     ac_cpp_err=
8978   fi
8979 else
8980   ac_cpp_err=yes
8981 fi
8982 if test -z "$ac_cpp_err"; then
8983   ac_header_preproc=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988   ac_header_preproc=no
8989 fi
8990 rm -f conftest.err conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6
8993
8994 # So?  What about this header?
8995 case $ac_header_compiler:$ac_header_preproc in
8996   yes:no )
8997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9001     (
9002       cat <<\_ASBOX
9003 ## ------------------------------------ ##
9004 ## Report this to bug-autoconf@gnu.org. ##
9005 ## ------------------------------------ ##
9006 _ASBOX
9007     ) |
9008       sed "s/^/$as_me: WARNING:     /" >&2
9009     ;;
9010   no:yes )
9011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9013     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9017     (
9018       cat <<\_ASBOX
9019 ## ------------------------------------ ##
9020 ## Report this to bug-autoconf@gnu.org. ##
9021 ## ------------------------------------ ##
9022 _ASBOX
9023     ) |
9024       sed "s/^/$as_me: WARNING:     /" >&2
9025     ;;
9026 esac
9027 echo "$as_me:$LINENO: checking for $ac_header" >&5
9028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   eval "$as_ac_Header=$ac_header_preproc"
9033 fi
9034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9036
9037 fi
9038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9039   cat >>confdefs.h <<_ACEOF
9040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9041 _ACEOF
9042
9043 fi
9044
9045 done
9046
9047 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9049 if test "${ac_cv_header_stdc+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   cat >conftest.$ac_ext <<_ACEOF
9053 #line $LINENO "configure"
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 #include <stdlib.h>
9060 #include <stdarg.h>
9061 #include <string.h>
9062 #include <float.h>
9063
9064 int
9065 main ()
9066 {
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074   (eval $ac_compile) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_cv_header_stdc=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_cv_header_stdc=no
9090 fi
9091 rm -f conftest.$ac_objext conftest.$ac_ext
9092
9093 if test $ac_cv_header_stdc = yes; then
9094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9095   cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 #include <string.h>
9103
9104 _ACEOF
9105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9106   $EGREP "memchr" >/dev/null 2>&1; then
9107   :
9108 else
9109   ac_cv_header_stdc=no
9110 fi
9111 rm -f conftest*
9112
9113 fi
9114
9115 if test $ac_cv_header_stdc = yes; then
9116   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9117   cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 #include <stdlib.h>
9125
9126 _ACEOF
9127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9128   $EGREP "free" >/dev/null 2>&1; then
9129   :
9130 else
9131   ac_cv_header_stdc=no
9132 fi
9133 rm -f conftest*
9134
9135 fi
9136
9137 if test $ac_cv_header_stdc = yes; then
9138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9139   if test "$cross_compiling" = yes; then
9140   :
9141 else
9142   cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149 #include <ctype.h>
9150 #if ((' ' & 0x0FF) == 0x020)
9151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9153 #else
9154 # define ISLOWER(c) \
9155                    (('a' <= (c) && (c) <= 'i') \
9156                      || ('j' <= (c) && (c) <= 'r') \
9157                      || ('s' <= (c) && (c) <= 'z'))
9158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9159 #endif
9160
9161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9162 int
9163 main ()
9164 {
9165   int i;
9166   for (i = 0; i < 256; i++)
9167     if (XOR (islower (i), ISLOWER (i))
9168         || toupper (i) != TOUPPER (i))
9169       exit(2);
9170   exit (0);
9171 }
9172 _ACEOF
9173 rm -f conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175   (eval $ac_link) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180   (eval $ac_try) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   :
9185 else
9186   echo "$as_me: program exited with status $ac_status" >&5
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ( exit $ac_status )
9191 ac_cv_header_stdc=no
9192 fi
9193 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 fi
9196 fi
9197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9199 if test $ac_cv_header_stdc = yes; then
9200
9201 cat >>confdefs.h <<\_ACEOF
9202 #define STDC_HEADERS 1
9203 _ACEOF
9204
9205 fi
9206
9207 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9208 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9209 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219 #include <sys/types.h>
9220 int
9221 main ()
9222 {
9223 return makedev(0, 0);
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230   (eval $ac_link) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); } &&
9234          { ac_try='test -s conftest$ac_exeext'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_header_sys_types_h_makedev=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_header_sys_types_h_makedev=no
9246 fi
9247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9248
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9251 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9252
9253 if test $ac_cv_header_sys_types_h_makedev = no; then
9254 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9255   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9256 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9257 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 fi
9260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9261 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9262 else
9263   # Is the header compilable?
9264 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9265 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 $ac_includes_default
9274 #include <sys/mkdev.h>
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278   (eval $ac_compile) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -s conftest.$ac_objext'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; }; then
9288   ac_header_compiler=yes
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_header_compiler=no
9294 fi
9295 rm -f conftest.$ac_objext conftest.$ac_ext
9296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9297 echo "${ECHO_T}$ac_header_compiler" >&6
9298
9299 # Is the header present?
9300 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9301 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309 #include <sys/mkdev.h>
9310 _ACEOF
9311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } >/dev/null; then
9319   if test -s conftest.err; then
9320     ac_cpp_err=$ac_c_preproc_warn_flag
9321   else
9322     ac_cpp_err=
9323   fi
9324 else
9325   ac_cpp_err=yes
9326 fi
9327 if test -z "$ac_cpp_err"; then
9328   ac_header_preproc=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333   ac_header_preproc=no
9334 fi
9335 rm -f conftest.err conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9337 echo "${ECHO_T}$ac_header_preproc" >&6
9338
9339 # So?  What about this header?
9340 case $ac_header_compiler:$ac_header_preproc in
9341   yes:no )
9342     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9343 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9344     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9345 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9346     (
9347       cat <<\_ASBOX
9348 ## ------------------------------------ ##
9349 ## Report this to bug-autoconf@gnu.org. ##
9350 ## ------------------------------------ ##
9351 _ASBOX
9352     ) |
9353       sed "s/^/$as_me: WARNING:     /" >&2
9354     ;;
9355   no:yes )
9356     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9358     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9360     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9361 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9362     (
9363       cat <<\_ASBOX
9364 ## ------------------------------------ ##
9365 ## Report this to bug-autoconf@gnu.org. ##
9366 ## ------------------------------------ ##
9367 _ASBOX
9368     ) |
9369       sed "s/^/$as_me: WARNING:     /" >&2
9370     ;;
9371 esac
9372 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9373 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9374 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9380 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9381
9382 fi
9383 if test $ac_cv_header_sys_mkdev_h = yes; then
9384
9385 cat >>confdefs.h <<\_ACEOF
9386 #define MAJOR_IN_MKDEV 1
9387 _ACEOF
9388
9389 fi
9390
9391
9392
9393   if test $ac_cv_header_sys_mkdev_h = no; then
9394     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9395   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9396 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9397 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 fi
9400 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9401 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9402 else
9403   # Is the header compilable?
9404 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9405 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 /* confdefs.h.  */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h.  */
9413 $ac_includes_default
9414 #include <sys/sysmacros.h>
9415 _ACEOF
9416 rm -f conftest.$ac_objext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9418   (eval $ac_compile) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } &&
9422          { ac_try='test -s conftest.$ac_objext'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; }; then
9428   ac_header_compiler=yes
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 ac_header_compiler=no
9434 fi
9435 rm -f conftest.$ac_objext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9437 echo "${ECHO_T}$ac_header_compiler" >&6
9438
9439 # Is the header present?
9440 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9441 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 /* confdefs.h.  */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h.  */
9449 #include <sys/sysmacros.h>
9450 _ACEOF
9451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } >/dev/null; then
9459   if test -s conftest.err; then
9460     ac_cpp_err=$ac_c_preproc_warn_flag
9461   else
9462     ac_cpp_err=
9463   fi
9464 else
9465   ac_cpp_err=yes
9466 fi
9467 if test -z "$ac_cpp_err"; then
9468   ac_header_preproc=yes
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473   ac_header_preproc=no
9474 fi
9475 rm -f conftest.err conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9477 echo "${ECHO_T}$ac_header_preproc" >&6
9478
9479 # So?  What about this header?
9480 case $ac_header_compiler:$ac_header_preproc in
9481   yes:no )
9482     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9483 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9484     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9485 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9486     (
9487       cat <<\_ASBOX
9488 ## ------------------------------------ ##
9489 ## Report this to bug-autoconf@gnu.org. ##
9490 ## ------------------------------------ ##
9491 _ASBOX
9492     ) |
9493       sed "s/^/$as_me: WARNING:     /" >&2
9494     ;;
9495   no:yes )
9496     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9497 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9498     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9499 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9500     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9501 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9502     (
9503       cat <<\_ASBOX
9504 ## ------------------------------------ ##
9505 ## Report this to bug-autoconf@gnu.org. ##
9506 ## ------------------------------------ ##
9507 _ASBOX
9508     ) |
9509       sed "s/^/$as_me: WARNING:     /" >&2
9510     ;;
9511 esac
9512 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9513 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9514 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9521
9522 fi
9523 if test $ac_cv_header_sys_sysmacros_h = yes; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define MAJOR_IN_SYSMACROS 1
9527 _ACEOF
9528
9529 fi
9530
9531
9532   fi
9533 fi
9534
9535
9536
9537
9538
9539
9540 ac_header_dirent=no
9541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9542   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9543 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555 #include <sys/types.h>
9556 #include <$ac_hdr>
9557
9558 int
9559 main ()
9560 {
9561 if ((DIR *) 0)
9562 return 0;
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569   (eval $ac_compile) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } &&
9573          { ac_try='test -s conftest.$ac_objext'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   eval "$as_ac_Header=yes"
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 eval "$as_ac_Header=no"
9585 fi
9586 rm -f conftest.$ac_objext conftest.$ac_ext
9587 fi
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9591   cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9593 _ACEOF
9594
9595 ac_header_dirent=$ac_hdr; break
9596 fi
9597
9598 done
9599 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9600 if test $ac_header_dirent = dirent.h; then
9601   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9602 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9603 if test "${ac_cv_search_opendir+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   ac_func_search_save_LIBS=$LIBS
9607 ac_cv_search_opendir=no
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615
9616 /* Override any gcc2 internal prototype to avoid an error.  */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621    builtin and then its argument prototype would still apply.  */
9622 char opendir ();
9623 int
9624 main ()
9625 {
9626 opendir ();
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } &&
9637          { ac_try='test -s conftest$ac_exeext'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_cv_search_opendir="none required"
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 fi
9649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9650 if test "$ac_cv_search_opendir" = no; then
9651   for ac_lib in dir; do
9652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9653     cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any gcc2 internal prototype to avoid an error.  */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 /* We use char because int might match the return type of a gcc2
9666    builtin and then its argument prototype would still apply.  */
9667 char opendir ();
9668 int
9669 main ()
9670 {
9671 opendir ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -s conftest$ac_exeext'
9683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684   (eval $ac_try) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; }; then
9688   ac_cv_search_opendir="-l$ac_lib"
9689 break
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 fi
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9696   done
9697 fi
9698 LIBS=$ac_func_search_save_LIBS
9699 fi
9700 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9701 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9702 if test "$ac_cv_search_opendir" != no; then
9703   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9704
9705 fi
9706
9707 else
9708   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9710 if test "${ac_cv_search_opendir+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   ac_func_search_save_LIBS=$LIBS
9714 ac_cv_search_opendir=no
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 /* Override any gcc2 internal prototype to avoid an error.  */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 /* We use char because int might match the return type of a gcc2
9728    builtin and then its argument prototype would still apply.  */
9729 char opendir ();
9730 int
9731 main ()
9732 {
9733 opendir ();
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740   (eval $ac_link) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_search_opendir="none required"
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 fi
9756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9757 if test "$ac_cv_search_opendir" = no; then
9758   for ac_lib in x; do
9759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9760     cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767
9768 /* Override any gcc2 internal prototype to avoid an error.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 /* We use char because int might match the return type of a gcc2
9773    builtin and then its argument prototype would still apply.  */
9774 char opendir ();
9775 int
9776 main ()
9777 {
9778 opendir ();
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_search_opendir="-l$ac_lib"
9796 break
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 fi
9802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9803   done
9804 fi
9805 LIBS=$ac_func_search_save_LIBS
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9808 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9809 if test "$ac_cv_search_opendir" != no; then
9810   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9811
9812 fi
9813
9814 fi
9815
9816 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9817 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9818 if test "${ac_cv_header_stat_broken+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 #include <sys/types.h>
9829 #include <sys/stat.h>
9830
9831 #if defined(S_ISBLK) && defined(S_IFDIR)
9832 # if S_ISBLK (S_IFDIR)
9833 You lose.
9834 # endif
9835 #endif
9836
9837 #if defined(S_ISBLK) && defined(S_IFCHR)
9838 # if S_ISBLK (S_IFCHR)
9839 You lose.
9840 # endif
9841 #endif
9842
9843 #if defined(S_ISLNK) && defined(S_IFREG)
9844 # if S_ISLNK (S_IFREG)
9845 You lose.
9846 # endif
9847 #endif
9848
9849 #if defined(S_ISSOCK) && defined(S_IFREG)
9850 # if S_ISSOCK (S_IFREG)
9851 You lose.
9852 # endif
9853 #endif
9854
9855 _ACEOF
9856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9857   $EGREP "You lose" >/dev/null 2>&1; then
9858   ac_cv_header_stat_broken=yes
9859 else
9860   ac_cv_header_stat_broken=no
9861 fi
9862 rm -f conftest*
9863
9864 fi
9865 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9866 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9867 if test $ac_cv_header_stat_broken = yes; then
9868
9869 cat >>confdefs.h <<\_ACEOF
9870 #define STAT_MACROS_BROKEN 1
9871 _ACEOF
9872
9873 fi
9874
9875 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9876 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9877 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887 #include <sys/types.h>
9888 #include <sys/wait.h>
9889 #ifndef WEXITSTATUS
9890 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9891 #endif
9892 #ifndef WIFEXITED
9893 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9894 #endif
9895
9896 int
9897 main ()
9898 {
9899   int s;
9900   wait (&s);
9901   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -s conftest.$ac_objext'
9913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914   (eval $ac_try) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; }; then
9918   ac_cv_header_sys_wait_h=yes
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923 ac_cv_header_sys_wait_h=no
9924 fi
9925 rm -f conftest.$ac_objext conftest.$ac_ext
9926 fi
9927 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9928 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9929 if test $ac_cv_header_sys_wait_h = yes; then
9930
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_SYS_WAIT_H 1
9933 _ACEOF
9934
9935 fi
9936
9937 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9938 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9939 if test "${ac_cv_header_time+set}" = set; then
9940   echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942   cat >conftest.$ac_ext <<_ACEOF
9943 #line $LINENO "configure"
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 #include <sys/types.h>
9950 #include <sys/time.h>
9951 #include <time.h>
9952
9953 int
9954 main ()
9955 {
9956 if ((struct tm *) 0)
9957 return 0;
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964   (eval $ac_compile) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -s conftest.$ac_objext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_cv_header_time=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_cv_header_time=no
9980 fi
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9982 fi
9983 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9984 echo "${ECHO_T}$ac_cv_header_time" >&6
9985 if test $ac_cv_header_time = yes; then
9986
9987 cat >>confdefs.h <<\_ACEOF
9988 #define TIME_WITH_SYS_TIME 1
9989 _ACEOF
9990
9991 fi
9992
9993
9994 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9995 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9996 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   cat >conftest.$ac_ext <<_ACEOF
10000 #line $LINENO "configure"
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 $ac_includes_default
10007 int
10008 main ()
10009 {
10010 static struct stat ac_aggr;
10011 if (ac_aggr.st_blksize)
10012 return 0;
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019   (eval $ac_compile) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -s conftest.$ac_objext'
10024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025   (eval $ac_try) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; }; then
10029   ac_cv_member_struct_stat_st_blksize=yes
10030 else
10031   echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 cat >conftest.$ac_ext <<_ACEOF
10035 #line $LINENO "configure"
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 $ac_includes_default
10042 int
10043 main ()
10044 {
10045 static struct stat ac_aggr;
10046 if (sizeof ac_aggr.st_blksize)
10047 return 0;
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054   (eval $ac_compile) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest.$ac_objext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_member_struct_stat_st_blksize=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_member_struct_stat_st_blksize=no
10070 fi
10071 rm -f conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 rm -f conftest.$ac_objext conftest.$ac_ext
10074 fi
10075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10077 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10078
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10081 _ACEOF
10082
10083
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_ST_BLKSIZE 1
10086 _ACEOF
10087
10088 fi
10089
10090
10091 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10092 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10093 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10094   echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096   cat >conftest.$ac_ext <<_ACEOF
10097 #line $LINENO "configure"
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103 $ac_includes_default
10104 int
10105 main ()
10106 {
10107 static struct stat ac_aggr;
10108 if (ac_aggr.st_blocks)
10109 return 0;
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116   (eval $ac_compile) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -s conftest.$ac_objext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_member_struct_stat_st_blocks=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138 $ac_includes_default
10139 int
10140 main ()
10141 {
10142 static struct stat ac_aggr;
10143 if (sizeof ac_aggr.st_blocks)
10144 return 0;
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10151   (eval $ac_compile) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -s conftest.$ac_objext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_cv_member_struct_stat_st_blocks=yes
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ac_cv_member_struct_stat_st_blocks=no
10167 fi
10168 rm -f conftest.$ac_objext conftest.$ac_ext
10169 fi
10170 rm -f conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10173 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10174 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10175
10176 cat >>confdefs.h <<_ACEOF
10177 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10178 _ACEOF
10179
10180
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_ST_BLOCKS 1
10183 _ACEOF
10184
10185 else
10186   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10187 fi
10188
10189
10190 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10191 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10192 if test "${ac_cv_struct_tm+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10197 /* confdefs.h.  */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h.  */
10202 #include <sys/types.h>
10203 #include <time.h>
10204
10205 int
10206 main ()
10207 {
10208 struct tm *tp; tp->tm_sec;
10209   ;
10210   return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215   (eval $ac_compile) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -s conftest.$ac_objext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_struct_tm=time.h
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_struct_tm=sys/time.h
10231 fi
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10235 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10236 if test $ac_cv_struct_tm = sys/time.h; then
10237
10238 cat >>confdefs.h <<\_ACEOF
10239 #define TM_IN_SYS_TIME 1
10240 _ACEOF
10241
10242 fi
10243
10244 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10245 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10246 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 #include <sys/types.h>
10257 #include <$ac_cv_struct_tm>
10258
10259
10260 int
10261 main ()
10262 {
10263 static struct tm ac_aggr;
10264 if (ac_aggr.tm_zone)
10265 return 0;
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272   (eval $ac_compile) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -s conftest.$ac_objext'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_member_struct_tm_tm_zone=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <sys/types.h>
10295 #include <$ac_cv_struct_tm>
10296
10297
10298 int
10299 main ()
10300 {
10301 static struct tm ac_aggr;
10302 if (sizeof ac_aggr.tm_zone)
10303 return 0;
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310   (eval $ac_compile) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_cv_member_struct_tm_tm_zone=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_cv_member_struct_tm_tm_zone=no
10326 fi
10327 rm -f conftest.$ac_objext conftest.$ac_ext
10328 fi
10329 rm -f conftest.$ac_objext conftest.$ac_ext
10330 fi
10331 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10332 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10333 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10334
10335 cat >>confdefs.h <<_ACEOF
10336 #define HAVE_STRUCT_TM_TM_ZONE 1
10337 _ACEOF
10338
10339
10340 fi
10341
10342 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10343
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_TM_ZONE 1
10346 _ACEOF
10347
10348 else
10349   echo "$as_me:$LINENO: checking for tzname" >&5
10350 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10351 if test "${ac_cv_var_tzname+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   cat >conftest.$ac_ext <<_ACEOF
10355 #line $LINENO "configure"
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 #include <time.h>
10362 #ifndef tzname /* For SGI.  */
10363 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10364 #endif
10365
10366 int
10367 main ()
10368 {
10369 atoi(*tzname);
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376   (eval $ac_link) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -s conftest$ac_exeext'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_cv_var_tzname=yes
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_cv_var_tzname=no
10392 fi
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394 fi
10395 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10396 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10397   if test $ac_cv_var_tzname = yes; then
10398
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_TZNAME 1
10401 _ACEOF
10402
10403   fi
10404 fi
10405
10406
10407 echo "$as_me:$LINENO: checking for utime.h" >&5
10408 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10409 if test "${ba_cv_header_utime_h+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   cat >conftest.$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419
10420 #include <sys/types.h>
10421 #include <utime.h>
10422 int
10423 main ()
10424 {
10425 struct utimbuf foo
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432   (eval $ac_compile) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -s conftest.$ac_objext'
10437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438   (eval $ac_try) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; }; then
10442   ba_cv_header_utime_h=yes
10443 else
10444   echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ba_cv_header_utime_h=no
10448 fi
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10450 fi
10451 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10452 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10453 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_UTIME_H 1
10455 _ACEOF
10456
10457
10458 echo "$as_me:$LINENO: checking for socklen_t" >&5
10459 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10460 if test "${ba_cv_header_socklen_t+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   cat >conftest.$ac_ext <<_ACEOF
10464 #line $LINENO "configure"
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470
10471 #include <sys/types.h>
10472 #include <sys/socket.h>
10473 int
10474 main ()
10475 {
10476 socklen_t x
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483   (eval $ac_compile) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); } &&
10487          { ac_try='test -s conftest.$ac_objext'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; }; then
10493   ba_cv_header_socklen_t=yes
10494 else
10495   echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498 ba_cv_header_socklen_t=no
10499 fi
10500 rm -f conftest.$ac_objext conftest.$ac_ext
10501 fi
10502 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10503 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10504 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_SOCKLEN_T 1
10506 _ACEOF
10507
10508
10509 echo "$as_me:$LINENO: checking for bigendian" >&5
10510 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10511 if test "${ba_cv_bigendian+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   if test "$cross_compiling" = yes; then
10515   ba_cv_bigendian=no
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10525 _ACEOF
10526 rm -f conftest$ac_exeext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528   (eval $ac_link) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   ba_cv_bigendian=yes
10538 else
10539   echo "$as_me: program exited with status $ac_status" >&5
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 ( exit $ac_status )
10544 ba_cv_bigendian=no
10545 fi
10546 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10547 fi
10548 fi
10549 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10550 echo "${ECHO_T}$ba_cv_bigendian" >&6
10551 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10552 #define HAVE_BIGENDIAN 1
10553 _ACEOF
10554
10555
10556
10557 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10559 if test "${ac_cv_c_const+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562   cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569
10570 int
10571 main ()
10572 {
10573 /* FIXME: Include the comments suggested by Paul. */
10574 #ifndef __cplusplus
10575   /* Ultrix mips cc rejects this.  */
10576   typedef int charset[2];
10577   const charset x;
10578   /* SunOS 4.1.1 cc rejects this.  */
10579   char const *const *ccp;
10580   char **p;
10581   /* NEC SVR4.0.2 mips cc rejects this.  */
10582   struct point {int x, y;};
10583   static struct point const zero = {0,0};
10584   /* AIX XL C 1.02.0.0 rejects this.
10585      It does not let you subtract one const X* pointer from another in
10586      an arm of an if-expression whose if-part is not a constant
10587      expression */
10588   const char *g = "string";
10589   ccp = &g + (g ? g-g : 0);
10590   /* HPUX 7.0 cc rejects these. */
10591   ++ccp;
10592   p = (char**) ccp;
10593   ccp = (char const *const *) p;
10594   { /* SCO 3.2v4 cc rejects this.  */
10595     char *t;
10596     char const *s = 0 ? (char *) 0 : (char const *) 0;
10597
10598     *t++ = 0;
10599   }
10600   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10601     int x[] = {25, 17};
10602     const int *foo = &x[0];
10603     ++foo;
10604   }
10605   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10606     typedef const int *iptr;
10607     iptr p = 0;
10608     ++p;
10609   }
10610   { /* AIX XL C 1.02.0.0 rejects this saying
10611        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10612     struct s { int j; const int *ap[3]; };
10613     struct s *b; b->j = 5;
10614   }
10615   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10616     const int foo = 10;
10617   }
10618 #endif
10619
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626   (eval $ac_compile) 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -s conftest.$ac_objext'
10631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632   (eval $ac_try) 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; }; then
10636   ac_cv_c_const=yes
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 ac_cv_c_const=no
10642 fi
10643 rm -f conftest.$ac_objext conftest.$ac_ext
10644 fi
10645 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10646 echo "${ECHO_T}$ac_cv_c_const" >&6
10647 if test $ac_cv_c_const = no; then
10648
10649 cat >>confdefs.h <<\_ACEOF
10650 #define const
10651 _ACEOF
10652
10653 fi
10654
10655
10656
10657 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10658 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10659 fstype=no
10660 # The order of these tests is important.
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668 #include <sys/statvfs.h>
10669 #include <sys/fstyp.h>
10670 _ACEOF
10671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } >/dev/null; then
10679   if test -s conftest.err; then
10680     ac_cpp_err=$ac_c_preproc_warn_flag
10681   else
10682     ac_cpp_err=
10683   fi
10684 else
10685   ac_cpp_err=yes
10686 fi
10687 if test -z "$ac_cpp_err"; then
10688   cat >>confdefs.h <<\_ACEOF
10689 #define FSTYPE_STATVFS 1
10690 _ACEOF
10691  fstype=SVR4
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696
10697 fi
10698 rm -f conftest.err conftest.$ac_ext
10699 if test $fstype = no; then
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 #include <sys/statfs.h>
10708 #include <sys/fstyp.h>
10709 _ACEOF
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } >/dev/null; then
10718   if test -s conftest.err; then
10719     ac_cpp_err=$ac_c_preproc_warn_flag
10720   else
10721     ac_cpp_err=
10722   fi
10723 else
10724   ac_cpp_err=yes
10725 fi
10726 if test -z "$ac_cpp_err"; then
10727   cat >>confdefs.h <<\_ACEOF
10728 #define FSTYPE_USG_STATFS 1
10729 _ACEOF
10730  fstype=SVR3
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735
10736 fi
10737 rm -f conftest.err conftest.$ac_ext
10738 fi
10739 if test $fstype = no; then
10740 cat >conftest.$ac_ext <<_ACEOF
10741 #line $LINENO "configure"
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747 #include <sys/statfs.h>
10748 #include <sys/vmount.h>
10749 _ACEOF
10750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } >/dev/null; then
10758   if test -s conftest.err; then
10759     ac_cpp_err=$ac_c_preproc_warn_flag
10760   else
10761     ac_cpp_err=
10762   fi
10763 else
10764   ac_cpp_err=yes
10765 fi
10766 if test -z "$ac_cpp_err"; then
10767   cat >>confdefs.h <<\_ACEOF
10768 #define FSTYPE_AIX_STATFS 1
10769 _ACEOF
10770  fstype=AIX
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775
10776 fi
10777 rm -f conftest.err conftest.$ac_ext
10778 fi
10779 if test $fstype = no; then
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 /* confdefs.h.  */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h.  */
10787 #include <mntent.h>
10788 _ACEOF
10789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } >/dev/null; then
10797   if test -s conftest.err; then
10798     ac_cpp_err=$ac_c_preproc_warn_flag
10799   else
10800     ac_cpp_err=
10801   fi
10802 else
10803   ac_cpp_err=yes
10804 fi
10805 if test -z "$ac_cpp_err"; then
10806   cat >>confdefs.h <<\_ACEOF
10807 #define FSTYPE_MNTENT 1
10808 _ACEOF
10809  fstype=4.3BSD
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814
10815 fi
10816 rm -f conftest.err conftest.$ac_ext
10817 fi
10818 if test $fstype = no; then
10819 cat >conftest.$ac_ext <<_ACEOF
10820 #line $LINENO "configure"
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826 #include <sys/mount.h>
10827
10828 _ACEOF
10829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10830   $EGREP "f_type;" >/dev/null 2>&1; then
10831   cat >>confdefs.h <<\_ACEOF
10832 #define FSTYPE_STATFS 1
10833 _ACEOF
10834  fstype=4.4BSD/OSF1
10835 fi
10836 rm -f conftest*
10837
10838 fi
10839 if test $fstype = no; then
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847 #include <sys/mount.h>
10848 #include <sys/fs_types.h>
10849 _ACEOF
10850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } >/dev/null; then
10858   if test -s conftest.err; then
10859     ac_cpp_err=$ac_c_preproc_warn_flag
10860   else
10861     ac_cpp_err=
10862   fi
10863 else
10864   ac_cpp_err=yes
10865 fi
10866 if test -z "$ac_cpp_err"; then
10867   cat >>confdefs.h <<\_ACEOF
10868 #define FSTYPE_GETMNT 1
10869 _ACEOF
10870  fstype=Ultrix
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875
10876 fi
10877 rm -f conftest.err conftest.$ac_ext
10878 fi
10879 echo "$as_me:$LINENO: result: $fstype" >&5
10880 echo "${ECHO_T}$fstype" >&6
10881
10882 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10883 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10884 if test "${ac_cv_type_signal+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894 #include <sys/types.h>
10895 #include <signal.h>
10896 #ifdef signal
10897 # undef signal
10898 #endif
10899 #ifdef __cplusplus
10900 extern "C" void (*signal (int, void (*)(int)))(int);
10901 #else
10902 void (*signal ()) ();
10903 #endif
10904
10905 int
10906 main ()
10907 {
10908 int i;
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915   (eval $ac_compile) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); } &&
10919          { ac_try='test -s conftest.$ac_objext'
10920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921   (eval $ac_try) 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   ac_cv_type_signal=void
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ac_cv_type_signal=int
10931 fi
10932 rm -f conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10935 echo "${ECHO_T}$ac_cv_type_signal" >&6
10936
10937 cat >>confdefs.h <<_ACEOF
10938 #define RETSIGTYPE $ac_cv_type_signal
10939 _ACEOF
10940
10941
10942
10943 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10944 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10945 if test "${bash_cv_signal_vintage+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948
10949   cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #include <signal.h>
10957 int
10958 main ()
10959 {
10960
10961     sigset_t ss;
10962     struct sigaction sa;
10963     sigemptyset(&ss); sigsuspend(&ss);
10964     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10965     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10966
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973   (eval $ac_link) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } &&
10977          { ac_try='test -s conftest$ac_exeext'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   bash_cv_signal_vintage=posix
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988
10989     cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 #include <signal.h>
10997 int
10998 main ()
10999 {
11000
11001         int mask = sigmask(SIGINT);
11002         sigsetmask(mask); sigblock(mask); sigpause(mask);
11003
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010   (eval $ac_link) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -s conftest$ac_exeext'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   bash_cv_signal_vintage=4.2bsd
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025
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
11034         #include <signal.h>
11035         RETSIGTYPE foo() { }
11036 int
11037 main ()
11038 {
11039
11040                 int mask = sigmask(SIGINT);
11041                 sigset(SIGINT, foo); sigrelse(SIGINT);
11042                 sighold(SIGINT); sigpause(SIGINT);
11043
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050   (eval $ac_link) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -s conftest$ac_exeext'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   bash_cv_signal_vintage=svr3
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 bash_cv_signal_vintage=v7
11066
11067 fi
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069
11070 fi
11071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11072
11073 fi
11074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11075
11076 fi
11077
11078 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11079 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11080 if test "$bash_cv_signal_vintage" = posix; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_POSIX_SIGNALS 1
11083 _ACEOF
11084
11085 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_BSD_SIGNALS 1
11088 _ACEOF
11089
11090 elif test "$bash_cv_signal_vintage" = svr3; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define HAVE_USG_SIGHOLD 1
11093 _ACEOF
11094
11095 fi
11096
11097 echo "$as_me:$LINENO: checking for mode_t" >&5
11098 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11099 if test "${ac_cv_type_mode_t+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   cat >conftest.$ac_ext <<_ACEOF
11103 #line $LINENO "configure"
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 $ac_includes_default
11110 int
11111 main ()
11112 {
11113 if ((mode_t *) 0)
11114   return 0;
11115 if (sizeof (mode_t))
11116   return 0;
11117   ;
11118   return 0;
11119 }
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123   (eval $ac_compile) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); } &&
11127          { ac_try='test -s conftest.$ac_objext'
11128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129   (eval $ac_try) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; }; then
11133   ac_cv_type_mode_t=yes
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_cv_type_mode_t=no
11139 fi
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11143 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11144 if test $ac_cv_type_mode_t = yes; then
11145   :
11146 else
11147
11148 cat >>confdefs.h <<_ACEOF
11149 #define mode_t int
11150 _ACEOF
11151
11152 fi
11153
11154 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11155 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11156 if test "${ac_cv_type_uid_t+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 #include <sys/types.h>
11167
11168 _ACEOF
11169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11170   $EGREP "uid_t" >/dev/null 2>&1; then
11171   ac_cv_type_uid_t=yes
11172 else
11173   ac_cv_type_uid_t=no
11174 fi
11175 rm -f conftest*
11176
11177 fi
11178 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11179 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11180 if test $ac_cv_type_uid_t = no; then
11181
11182 cat >>confdefs.h <<\_ACEOF
11183 #define uid_t int
11184 _ACEOF
11185
11186
11187 cat >>confdefs.h <<\_ACEOF
11188 #define gid_t int
11189 _ACEOF
11190
11191 fi
11192
11193 echo "$as_me:$LINENO: checking for size_t" >&5
11194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11195 if test "${ac_cv_type_size_t+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 $ac_includes_default
11206 int
11207 main ()
11208 {
11209 if ((size_t *) 0)
11210   return 0;
11211 if (sizeof (size_t))
11212   return 0;
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219   (eval $ac_compile) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -s conftest.$ac_objext'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   ac_cv_type_size_t=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_cv_type_size_t=no
11235 fi
11236 rm -f conftest.$ac_objext conftest.$ac_ext
11237 fi
11238 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11239 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11240 if test $ac_cv_type_size_t = yes; then
11241   :
11242 else
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define size_t unsigned
11246 _ACEOF
11247
11248 fi
11249
11250 echo "$as_me:$LINENO: checking for pid_t" >&5
11251 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11252 if test "${ac_cv_type_pid_t+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11257 /* confdefs.h.  */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h.  */
11262 $ac_includes_default
11263 int
11264 main ()
11265 {
11266 if ((pid_t *) 0)
11267   return 0;
11268 if (sizeof (pid_t))
11269   return 0;
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276   (eval $ac_compile) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -s conftest.$ac_objext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_type_pid_t=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_type_pid_t=no
11292 fi
11293 rm -f conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11296 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11297 if test $ac_cv_type_pid_t = yes; then
11298   :
11299 else
11300
11301 cat >>confdefs.h <<_ACEOF
11302 #define pid_t int
11303 _ACEOF
11304
11305 fi
11306
11307 echo "$as_me:$LINENO: checking for off_t" >&5
11308 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11309 if test "${ac_cv_type_off_t+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   cat >conftest.$ac_ext <<_ACEOF
11313 #line $LINENO "configure"
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 $ac_includes_default
11320 int
11321 main ()
11322 {
11323 if ((off_t *) 0)
11324   return 0;
11325 if (sizeof (off_t))
11326   return 0;
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333   (eval $ac_compile) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } &&
11337          { ac_try='test -s conftest.$ac_objext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_cv_type_off_t=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_type_off_t=no
11349 fi
11350 rm -f conftest.$ac_objext conftest.$ac_ext
11351 fi
11352 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11353 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11354 if test $ac_cv_type_off_t = yes; then
11355   :
11356 else
11357
11358 cat >>confdefs.h <<_ACEOF
11359 #define off_t long
11360 _ACEOF
11361
11362 fi
11363
11364 echo "$as_me:$LINENO: checking for ino_t" >&5
11365 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11366 if test "${ac_cv_type_ino_t+set}" = set; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 int
11378 main ()
11379 {
11380 if ((ino_t *) 0)
11381   return 0;
11382 if (sizeof (ino_t))
11383   return 0;
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390   (eval $ac_compile) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } &&
11394          { ac_try='test -s conftest.$ac_objext'
11395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_cv_type_ino_t=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_type_ino_t=no
11406 fi
11407 rm -f conftest.$ac_objext conftest.$ac_ext
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11410 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11411 if test $ac_cv_type_ino_t = yes; then
11412   :
11413 else
11414
11415 cat >>confdefs.h <<_ACEOF
11416 #define ino_t unsigned long
11417 _ACEOF
11418
11419 fi
11420
11421 echo "$as_me:$LINENO: checking for dev_t" >&5
11422 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11423 if test "${ac_cv_type_dev_t+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   cat >conftest.$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 $ac_includes_default
11434 int
11435 main ()
11436 {
11437 if ((dev_t *) 0)
11438   return 0;
11439 if (sizeof (dev_t))
11440   return 0;
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447   (eval $ac_compile) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); } &&
11451          { ac_try='test -s conftest.$ac_objext'
11452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453   (eval $ac_try) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; }; then
11457   ac_cv_type_dev_t=yes
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462 ac_cv_type_dev_t=no
11463 fi
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11468 if test $ac_cv_type_dev_t = yes; then
11469   :
11470 else
11471
11472 cat >>confdefs.h <<_ACEOF
11473 #define dev_t unsigned long
11474 _ACEOF
11475
11476 fi
11477
11478 echo "$as_me:$LINENO: checking for daddr_t" >&5
11479 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11480 if test "${ac_cv_type_daddr_t+set}" = set; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483   cat >conftest.$ac_ext <<_ACEOF
11484 #line $LINENO "configure"
11485 /* confdefs.h.  */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h.  */
11490 $ac_includes_default
11491 int
11492 main ()
11493 {
11494 if ((daddr_t *) 0)
11495   return 0;
11496 if (sizeof (daddr_t))
11497   return 0;
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11504   (eval $ac_compile) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -s conftest.$ac_objext'
11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510   (eval $ac_try) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   ac_cv_type_daddr_t=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_cv_type_daddr_t=no
11520 fi
11521 rm -f conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11524 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11525 if test $ac_cv_type_daddr_t = yes; then
11526   :
11527 else
11528
11529 cat >>confdefs.h <<_ACEOF
11530 #define daddr_t long
11531 _ACEOF
11532
11533 fi
11534
11535 echo "$as_me:$LINENO: checking for major_t" >&5
11536 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11537 if test "${ac_cv_type_major_t+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 int
11549 main ()
11550 {
11551 if ((major_t *) 0)
11552   return 0;
11553 if (sizeof (major_t))
11554   return 0;
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561   (eval $ac_compile) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); } &&
11565          { ac_try='test -s conftest.$ac_objext'
11566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567   (eval $ac_try) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; }; then
11571   ac_cv_type_major_t=yes
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_cv_type_major_t=no
11577 fi
11578 rm -f conftest.$ac_objext conftest.$ac_ext
11579 fi
11580 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11581 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11582 if test $ac_cv_type_major_t = yes; then
11583   :
11584 else
11585
11586 cat >>confdefs.h <<_ACEOF
11587 #define major_t int
11588 _ACEOF
11589
11590 fi
11591
11592 echo "$as_me:$LINENO: checking for minor_t" >&5
11593 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11594 if test "${ac_cv_type_minor_t+set}" = set; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 $ac_includes_default
11605 int
11606 main ()
11607 {
11608 if ((minor_t *) 0)
11609   return 0;
11610 if (sizeof (minor_t))
11611   return 0;
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618   (eval $ac_compile) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } &&
11622          { ac_try='test -s conftest.$ac_objext'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   ac_cv_type_minor_t=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_cv_type_minor_t=no
11634 fi
11635 rm -f conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11638 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11639 if test $ac_cv_type_minor_t = yes; then
11640   :
11641 else
11642
11643 cat >>confdefs.h <<_ACEOF
11644 #define minor_t int
11645 _ACEOF
11646
11647 fi
11648
11649 echo "$as_me:$LINENO: checking for ssize_t" >&5
11650 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11651 if test "${ac_cv_type_ssize_t+set}" = set; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654   cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 $ac_includes_default
11662 int
11663 main ()
11664 {
11665 if ((ssize_t *) 0)
11666   return 0;
11667 if (sizeof (ssize_t))
11668   return 0;
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675   (eval $ac_compile) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -s conftest.$ac_objext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   ac_cv_type_ssize_t=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 ac_cv_type_ssize_t=no
11691 fi
11692 rm -f conftest.$ac_objext conftest.$ac_ext
11693 fi
11694 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11695 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11696 if test $ac_cv_type_ssize_t = yes; then
11697   :
11698 else
11699
11700 cat >>confdefs.h <<_ACEOF
11701 #define ssize_t int
11702 _ACEOF
11703
11704 fi
11705
11706 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11707 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11708 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11713 /* confdefs.h.  */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h.  */
11718 $ac_includes_default
11719 int
11720 main ()
11721 {
11722 static struct stat ac_aggr;
11723 if (ac_aggr.st_blocks)
11724 return 0;
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731   (eval $ac_compile) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -s conftest.$ac_objext'
11736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737   (eval $ac_try) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; }; then
11741   ac_cv_member_struct_stat_st_blocks=yes
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 $ac_includes_default
11754 int
11755 main ()
11756 {
11757 static struct stat ac_aggr;
11758 if (sizeof ac_aggr.st_blocks)
11759 return 0;
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766   (eval $ac_compile) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -s conftest.$ac_objext'
11771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772   (eval $ac_try) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; }; then
11776   ac_cv_member_struct_stat_st_blocks=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 ac_cv_member_struct_stat_st_blocks=no
11782 fi
11783 rm -f conftest.$ac_objext conftest.$ac_ext
11784 fi
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11786 fi
11787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11788 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11789 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11790
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11793 _ACEOF
11794
11795
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_ST_BLOCKS 1
11798 _ACEOF
11799
11800 else
11801   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11802 fi
11803
11804
11805
11806 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11807 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11808 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 $ac_includes_default
11819 int
11820 main ()
11821 {
11822 static struct stat ac_aggr;
11823 if (ac_aggr.st_rdev)
11824 return 0;
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831   (eval $ac_compile) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -s conftest.$ac_objext'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   ac_cv_member_struct_stat_st_rdev=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 $ac_includes_default
11854 int
11855 main ()
11856 {
11857 static struct stat ac_aggr;
11858 if (sizeof ac_aggr.st_rdev)
11859 return 0;
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866   (eval $ac_compile) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -s conftest.$ac_objext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   ac_cv_member_struct_stat_st_rdev=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 ac_cv_member_struct_stat_st_rdev=no
11882 fi
11883 rm -f conftest.$ac_objext conftest.$ac_ext
11884 fi
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11886 fi
11887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11888 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11889 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11890
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_STRUCT_STAT_ST_RDEV 1
11893 _ACEOF
11894
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_ST_RDEV 1
11898 _ACEOF
11899
11900 fi
11901
11902
11903 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11904 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11905 if test "${ac_cv_struct_tm+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <sys/types.h>
11916 #include <time.h>
11917
11918 int
11919 main ()
11920 {
11921 struct tm *tp; tp->tm_sec;
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928   (eval $ac_compile) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -s conftest.$ac_objext'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   ac_cv_struct_tm=time.h
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_cv_struct_tm=sys/time.h
11944 fi
11945 rm -f conftest.$ac_objext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11948 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11949 if test $ac_cv_struct_tm = sys/time.h; then
11950
11951 cat >>confdefs.h <<\_ACEOF
11952 #define TM_IN_SYS_TIME 1
11953 _ACEOF
11954
11955 fi
11956
11957 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11959 if test "${ac_cv_c_const+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969
11970 int
11971 main ()
11972 {
11973 /* FIXME: Include the comments suggested by Paul. */
11974 #ifndef __cplusplus
11975   /* Ultrix mips cc rejects this.  */
11976   typedef int charset[2];
11977   const charset x;
11978   /* SunOS 4.1.1 cc rejects this.  */
11979   char const *const *ccp;
11980   char **p;
11981   /* NEC SVR4.0.2 mips cc rejects this.  */
11982   struct point {int x, y;};
11983   static struct point const zero = {0,0};
11984   /* AIX XL C 1.02.0.0 rejects this.
11985      It does not let you subtract one const X* pointer from another in
11986      an arm of an if-expression whose if-part is not a constant
11987      expression */
11988   const char *g = "string";
11989   ccp = &g + (g ? g-g : 0);
11990   /* HPUX 7.0 cc rejects these. */
11991   ++ccp;
11992   p = (char**) ccp;
11993   ccp = (char const *const *) p;
11994   { /* SCO 3.2v4 cc rejects this.  */
11995     char *t;
11996     char const *s = 0 ? (char *) 0 : (char const *) 0;
11997
11998     *t++ = 0;
11999   }
12000   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12001     int x[] = {25, 17};
12002     const int *foo = &x[0];
12003     ++foo;
12004   }
12005   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12006     typedef const int *iptr;
12007     iptr p = 0;
12008     ++p;
12009   }
12010   { /* AIX XL C 1.02.0.0 rejects this saying
12011        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12012     struct s { int j; const int *ap[3]; };
12013     struct s *b; b->j = 5;
12014   }
12015   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12016     const int foo = 10;
12017   }
12018 #endif
12019
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026   (eval $ac_compile) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -s conftest.$ac_objext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   ac_cv_c_const=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_c_const=no
12042 fi
12043 rm -f conftest.$ac_objext conftest.$ac_ext
12044 fi
12045 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12046 echo "${ECHO_T}$ac_cv_c_const" >&6
12047 if test $ac_cv_c_const = no; then
12048
12049 cat >>confdefs.h <<\_ACEOF
12050 #define const
12051 _ACEOF
12052
12053 fi
12054
12055
12056
12057 echo "$as_me:$LINENO: checking for char" >&5
12058 echo $ECHO_N "checking for char... $ECHO_C" >&6
12059 if test "${ac_cv_type_char+set}" = set; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062   cat >conftest.$ac_ext <<_ACEOF
12063 #line $LINENO "configure"
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069 $ac_includes_default
12070 int
12071 main ()
12072 {
12073 if ((char *) 0)
12074   return 0;
12075 if (sizeof (char))
12076   return 0;
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083   (eval $ac_compile) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); } &&
12087          { ac_try='test -s conftest.$ac_objext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   ac_cv_type_char=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_cv_type_char=no
12099 fi
12100 rm -f conftest.$ac_objext conftest.$ac_ext
12101 fi
12102 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12103 echo "${ECHO_T}$ac_cv_type_char" >&6
12104
12105 echo "$as_me:$LINENO: checking size of char" >&5
12106 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12107 if test "${ac_cv_sizeof_char+set}" = set; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110   if test "$ac_cv_type_char" = yes; then
12111   # The cast to unsigned long works around a bug in the HP C Compiler
12112   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12113   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12114   # This bug is HP SR number 8606223364.
12115   if test "$cross_compiling" = yes; then
12116   # Depending upon the size, compute the lo and hi bounds.
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 $ac_includes_default
12125 int
12126 main ()
12127 {
12128 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12129 test_array [0] = 0
12130
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137   (eval $ac_compile) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_lo=0 ac_mid=0
12148   while :; do
12149     cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156 $ac_includes_default
12157 int
12158 main ()
12159 {
12160 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12161 test_array [0] = 0
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169   (eval $ac_compile) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -s conftest.$ac_objext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_hi=$ac_mid; break
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_lo=`expr $ac_mid + 1`
12185                     if test $ac_lo -le $ac_mid; then
12186                       ac_lo= ac_hi=
12187                       break
12188                     fi
12189                     ac_mid=`expr 2 '*' $ac_mid + 1`
12190 fi
12191 rm -f conftest.$ac_objext conftest.$ac_ext
12192   done
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 $ac_includes_default
12205 int
12206 main ()
12207 {
12208 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12209 test_array [0] = 0
12210
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217   (eval $ac_compile) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } &&
12221          { ac_try='test -s conftest.$ac_objext'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_hi=-1 ac_mid=-1
12228   while :; do
12229     cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 $ac_includes_default
12237 int
12238 main ()
12239 {
12240 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12241 test_array [0] = 0
12242
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249   (eval $ac_compile) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -s conftest.$ac_objext'
12254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255   (eval $ac_try) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; }; then
12259   ac_lo=$ac_mid; break
12260 else
12261   echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264 ac_hi=`expr '(' $ac_mid ')' - 1`
12265                        if test $ac_mid -le $ac_hi; then
12266                          ac_lo= ac_hi=
12267                          break
12268                        fi
12269                        ac_mid=`expr 2 '*' $ac_mid`
12270 fi
12271 rm -f conftest.$ac_objext conftest.$ac_ext
12272   done
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 ac_lo= ac_hi=
12278 fi
12279 rm -f conftest.$ac_objext conftest.$ac_ext
12280 fi
12281 rm -f conftest.$ac_objext conftest.$ac_ext
12282 # Binary search between lo and hi bounds.
12283 while test "x$ac_lo" != "x$ac_hi"; do
12284   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12285   cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 $ac_includes_default
12293 int
12294 main ()
12295 {
12296 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12297 test_array [0] = 0
12298
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305   (eval $ac_compile) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } &&
12309          { ac_try='test -s conftest.$ac_objext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_hi=$ac_mid
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_lo=`expr '(' $ac_mid ')' + 1`
12321 fi
12322 rm -f conftest.$ac_objext conftest.$ac_ext
12323 done
12324 case $ac_lo in
12325 ?*) ac_cv_sizeof_char=$ac_lo;;
12326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12327 See \`config.log' for more details." >&5
12328 echo "$as_me: error: cannot compute sizeof (char), 77
12329 See \`config.log' for more details." >&2;}
12330    { (exit 1); exit 1; }; } ;;
12331 esac
12332 else
12333   if test "$cross_compiling" = yes; then
12334   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12335 See \`config.log' for more details." >&5
12336 echo "$as_me: error: cannot run test program while cross compiling
12337 See \`config.log' for more details." >&2;}
12338    { (exit 1); exit 1; }; }
12339 else
12340   cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348 long longval () { return (long) (sizeof (char)); }
12349 unsigned long ulongval () { return (long) (sizeof (char)); }
12350 #include <stdio.h>
12351 #include <stdlib.h>
12352 int
12353 main ()
12354 {
12355
12356   FILE *f = fopen ("conftest.val", "w");
12357   if (! f)
12358     exit (1);
12359   if (((long) (sizeof (char))) < 0)
12360     {
12361       long i = longval ();
12362       if (i != ((long) (sizeof (char))))
12363         exit (1);
12364       fprintf (f, "%ld\n", i);
12365     }
12366   else
12367     {
12368       unsigned long i = ulongval ();
12369       if (i != ((long) (sizeof (char))))
12370         exit (1);
12371       fprintf (f, "%lu\n", i);
12372     }
12373   exit (ferror (f) || fclose (f) != 0);
12374
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381   (eval $ac_link) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_sizeof_char=`cat conftest.val`
12391 else
12392   echo "$as_me: program exited with status $ac_status" >&5
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ( exit $ac_status )
12397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12398 See \`config.log' for more details." >&5
12399 echo "$as_me: error: cannot compute sizeof (char), 77
12400 See \`config.log' for more details." >&2;}
12401    { (exit 1); exit 1; }; }
12402 fi
12403 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12404 fi
12405 fi
12406 rm -f conftest.val
12407 else
12408   ac_cv_sizeof_char=0
12409 fi
12410 fi
12411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12412 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12413 cat >>confdefs.h <<_ACEOF
12414 #define SIZEOF_CHAR $ac_cv_sizeof_char
12415 _ACEOF
12416
12417
12418 echo "$as_me:$LINENO: checking for short int" >&5
12419 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12420 if test "${ac_cv_type_short_int+set}" = set; then
12421   echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423   cat >conftest.$ac_ext <<_ACEOF
12424 #line $LINENO "configure"
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_includes_default
12431 int
12432 main ()
12433 {
12434 if ((short int *) 0)
12435   return 0;
12436 if (sizeof (short int))
12437   return 0;
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_cv_type_short_int=yes
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ac_cv_type_short_int=no
12460 fi
12461 rm -f conftest.$ac_objext conftest.$ac_ext
12462 fi
12463 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12464 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12465
12466 echo "$as_me:$LINENO: checking size of short int" >&5
12467 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12468 if test "${ac_cv_sizeof_short_int+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   if test "$ac_cv_type_short_int" = yes; then
12472   # The cast to unsigned long works around a bug in the HP C Compiler
12473   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12474   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12475   # This bug is HP SR number 8606223364.
12476   if test "$cross_compiling" = yes; then
12477   # Depending upon the size, compute the lo and hi bounds.
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 int
12487 main ()
12488 {
12489 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12490 test_array [0] = 0
12491
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498   (eval $ac_compile) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ac_lo=0 ac_mid=0
12509   while :; do
12510     cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 $ac_includes_default
12518 int
12519 main ()
12520 {
12521 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12522 test_array [0] = 0
12523
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530   (eval $ac_compile) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -s conftest.$ac_objext'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_hi=$ac_mid; break
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ac_lo=`expr $ac_mid + 1`
12546                     if test $ac_lo -le $ac_mid; then
12547                       ac_lo= ac_hi=
12548                       break
12549                     fi
12550                     ac_mid=`expr 2 '*' $ac_mid + 1`
12551 fi
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12553   done
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 $ac_includes_default
12566 int
12567 main ()
12568 {
12569 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12570 test_array [0] = 0
12571
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578   (eval $ac_compile) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -s conftest.$ac_objext'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   ac_hi=-1 ac_mid=-1
12589   while :; do
12590     cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 $ac_includes_default
12598 int
12599 main ()
12600 {
12601 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12602 test_array [0] = 0
12603
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610   (eval $ac_compile) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -s conftest.$ac_objext'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620   ac_lo=$ac_mid; break
12621 else
12622   echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 ac_hi=`expr '(' $ac_mid ')' - 1`
12626                        if test $ac_mid -le $ac_hi; then
12627                          ac_lo= ac_hi=
12628                          break
12629                        fi
12630                        ac_mid=`expr 2 '*' $ac_mid`
12631 fi
12632 rm -f conftest.$ac_objext conftest.$ac_ext
12633   done
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 ac_lo= ac_hi=
12639 fi
12640 rm -f conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 rm -f conftest.$ac_objext conftest.$ac_ext
12643 # Binary search between lo and hi bounds.
12644 while test "x$ac_lo" != "x$ac_hi"; do
12645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12646   cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 int
12655 main ()
12656 {
12657 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12658 test_array [0] = 0
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666   (eval $ac_compile) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_hi=$ac_mid
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_lo=`expr '(' $ac_mid ')' + 1`
12682 fi
12683 rm -f conftest.$ac_objext conftest.$ac_ext
12684 done
12685 case $ac_lo in
12686 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12688 See \`config.log' for more details." >&5
12689 echo "$as_me: error: cannot compute sizeof (short int), 77
12690 See \`config.log' for more details." >&2;}
12691    { (exit 1); exit 1; }; } ;;
12692 esac
12693 else
12694   if test "$cross_compiling" = yes; then
12695   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12696 See \`config.log' for more details." >&5
12697 echo "$as_me: error: cannot run test program while cross compiling
12698 See \`config.log' for more details." >&2;}
12699    { (exit 1); exit 1; }; }
12700 else
12701   cat >conftest.$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708 $ac_includes_default
12709 long longval () { return (long) (sizeof (short int)); }
12710 unsigned long ulongval () { return (long) (sizeof (short int)); }
12711 #include <stdio.h>
12712 #include <stdlib.h>
12713 int
12714 main ()
12715 {
12716
12717   FILE *f = fopen ("conftest.val", "w");
12718   if (! f)
12719     exit (1);
12720   if (((long) (sizeof (short int))) < 0)
12721     {
12722       long i = longval ();
12723       if (i != ((long) (sizeof (short int))))
12724         exit (1);
12725       fprintf (f, "%ld\n", i);
12726     }
12727   else
12728     {
12729       unsigned long i = ulongval ();
12730       if (i != ((long) (sizeof (short int))))
12731         exit (1);
12732       fprintf (f, "%lu\n", i);
12733     }
12734   exit (ferror (f) || fclose (f) != 0);
12735
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest$ac_exeext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742   (eval $ac_link) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; }; then
12751   ac_cv_sizeof_short_int=`cat conftest.val`
12752 else
12753   echo "$as_me: program exited with status $ac_status" >&5
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757 ( exit $ac_status )
12758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12759 See \`config.log' for more details." >&5
12760 echo "$as_me: error: cannot compute sizeof (short int), 77
12761 See \`config.log' for more details." >&2;}
12762    { (exit 1); exit 1; }; }
12763 fi
12764 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12765 fi
12766 fi
12767 rm -f conftest.val
12768 else
12769   ac_cv_sizeof_short_int=0
12770 fi
12771 fi
12772 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12773 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12774 cat >>confdefs.h <<_ACEOF
12775 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12776 _ACEOF
12777
12778
12779 echo "$as_me:$LINENO: checking for int" >&5
12780 echo $ECHO_N "checking for int... $ECHO_C" >&6
12781 if test "${ac_cv_type_int+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784   cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 $ac_includes_default
12792 int
12793 main ()
12794 {
12795 if ((int *) 0)
12796   return 0;
12797 if (sizeof (int))
12798   return 0;
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_cv_type_int=yes
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_cv_type_int=no
12821 fi
12822 rm -f conftest.$ac_objext conftest.$ac_ext
12823 fi
12824 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12825 echo "${ECHO_T}$ac_cv_type_int" >&6
12826
12827 echo "$as_me:$LINENO: checking size of int" >&5
12828 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12829 if test "${ac_cv_sizeof_int+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   if test "$ac_cv_type_int" = yes; then
12833   # The cast to unsigned long works around a bug in the HP C Compiler
12834   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12835   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12836   # This bug is HP SR number 8606223364.
12837   if test "$cross_compiling" = yes; then
12838   # Depending upon the size, compute the lo and hi bounds.
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 $ac_includes_default
12847 int
12848 main ()
12849 {
12850 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12851 test_array [0] = 0
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859   (eval $ac_compile) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } &&
12863          { ac_try='test -s conftest.$ac_objext'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   ac_lo=0 ac_mid=0
12870   while :; do
12871     cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 $ac_includes_default
12879 int
12880 main ()
12881 {
12882 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12883 test_array [0] = 0
12884
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891   (eval $ac_compile) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -s conftest.$ac_objext'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_hi=$ac_mid; break
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 ac_lo=`expr $ac_mid + 1`
12907                     if test $ac_lo -le $ac_mid; then
12908                       ac_lo= ac_hi=
12909                       break
12910                     fi
12911                     ac_mid=`expr 2 '*' $ac_mid + 1`
12912 fi
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914   done
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926 $ac_includes_default
12927 int
12928 main ()
12929 {
12930 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12931 test_array [0] = 0
12932
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939   (eval $ac_compile) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -s conftest.$ac_objext'
12944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945   (eval $ac_try) 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; }; then
12949   ac_hi=-1 ac_mid=-1
12950   while :; do
12951     cat >conftest.$ac_ext <<_ACEOF
12952 #line $LINENO "configure"
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958 $ac_includes_default
12959 int
12960 main ()
12961 {
12962 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12963 test_array [0] = 0
12964
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971   (eval $ac_compile) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } &&
12975          { ac_try='test -s conftest.$ac_objext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_lo=$ac_mid; break
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986 ac_hi=`expr '(' $ac_mid ')' - 1`
12987                        if test $ac_mid -le $ac_hi; then
12988                          ac_lo= ac_hi=
12989                          break
12990                        fi
12991                        ac_mid=`expr 2 '*' $ac_mid`
12992 fi
12993 rm -f conftest.$ac_objext conftest.$ac_ext
12994   done
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_lo= ac_hi=
13000 fi
13001 rm -f conftest.$ac_objext conftest.$ac_ext
13002 fi
13003 rm -f conftest.$ac_objext conftest.$ac_ext
13004 # Binary search between lo and hi bounds.
13005 while test "x$ac_lo" != "x$ac_hi"; do
13006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13007   cat >conftest.$ac_ext <<_ACEOF
13008 #line $LINENO "configure"
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 $ac_includes_default
13015 int
13016 main ()
13017 {
13018 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13019 test_array [0] = 0
13020
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027   (eval $ac_compile) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); } &&
13031          { ac_try='test -s conftest.$ac_objext'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; }; then
13037   ac_hi=$ac_mid
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_lo=`expr '(' $ac_mid ')' + 1`
13043 fi
13044 rm -f conftest.$ac_objext conftest.$ac_ext
13045 done
13046 case $ac_lo in
13047 ?*) ac_cv_sizeof_int=$ac_lo;;
13048 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13049 See \`config.log' for more details." >&5
13050 echo "$as_me: error: cannot compute sizeof (int), 77
13051 See \`config.log' for more details." >&2;}
13052    { (exit 1); exit 1; }; } ;;
13053 esac
13054 else
13055   if test "$cross_compiling" = yes; then
13056   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13057 See \`config.log' for more details." >&5
13058 echo "$as_me: error: cannot run test program while cross compiling
13059 See \`config.log' for more details." >&2;}
13060    { (exit 1); exit 1; }; }
13061 else
13062   cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069 $ac_includes_default
13070 long longval () { return (long) (sizeof (int)); }
13071 unsigned long ulongval () { return (long) (sizeof (int)); }
13072 #include <stdio.h>
13073 #include <stdlib.h>
13074 int
13075 main ()
13076 {
13077
13078   FILE *f = fopen ("conftest.val", "w");
13079   if (! f)
13080     exit (1);
13081   if (((long) (sizeof (int))) < 0)
13082     {
13083       long i = longval ();
13084       if (i != ((long) (sizeof (int))))
13085         exit (1);
13086       fprintf (f, "%ld\n", i);
13087     }
13088   else
13089     {
13090       unsigned long i = ulongval ();
13091       if (i != ((long) (sizeof (int))))
13092         exit (1);
13093       fprintf (f, "%lu\n", i);
13094     }
13095   exit (ferror (f) || fclose (f) != 0);
13096
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103   (eval $ac_link) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_cv_sizeof_int=`cat conftest.val`
13113 else
13114   echo "$as_me: program exited with status $ac_status" >&5
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ( exit $ac_status )
13119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: cannot compute sizeof (int), 77
13122 See \`config.log' for more details." >&2;}
13123    { (exit 1); exit 1; }; }
13124 fi
13125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13126 fi
13127 fi
13128 rm -f conftest.val
13129 else
13130   ac_cv_sizeof_int=0
13131 fi
13132 fi
13133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13134 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13135 cat >>confdefs.h <<_ACEOF
13136 #define SIZEOF_INT $ac_cv_sizeof_int
13137 _ACEOF
13138
13139
13140 echo "$as_me:$LINENO: checking for long int" >&5
13141 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13142 if test "${ac_cv_type_long_int+set}" = set; then
13143   echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145   cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 $ac_includes_default
13153 int
13154 main ()
13155 {
13156 if ((long int *) 0)
13157   return 0;
13158 if (sizeof (long int))
13159   return 0;
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_cv_type_long_int=yes
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_cv_type_long_int=no
13182 fi
13183 rm -f conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13186 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13187
13188 echo "$as_me:$LINENO: checking size of long int" >&5
13189 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13190 if test "${ac_cv_sizeof_long_int+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   if test "$ac_cv_type_long_int" = yes; then
13194   # The cast to unsigned long works around a bug in the HP C Compiler
13195   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13196   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13197   # This bug is HP SR number 8606223364.
13198   if test "$cross_compiling" = yes; then
13199   # Depending upon the size, compute the lo and hi bounds.
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207 $ac_includes_default
13208 int
13209 main ()
13210 {
13211 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13212 test_array [0] = 0
13213
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220   (eval $ac_compile) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -s conftest.$ac_objext'
13225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226   (eval $ac_try) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   ac_lo=0 ac_mid=0
13231   while :; do
13232     cat >conftest.$ac_ext <<_ACEOF
13233 #line $LINENO "configure"
13234 /* confdefs.h.  */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h.  */
13239 $ac_includes_default
13240 int
13241 main ()
13242 {
13243 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13244 test_array [0] = 0
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252   (eval $ac_compile) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_hi=$ac_mid; break
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_lo=`expr $ac_mid + 1`
13268                     if test $ac_lo -le $ac_mid; then
13269                       ac_lo= ac_hi=
13270                       break
13271                     fi
13272                     ac_mid=`expr 2 '*' $ac_mid + 1`
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275   done
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 $ac_includes_default
13288 int
13289 main ()
13290 {
13291 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13292 test_array [0] = 0
13293
13294   ;
13295   return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300   (eval $ac_compile) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } &&
13304          { ac_try='test -s conftest.$ac_objext'
13305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306   (eval $ac_try) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }; }; then
13310   ac_hi=-1 ac_mid=-1
13311   while :; do
13312     cat >conftest.$ac_ext <<_ACEOF
13313 #line $LINENO "configure"
13314 /* confdefs.h.  */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h.  */
13319 $ac_includes_default
13320 int
13321 main ()
13322 {
13323 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13324 test_array [0] = 0
13325
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332   (eval $ac_compile) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } &&
13336          { ac_try='test -s conftest.$ac_objext'
13337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338   (eval $ac_try) 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342   ac_lo=$ac_mid; break
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347 ac_hi=`expr '(' $ac_mid ')' - 1`
13348                        if test $ac_mid -le $ac_hi; then
13349                          ac_lo= ac_hi=
13350                          break
13351                        fi
13352                        ac_mid=`expr 2 '*' $ac_mid`
13353 fi
13354 rm -f conftest.$ac_objext conftest.$ac_ext
13355   done
13356 else
13357   echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13359
13360 ac_lo= ac_hi=
13361 fi
13362 rm -f conftest.$ac_objext conftest.$ac_ext
13363 fi
13364 rm -f conftest.$ac_objext conftest.$ac_ext
13365 # Binary search between lo and hi bounds.
13366 while test "x$ac_lo" != "x$ac_hi"; do
13367   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13368   cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375 $ac_includes_default
13376 int
13377 main ()
13378 {
13379 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13380 test_array [0] = 0
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388   (eval $ac_compile) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -s conftest.$ac_objext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_hi=$ac_mid
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ac_lo=`expr '(' $ac_mid ')' + 1`
13404 fi
13405 rm -f conftest.$ac_objext conftest.$ac_ext
13406 done
13407 case $ac_lo in
13408 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (long int), 77
13412 See \`config.log' for more details." >&2;}
13413    { (exit 1); exit 1; }; } ;;
13414 esac
13415 else
13416   if test "$cross_compiling" = yes; then
13417   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13418 See \`config.log' for more details." >&5
13419 echo "$as_me: error: cannot run test program while cross compiling
13420 See \`config.log' for more details." >&2;}
13421    { (exit 1); exit 1; }; }
13422 else
13423   cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430 $ac_includes_default
13431 long longval () { return (long) (sizeof (long int)); }
13432 unsigned long ulongval () { return (long) (sizeof (long int)); }
13433 #include <stdio.h>
13434 #include <stdlib.h>
13435 int
13436 main ()
13437 {
13438
13439   FILE *f = fopen ("conftest.val", "w");
13440   if (! f)
13441     exit (1);
13442   if (((long) (sizeof (long int))) < 0)
13443     {
13444       long i = longval ();
13445       if (i != ((long) (sizeof (long int))))
13446         exit (1);
13447       fprintf (f, "%ld\n", i);
13448     }
13449   else
13450     {
13451       unsigned long i = ulongval ();
13452       if (i != ((long) (sizeof (long int))))
13453         exit (1);
13454       fprintf (f, "%lu\n", i);
13455     }
13456   exit (ferror (f) || fclose (f) != 0);
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464   (eval $ac_link) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   ac_cv_sizeof_long_int=`cat conftest.val`
13474 else
13475   echo "$as_me: program exited with status $ac_status" >&5
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ( exit $ac_status )
13480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13481 See \`config.log' for more details." >&5
13482 echo "$as_me: error: cannot compute sizeof (long int), 77
13483 See \`config.log' for more details." >&2;}
13484    { (exit 1); exit 1; }; }
13485 fi
13486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13487 fi
13488 fi
13489 rm -f conftest.val
13490 else
13491   ac_cv_sizeof_long_int=0
13492 fi
13493 fi
13494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13495 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13496 cat >>confdefs.h <<_ACEOF
13497 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13498 _ACEOF
13499
13500
13501 echo "$as_me:$LINENO: checking for long long int" >&5
13502 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13503 if test "${ac_cv_type_long_long_int+set}" = set; then
13504   echo $ECHO_N "(cached) $ECHO_C" >&6
13505 else
13506   cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 $ac_includes_default
13514 int
13515 main ()
13516 {
13517 if ((long long int *) 0)
13518   return 0;
13519 if (sizeof (long long int))
13520   return 0;
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_cv_type_long_long_int=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_cv_type_long_long_int=no
13543 fi
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13547 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13548
13549 echo "$as_me:$LINENO: checking size of long long int" >&5
13550 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13551 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554   if test "$ac_cv_type_long_long_int" = yes; then
13555   # The cast to unsigned long works around a bug in the HP C Compiler
13556   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13557   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13558   # This bug is HP SR number 8606223364.
13559   if test "$cross_compiling" = yes; then
13560   # Depending upon the size, compute the lo and hi bounds.
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 $ac_includes_default
13569 int
13570 main ()
13571 {
13572 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13573 test_array [0] = 0
13574
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13581   (eval $ac_compile) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -s conftest.$ac_objext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_lo=0 ac_mid=0
13592   while :; do
13593     cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 $ac_includes_default
13601 int
13602 main ()
13603 {
13604 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13605 test_array [0] = 0
13606
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_hi=$ac_mid; break
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_lo=`expr $ac_mid + 1`
13629                     if test $ac_lo -le $ac_mid; then
13630                       ac_lo= ac_hi=
13631                       break
13632                     fi
13633                     ac_mid=`expr 2 '*' $ac_mid + 1`
13634 fi
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636   done
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 cat >conftest.$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 $ac_includes_default
13649 int
13650 main ()
13651 {
13652 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13653 test_array [0] = 0
13654
13655   ;
13656   return 0;
13657 }
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661   (eval $ac_compile) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -s conftest.$ac_objext'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_hi=-1 ac_mid=-1
13672   while :; do
13673     cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680 $ac_includes_default
13681 int
13682 main ()
13683 {
13684 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13685 test_array [0] = 0
13686
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13693   (eval $ac_compile) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   ac_lo=$ac_mid; break
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_hi=`expr '(' $ac_mid ')' - 1`
13709                        if test $ac_mid -le $ac_hi; then
13710                          ac_lo= ac_hi=
13711                          break
13712                        fi
13713                        ac_mid=`expr 2 '*' $ac_mid`
13714 fi
13715 rm -f conftest.$ac_objext conftest.$ac_ext
13716   done
13717 else
13718   echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721 ac_lo= ac_hi=
13722 fi
13723 rm -f conftest.$ac_objext conftest.$ac_ext
13724 fi
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13726 # Binary search between lo and hi bounds.
13727 while test "x$ac_lo" != "x$ac_hi"; do
13728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13729   cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 $ac_includes_default
13737 int
13738 main ()
13739 {
13740 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13741 test_array [0] = 0
13742
13743   ;
13744   return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749   (eval $ac_compile) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -s conftest.$ac_objext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_hi=$ac_mid
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_lo=`expr '(' $ac_mid ')' + 1`
13765 fi
13766 rm -f conftest.$ac_objext conftest.$ac_ext
13767 done
13768 case $ac_lo in
13769 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13770 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13771 See \`config.log' for more details." >&5
13772 echo "$as_me: error: cannot compute sizeof (long long int), 77
13773 See \`config.log' for more details." >&2;}
13774    { (exit 1); exit 1; }; } ;;
13775 esac
13776 else
13777   if test "$cross_compiling" = yes; then
13778   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13779 See \`config.log' for more details." >&5
13780 echo "$as_me: error: cannot run test program while cross compiling
13781 See \`config.log' for more details." >&2;}
13782    { (exit 1); exit 1; }; }
13783 else
13784   cat >conftest.$ac_ext <<_ACEOF
13785 #line $LINENO "configure"
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792 long longval () { return (long) (sizeof (long long int)); }
13793 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13794 #include <stdio.h>
13795 #include <stdlib.h>
13796 int
13797 main ()
13798 {
13799
13800   FILE *f = fopen ("conftest.val", "w");
13801   if (! f)
13802     exit (1);
13803   if (((long) (sizeof (long long int))) < 0)
13804     {
13805       long i = longval ();
13806       if (i != ((long) (sizeof (long long int))))
13807         exit (1);
13808       fprintf (f, "%ld\n", i);
13809     }
13810   else
13811     {
13812       unsigned long i = ulongval ();
13813       if (i != ((long) (sizeof (long long int))))
13814         exit (1);
13815       fprintf (f, "%lu\n", i);
13816     }
13817   exit (ferror (f) || fclose (f) != 0);
13818
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 rm -f conftest$ac_exeext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825   (eval $ac_link) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; }; then
13834   ac_cv_sizeof_long_long_int=`cat conftest.val`
13835 else
13836   echo "$as_me: program exited with status $ac_status" >&5
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 ( exit $ac_status )
13841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13842 See \`config.log' for more details." >&5
13843 echo "$as_me: error: cannot compute sizeof (long long int), 77
13844 See \`config.log' for more details." >&2;}
13845    { (exit 1); exit 1; }; }
13846 fi
13847 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 fi
13850 rm -f conftest.val
13851 else
13852   ac_cv_sizeof_long_long_int=0
13853 fi
13854 fi
13855 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13856 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13857 cat >>confdefs.h <<_ACEOF
13858 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13859 _ACEOF
13860
13861
13862 echo "$as_me:$LINENO: checking for int *" >&5
13863 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13864 if test "${ac_cv_type_int_p+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 $ac_includes_default
13875 int
13876 main ()
13877 {
13878 if ((int * *) 0)
13879   return 0;
13880 if (sizeof (int *))
13881   return 0;
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_cv_type_int_p=yes
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 ac_cv_type_int_p=no
13904 fi
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13906 fi
13907 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13908 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13909
13910 echo "$as_me:$LINENO: checking size of int *" >&5
13911 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13912 if test "${ac_cv_sizeof_int_p+set}" = set; then
13913   echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915   if test "$ac_cv_type_int_p" = yes; then
13916   # The cast to unsigned long works around a bug in the HP C Compiler
13917   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13918   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13919   # This bug is HP SR number 8606223364.
13920   if test "$cross_compiling" = yes; then
13921   # Depending upon the size, compute the lo and hi bounds.
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 $ac_includes_default
13930 int
13931 main ()
13932 {
13933 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13934 test_array [0] = 0
13935
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942   (eval $ac_compile) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -s conftest.$ac_objext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_lo=0 ac_mid=0
13953   while :; do
13954     cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13956 /* confdefs.h.  */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h.  */
13961 $ac_includes_default
13962 int
13963 main ()
13964 {
13965 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13966 test_array [0] = 0
13967
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_hi=$ac_mid; break
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_lo=`expr $ac_mid + 1`
13990                     if test $ac_lo -le $ac_mid; then
13991                       ac_lo= ac_hi=
13992                       break
13993                     fi
13994                     ac_mid=`expr 2 '*' $ac_mid + 1`
13995 fi
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997   done
13998 else
13999   echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009 $ac_includes_default
14010 int
14011 main ()
14012 {
14013 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14014 test_array [0] = 0
14015
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022   (eval $ac_compile) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } &&
14026          { ac_try='test -s conftest.$ac_objext'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   ac_hi=-1 ac_mid=-1
14033   while :; do
14034     cat >conftest.$ac_ext <<_ACEOF
14035 #line $LINENO "configure"
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041 $ac_includes_default
14042 int
14043 main ()
14044 {
14045 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14046 test_array [0] = 0
14047
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054   (eval $ac_compile) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } &&
14058          { ac_try='test -s conftest.$ac_objext'
14059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060   (eval $ac_try) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }; then
14064   ac_lo=$ac_mid; break
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_hi=`expr '(' $ac_mid ')' - 1`
14070                        if test $ac_mid -le $ac_hi; then
14071                          ac_lo= ac_hi=
14072                          break
14073                        fi
14074                        ac_mid=`expr 2 '*' $ac_mid`
14075 fi
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077   done
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_lo= ac_hi=
14083 fi
14084 rm -f conftest.$ac_objext conftest.$ac_ext
14085 fi
14086 rm -f conftest.$ac_objext conftest.$ac_ext
14087 # Binary search between lo and hi bounds.
14088 while test "x$ac_lo" != "x$ac_hi"; do
14089   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14090   cat >conftest.$ac_ext <<_ACEOF
14091 #line $LINENO "configure"
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 $ac_includes_default
14098 int
14099 main ()
14100 {
14101 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14102 test_array [0] = 0
14103
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110   (eval $ac_compile) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); } &&
14114          { ac_try='test -s conftest.$ac_objext'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_hi=$ac_mid
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_lo=`expr '(' $ac_mid ')' + 1`
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128 done
14129 case $ac_lo in
14130 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14132 See \`config.log' for more details." >&5
14133 echo "$as_me: error: cannot compute sizeof (int *), 77
14134 See \`config.log' for more details." >&2;}
14135    { (exit 1); exit 1; }; } ;;
14136 esac
14137 else
14138   if test "$cross_compiling" = yes; then
14139   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14140 See \`config.log' for more details." >&5
14141 echo "$as_me: error: cannot run test program while cross compiling
14142 See \`config.log' for more details." >&2;}
14143    { (exit 1); exit 1; }; }
14144 else
14145   cat >conftest.$ac_ext <<_ACEOF
14146 #line $LINENO "configure"
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152 $ac_includes_default
14153 long longval () { return (long) (sizeof (int *)); }
14154 unsigned long ulongval () { return (long) (sizeof (int *)); }
14155 #include <stdio.h>
14156 #include <stdlib.h>
14157 int
14158 main ()
14159 {
14160
14161   FILE *f = fopen ("conftest.val", "w");
14162   if (! f)
14163     exit (1);
14164   if (((long) (sizeof (int *))) < 0)
14165     {
14166       long i = longval ();
14167       if (i != ((long) (sizeof (int *))))
14168         exit (1);
14169       fprintf (f, "%ld\n", i);
14170     }
14171   else
14172     {
14173       unsigned long i = ulongval ();
14174       if (i != ((long) (sizeof (int *))))
14175         exit (1);
14176       fprintf (f, "%lu\n", i);
14177     }
14178   exit (ferror (f) || fclose (f) != 0);
14179
14180   ;
14181   return 0;
14182 }
14183 _ACEOF
14184 rm -f conftest$ac_exeext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186   (eval $ac_link) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_sizeof_int_p=`cat conftest.val`
14196 else
14197   echo "$as_me: program exited with status $ac_status" >&5
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ( exit $ac_status )
14202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14203 See \`config.log' for more details." >&5
14204 echo "$as_me: error: cannot compute sizeof (int *), 77
14205 See \`config.log' for more details." >&2;}
14206    { (exit 1); exit 1; }; }
14207 fi
14208 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14209 fi
14210 fi
14211 rm -f conftest.val
14212 else
14213   ac_cv_sizeof_int_p=0
14214 fi
14215 fi
14216 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14217 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14218 cat >>confdefs.h <<_ACEOF
14219 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14220 _ACEOF
14221
14222
14223
14224 # Check for sys/types.h types
14225 echo "$as_me:$LINENO: checking for u_int type" >&5
14226 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14227 if test "${ac_cv_have_u_int+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230
14231     cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238  #include <sys/types.h>
14239 int
14240 main ()
14241 {
14242  u_int a; a = 1;
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_cv_have_u_int="yes"
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264  ac_cv_have_u_int="no"
14265
14266 fi
14267 rm -f conftest.$ac_objext conftest.$ac_ext
14268
14269 fi
14270 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14271 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14272 if test "x$ac_cv_have_u_int" = "xyes" ; then
14273    cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_U_INT 1
14275 _ACEOF
14276
14277    have_u_int=1
14278 fi
14279
14280 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14281 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14282 if test "${ac_cv_have_intmax_t+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285
14286    cat >conftest.$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293  #include <sys/types.h>
14294 int
14295 main ()
14296 {
14297  intmax_t a; a = 1;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304   (eval $ac_compile) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } &&
14308          { ac_try='test -s conftest.$ac_objext'
14309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310   (eval $ac_try) 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314    ac_cv_have_intmax_t="yes"
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319
14320          cat >conftest.$ac_ext <<_ACEOF
14321 #line $LINENO "configure"
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327  #include <stdint.h>
14328 int
14329 main ()
14330 {
14331  intmax_t a; a = 1;
14332   ;
14333   return 0;
14334 }
14335 _ACEOF
14336 rm -f conftest.$ac_objext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338   (eval $ac_compile) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -s conftest.$ac_objext'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348    ac_cv_have_intmax_t="yes"
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353  ac_cv_have_intmax_t="no"
14354
14355 fi
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14357
14358
14359 fi
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361
14362
14363 fi
14364 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14365 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14366 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14367    cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_INTMAX_T 1
14369 _ACEOF
14370
14371    have_intmax_t=1
14372 fi
14373
14374
14375 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14376 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14377 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380
14381    cat >conftest.$ac_ext <<_ACEOF
14382 #line $LINENO "configure"
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388  #include <sys/types.h>
14389 int
14390 main ()
14391 {
14392  u_intmax_t a; a = 1;
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399   (eval $ac_compile) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409    ac_cv_have_u_intmax_t="yes"
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
14415          cat >conftest.$ac_ext <<_ACEOF
14416 #line $LINENO "configure"
14417 /* confdefs.h.  */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h.  */
14422  #include <stdint.h>
14423 int
14424 main ()
14425 {
14426  u_intmax_t a; a = 1;
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443    ac_cv_have_u_intmax_t="yes"
14444 else
14445   echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448  ac_cv_have_u_intmax_t="no"
14449
14450 fi
14451 rm -f conftest.$ac_objext conftest.$ac_ext
14452
14453
14454 fi
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14456
14457 fi
14458 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14459 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14460 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14461    cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_U_INTMAX_T 1
14463 _ACEOF
14464
14465    have_u_intmax_t=1
14466 fi
14467
14468
14469 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14470 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14471 if test "${ac_cv_have_intxx_t+set}" = set; then
14472   echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474
14475    cat >conftest.$ac_ext <<_ACEOF
14476 #line $LINENO "configure"
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482  #include <sys/types.h>
14483 int
14484 main ()
14485 {
14486  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493   (eval $ac_compile) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503    ac_cv_have_intxx_t="yes"
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508  ac_cv_have_intxx_t="no"
14509
14510 fi
14511 rm -f conftest.$ac_objext conftest.$ac_ext
14512
14513 fi
14514 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14515 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14516 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14517    cat >>confdefs.h <<\_ACEOF
14518 #define HAVE_INTXX_T 1
14519 _ACEOF
14520
14521    have_intxx_t=1
14522 fi
14523
14524 echo "$as_me:$LINENO: checking for int64_t type" >&5
14525 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14526 if test "${ac_cv_have_int64_t+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529
14530    cat >conftest.$ac_ext <<_ACEOF
14531 #line $LINENO "configure"
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537  #include <sys/types.h>
14538 int
14539 main ()
14540 {
14541  int64_t a; a = 1;
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548   (eval $ac_compile) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -s conftest.$ac_objext'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; }; then
14558    ac_cv_have_int64_t="yes"
14559 else
14560   echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14562
14563  ac_cv_have_int64_t="no"
14564
14565 fi
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14567
14568 fi
14569 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14570 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14571 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14572    cat >>confdefs.h <<\_ACEOF
14573 #define HAVE_INT64_T 1
14574 _ACEOF
14575
14576    have_int64_t=1
14577 fi
14578
14579 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14580 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14581 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584
14585    cat >conftest.$ac_ext <<_ACEOF
14586 #line $LINENO "configure"
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592  #include <sys/types.h>
14593 int
14594 main ()
14595 {
14596  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603   (eval $ac_compile) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; }; then
14613    ac_cv_have_u_intxx_t="yes"
14614 else
14615   echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618  ac_cv_have_u_intxx_t="no"
14619
14620 fi
14621 rm -f conftest.$ac_objext conftest.$ac_ext
14622
14623 fi
14624 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14625 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14626 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14627    cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_U_INTXX_T 1
14629 _ACEOF
14630
14631    have_u_intxx_t=1
14632 fi
14633
14634 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14635 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14636 if test "${ac_cv_have_u_int64_t+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639
14640    cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647  #include <sys/types.h>
14648 int
14649 main ()
14650 {
14651  u_int64_t a; a = 1;
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658   (eval $ac_compile) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -s conftest.$ac_objext'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668    ac_cv_have_u_int64_t="yes"
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673  ac_cv_have_u_int64_t="no"
14674
14675 fi
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14677
14678 fi
14679 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14680 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14681 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14682    cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_U_INT64_T 1
14684 _ACEOF
14685
14686    have_u_int64_t=1
14687 fi
14688
14689 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14690            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14691 then
14692    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14693 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14694    cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701  #include <sys/bitypes.h>
14702 int
14703 main ()
14704 {
14705  int8_t a; int16_t b; int32_t c;
14706         u_int8_t e; u_int16_t f; u_int32_t g;
14707         a = b = c = e = f = g = 1;
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714   (eval $ac_compile) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -s conftest.$ac_objext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724    cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_U_INTXX_T 1
14726 _ACEOF
14727
14728         cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_INTXX_T 1
14730 _ACEOF
14731
14732         cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_SYS_BITYPES_H 1
14734 _ACEOF
14735
14736         echo "$as_me:$LINENO: result: yes" >&5
14737 echo "${ECHO_T}yes" >&6
14738 else
14739   echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742  echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14744
14745 fi
14746 rm -f conftest.$ac_objext conftest.$ac_ext
14747 fi
14748
14749 if test -z "$have_u_intxx_t" ; then
14750    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14751 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14752 if test "${ac_cv_have_uintxx_t+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755
14756       cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763  #include <sys/types.h>
14764 int
14765 main ()
14766 {
14767  uint8_t a; uint16_t b;
14768            uint32_t c; a = b = c = 1;
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775   (eval $ac_compile) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -s conftest.$ac_objext'
14780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781   (eval $ac_try) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; }; then
14785    ac_cv_have_uintxx_t="yes"
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14789
14790  ac_cv_have_uintxx_t="no"
14791
14792 fi
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14794
14795 fi
14796 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14797 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14798    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14799       cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_UINTXX_T 1
14801 _ACEOF
14802
14803    fi
14804 fi
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820 for ac_func in \
14821         fork \
14822         getcwd \
14823         gethostname \
14824         getpid \
14825         gettimeofday \
14826         setpgid \
14827         setpgrp \
14828         setsid \
14829         signal \
14830         strerror \
14831         strncmp \
14832         strncpy \
14833         vfprintf \
14834
14835 do
14836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14837 echo "$as_me:$LINENO: checking for $ac_func" >&5
14838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14839 if eval "test \"\${$as_ac_var+set}\" = set"; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   cat >conftest.$ac_ext <<_ACEOF
14843 #line $LINENO "configure"
14844 /* confdefs.h.  */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h.  */
14849 /* System header to define __stub macros and hopefully few prototypes,
14850     which can conflict with char $ac_func (); below.
14851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852     <limits.h> exists even on freestanding compilers.  */
14853 #ifdef __STDC__
14854 # include <limits.h>
14855 #else
14856 # include <assert.h>
14857 #endif
14858 /* Override any gcc2 internal prototype to avoid an error.  */
14859 #ifdef __cplusplus
14860 extern "C"
14861 {
14862 #endif
14863 /* We use char because int might match the return type of a gcc2
14864    builtin and then its argument prototype would still apply.  */
14865 char $ac_func ();
14866 /* The GNU C library defines this for functions which it implements
14867     to always fail with ENOSYS.  Some functions are actually named
14868     something starting with __ and the normal name is an alias.  */
14869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 choke me
14871 #else
14872 char (*f) () = $ac_func;
14873 #endif
14874 #ifdef __cplusplus
14875 }
14876 #endif
14877
14878 int
14879 main ()
14880 {
14881 return f != $ac_func;
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -s conftest$ac_exeext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   eval "$as_ac_var=yes"
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 eval "$as_ac_var=no"
14904 fi
14905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14906 fi
14907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910   cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912 _ACEOF
14913
14914 else
14915   echo 'configure: cannot find needed function.'; exit 1
14916
14917 fi
14918 done
14919
14920
14921
14922 for ac_func in fchdir
14923 do
14924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14925 echo "$as_me:$LINENO: checking for $ac_func" >&5
14926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14927 if eval "test \"\${$as_ac_var+set}\" = set"; then
14928   echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930   cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 /* System header to define __stub macros and hopefully few prototypes,
14938     which can conflict with char $ac_func (); below.
14939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14940     <limits.h> exists even on freestanding compilers.  */
14941 #ifdef __STDC__
14942 # include <limits.h>
14943 #else
14944 # include <assert.h>
14945 #endif
14946 /* Override any gcc2 internal prototype to avoid an error.  */
14947 #ifdef __cplusplus
14948 extern "C"
14949 {
14950 #endif
14951 /* We use char because int might match the return type of a gcc2
14952    builtin and then its argument prototype would still apply.  */
14953 char $ac_func ();
14954 /* The GNU C library defines this for functions which it implements
14955     to always fail with ENOSYS.  Some functions are actually named
14956     something starting with __ and the normal name is an alias.  */
14957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14958 choke me
14959 #else
14960 char (*f) () = $ac_func;
14961 #endif
14962 #ifdef __cplusplus
14963 }
14964 #endif
14965
14966 int
14967 main ()
14968 {
14969 return f != $ac_func;
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } &&
14980          { ac_try='test -s conftest$ac_exeext'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; }; then
14986   eval "$as_ac_var=yes"
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991 eval "$as_ac_var=no"
14992 fi
14993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14994 fi
14995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14997 if test `eval echo '${'$as_ac_var'}'` = yes; then
14998   cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15000 _ACEOF
15001  cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_FCHDIR 1
15003 _ACEOF
15004
15005 fi
15006 done
15007
15008
15009 for ac_func in strtoll
15010 do
15011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15012 echo "$as_me:$LINENO: checking for $ac_func" >&5
15013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15014 if eval "test \"\${$as_ac_var+set}\" = set"; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 /* System header to define __stub macros and hopefully few prototypes,
15025     which can conflict with char $ac_func (); below.
15026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15027     <limits.h> exists even on freestanding compilers.  */
15028 #ifdef __STDC__
15029 # include <limits.h>
15030 #else
15031 # include <assert.h>
15032 #endif
15033 /* Override any gcc2 internal prototype to avoid an error.  */
15034 #ifdef __cplusplus
15035 extern "C"
15036 {
15037 #endif
15038 /* We use char because int might match the return type of a gcc2
15039    builtin and then its argument prototype would still apply.  */
15040 char $ac_func ();
15041 /* The GNU C library defines this for functions which it implements
15042     to always fail with ENOSYS.  Some functions are actually named
15043     something starting with __ and the normal name is an alias.  */
15044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15045 choke me
15046 #else
15047 char (*f) () = $ac_func;
15048 #endif
15049 #ifdef __cplusplus
15050 }
15051 #endif
15052
15053 int
15054 main ()
15055 {
15056 return f != $ac_func;
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15063   (eval $ac_link) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } &&
15067          { ac_try='test -s conftest$ac_exeext'
15068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069   (eval $ac_try) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   eval "$as_ac_var=yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 eval "$as_ac_var=no"
15079 fi
15080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15081 fi
15082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15084 if test `eval echo '${'$as_ac_var'}'` = yes; then
15085   cat >>confdefs.h <<_ACEOF
15086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15087 _ACEOF
15088  cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_STRTOLL 1
15090 _ACEOF
15091
15092 fi
15093 done
15094
15095
15096
15097 for ac_func in chflags
15098 do
15099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15100 echo "$as_me:$LINENO: checking for $ac_func" >&5
15101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15102 if eval "test \"\${$as_ac_var+set}\" = set"; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 /* confdefs.h.  */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h.  */
15112 /* System header to define __stub macros and hopefully few prototypes,
15113     which can conflict with char $ac_func (); below.
15114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15115     <limits.h> exists even on freestanding compilers.  */
15116 #ifdef __STDC__
15117 # include <limits.h>
15118 #else
15119 # include <assert.h>
15120 #endif
15121 /* Override any gcc2 internal prototype to avoid an error.  */
15122 #ifdef __cplusplus
15123 extern "C"
15124 {
15125 #endif
15126 /* We use char because int might match the return type of a gcc2
15127    builtin and then its argument prototype would still apply.  */
15128 char $ac_func ();
15129 /* The GNU C library defines this for functions which it implements
15130     to always fail with ENOSYS.  Some functions are actually named
15131     something starting with __ and the normal name is an alias.  */
15132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15133 choke me
15134 #else
15135 char (*f) () = $ac_func;
15136 #endif
15137 #ifdef __cplusplus
15138 }
15139 #endif
15140
15141 int
15142 main ()
15143 {
15144 return f != $ac_func;
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151   (eval $ac_link) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } &&
15155          { ac_try='test -s conftest$ac_exeext'
15156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157   (eval $ac_try) 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   eval "$as_ac_var=yes"
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 eval "$as_ac_var=no"
15167 fi
15168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15169 fi
15170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15172 if test `eval echo '${'$as_ac_var'}'` = yes; then
15173   cat >>confdefs.h <<_ACEOF
15174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15175 _ACEOF
15176
15177 fi
15178 done
15179
15180
15181
15182
15183
15184
15185 for ac_func in snprintf vsnprintf gethostid getdomainname
15186 do
15187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15188 echo "$as_me:$LINENO: checking for $ac_func" >&5
15189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15190 if eval "test \"\${$as_ac_var+set}\" = set"; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   cat >conftest.$ac_ext <<_ACEOF
15194 #line $LINENO "configure"
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 /* System header to define __stub macros and hopefully few prototypes,
15201     which can conflict with char $ac_func (); below.
15202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15203     <limits.h> exists even on freestanding compilers.  */
15204 #ifdef __STDC__
15205 # include <limits.h>
15206 #else
15207 # include <assert.h>
15208 #endif
15209 /* Override any gcc2 internal prototype to avoid an error.  */
15210 #ifdef __cplusplus
15211 extern "C"
15212 {
15213 #endif
15214 /* We use char because int might match the return type of a gcc2
15215    builtin and then its argument prototype would still apply.  */
15216 char $ac_func ();
15217 /* The GNU C library defines this for functions which it implements
15218     to always fail with ENOSYS.  Some functions are actually named
15219     something starting with __ and the normal name is an alias.  */
15220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15221 choke me
15222 #else
15223 char (*f) () = $ac_func;
15224 #endif
15225 #ifdef __cplusplus
15226 }
15227 #endif
15228
15229 int
15230 main ()
15231 {
15232 return f != $ac_func;
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15239   (eval $ac_link) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -s conftest$ac_exeext'
15244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245   (eval $ac_try) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }; then
15249   eval "$as_ac_var=yes"
15250 else
15251   echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 eval "$as_ac_var=no"
15255 fi
15256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15257 fi
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261   cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 _ACEOF
15264
15265 fi
15266 done
15267
15268
15269
15270
15271
15272
15273 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15274 do
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   cat >conftest.$ac_ext <<_ACEOF
15282 #line $LINENO "configure"
15283 /* confdefs.h.  */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h.  */
15288 /* System header to define __stub macros and hopefully few prototypes,
15289     which can conflict with char $ac_func (); below.
15290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15291     <limits.h> exists even on freestanding compilers.  */
15292 #ifdef __STDC__
15293 # include <limits.h>
15294 #else
15295 # include <assert.h>
15296 #endif
15297 /* Override any gcc2 internal prototype to avoid an error.  */
15298 #ifdef __cplusplus
15299 extern "C"
15300 {
15301 #endif
15302 /* We use char because int might match the return type of a gcc2
15303    builtin and then its argument prototype would still apply.  */
15304 char $ac_func ();
15305 /* The GNU C library defines this for functions which it implements
15306     to always fail with ENOSYS.  Some functions are actually named
15307     something starting with __ and the normal name is an alias.  */
15308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15309 choke me
15310 #else
15311 char (*f) () = $ac_func;
15312 #endif
15313 #ifdef __cplusplus
15314 }
15315 #endif
15316
15317 int
15318 main ()
15319 {
15320 return f != $ac_func;
15321   ;
15322   return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327   (eval $ac_link) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -s conftest$ac_exeext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   eval "$as_ac_var=yes"
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 eval "$as_ac_var=no"
15343 fi
15344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15345 fi
15346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15348 if test `eval echo '${'$as_ac_var'}'` = yes; then
15349   cat >>confdefs.h <<_ACEOF
15350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15351 _ACEOF
15352
15353 fi
15354 done
15355
15356
15357 # If resolver functions are not in libc check for -lnsl or -lresolv.
15358 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15359 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15360 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   cat >conftest.$ac_ext <<_ACEOF
15364 #line $LINENO "configure"
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370 /* System header to define __stub macros and hopefully few prototypes,
15371     which can conflict with char gethostbyname_r (); below.
15372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15373     <limits.h> exists even on freestanding compilers.  */
15374 #ifdef __STDC__
15375 # include <limits.h>
15376 #else
15377 # include <assert.h>
15378 #endif
15379 /* Override any gcc2 internal prototype to avoid an error.  */
15380 #ifdef __cplusplus
15381 extern "C"
15382 {
15383 #endif
15384 /* We use char because int might match the return type of a gcc2
15385    builtin and then its argument prototype would still apply.  */
15386 char gethostbyname_r ();
15387 /* The GNU C library defines this for functions which it implements
15388     to always fail with ENOSYS.  Some functions are actually named
15389     something starting with __ and the normal name is an alias.  */
15390 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15391 choke me
15392 #else
15393 char (*f) () = gethostbyname_r;
15394 #endif
15395 #ifdef __cplusplus
15396 }
15397 #endif
15398
15399 int
15400 main ()
15401 {
15402 return f != gethostbyname_r;
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15409   (eval $ac_link) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } &&
15413          { ac_try='test -s conftest$ac_exeext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_cv_func_gethostbyname_r=yes
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 ac_cv_func_gethostbyname_r=no
15425 fi
15426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15427 fi
15428 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15429 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15430 if test $ac_cv_func_gethostbyname_r = yes; then
15431   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15432 echo "${ECHO_T}using libc's resolver" >&6
15433 else
15434
15435 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15436 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15437 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   ac_check_lib_save_LIBS=$LIBS
15441 LIBS="-lnsl  $LIBS"
15442 cat >conftest.$ac_ext <<_ACEOF
15443 #line $LINENO "configure"
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449
15450 /* Override any gcc2 internal prototype to avoid an error.  */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 /* We use char because int might match the return type of a gcc2
15455    builtin and then its argument prototype would still apply.  */
15456 char gethostbyname_r ();
15457 int
15458 main ()
15459 {
15460 gethostbyname_r ();
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467   (eval $ac_link) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } &&
15471          { ac_try='test -s conftest$ac_exeext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_cv_lib_nsl_gethostbyname_r=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_cv_lib_nsl_gethostbyname_r=no
15483 fi
15484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15486 fi
15487 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15488 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15489 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15490   cat >>confdefs.h <<_ACEOF
15491 #define HAVE_LIBNSL 1
15492 _ACEOF
15493
15494   LIBS="-lnsl $LIBS"
15495
15496 fi
15497
15498
15499 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15500 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15501 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15502   echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504   ac_check_lib_save_LIBS=$LIBS
15505 LIBS="-lresolv  $LIBS"
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513
15514 /* Override any gcc2 internal prototype to avoid an error.  */
15515 #ifdef __cplusplus
15516 extern "C"
15517 #endif
15518 /* We use char because int might match the return type of a gcc2
15519    builtin and then its argument prototype would still apply.  */
15520 char gethostbyname_r ();
15521 int
15522 main ()
15523 {
15524 gethostbyname_r ();
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531   (eval $ac_link) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -s conftest$ac_exeext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   ac_cv_lib_resolv_gethostbyname_r=yes
15542 else
15543   echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546 ac_cv_lib_resolv_gethostbyname_r=no
15547 fi
15548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15550 fi
15551 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15552 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15553 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15554   cat >>confdefs.h <<_ACEOF
15555 #define HAVE_LIBRESOLV 1
15556 _ACEOF
15557
15558   LIBS="-lresolv $LIBS"
15559
15560 fi
15561
15562 fi
15563
15564
15565
15566 # Find where sockets are (especially for Solaris)
15567 echo "$as_me:$LINENO: checking for socket" >&5
15568 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15569 if test "${ac_cv_func_socket+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579 /* System header to define __stub macros and hopefully few prototypes,
15580     which can conflict with char socket (); below.
15581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582     <limits.h> exists even on freestanding compilers.  */
15583 #ifdef __STDC__
15584 # include <limits.h>
15585 #else
15586 # include <assert.h>
15587 #endif
15588 /* Override any gcc2 internal prototype to avoid an error.  */
15589 #ifdef __cplusplus
15590 extern "C"
15591 {
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 socket ();
15596 /* The GNU C library defines this for functions which it implements
15597     to always fail with ENOSYS.  Some functions are actually named
15598     something starting with __ and the normal name is an alias.  */
15599 #if defined (__stub_socket) || defined (__stub___socket)
15600 choke me
15601 #else
15602 char (*f) () = socket;
15603 #endif
15604 #ifdef __cplusplus
15605 }
15606 #endif
15607
15608 int
15609 main ()
15610 {
15611 return f != socket;
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15618   (eval $ac_link) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -s conftest$ac_exeext'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628   ac_cv_func_socket=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_cv_func_socket=no
15634 fi
15635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15638 echo "${ECHO_T}$ac_cv_func_socket" >&6
15639 if test $ac_cv_func_socket = yes; then
15640   echo "$as_me:$LINENO: result: using libc's socket" >&5
15641 echo "${ECHO_T}using libc's socket" >&6
15642 else
15643
15644 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15645 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15646 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   ac_check_lib_save_LIBS=$LIBS
15650 LIBS="-lxnet  $LIBS"
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658
15659 /* Override any gcc2 internal prototype to avoid an error.  */
15660 #ifdef __cplusplus
15661 extern "C"
15662 #endif
15663 /* We use char because int might match the return type of a gcc2
15664    builtin and then its argument prototype would still apply.  */
15665 char socket ();
15666 int
15667 main ()
15668 {
15669 socket ();
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676   (eval $ac_link) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -s conftest$ac_exeext'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; }; then
15686   ac_cv_lib_xnet_socket=yes
15687 else
15688   echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_cv_lib_xnet_socket=no
15692 fi
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15695 fi
15696 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15697 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15698 if test $ac_cv_lib_xnet_socket = yes; then
15699   cat >>confdefs.h <<_ACEOF
15700 #define HAVE_LIBXNET 1
15701 _ACEOF
15702
15703   LIBS="-lxnet $LIBS"
15704
15705 fi
15706
15707
15708 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15709 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15710 if test "${ac_cv_lib_socket_socket+set}" = set; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713   ac_check_lib_save_LIBS=$LIBS
15714 LIBS="-lsocket  $LIBS"
15715 cat >conftest.$ac_ext <<_ACEOF
15716 #line $LINENO "configure"
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722
15723 /* Override any gcc2 internal prototype to avoid an error.  */
15724 #ifdef __cplusplus
15725 extern "C"
15726 #endif
15727 /* We use char because int might match the return type of a gcc2
15728    builtin and then its argument prototype would still apply.  */
15729 char socket ();
15730 int
15731 main ()
15732 {
15733 socket ();
15734   ;
15735   return 0;
15736 }
15737 _ACEOF
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740   (eval $ac_link) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } &&
15744          { ac_try='test -s conftest$ac_exeext'
15745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746   (eval $ac_try) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); }; }; then
15750   ac_cv_lib_socket_socket=yes
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_cv_lib_socket_socket=no
15756 fi
15757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15761 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15762 if test $ac_cv_lib_socket_socket = yes; then
15763   cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBSOCKET 1
15765 _ACEOF
15766
15767   LIBS="-lsocket $LIBS"
15768
15769 fi
15770
15771
15772 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15773 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15774 if test "${ac_cv_lib_inet_socket+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-linet  $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786
15787 /* Override any gcc2 internal prototype to avoid an error.  */
15788 #ifdef __cplusplus
15789 extern "C"
15790 #endif
15791 /* We use char because int might match the return type of a gcc2
15792    builtin and then its argument prototype would still apply.  */
15793 char socket ();
15794 int
15795 main ()
15796 {
15797 socket ();
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804   (eval $ac_link) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); } &&
15808          { ac_try='test -s conftest$ac_exeext'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814   ac_cv_lib_inet_socket=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 ac_cv_lib_inet_socket=no
15820 fi
15821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15822 LIBS=$ac_check_lib_save_LIBS
15823 fi
15824 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15825 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15826 if test $ac_cv_lib_inet_socket = yes; then
15827   cat >>confdefs.h <<_ACEOF
15828 #define HAVE_LIBINET 1
15829 _ACEOF
15830
15831   LIBS="-linet $LIBS"
15832
15833 fi
15834
15835 fi
15836
15837
15838
15839 for ac_func in inet_pton
15840 do
15841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15842 echo "$as_me:$LINENO: checking for $ac_func" >&5
15843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15844 if eval "test \"\${$as_ac_var+set}\" = set"; then
15845   echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847   cat >conftest.$ac_ext <<_ACEOF
15848 #line $LINENO "configure"
15849 /* confdefs.h.  */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h.  */
15854 /* System header to define __stub macros and hopefully few prototypes,
15855     which can conflict with char $ac_func (); below.
15856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15857     <limits.h> exists even on freestanding compilers.  */
15858 #ifdef __STDC__
15859 # include <limits.h>
15860 #else
15861 # include <assert.h>
15862 #endif
15863 /* Override any gcc2 internal prototype to avoid an error.  */
15864 #ifdef __cplusplus
15865 extern "C"
15866 {
15867 #endif
15868 /* We use char because int might match the return type of a gcc2
15869    builtin and then its argument prototype would still apply.  */
15870 char $ac_func ();
15871 /* The GNU C library defines this for functions which it implements
15872     to always fail with ENOSYS.  Some functions are actually named
15873     something starting with __ and the normal name is an alias.  */
15874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15875 choke me
15876 #else
15877 char (*f) () = $ac_func;
15878 #endif
15879 #ifdef __cplusplus
15880 }
15881 #endif
15882
15883 int
15884 main ()
15885 {
15886 return f != $ac_func;
15887   ;
15888   return 0;
15889 }
15890 _ACEOF
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893   (eval $ac_link) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -s conftest$ac_exeext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   eval "$as_ac_var=yes"
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 eval "$as_ac_var=no"
15909 fi
15910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15911 fi
15912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15914 if test `eval echo '${'$as_ac_var'}'` = yes; then
15915   cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15917 _ACEOF
15918  cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_INET_PTON 1
15920 _ACEOF
15921
15922 fi
15923 done
15924
15925
15926
15927 for ac_func in strftime
15928 do
15929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15930 echo "$as_me:$LINENO: checking for $ac_func" >&5
15931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_var+set}\" = set"; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   cat >conftest.$ac_ext <<_ACEOF
15936 #line $LINENO "configure"
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 /* System header to define __stub macros and hopefully few prototypes,
15943     which can conflict with char $ac_func (); below.
15944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945     <limits.h> exists even on freestanding compilers.  */
15946 #ifdef __STDC__
15947 # include <limits.h>
15948 #else
15949 # include <assert.h>
15950 #endif
15951 /* Override any gcc2 internal prototype to avoid an error.  */
15952 #ifdef __cplusplus
15953 extern "C"
15954 {
15955 #endif
15956 /* We use char because int might match the return type of a gcc2
15957    builtin and then its argument prototype would still apply.  */
15958 char $ac_func ();
15959 /* The GNU C library defines this for functions which it implements
15960     to always fail with ENOSYS.  Some functions are actually named
15961     something starting with __ and the normal name is an alias.  */
15962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15963 choke me
15964 #else
15965 char (*f) () = $ac_func;
15966 #endif
15967 #ifdef __cplusplus
15968 }
15969 #endif
15970
15971 int
15972 main ()
15973 {
15974 return f != $ac_func;
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15981   (eval $ac_link) 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -s conftest$ac_exeext'
15986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987   (eval $ac_try) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; }; then
15991   eval "$as_ac_var=yes"
15992 else
15993   echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15995
15996 eval "$as_ac_var=no"
15997 fi
15998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15999 fi
16000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16002 if test `eval echo '${'$as_ac_var'}'` = yes; then
16003   cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16005 _ACEOF
16006
16007 else
16008   # strftime is in -lintl on SCO UNIX.
16009 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16010 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16011 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   ac_check_lib_save_LIBS=$LIBS
16015 LIBS="-lintl  $LIBS"
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 #endif
16028 /* We use char because int might match the return type of a gcc2
16029    builtin and then its argument prototype would still apply.  */
16030 char strftime ();
16031 int
16032 main ()
16033 {
16034 strftime ();
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041   (eval $ac_link) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -s conftest$ac_exeext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_cv_lib_intl_strftime=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_cv_lib_intl_strftime=no
16057 fi
16058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16060 fi
16061 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16062 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16063 if test $ac_cv_lib_intl_strftime = yes; then
16064   cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_STRFTIME 1
16066 _ACEOF
16067
16068 LIBS="-lintl $LIBS"
16069 fi
16070
16071 fi
16072 done
16073
16074
16075 for ac_func in vprintf
16076 do
16077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16078 echo "$as_me:$LINENO: checking for $ac_func" >&5
16079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16080 if eval "test \"\${$as_ac_var+set}\" = set"; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   cat >conftest.$ac_ext <<_ACEOF
16084 #line $LINENO "configure"
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 /* System header to define __stub macros and hopefully few prototypes,
16091     which can conflict with char $ac_func (); below.
16092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16093     <limits.h> exists even on freestanding compilers.  */
16094 #ifdef __STDC__
16095 # include <limits.h>
16096 #else
16097 # include <assert.h>
16098 #endif
16099 /* Override any gcc2 internal prototype to avoid an error.  */
16100 #ifdef __cplusplus
16101 extern "C"
16102 {
16103 #endif
16104 /* We use char because int might match the return type of a gcc2
16105    builtin and then its argument prototype would still apply.  */
16106 char $ac_func ();
16107 /* The GNU C library defines this for functions which it implements
16108     to always fail with ENOSYS.  Some functions are actually named
16109     something starting with __ and the normal name is an alias.  */
16110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16111 choke me
16112 #else
16113 char (*f) () = $ac_func;
16114 #endif
16115 #ifdef __cplusplus
16116 }
16117 #endif
16118
16119 int
16120 main ()
16121 {
16122 return f != $ac_func;
16123   ;
16124   return 0;
16125 }
16126 _ACEOF
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129   (eval $ac_link) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } &&
16133          { ac_try='test -s conftest$ac_exeext'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; }; then
16139   eval "$as_ac_var=yes"
16140 else
16141   echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16143
16144 eval "$as_ac_var=no"
16145 fi
16146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16147 fi
16148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16150 if test `eval echo '${'$as_ac_var'}'` = yes; then
16151   cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16153 _ACEOF
16154
16155 echo "$as_me:$LINENO: checking for _doprnt" >&5
16156 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16157 if test "${ac_cv_func__doprnt+set}" = set; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   cat >conftest.$ac_ext <<_ACEOF
16161 #line $LINENO "configure"
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 /* System header to define __stub macros and hopefully few prototypes,
16168     which can conflict with char _doprnt (); below.
16169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170     <limits.h> exists even on freestanding compilers.  */
16171 #ifdef __STDC__
16172 # include <limits.h>
16173 #else
16174 # include <assert.h>
16175 #endif
16176 /* Override any gcc2 internal prototype to avoid an error.  */
16177 #ifdef __cplusplus
16178 extern "C"
16179 {
16180 #endif
16181 /* We use char because int might match the return type of a gcc2
16182    builtin and then its argument prototype would still apply.  */
16183 char _doprnt ();
16184 /* The GNU C library defines this for functions which it implements
16185     to always fail with ENOSYS.  Some functions are actually named
16186     something starting with __ and the normal name is an alias.  */
16187 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16188 choke me
16189 #else
16190 char (*f) () = _doprnt;
16191 #endif
16192 #ifdef __cplusplus
16193 }
16194 #endif
16195
16196 int
16197 main ()
16198 {
16199 return f != _doprnt;
16200   ;
16201   return 0;
16202 }
16203 _ACEOF
16204 rm -f conftest.$ac_objext conftest$ac_exeext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16206   (eval $ac_link) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } &&
16210          { ac_try='test -s conftest$ac_exeext'
16211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212   (eval $ac_try) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; }; then
16216   ac_cv_func__doprnt=yes
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221 ac_cv_func__doprnt=no
16222 fi
16223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16226 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16227 if test $ac_cv_func__doprnt = yes; then
16228
16229 cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_DOPRNT 1
16231 _ACEOF
16232
16233 fi
16234
16235 fi
16236 done
16237
16238
16239 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16240 # for constant arguments.  Useless!
16241 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16242 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16243 if test "${ac_cv_working_alloca_h+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 #include <alloca.h>
16254 int
16255 main ()
16256 {
16257 char *p = (char *) alloca (2 * sizeof (int));
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264   (eval $ac_link) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -s conftest$ac_exeext'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; }; then
16274   ac_cv_working_alloca_h=yes
16275 else
16276   echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 ac_cv_working_alloca_h=no
16280 fi
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282 fi
16283 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16284 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16285 if test $ac_cv_working_alloca_h = yes; then
16286
16287 cat >>confdefs.h <<\_ACEOF
16288 #define HAVE_ALLOCA_H 1
16289 _ACEOF
16290
16291 fi
16292
16293 echo "$as_me:$LINENO: checking for alloca" >&5
16294 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16295 if test "${ac_cv_func_alloca_works+set}" = set; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298   cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 #ifdef __GNUC__
16306 # define alloca __builtin_alloca
16307 #else
16308 # ifdef _MSC_VER
16309 #  include <malloc.h>
16310 #  define alloca _alloca
16311 # else
16312 #  if HAVE_ALLOCA_H
16313 #   include <alloca.h>
16314 #  else
16315 #   ifdef _AIX
16316  #pragma alloca
16317 #   else
16318 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16319 char *alloca ();
16320 #    endif
16321 #   endif
16322 #  endif
16323 # endif
16324 #endif
16325
16326 int
16327 main ()
16328 {
16329 char *p = (char *) alloca (1);
16330   ;
16331   return 0;
16332 }
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336   (eval $ac_link) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -s conftest$ac_exeext'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; }; then
16346   ac_cv_func_alloca_works=yes
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ac_cv_func_alloca_works=no
16352 fi
16353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16354 fi
16355 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16356 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16357
16358 if test $ac_cv_func_alloca_works = yes; then
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_ALLOCA 1
16362 _ACEOF
16363
16364 else
16365   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16366 # that cause trouble.  Some versions do not even contain alloca or
16367 # contain a buggy version.  If you still want to use their alloca,
16368 # use ar to extract alloca.o from them instead of compiling alloca.c.
16369
16370 ALLOCA=alloca.$ac_objext
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define C_ALLOCA 1
16374 _ACEOF
16375
16376
16377 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16378 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16379 if test "${ac_cv_os_cray+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 #if defined(CRAY) && ! defined(CRAY2)
16390 webecray
16391 #else
16392 wenotbecray
16393 #endif
16394
16395 _ACEOF
16396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16397   $EGREP "webecray" >/dev/null 2>&1; then
16398   ac_cv_os_cray=yes
16399 else
16400   ac_cv_os_cray=no
16401 fi
16402 rm -f conftest*
16403
16404 fi
16405 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16406 echo "${ECHO_T}$ac_cv_os_cray" >&6
16407 if test $ac_cv_os_cray = yes; then
16408   for ac_func in _getb67 GETB67 getb67; do
16409     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16410 echo "$as_me:$LINENO: checking for $ac_func" >&5
16411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16412 if eval "test \"\${$as_ac_var+set}\" = set"; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   cat >conftest.$ac_ext <<_ACEOF
16416 #line $LINENO "configure"
16417 /* confdefs.h.  */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h.  */
16422 /* System header to define __stub macros and hopefully few prototypes,
16423     which can conflict with char $ac_func (); below.
16424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425     <limits.h> exists even on freestanding compilers.  */
16426 #ifdef __STDC__
16427 # include <limits.h>
16428 #else
16429 # include <assert.h>
16430 #endif
16431 /* Override any gcc2 internal prototype to avoid an error.  */
16432 #ifdef __cplusplus
16433 extern "C"
16434 {
16435 #endif
16436 /* We use char because int might match the return type of a gcc2
16437    builtin and then its argument prototype would still apply.  */
16438 char $ac_func ();
16439 /* The GNU C library defines this for functions which it implements
16440     to always fail with ENOSYS.  Some functions are actually named
16441     something starting with __ and the normal name is an alias.  */
16442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16443 choke me
16444 #else
16445 char (*f) () = $ac_func;
16446 #endif
16447 #ifdef __cplusplus
16448 }
16449 #endif
16450
16451 int
16452 main ()
16453 {
16454 return f != $ac_func;
16455   ;
16456   return 0;
16457 }
16458 _ACEOF
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461   (eval $ac_link) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } &&
16465          { ac_try='test -s conftest$ac_exeext'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; }; then
16471   eval "$as_ac_var=yes"
16472 else
16473   echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 eval "$as_ac_var=no"
16477 fi
16478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16479 fi
16480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16482 if test `eval echo '${'$as_ac_var'}'` = yes; then
16483
16484 cat >>confdefs.h <<_ACEOF
16485 #define CRAY_STACKSEG_END $ac_func
16486 _ACEOF
16487
16488     break
16489 fi
16490
16491   done
16492 fi
16493
16494 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16495 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16496 if test "${ac_cv_c_stack_direction+set}" = set; then
16497   echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499   if test "$cross_compiling" = yes; then
16500   ac_cv_c_stack_direction=0
16501 else
16502   cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 int
16510 find_stack_direction ()
16511 {
16512   static char *addr = 0;
16513   auto char dummy;
16514   if (addr == 0)
16515     {
16516       addr = &dummy;
16517       return find_stack_direction ();
16518     }
16519   else
16520     return (&dummy > addr) ? 1 : -1;
16521 }
16522
16523 int
16524 main ()
16525 {
16526   exit (find_stack_direction () < 0);
16527 }
16528 _ACEOF
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531   (eval $ac_link) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536   (eval $ac_try) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }; then
16540   ac_cv_c_stack_direction=1
16541 else
16542   echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ( exit $ac_status )
16547 ac_cv_c_stack_direction=-1
16548 fi
16549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16550 fi
16551 fi
16552 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16553 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16554
16555 cat >>confdefs.h <<_ACEOF
16556 #define STACK_DIRECTION $ac_cv_c_stack_direction
16557 _ACEOF
16558
16559
16560 fi
16561
16562 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16563 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16564 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16565 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lsun  $LIBS"
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577
16578 /* Override any gcc2 internal prototype to avoid an error.  */
16579 #ifdef __cplusplus
16580 extern "C"
16581 #endif
16582 /* We use char because int might match the return type of a gcc2
16583    builtin and then its argument prototype would still apply.  */
16584 char getmntent ();
16585 int
16586 main ()
16587 {
16588 getmntent ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595   (eval $ac_link) 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } &&
16599          { ac_try='test -s conftest$ac_exeext'
16600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601   (eval $ac_try) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   ac_cv_lib_sun_getmntent=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_cv_lib_sun_getmntent=no
16611 fi
16612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16614 fi
16615 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16616 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16617 if test $ac_cv_lib_sun_getmntent = yes; then
16618   LIBS="-lsun $LIBS"
16619 else
16620   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16621 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16622 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   ac_check_lib_save_LIBS=$LIBS
16626 LIBS="-lseq  $LIBS"
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16629 /* confdefs.h.  */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h.  */
16634
16635 /* Override any gcc2 internal prototype to avoid an error.  */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 /* We use char because int might match the return type of a gcc2
16640    builtin and then its argument prototype would still apply.  */
16641 char getmntent ();
16642 int
16643 main ()
16644 {
16645 getmntent ();
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652   (eval $ac_link) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } &&
16656          { ac_try='test -s conftest$ac_exeext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ac_cv_lib_seq_getmntent=yes
16663 else
16664   echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_cv_lib_seq_getmntent=no
16668 fi
16669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16671 fi
16672 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16673 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16674 if test $ac_cv_lib_seq_getmntent = yes; then
16675   LIBS="-lseq $LIBS"
16676 else
16677   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16678 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16679 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   ac_check_lib_save_LIBS=$LIBS
16683 LIBS="-lgen  $LIBS"
16684 cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691
16692 /* Override any gcc2 internal prototype to avoid an error.  */
16693 #ifdef __cplusplus
16694 extern "C"
16695 #endif
16696 /* We use char because int might match the return type of a gcc2
16697    builtin and then its argument prototype would still apply.  */
16698 char getmntent ();
16699 int
16700 main ()
16701 {
16702 getmntent ();
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709   (eval $ac_link) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -s conftest$ac_exeext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   ac_cv_lib_gen_getmntent=yes
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_cv_lib_gen_getmntent=no
16725 fi
16726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16727 LIBS=$ac_check_lib_save_LIBS
16728 fi
16729 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16730 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16731 if test $ac_cv_lib_gen_getmntent = yes; then
16732   LIBS="-lgen $LIBS"
16733 fi
16734
16735 fi
16736
16737 fi
16738
16739
16740 for ac_func in getmntent
16741 do
16742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16745 if eval "test \"\${$as_ac_var+set}\" = set"; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   cat >conftest.$ac_ext <<_ACEOF
16749 #line $LINENO "configure"
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 /* System header to define __stub macros and hopefully few prototypes,
16756     which can conflict with char $ac_func (); below.
16757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16758     <limits.h> exists even on freestanding compilers.  */
16759 #ifdef __STDC__
16760 # include <limits.h>
16761 #else
16762 # include <assert.h>
16763 #endif
16764 /* Override any gcc2 internal prototype to avoid an error.  */
16765 #ifdef __cplusplus
16766 extern "C"
16767 {
16768 #endif
16769 /* We use char because int might match the return type of a gcc2
16770    builtin and then its argument prototype would still apply.  */
16771 char $ac_func ();
16772 /* The GNU C library defines this for functions which it implements
16773     to always fail with ENOSYS.  Some functions are actually named
16774     something starting with __ and the normal name is an alias.  */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16776 choke me
16777 #else
16778 char (*f) () = $ac_func;
16779 #endif
16780 #ifdef __cplusplus
16781 }
16782 #endif
16783
16784 int
16785 main ()
16786 {
16787 return f != $ac_func;
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794   (eval $ac_link) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   eval "$as_ac_var=yes"
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 eval "$as_ac_var=no"
16810 fi
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16812 fi
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16815 if test `eval echo '${'$as_ac_var'}'` = yes; then
16816   cat >>confdefs.h <<_ACEOF
16817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16818 _ACEOF
16819
16820 fi
16821 done
16822
16823
16824 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16825 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16826 if test "${ac_cv_func_closedir_void+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   if test "$cross_compiling" = yes; then
16830   ac_cv_func_closedir_void=yes
16831 else
16832   cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 #include <$ac_header_dirent>
16841 #ifndef __cplusplus
16842 int closedir ();
16843 #endif
16844
16845 int
16846 main ()
16847 {
16848 exit (closedir (opendir (".")) != 0);
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest$ac_exeext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855   (eval $ac_link) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860   (eval $ac_try) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; }; then
16864   ac_cv_func_closedir_void=no
16865 else
16866   echo "$as_me: program exited with status $ac_status" >&5
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 ( exit $ac_status )
16871 ac_cv_func_closedir_void=yes
16872 fi
16873 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 fi
16876 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16877 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16878 if test $ac_cv_func_closedir_void = yes; then
16879
16880 cat >>confdefs.h <<\_ACEOF
16881 #define CLOSEDIR_VOID 1
16882 _ACEOF
16883
16884 fi
16885
16886 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16887 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16888 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   if test "$cross_compiling" = yes; then
16892   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16893 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16894    { (exit 1); exit 1; }; }
16895 else
16896   cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 #if HAVE_UNISTD_H
16904 # include <unistd.h>
16905 #endif
16906
16907 int
16908 main ()
16909 {
16910 /* If this system has a BSD-style setpgrp which takes arguments,
16911   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16912   exit successfully. */
16913   exit (setpgrp (1,1) == -1 ? 0 : 1);
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920   (eval $ac_link) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   ac_cv_func_setpgrp_void=no
16930 else
16931   echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ( exit $ac_status )
16936 ac_cv_func_setpgrp_void=yes
16937 fi
16938 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 fi
16941 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16942 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16943 if test $ac_cv_func_setpgrp_void = yes; then
16944
16945 cat >>confdefs.h <<\_ACEOF
16946 #define SETPGRP_VOID 1
16947 _ACEOF
16948
16949 fi
16950                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16951 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16952 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   # Some versions of Solaris, SCO, and the GNU C Library
16956    # have a broken or incompatible fnmatch.
16957    # So we run a test program.  If we are cross-compiling, take no chance.
16958    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16959    if test "$cross_compiling" = yes; then
16960   ac_cv_func_fnmatch_works=cross
16961 else
16962   cat >conftest.$ac_ext <<_ACEOF
16963 #line $LINENO "configure"
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969 #include <fnmatch.h>
16970 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16971 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16972
16973 int
16974 main ()
16975 {
16976 exit
16977            (!(y ("a*", "abc", 0)
16978               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16979               && y ("a\\\\bc", "abc", 0)
16980               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16981               && y ("*x", ".x", 0)
16982               && n ("*x", ".x", FNM_PERIOD)
16983               && 1));
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990   (eval $ac_link) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   ac_cv_func_fnmatch_works=yes
17000 else
17001   echo "$as_me: program exited with status $ac_status" >&5
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ( exit $ac_status )
17006 ac_cv_func_fnmatch_works=no
17007 fi
17008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17009 fi
17010 fi
17011 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17012 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17013 if test $ac_cv_func_fnmatch_works = yes; then
17014
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_FNMATCH 1
17017 _ACEOF
17018
17019 fi
17020
17021
17022
17023
17024
17025 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17026 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17027 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17028   echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030   ac_check_lib_save_LIBS=$LIBS
17031 LIBS="-lxpg4  $LIBS"
17032 cat >conftest.$ac_ext <<_ACEOF
17033 #line $LINENO "configure"
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039
17040 /* Override any gcc2 internal prototype to avoid an error.  */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 /* We use char because int might match the return type of a gcc2
17045    builtin and then its argument prototype would still apply.  */
17046 char setlocale ();
17047 int
17048 main ()
17049 {
17050 setlocale ();
17051   ;
17052   return 0;
17053 }
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17057   (eval $ac_link) 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); } &&
17061          { ac_try='test -s conftest$ac_exeext'
17062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063   (eval $ac_try) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   ac_cv_lib_xpg4_setlocale=yes
17068 else
17069   echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 ac_cv_lib_xpg4_setlocale=no
17073 fi
17074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17076 fi
17077 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17078 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17079 if test $ac_cv_lib_xpg4_setlocale = yes; then
17080   LIBS="$LIBS -lxpg4"
17081 fi
17082
17083
17084
17085
17086 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17087 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17088 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091   ac_check_lib_save_LIBS=$LIBS
17092 LIBS="-lsun  $LIBS"
17093 cat >conftest.$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100
17101 /* Override any gcc2 internal prototype to avoid an error.  */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 /* We use char because int might match the return type of a gcc2
17106    builtin and then its argument prototype would still apply.  */
17107 char getpwnam ();
17108 int
17109 main ()
17110 {
17111 getpwnam ();
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17118   (eval $ac_link) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -s conftest$ac_exeext'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; }; then
17128   ac_cv_lib_sun_getpwnam=yes
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_lib_sun_getpwnam=no
17134 fi
17135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17136 LIBS=$ac_check_lib_save_LIBS
17137 fi
17138 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17139 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17140 if test $ac_cv_lib_sun_getpwnam = yes; then
17141   cat >>confdefs.h <<_ACEOF
17142 #define HAVE_LIBSUN 1
17143 _ACEOF
17144
17145   LIBS="-lsun $LIBS"
17146
17147 fi
17148
17149
17150
17151 for ac_header in zlib.h
17152 do
17153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17155   echo "$as_me:$LINENO: checking for $ac_header" >&5
17156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 fi
17160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17162 else
17163   # Is the header compilable?
17164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17167 #line $LINENO "configure"
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173 $ac_includes_default
17174 #include <$ac_header>
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178   (eval $ac_compile) 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -s conftest.$ac_objext'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; }; then
17188   ac_header_compiler=yes
17189 else
17190   echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 ac_header_compiler=no
17194 fi
17195 rm -f conftest.$ac_objext conftest.$ac_ext
17196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6
17198
17199 # Is the header present?
17200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 #include <$ac_header>
17210 _ACEOF
17211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } >/dev/null; then
17219   if test -s conftest.err; then
17220     ac_cpp_err=$ac_c_preproc_warn_flag
17221   else
17222     ac_cpp_err=
17223   fi
17224 else
17225   ac_cpp_err=yes
17226 fi
17227 if test -z "$ac_cpp_err"; then
17228   ac_header_preproc=yes
17229 else
17230   echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17232
17233   ac_header_preproc=no
17234 fi
17235 rm -f conftest.err conftest.$ac_ext
17236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237 echo "${ECHO_T}$ac_header_preproc" >&6
17238
17239 # So?  What about this header?
17240 case $ac_header_compiler:$ac_header_preproc in
17241   yes:no )
17242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17246     (
17247       cat <<\_ASBOX
17248 ## ------------------------------------ ##
17249 ## Report this to bug-autoconf@gnu.org. ##
17250 ## ------------------------------------ ##
17251 _ASBOX
17252     ) |
17253       sed "s/^/$as_me: WARNING:     /" >&2
17254     ;;
17255   no:yes )
17256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17258     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17262     (
17263       cat <<\_ASBOX
17264 ## ------------------------------------ ##
17265 ## Report this to bug-autoconf@gnu.org. ##
17266 ## ------------------------------------ ##
17267 _ASBOX
17268     ) |
17269       sed "s/^/$as_me: WARNING:     /" >&2
17270     ;;
17271 esac
17272 echo "$as_me:$LINENO: checking for $ac_header" >&5
17273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   eval "$as_ac_Header=$ac_header_preproc"
17278 fi
17279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17281
17282 fi
17283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17284   cat >>confdefs.h <<_ACEOF
17285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17286 _ACEOF
17287
17288 fi
17289
17290 done
17291
17292 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17293 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17294 if test "${ac_cv_lib_z_deflate+set}" = set; then
17295   echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297   ac_check_lib_save_LIBS=$LIBS
17298 LIBS="-lz  $LIBS"
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 /* Override any gcc2 internal prototype to avoid an error.  */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 /* We use char because int might match the return type of a gcc2
17312    builtin and then its argument prototype would still apply.  */
17313 char deflate ();
17314 int
17315 main ()
17316 {
17317 deflate ();
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324   (eval $ac_link) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -s conftest$ac_exeext'
17329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330   (eval $ac_try) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); }; }; then
17334   ac_cv_lib_z_deflate=yes
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339 ac_cv_lib_z_deflate=no
17340 fi
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17345 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17346 if test $ac_cv_lib_z_deflate = yes; then
17347   FDLIBS="-lz"
17348 fi
17349
17350 have_zlib=no
17351 if test x$FDLIBS = x-lz; then
17352   cat >>confdefs.h <<\_ACEOF
17353 #define HAVE_LIBZ 1
17354 _ACEOF
17355
17356   have_zlib=yes
17357 fi
17358
17359 PTHREAD_LIB=""
17360 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17361 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17362 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17363   echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365   ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lpthread  $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375 /* Override any gcc2 internal prototype to avoid an error.  */
17376 #ifdef __cplusplus
17377 extern "C"
17378 #endif
17379 /* We use char because int might match the return type of a gcc2
17380    builtin and then its argument prototype would still apply.  */
17381 char pthread_create ();
17382 int
17383 main ()
17384 {
17385 pthread_create ();
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392   (eval $ac_link) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_lib_pthread_pthread_create=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_lib_pthread_pthread_create=no
17408 fi
17409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17411 fi
17412 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17413 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17414 if test $ac_cv_lib_pthread_pthread_create = yes; then
17415   PTHREAD_LIB="-lpthread"
17416 else
17417   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17418 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17419 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17420   echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422   ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-lpthreads  $LIBS"
17424 cat >conftest.$ac_ext <<_ACEOF
17425 #line $LINENO "configure"
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char pthread_create ();
17439 int
17440 main ()
17441 {
17442 pthread_create ();
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449   (eval $ac_link) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -s conftest$ac_exeext'
17454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455   (eval $ac_try) 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; }; then
17459   ac_cv_lib_pthreads_pthread_create=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_cv_lib_pthreads_pthread_create=no
17465 fi
17466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17468 fi
17469 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17470 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17471 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17472   PTHREAD_LIB="-lpthreads"
17473 else
17474   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17475 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17476 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   ac_check_lib_save_LIBS=$LIBS
17480 LIBS="-lc_r  $LIBS"
17481 cat >conftest.$ac_ext <<_ACEOF
17482 #line $LINENO "configure"
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488
17489 /* Override any gcc2 internal prototype to avoid an error.  */
17490 #ifdef __cplusplus
17491 extern "C"
17492 #endif
17493 /* We use char because int might match the return type of a gcc2
17494    builtin and then its argument prototype would still apply.  */
17495 char pthread_create ();
17496 int
17497 main ()
17498 {
17499 pthread_create ();
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506   (eval $ac_link) 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } &&
17510          { ac_try='test -s conftest$ac_exeext'
17511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512   (eval $ac_try) 2>&5
17513   ac_status=$?
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); }; }; then
17516   ac_cv_lib_c_r_pthread_create=yes
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521 ac_cv_lib_c_r_pthread_create=no
17522 fi
17523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17525 fi
17526 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17527 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17528 if test $ac_cv_lib_c_r_pthread_create = yes; then
17529   PTHREAD_LIB="-lc_r"
17530 else
17531   echo "$as_me:$LINENO: checking for pthread_create" >&5
17532 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17533 if test "${ac_cv_func_pthread_create+set}" = set; then
17534   echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536   cat >conftest.$ac_ext <<_ACEOF
17537 #line $LINENO "configure"
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char pthread_create (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547 #ifdef __STDC__
17548 # include <limits.h>
17549 #else
17550 # include <assert.h>
17551 #endif
17552 /* Override any gcc2 internal prototype to avoid an error.  */
17553 #ifdef __cplusplus
17554 extern "C"
17555 {
17556 #endif
17557 /* We use char because int might match the return type of a gcc2
17558    builtin and then its argument prototype would still apply.  */
17559 char pthread_create ();
17560 /* The GNU C library defines this for functions which it implements
17561     to always fail with ENOSYS.  Some functions are actually named
17562     something starting with __ and the normal name is an alias.  */
17563 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17564 choke me
17565 #else
17566 char (*f) () = pthread_create;
17567 #endif
17568 #ifdef __cplusplus
17569 }
17570 #endif
17571
17572 int
17573 main ()
17574 {
17575 return f != pthread_create;
17576   ;
17577   return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582   (eval $ac_link) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } &&
17586          { ac_try='test -s conftest$ac_exeext'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592   ac_cv_func_pthread_create=yes
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 ac_cv_func_pthread_create=no
17598 fi
17599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17600 fi
17601 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17602 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17603
17604
17605 fi
17606
17607
17608 fi
17609
17610
17611 fi
17612
17613
17614
17615 cat >>confdefs.h <<\_ACEOF
17616 #define FDLIBS 1
17617 _ACEOF
17618
17619
17620
17621 CFLAGS=${CFLAGS--O}
17622 LDFLAGS=${LDFLAGS--O}
17623 DB_LIBS="${SQL_LFLAGS}"
17624
17625 CPPFLAGS="$CPPFLAGS"
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640 OBJLIST=
17641
17642
17643 lld="lld"
17644 llu="llu"
17645
17646 WCFLAGS=
17647 WLDFLAGS=
17648
17649 #
17650 # Finally we set appropriate distribution specific
17651 #  variables and defaults
17652 #
17653 # PFILES are platform specific files
17654 PFILES="platforms/Makefile"
17655 PSCMD="ps -e"
17656 WIN32=
17657 hostname=`uname -n`
17658 case "$DISTNAME" in
17659 aix)
17660         DISTVER=`uname -r`
17661         PSCMD="ps -e -o pid,comm"
17662         PFILES="${PFILES} \
17663            platforms/aix/Makefile"
17664         TAPEDRIVE="/dev/rmt0.1"
17665   ;;
17666 alpha)
17667         DISTVER=`uname -r`
17668         PTHREAD_LIB="-lpthread -lexc"
17669         if test "${CC}" = "gcc" ; then
17670            lld="lld"
17671            llu="llu"
17672         else
17673            lld="ld"
17674            llu="lu"
17675         fi
17676         TAPEDRIVE="/dev/nrmt0"
17677   ;;
17678 bsdi)
17679         DISTVER=`uname -a |awk '{print $3}'`
17680         TAPEDRIVE="/dev/nrmt0"
17681         PTHREAD_LIB="-pthread"
17682         CFLAGS="${CFLAGS} -pthread"
17683         PSCMD="ps -x -o pid,command"
17684         lld="qd"
17685         llu="qu"
17686         PFILES="${PFILES} \
17687             platforms/bsdi/Makefile \
17688             platforms/bsdi/bacula-fd \
17689             platforms/bsdi/bacula-sd \
17690             platforms/bsdi/bacula-dir"
17691         hostname=`hostname -s`
17692         largefile_support="yes"
17693   ;;
17694 cygwin)
17695         DISTVER=`uname -a |awk '{print $3}'`
17696         TAPEDRIVE="/dev/nrst0"
17697         WIN32=win32
17698         WCFLAGS="-mwindows"
17699         WLDFLAGS="-mwindows"
17700   ;;
17701 darwin)
17702         DISTVER=`uname -r`
17703         TAPEDRIVE="/dev/nst0"
17704         PSCMD="ps -e -o pid,command"
17705         hostname=`hostname -s`
17706         PFILES="${PFILES} \
17707            platforms/darwin/Makefile"
17708   ;;
17709 debian)
17710         DISTVER=`cat /etc/debian_version`
17711         TAPEDRIVE="/dev/nrst0"
17712         PSCMD="ps -e -o pid,command"
17713         hostname=`hostname -s`
17714   ;;
17715 freebsd)
17716         DISTVER=`uname -a |awk '{print $3}'`
17717         VER=`echo $DISTVER | cut -c 1`
17718         if test x$VER = x4 ; then
17719            PTHREAD_LIB="-pthread"
17720            CFLAGS="${CFLAGS} -pthread"
17721         fi
17722         lld="qd"
17723         llu="qu"
17724         TAPEDRIVE="/dev/nrsa0"
17725         PSCMD="ps -x -o pid,command"
17726         PFILES="${PFILES} \
17727             platforms/freebsd/Makefile \
17728             platforms/freebsd/bacula-fd \
17729             platforms/freebsd/bacula-sd \
17730             platforms/freebsd/bacula-dir"
17731         hostname=`hostname -s`
17732         largefile_support="yes"
17733   ;;
17734 hpux)
17735         DISTVER=`uname -r`
17736         TAPEDRIVE="/dev/rmt/0hnb"
17737   ;;
17738 irix)
17739         DISTVER=`uname -r`
17740         TAPEDRIVE="/dev/rmt/0cbn"
17741         PSCMD="ps -e -o pid,comm"
17742         PFILES="${PFILES} \
17743             platforms/irix/Makefile \
17744             platforms/irix/bacula-fd \
17745             platforms/irix/bacula-sd \
17746             platforms/irix/bacula-dir"
17747   ;;
17748 netbsd)
17749         DISTVER=`uname -a |awk '{print $3}'`
17750         lld="qd"
17751         llu="qu"
17752         TAPEDRIVE="/dev/nrst0"
17753         PSCMD="ps -a -o pid,command"
17754         PTHREAD_LIB="-pthread"
17755         CFLAGS="${CFLAGS} -pthread"
17756   ;;
17757 openbsd)
17758         DISTVER=`uname -a |awk '{print $3}'`
17759         lld="qd"
17760         llu="qu"
17761         TAPEDRIVE="/dev/nrst0"
17762         PSCMD="ps -a -o pid,command"
17763         PTHREAD_LIB="-pthread"
17764         CFLAGS="${CFLAGS} -pthread"
17765         PFILES="${PFILES} \
17766             platforms/openbsd/Makefile \
17767             platforms/openbsd/bacula-fd \
17768             platforms/openbsd/bacula-sd \
17769             platforms/openbsd/bacula-dir"
17770   ;;
17771 redhat)
17772         DISTVER=`cat /etc/redhat-release | grep release |\
17773            cut -f 5 -d ' '`
17774         TAPEDRIVE="/dev/nst0"
17775         PSCMD="ps -e -o pid,command"
17776         PFILES="${PFILES} \
17777             platforms/redhat/Makefile \
17778             platforms/redhat/bacula-fd \
17779             platforms/redhat/bacula-sd \
17780             platforms/redhat/bacula-dir \
17781             platforms/redhat/bacula.spec \
17782             "
17783         hostname=`hostname -s`
17784   ;;
17785 mandrake)
17786         DISTVER=`cat /etc/mandrake-release | grep release |\
17787            cut -f 5 -d ' '`
17788         TAPEDRIVE="/dev/nst0"
17789         PSCMD="ps -e -o pid,command"
17790         PFILES="${PFILES} \
17791             platforms/mandrake/Makefile \
17792             platforms/mandrake/bacula-fd \
17793             platforms/mandrake/bacula-sd \
17794             platforms/mandrake/bacula-dir \
17795             platforms/mandrake/bacula.spec \
17796             "
17797         hostname=`hostname -s`
17798   ;;
17799 gentoo)
17800         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17801         TAPEDRIVE="/dev/nst0"
17802         PSCMD="ps -e -o pid,command"
17803         PFILES="${PFILES} \
17804             platforms/gentoo/Makefile \
17805             platforms/gentoo/bacula-fd \
17806             platforms/gentoo/bacula-sd \
17807             platforms/gentoo/bacula-dir"
17808         hostname=`hostname -s`
17809   ;;
17810
17811 slackware)
17812         DISTVER=`cat /etc/slackware-version`
17813         TAPEDRIVE="/dev/nst0"
17814         PSCMD="ps -e -o pid,command"
17815         hostname=`hostname -s`
17816   ;;
17817 solaris)
17818         DISTVER=`uname -r`
17819         TAPEDRIVE="/dev/rmt/0cbn"
17820         PSCMD="ps -e -o pid,comm"
17821         PFILES="${PFILES} \
17822             platforms/solaris/Makefile \
17823             platforms/solaris/bacula-fd \
17824             platforms/solaris/bacula-sd \
17825             platforms/solaris/bacula-dir"
17826         if test x$DISTVER = x5.6 ; then
17827             cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_OLD_SOCKOPT 1
17829 _ACEOF
17830
17831         fi
17832   ;;
17833 suse)
17834         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17835             cut -f 3 -d ' '`
17836         TAPEDRIVE="/dev/nst0"
17837         PSCMD="ps -e -o pid,command"
17838         hostname=`hostname -s`
17839         PFILES="${PFILES} \
17840             platforms/suse/Makefile \
17841             platforms/suse/bacula-fd \
17842             platforms/suse/bacula-sd \
17843             platforms/suse/bacula-dir"
17844   ;;
17845 suse5)
17846         DISTNAME=suse
17847         DISTVER=5.x
17848         TAPEDRIVE="/dev/nst0"
17849         PSCMD="ps -e -o pid,command"
17850         hostname=`hostname -s`
17851         PFILES="${PFILES} \
17852             platforms/suse/Makefile \
17853             platforms/suse/bacula-fd \
17854             platforms/suse/bacula-sd \
17855             platforms/suse/bacula-dir"
17856   ;;
17857 unknown)
17858         DISTVER=unknown
17859         TAPEDRIVE="/dev/nst0"
17860   ;;
17861 *)
17862   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17863   ;;
17864 esac
17865
17866
17867
17868 LIBS="$PTHREAD_LIB $LIBS"
17869
17870 cat >>confdefs.h <<_ACEOF
17871 #define lld "$lld"
17872 _ACEOF
17873
17874 cat >>confdefs.h <<_ACEOF
17875 #define llu "$llu"
17876 _ACEOF
17877
17878
17879
17880
17881
17882
17883
17884 MCOMMON=./autoconf/Make.common
17885
17886
17887 if test "x${subsysdir}" = "x${sbindir}" ; then
17888    echo " "
17889    echo " "
17890    echo "You have set both --sbindir and --with-subsys-dir"
17891    echo "  equal to: ${subsysdir} "
17892    echo "This is not permitted. Please reconfigure."
17893    echo " "
17894    echo "Aborting configuration ..."
17895    echo " "
17896    echo " "
17897    exit 1
17898 fi
17899
17900                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           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/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/make_postgresql_tables src/cats/drop_postgresql_tables src/cats/create_postgresql_database src/cats/grant_postgresql_privileges src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database  src/cats/grant_sqlite_privileges src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/findlib/Makefile src/tools/Makefile $PFILES"
17901           ac_config_commands="$ac_config_commands default"
17902 cat >confcache <<\_ACEOF
17903 # This file is a shell script that caches the results of configure
17904 # tests run on this system so they can be shared between configure
17905 # scripts and configure runs, see configure's option --config-cache.
17906 # It is not useful on other systems.  If it contains results you don't
17907 # want to keep, you may remove or edit it.
17908 #
17909 # config.status only pays attention to the cache file if you give it
17910 # the --recheck option to rerun configure.
17911 #
17912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17914 # following values.
17915
17916 _ACEOF
17917
17918 # The following way of writing the cache mishandles newlines in values,
17919 # but we know of no workaround that is simple, portable, and efficient.
17920 # So, don't put newlines in cache variables' values.
17921 # Ultrix sh set writes to stderr and can't be redirected directly,
17922 # and sets the high bit in the cache file unless we assign to the vars.
17923 {
17924   (set) 2>&1 |
17925     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17926     *ac_space=\ *)
17927       # `set' does not quote correctly, so add quotes (double-quote
17928       # substitution turns \\\\ into \\, and sed turns \\ into \).
17929       sed -n \
17930         "s/'/'\\\\''/g;
17931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17932       ;;
17933     *)
17934       # `set' quotes correctly as required by POSIX, so do not add quotes.
17935       sed -n \
17936         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17937       ;;
17938     esac;
17939 } |
17940   sed '
17941      t clear
17942      : clear
17943      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17944      t end
17945      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17946      : end' >>confcache
17947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17948   if test -w $cache_file; then
17949     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17950     cat confcache >$cache_file
17951   else
17952     echo "not updating unwritable cache $cache_file"
17953   fi
17954 fi
17955 rm -f confcache
17956
17957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17958 # Let make expand exec_prefix.
17959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17960
17961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17963 # trailing colons and then remove the whole line if VPATH becomes empty
17964 # (actually we leave an empty line to preserve line numbers).
17965 if test "x$srcdir" = x.; then
17966   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17967 s/:*\$(srcdir):*/:/;
17968 s/:*\${srcdir}:*/:/;
17969 s/:*@srcdir@:*/:/;
17970 s/^\([^=]*=[    ]*\):*/\1/;
17971 s/:*$//;
17972 s/^[^=]*=[      ]*$//;
17973 }'
17974 fi
17975
17976 DEFS=-DHAVE_CONFIG_H
17977
17978 ac_libobjs=
17979 ac_ltlibobjs=
17980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17981   # 1. Remove the extension, and $U if already installed.
17982   ac_i=`echo "$ac_i" |
17983          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17984   # 2. Add them.
17985   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17986   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17987 done
17988 LIBOBJS=$ac_libobjs
17989
17990 LTLIBOBJS=$ac_ltlibobjs
17991
17992
17993
17994 : ${CONFIG_STATUS=./config.status}
17995 ac_clean_files_save=$ac_clean_files
17996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17999 cat >$CONFIG_STATUS <<_ACEOF
18000 #! $SHELL
18001 # Generated by $as_me.
18002 # Run this file to recreate the current configuration.
18003 # Compiler output produced by configure, useful for debugging
18004 # configure, is in config.log if it exists.
18005
18006 debug=false
18007 ac_cs_recheck=false
18008 ac_cs_silent=false
18009 SHELL=\${CONFIG_SHELL-$SHELL}
18010 _ACEOF
18011
18012 cat >>$CONFIG_STATUS <<\_ACEOF
18013 ## --------------------- ##
18014 ## M4sh Initialization.  ##
18015 ## --------------------- ##
18016
18017 # Be Bourne compatible
18018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18019   emulate sh
18020   NULLCMD=:
18021   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18022   # is contrary to our usage.  Disable this feature.
18023   alias -g '${1+"$@"}'='"$@"'
18024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18025   set -o posix
18026 fi
18027
18028 # Support unset when possible.
18029 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18030   as_unset=unset
18031 else
18032   as_unset=false
18033 fi
18034
18035
18036 # Work around bugs in pre-3.0 UWIN ksh.
18037 $as_unset ENV MAIL MAILPATH
18038 PS1='$ '
18039 PS2='> '
18040 PS4='+ '
18041
18042 # NLS nuisances.
18043 for as_var in \
18044   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18045   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18046   LC_TELEPHONE LC_TIME
18047 do
18048   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18049     eval $as_var=C; export $as_var
18050   else
18051     $as_unset $as_var
18052   fi
18053 done
18054
18055 # Required to use basename.
18056 if expr a : '\(a\)' >/dev/null 2>&1; then
18057   as_expr=expr
18058 else
18059   as_expr=false
18060 fi
18061
18062 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18063   as_basename=basename
18064 else
18065   as_basename=false
18066 fi
18067
18068
18069 # Name of the executable.
18070 as_me=`$as_basename "$0" ||
18071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18072          X"$0" : 'X\(//\)$' \| \
18073          X"$0" : 'X\(/\)$' \| \
18074          .     : '\(.\)' 2>/dev/null ||
18075 echo X/"$0" |
18076     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18077           /^X\/\(\/\/\)$/{ s//\1/; q; }
18078           /^X\/\(\/\).*/{ s//\1/; q; }
18079           s/.*/./; q'`
18080
18081
18082 # PATH needs CR, and LINENO needs CR and PATH.
18083 # Avoid depending upon Character Ranges.
18084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18087 as_cr_digits='0123456789'
18088 as_cr_alnum=$as_cr_Letters$as_cr_digits
18089
18090 # The user is always right.
18091 if test "${PATH_SEPARATOR+set}" != set; then
18092   echo "#! /bin/sh" >conf$$.sh
18093   echo  "exit 0"   >>conf$$.sh
18094   chmod +x conf$$.sh
18095   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18096     PATH_SEPARATOR=';'
18097   else
18098     PATH_SEPARATOR=:
18099   fi
18100   rm -f conf$$.sh
18101 fi
18102
18103
18104   as_lineno_1=$LINENO
18105   as_lineno_2=$LINENO
18106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18107   test "x$as_lineno_1" != "x$as_lineno_2" &&
18108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18109   # Find who we are.  Look in the path if we contain no path at all
18110   # relative or not.
18111   case $0 in
18112     *[\\/]* ) as_myself=$0 ;;
18113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18115 do
18116   IFS=$as_save_IFS
18117   test -z "$as_dir" && as_dir=.
18118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18119 done
18120
18121        ;;
18122   esac
18123   # We did not find ourselves, most probably we were run as `sh COMMAND'
18124   # in which case we are not to be found in the path.
18125   if test "x$as_myself" = x; then
18126     as_myself=$0
18127   fi
18128   if test ! -f "$as_myself"; then
18129     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18130 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18131    { (exit 1); exit 1; }; }
18132   fi
18133   case $CONFIG_SHELL in
18134   '')
18135     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18137 do
18138   IFS=$as_save_IFS
18139   test -z "$as_dir" && as_dir=.
18140   for as_base in sh bash ksh sh5; do
18141          case $as_dir in
18142          /*)
18143            if ("$as_dir/$as_base" -c '
18144   as_lineno_1=$LINENO
18145   as_lineno_2=$LINENO
18146   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18147   test "x$as_lineno_1" != "x$as_lineno_2" &&
18148   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18149              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18150              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18151              CONFIG_SHELL=$as_dir/$as_base
18152              export CONFIG_SHELL
18153              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18154            fi;;
18155          esac
18156        done
18157 done
18158 ;;
18159   esac
18160
18161   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18162   # uniformly replaced by the line number.  The first 'sed' inserts a
18163   # line-number line before each line; the second 'sed' does the real
18164   # work.  The second script uses 'N' to pair each line-number line
18165   # with the numbered line, and appends trailing '-' during
18166   # substitution so that $LINENO is not a special case at line end.
18167   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18168   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18169   sed '=' <$as_myself |
18170     sed '
18171       N
18172       s,$,-,
18173       : loop
18174       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18175       t loop
18176       s,-$,,
18177       s,^['$as_cr_digits']*\n,,
18178     ' >$as_me.lineno &&
18179   chmod +x $as_me.lineno ||
18180     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18181 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18182    { (exit 1); exit 1; }; }
18183
18184   # Don't try to exec as it changes $[0], causing all sort of problems
18185   # (the dirname of $[0] is not the place where we might find the
18186   # original and so on.  Autoconf is especially sensible to this).
18187   . ./$as_me.lineno
18188   # Exit status is that of the last command.
18189   exit
18190 }
18191
18192
18193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18194   *c*,-n*) ECHO_N= ECHO_C='
18195 ' ECHO_T='      ' ;;
18196   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18197   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18198 esac
18199
18200 if expr a : '\(a\)' >/dev/null 2>&1; then
18201   as_expr=expr
18202 else
18203   as_expr=false
18204 fi
18205
18206 rm -f conf$$ conf$$.exe conf$$.file
18207 echo >conf$$.file
18208 if ln -s conf$$.file conf$$ 2>/dev/null; then
18209   # We could just check for DJGPP; but this test a) works b) is more generic
18210   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18211   if test -f conf$$.exe; then
18212     # Don't use ln at all; we don't have any links
18213     as_ln_s='cp -p'
18214   else
18215     as_ln_s='ln -s'
18216   fi
18217 elif ln conf$$.file conf$$ 2>/dev/null; then
18218   as_ln_s=ln
18219 else
18220   as_ln_s='cp -p'
18221 fi
18222 rm -f conf$$ conf$$.exe conf$$.file
18223
18224 if mkdir -p . 2>/dev/null; then
18225   as_mkdir_p=:
18226 else
18227   as_mkdir_p=false
18228 fi
18229
18230 as_executable_p="test -f"
18231
18232 # Sed expression to map a string onto a valid CPP name.
18233 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18234
18235 # Sed expression to map a string onto a valid variable name.
18236 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18237
18238
18239 # IFS
18240 # We need space, tab and new line, in precisely that order.
18241 as_nl='
18242 '
18243 IFS="   $as_nl"
18244
18245 # CDPATH.
18246 $as_unset CDPATH
18247
18248 exec 6>&1
18249
18250 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18251 # report actual input values of CONFIG_FILES etc. instead of their
18252 # values after options handling.  Logging --version etc. is OK.
18253 exec 5>>config.log
18254 {
18255   echo
18256   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18257 ## Running $as_me. ##
18258 _ASBOX
18259 } >&5
18260 cat >&5 <<_CSEOF
18261
18262 This file was extended by $as_me, which was
18263 generated by GNU Autoconf 2.57.  Invocation command line was
18264
18265   CONFIG_FILES    = $CONFIG_FILES
18266   CONFIG_HEADERS  = $CONFIG_HEADERS
18267   CONFIG_LINKS    = $CONFIG_LINKS
18268   CONFIG_COMMANDS = $CONFIG_COMMANDS
18269   $ $0 $@
18270
18271 _CSEOF
18272 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18273 echo >&5
18274 _ACEOF
18275
18276 # Files that config.status was made for.
18277 if test -n "$ac_config_files"; then
18278   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18279 fi
18280
18281 if test -n "$ac_config_headers"; then
18282   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18283 fi
18284
18285 if test -n "$ac_config_links"; then
18286   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18287 fi
18288
18289 if test -n "$ac_config_commands"; then
18290   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18291 fi
18292
18293 cat >>$CONFIG_STATUS <<\_ACEOF
18294
18295 ac_cs_usage="\
18296 \`$as_me' instantiates files from templates according to the
18297 current configuration.
18298
18299 Usage: $0 [OPTIONS] [FILE]...
18300
18301   -h, --help       print this help, then exit
18302   -V, --version    print version number, then exit
18303   -q, --quiet      do not print progress messages
18304   -d, --debug      don't remove temporary files
18305       --recheck    update $as_me by reconfiguring in the same conditions
18306   --file=FILE[:TEMPLATE]
18307                    instantiate the configuration file FILE
18308   --header=FILE[:TEMPLATE]
18309                    instantiate the configuration header FILE
18310
18311 Configuration files:
18312 $config_files
18313
18314 Configuration headers:
18315 $config_headers
18316
18317 Configuration commands:
18318 $config_commands
18319
18320 Report bugs to <bug-autoconf@gnu.org>."
18321 _ACEOF
18322
18323 cat >>$CONFIG_STATUS <<_ACEOF
18324 ac_cs_version="\\
18325 config.status
18326 configured by $0, generated by GNU Autoconf 2.57,
18327   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18328
18329 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18330 Free Software Foundation, Inc.
18331 This config.status script is free software; the Free Software Foundation
18332 gives unlimited permission to copy, distribute and modify it."
18333 srcdir=$srcdir
18334 INSTALL="$INSTALL"
18335 _ACEOF
18336
18337 cat >>$CONFIG_STATUS <<\_ACEOF
18338 # If no file are specified by the user, then we need to provide default
18339 # value.  By we need to know if files were specified by the user.
18340 ac_need_defaults=:
18341 while test $# != 0
18342 do
18343   case $1 in
18344   --*=*)
18345     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18346     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18347     ac_shift=:
18348     ;;
18349   -*)
18350     ac_option=$1
18351     ac_optarg=$2
18352     ac_shift=shift
18353     ;;
18354   *) # This is not an option, so the user has probably given explicit
18355      # arguments.
18356      ac_option=$1
18357      ac_need_defaults=false;;
18358   esac
18359
18360   case $ac_option in
18361   # Handling of the options.
18362 _ACEOF
18363 cat >>$CONFIG_STATUS <<\_ACEOF
18364   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18365     ac_cs_recheck=: ;;
18366   --version | --vers* | -V )
18367     echo "$ac_cs_version"; exit 0 ;;
18368   --he | --h)
18369     # Conflict between --help and --header
18370     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18371 Try \`$0 --help' for more information." >&5
18372 echo "$as_me: error: ambiguous option: $1
18373 Try \`$0 --help' for more information." >&2;}
18374    { (exit 1); exit 1; }; };;
18375   --help | --hel | -h )
18376     echo "$ac_cs_usage"; exit 0 ;;
18377   --debug | --d* | -d )
18378     debug=: ;;
18379   --file | --fil | --fi | --f )
18380     $ac_shift
18381     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18382     ac_need_defaults=false;;
18383   --header | --heade | --head | --hea )
18384     $ac_shift
18385     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18386     ac_need_defaults=false;;
18387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18389     ac_cs_silent=: ;;
18390
18391   # This is an error.
18392   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18393 Try \`$0 --help' for more information." >&5
18394 echo "$as_me: error: unrecognized option: $1
18395 Try \`$0 --help' for more information." >&2;}
18396    { (exit 1); exit 1; }; } ;;
18397
18398   *) ac_config_targets="$ac_config_targets $1" ;;
18399
18400   esac
18401   shift
18402 done
18403
18404 ac_configure_extra_args=
18405
18406 if $ac_cs_silent; then
18407   exec 6>/dev/null
18408   ac_configure_extra_args="$ac_configure_extra_args --silent"
18409 fi
18410
18411 _ACEOF
18412 cat >>$CONFIG_STATUS <<_ACEOF
18413 if \$ac_cs_recheck; then
18414   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18415   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18416 fi
18417
18418 _ACEOF
18419
18420
18421
18422
18423
18424 cat >>$CONFIG_STATUS <<\_ACEOF
18425 for ac_config_target in $ac_config_targets
18426 do
18427   case "$ac_config_target" in
18428   # Handling of arguments.
18429   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18430   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18431   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18432   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18433   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18434   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18435   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18436   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18437   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18438   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18439   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18440   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18441   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18442   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18443   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18444   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18445   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18446   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18447   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18448   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18449   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18450   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18451   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18452   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18453   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18454   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18455   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18456   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18457   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18458   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18459   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18460   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18461   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18462   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18463   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18464   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18465   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18466   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18467   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18468   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18469   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18470   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18471   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18472   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18473   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18474   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18475   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18476   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18477   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18478   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18479   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18480   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18481   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18482   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18483   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18484   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18485   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18486   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18487   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18488   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18489   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18490   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18491   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18492   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18493   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18494   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18495   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18496   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18497   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18498 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18499    { (exit 1); exit 1; }; };;
18500   esac
18501 done
18502
18503 # If the user did not use the arguments to specify the items to instantiate,
18504 # then the envvar interface is used.  Set only those that are not.
18505 # We use the long form for the default assignment because of an extremely
18506 # bizarre bug on SunOS 4.1.3.
18507 if $ac_need_defaults; then
18508   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18509   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18510   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18511 fi
18512
18513 # Have a temporary directory for convenience.  Make it in the build tree
18514 # simply because there is no reason to put it here, and in addition,
18515 # creating and moving files from /tmp can sometimes cause problems.
18516 # Create a temporary directory, and hook for its removal unless debugging.
18517 $debug ||
18518 {
18519   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18520   trap '{ (exit 1); exit 1; }' 1 2 13 15
18521 }
18522
18523 # Create a (secure) tmp directory for tmp files.
18524
18525 {
18526   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18527   test -n "$tmp" && test -d "$tmp"
18528 }  ||
18529 {
18530   tmp=./confstat$$-$RANDOM
18531   (umask 077 && mkdir $tmp)
18532 } ||
18533 {
18534    echo "$me: cannot create a temporary directory in ." >&2
18535    { (exit 1); exit 1; }
18536 }
18537
18538 _ACEOF
18539
18540 cat >>$CONFIG_STATUS <<_ACEOF
18541
18542 #
18543 # CONFIG_FILES section.
18544 #
18545
18546 # No need to generate the scripts if there are no CONFIG_FILES.
18547 # This happens for instance when ./config.status config.h
18548 if test -n "\$CONFIG_FILES"; then
18549   # Protect against being on the right side of a sed subst in config.status.
18550   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18551    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18552 s,@SHELL@,$SHELL,;t t
18553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18559 s,@exec_prefix@,$exec_prefix,;t t
18560 s,@prefix@,$prefix,;t t
18561 s,@program_transform_name@,$program_transform_name,;t t
18562 s,@bindir@,$bindir,;t t
18563 s,@sbindir@,$sbindir,;t t
18564 s,@libexecdir@,$libexecdir,;t t
18565 s,@datadir@,$datadir,;t t
18566 s,@sysconfdir@,$sysconfdir,;t t
18567 s,@sharedstatedir@,$sharedstatedir,;t t
18568 s,@localstatedir@,$localstatedir,;t t
18569 s,@libdir@,$libdir,;t t
18570 s,@includedir@,$includedir,;t t
18571 s,@oldincludedir@,$oldincludedir,;t t
18572 s,@infodir@,$infodir,;t t
18573 s,@mandir@,$mandir,;t t
18574 s,@build_alias@,$build_alias,;t t
18575 s,@host_alias@,$host_alias,;t t
18576 s,@target_alias@,$target_alias,;t t
18577 s,@DEFS@,$DEFS,;t t
18578 s,@ECHO_C@,$ECHO_C,;t t
18579 s,@ECHO_N@,$ECHO_N,;t t
18580 s,@ECHO_T@,$ECHO_T,;t t
18581 s,@LIBS@,$LIBS,;t t
18582 s,@BUILD_DIR@,$BUILD_DIR,;t t
18583 s,@TRUEPRG@,$TRUEPRG,;t t
18584 s,@FALSEPRG@,$FALSEPRG,;t t
18585 s,@build@,$build,;t t
18586 s,@build_cpu@,$build_cpu,;t t
18587 s,@build_vendor@,$build_vendor,;t t
18588 s,@build_os@,$build_os,;t t
18589 s,@host@,$host,;t t
18590 s,@host_cpu@,$host_cpu,;t t
18591 s,@host_vendor@,$host_vendor,;t t
18592 s,@host_os@,$host_os,;t t
18593 s,@VERSION@,$VERSION,;t t
18594 s,@DATE@,$DATE,;t t
18595 s,@LSMDATE@,$LSMDATE,;t t
18596 s,@CC@,$CC,;t t
18597 s,@CFLAGS@,$CFLAGS,;t t
18598 s,@LDFLAGS@,$LDFLAGS,;t t
18599 s,@CPPFLAGS@,$CPPFLAGS,;t t
18600 s,@ac_ct_CC@,$ac_ct_CC,;t t
18601 s,@EXEEXT@,$EXEEXT,;t t
18602 s,@OBJEXT@,$OBJEXT,;t t
18603 s,@CXX@,$CXX,;t t
18604 s,@CXXFLAGS@,$CXXFLAGS,;t t
18605 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18606 s,@CPP@,$CPP,;t t
18607 s,@EGREP@,$EGREP,;t t
18608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18611 s,@RANLIB@,$RANLIB,;t t
18612 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18613 s,@MV@,$MV,;t t
18614 s,@RM@,$RM,;t t
18615 s,@CP@,$CP,;t t
18616 s,@SED@,$SED,;t t
18617 s,@AWK@,$AWK,;t t
18618 s,@ECHO@,$ECHO,;t t
18619 s,@CMP@,$CMP,;t t
18620 s,@TBL@,$TBL,;t t
18621 s,@AR@,$AR,;t t
18622 s,@OPENSSL@,$OPENSSL,;t t
18623 s,@MTX@,$MTX,;t t
18624 s,@PKGCONFIG@,$PKGCONFIG,;t t
18625 s,@ARFLAGS@,$ARFLAGS,;t t
18626 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18627 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18628 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18629 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18630 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18631 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18632 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18633 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18634 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18635 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18636 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18637 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18638 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18639 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18640 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18641 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18642 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18643 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18644 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18645 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18646 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18647 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18648 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18649 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18650 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18651 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18652 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18653 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18654 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18655 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18656 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18657 s,@MSGFMT@,$MSGFMT,;t t
18658 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18659 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18660 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18661 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18662 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18663 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18664 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18665 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18666 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18667 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18668 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18669 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18670 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18671 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18672 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18673 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18674 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18675 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18676 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18677 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18678 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18679 s,@GNOME_DIR@,$GNOME_DIR,;t t
18680 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18681 s,@STATIC_FD@,$STATIC_FD,;t t
18682 s,@STATIC_SD@,$STATIC_SD,;t t
18683 s,@STATIC_DIR@,$STATIC_DIR,;t t
18684 s,@STATIC_CONS@,$STATIC_CONS,;t t
18685 s,@ALL_DIRS@,$ALL_DIRS,;t t
18686 s,@CONS_INC@,$CONS_INC,;t t
18687 s,@CONS_OBJ@,$CONS_OBJ,;t t
18688 s,@CONS_SRC@,$CONS_SRC,;t t
18689 s,@CONS_LIBS@,$CONS_LIBS,;t t
18690 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18691 s,@READLINE_SRC@,$READLINE_SRC,;t t
18692 s,@working_dir@,$working_dir,;t t
18693 s,@scriptdir@,$scriptdir,;t t
18694 s,@dump_email@,$dump_email,;t t
18695 s,@job_email@,$job_email,;t t
18696 s,@smtp_host@,$smtp_host,;t t
18697 s,@piddir@,$piddir,;t t
18698 s,@subsysdir@,$subsysdir,;t t
18699 s,@baseport@,$baseport,;t t
18700 s,@dir_port@,$dir_port,;t t
18701 s,@fd_port@,$fd_port,;t t
18702 s,@sd_port@,$sd_port,;t t
18703 s,@dir_password@,$dir_password,;t t
18704 s,@fd_password@,$fd_password,;t t
18705 s,@sd_password@,$sd_password,;t t
18706 s,@dir_user@,$dir_user,;t t
18707 s,@dir_group@,$dir_group,;t t
18708 s,@sd_user@,$sd_user,;t t
18709 s,@sd_group@,$sd_group,;t t
18710 s,@fd_user@,$fd_user,;t t
18711 s,@fd_group@,$fd_group,;t t
18712 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18713 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18714 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18715 s,@cats@,$cats,;t t
18716 s,@DB_NAME@,$DB_NAME,;t t
18717 s,@GETCONF@,$GETCONF,;t t
18718 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18719 s,@X_CFLAGS@,$X_CFLAGS,;t t
18720 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18721 s,@X_LIBS@,$X_LIBS,;t t
18722 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18723 s,@LIBOBJS@,$LIBOBJS,;t t
18724 s,@ALLOCA@,$ALLOCA,;t t
18725 s,@FDLIBS@,$FDLIBS,;t t
18726 s,@DEBUG@,$DEBUG,;t t
18727 s,@DINCLUDE@,$DINCLUDE,;t t
18728 s,@DLIB@,$DLIB,;t t
18729 s,@DB_LIBS@,$DB_LIBS,;t t
18730 s,@WCFLAGS@,$WCFLAGS,;t t
18731 s,@WLDFLAGS@,$WLDFLAGS,;t t
18732 s,@OBJLIST@,$OBJLIST,;t t
18733 s,@hostname@,$hostname,;t t
18734 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18735 s,@PSCMD@,$PSCMD,;t t
18736 s,@WIN32@,$WIN32,;t t
18737 s,@DISTNAME@,$DISTNAME,;t t
18738 s,@DISTVER@,$DISTVER,;t t
18739 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18740 /@MCOMMON@/r $MCOMMON
18741 s,@MCOMMON@,,;t t
18742 CEOF
18743
18744 _ACEOF
18745
18746   cat >>$CONFIG_STATUS <<\_ACEOF
18747   # Split the substitutions into bite-sized pieces for seds with
18748   # small command number limits, like on Digital OSF/1 and HP-UX.
18749   ac_max_sed_lines=48
18750   ac_sed_frag=1 # Number of current file.
18751   ac_beg=1 # First line for current file.
18752   ac_end=$ac_max_sed_lines # Line after last line for current file.
18753   ac_more_lines=:
18754   ac_sed_cmds=
18755   while $ac_more_lines; do
18756     if test $ac_beg -gt 1; then
18757       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18758     else
18759       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18760     fi
18761     if test ! -s $tmp/subs.frag; then
18762       ac_more_lines=false
18763     else
18764       # The purpose of the label and of the branching condition is to
18765       # speed up the sed processing (if there are no `@' at all, there
18766       # is no need to browse any of the substitutions).
18767       # These are the two extra sed commands mentioned above.
18768       (echo ':t
18769   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18770       if test -z "$ac_sed_cmds"; then
18771         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18772       else
18773         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18774       fi
18775       ac_sed_frag=`expr $ac_sed_frag + 1`
18776       ac_beg=$ac_end
18777       ac_end=`expr $ac_end + $ac_max_sed_lines`
18778     fi
18779   done
18780   if test -z "$ac_sed_cmds"; then
18781     ac_sed_cmds=cat
18782   fi
18783 fi # test -n "$CONFIG_FILES"
18784
18785 _ACEOF
18786 cat >>$CONFIG_STATUS <<\_ACEOF
18787 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18788   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18789   case $ac_file in
18790   - | *:- | *:-:* ) # input from stdin
18791         cat >$tmp/stdin
18792         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18793         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18794   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18795         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18796   * )   ac_file_in=$ac_file.in ;;
18797   esac
18798
18799   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18800   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18802          X"$ac_file" : 'X\(//\)[^/]' \| \
18803          X"$ac_file" : 'X\(//\)$' \| \
18804          X"$ac_file" : 'X\(/\)' \| \
18805          .     : '\(.\)' 2>/dev/null ||
18806 echo X"$ac_file" |
18807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18809           /^X\(\/\/\)$/{ s//\1/; q; }
18810           /^X\(\/\).*/{ s//\1/; q; }
18811           s/.*/./; q'`
18812   { if $as_mkdir_p; then
18813     mkdir -p "$ac_dir"
18814   else
18815     as_dir="$ac_dir"
18816     as_dirs=
18817     while test ! -d "$as_dir"; do
18818       as_dirs="$as_dir $as_dirs"
18819       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821          X"$as_dir" : 'X\(//\)[^/]' \| \
18822          X"$as_dir" : 'X\(//\)$' \| \
18823          X"$as_dir" : 'X\(/\)' \| \
18824          .     : '\(.\)' 2>/dev/null ||
18825 echo X"$as_dir" |
18826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18828           /^X\(\/\/\)$/{ s//\1/; q; }
18829           /^X\(\/\).*/{ s//\1/; q; }
18830           s/.*/./; q'`
18831     done
18832     test ! -n "$as_dirs" || mkdir $as_dirs
18833   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18835    { (exit 1); exit 1; }; }; }
18836
18837   ac_builddir=.
18838
18839 if test "$ac_dir" != .; then
18840   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18841   # A "../" for each directory in $ac_dir_suffix.
18842   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18843 else
18844   ac_dir_suffix= ac_top_builddir=
18845 fi
18846
18847 case $srcdir in
18848   .)  # No --srcdir option.  We are building in place.
18849     ac_srcdir=.
18850     if test -z "$ac_top_builddir"; then
18851        ac_top_srcdir=.
18852     else
18853        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18854     fi ;;
18855   [\\/]* | ?:[\\/]* )  # Absolute path.
18856     ac_srcdir=$srcdir$ac_dir_suffix;
18857     ac_top_srcdir=$srcdir ;;
18858   *) # Relative path.
18859     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18860     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18861 esac
18862 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18863 # absolute.
18864 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18865 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18866 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18867 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18868
18869
18870   case $INSTALL in
18871   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18872   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18873   esac
18874
18875   if test x"$ac_file" != x-; then
18876     { echo "$as_me:$LINENO: creating $ac_file" >&5
18877 echo "$as_me: creating $ac_file" >&6;}
18878     rm -f "$ac_file"
18879   fi
18880   # Let's still pretend it is `configure' which instantiates (i.e., don't
18881   # use $as_me), people would be surprised to read:
18882   #    /* config.h.  Generated by config.status.  */
18883   if test x"$ac_file" = x-; then
18884     configure_input=
18885   else
18886     configure_input="$ac_file.  "
18887   fi
18888   configure_input=$configure_input"Generated from `echo $ac_file_in |
18889                                      sed 's,.*/,,'` by configure."
18890
18891   # First look for the input files in the build tree, otherwise in the
18892   # src tree.
18893   ac_file_inputs=`IFS=:
18894     for f in $ac_file_in; do
18895       case $f in
18896       -) echo $tmp/stdin ;;
18897       [\\/$]*)
18898          # Absolute (can't be DOS-style, as IFS=:)
18899          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18900 echo "$as_me: error: cannot find input file: $f" >&2;}
18901    { (exit 1); exit 1; }; }
18902          echo $f;;
18903       *) # Relative
18904          if test -f "$f"; then
18905            # Build tree
18906            echo $f
18907          elif test -f "$srcdir/$f"; then
18908            # Source tree
18909            echo $srcdir/$f
18910          else
18911            # /dev/null tree
18912            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18913 echo "$as_me: error: cannot find input file: $f" >&2;}
18914    { (exit 1); exit 1; }; }
18915          fi;;
18916       esac
18917     done` || { (exit 1); exit 1; }
18918 _ACEOF
18919 cat >>$CONFIG_STATUS <<_ACEOF
18920   sed "$ac_vpsub
18921 $extrasub
18922 _ACEOF
18923 cat >>$CONFIG_STATUS <<\_ACEOF
18924 :t
18925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18926 s,@configure_input@,$configure_input,;t t
18927 s,@srcdir@,$ac_srcdir,;t t
18928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18929 s,@top_srcdir@,$ac_top_srcdir,;t t
18930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18931 s,@builddir@,$ac_builddir,;t t
18932 s,@abs_builddir@,$ac_abs_builddir,;t t
18933 s,@top_builddir@,$ac_top_builddir,;t t
18934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18935 s,@INSTALL@,$ac_INSTALL,;t t
18936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18937   rm -f $tmp/stdin
18938   if test x"$ac_file" != x-; then
18939     mv $tmp/out $ac_file
18940   else
18941     cat $tmp/out
18942     rm -f $tmp/out
18943   fi
18944
18945 done
18946 _ACEOF
18947 cat >>$CONFIG_STATUS <<\_ACEOF
18948
18949 #
18950 # CONFIG_HEADER section.
18951 #
18952
18953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18955 #
18956 # ac_d sets the value in "#define NAME VALUE" lines.
18957 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18958 ac_dB='[        ].*$,\1#\2'
18959 ac_dC=' '
18960 ac_dD=',;t'
18961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18962 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18963 ac_uB='$,\1#\2define\3'
18964 ac_uC=' '
18965 ac_uD=',;t'
18966
18967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18968   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18969   case $ac_file in
18970   - | *:- | *:-:* ) # input from stdin
18971         cat >$tmp/stdin
18972         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18973         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18974   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18975         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18976   * )   ac_file_in=$ac_file.in ;;
18977   esac
18978
18979   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18980 echo "$as_me: creating $ac_file" >&6;}
18981
18982   # First look for the input files in the build tree, otherwise in the
18983   # src tree.
18984   ac_file_inputs=`IFS=:
18985     for f in $ac_file_in; do
18986       case $f in
18987       -) echo $tmp/stdin ;;
18988       [\\/$]*)
18989          # Absolute (can't be DOS-style, as IFS=:)
18990          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18991 echo "$as_me: error: cannot find input file: $f" >&2;}
18992    { (exit 1); exit 1; }; }
18993          echo $f;;
18994       *) # Relative
18995          if test -f "$f"; then
18996            # Build tree
18997            echo $f
18998          elif test -f "$srcdir/$f"; then
18999            # Source tree
19000            echo $srcdir/$f
19001          else
19002            # /dev/null tree
19003            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19004 echo "$as_me: error: cannot find input file: $f" >&2;}
19005    { (exit 1); exit 1; }; }
19006          fi;;
19007       esac
19008     done` || { (exit 1); exit 1; }
19009   # Remove the trailing spaces.
19010   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19011
19012 _ACEOF
19013
19014 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19015 # `conftest.undefs', that substitutes the proper values into
19016 # config.h.in to produce config.h.  The first handles `#define'
19017 # templates, and the second `#undef' templates.
19018 # And first: Protect against being on the right side of a sed subst in
19019 # config.status.  Protect against being in an unquoted here document
19020 # in config.status.
19021 rm -f conftest.defines conftest.undefs
19022 # Using a here document instead of a string reduces the quoting nightmare.
19023 # Putting comments in sed scripts is not portable.
19024 #
19025 # `end' is used to avoid that the second main sed command (meant for
19026 # 0-ary CPP macros) applies to n-ary macro definitions.
19027 # See the Autoconf documentation for `clear'.
19028 cat >confdef2sed.sed <<\_ACEOF
19029 s/[\\&,]/\\&/g
19030 s,[\\$`],\\&,g
19031 t clear
19032 : clear
19033 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19034 t end
19035 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19036 : end
19037 _ACEOF
19038 # If some macros were called several times there might be several times
19039 # the same #defines, which is useless.  Nevertheless, we may not want to
19040 # sort them, since we want the *last* AC-DEFINE to be honored.
19041 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19042 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19043 rm -f confdef2sed.sed
19044
19045 # This sed command replaces #undef with comments.  This is necessary, for
19046 # example, in the case of _POSIX_SOURCE, which is predefined and required
19047 # on some systems where configure will not decide to define it.
19048 cat >>conftest.undefs <<\_ACEOF
19049 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19050 _ACEOF
19051
19052 # Break up conftest.defines because some shells have a limit on the size
19053 # of here documents, and old seds have small limits too (100 cmds).
19054 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19055 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19056 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19057 echo '  :' >>$CONFIG_STATUS
19058 rm -f conftest.tail
19059 while grep . conftest.defines >/dev/null
19060 do
19061   # Write a limited-size here document to $tmp/defines.sed.
19062   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19063   # Speed up: don't consider the non `#define' lines.
19064   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19065   # Work around the forget-to-reset-the-flag bug.
19066   echo 't clr' >>$CONFIG_STATUS
19067   echo ': clr' >>$CONFIG_STATUS
19068   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19069   echo 'CEOF
19070   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19071   rm -f $tmp/in
19072   mv $tmp/out $tmp/in
19073 ' >>$CONFIG_STATUS
19074   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19075   rm -f conftest.defines
19076   mv conftest.tail conftest.defines
19077 done
19078 rm -f conftest.defines
19079 echo '  fi # grep' >>$CONFIG_STATUS
19080 echo >>$CONFIG_STATUS
19081
19082 # Break up conftest.undefs because some shells have a limit on the size
19083 # of here documents, and old seds have small limits too (100 cmds).
19084 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19085 rm -f conftest.tail
19086 while grep . conftest.undefs >/dev/null
19087 do
19088   # Write a limited-size here document to $tmp/undefs.sed.
19089   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19090   # Speed up: don't consider the non `#undef'
19091   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19092   # Work around the forget-to-reset-the-flag bug.
19093   echo 't clr' >>$CONFIG_STATUS
19094   echo ': clr' >>$CONFIG_STATUS
19095   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19096   echo 'CEOF
19097   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19098   rm -f $tmp/in
19099   mv $tmp/out $tmp/in
19100 ' >>$CONFIG_STATUS
19101   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19102   rm -f conftest.undefs
19103   mv conftest.tail conftest.undefs
19104 done
19105 rm -f conftest.undefs
19106
19107 cat >>$CONFIG_STATUS <<\_ACEOF
19108   # Let's still pretend it is `configure' which instantiates (i.e., don't
19109   # use $as_me), people would be surprised to read:
19110   #    /* config.h.  Generated by config.status.  */
19111   if test x"$ac_file" = x-; then
19112     echo "/* Generated by configure.  */" >$tmp/config.h
19113   else
19114     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19115   fi
19116   cat $tmp/in >>$tmp/config.h
19117   rm -f $tmp/in
19118   if test x"$ac_file" != x-; then
19119     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19120       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19121 echo "$as_me: $ac_file is unchanged" >&6;}
19122     else
19123       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19125          X"$ac_file" : 'X\(//\)[^/]' \| \
19126          X"$ac_file" : 'X\(//\)$' \| \
19127          X"$ac_file" : 'X\(/\)' \| \
19128          .     : '\(.\)' 2>/dev/null ||
19129 echo X"$ac_file" |
19130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19132           /^X\(\/\/\)$/{ s//\1/; q; }
19133           /^X\(\/\).*/{ s//\1/; q; }
19134           s/.*/./; q'`
19135       { if $as_mkdir_p; then
19136     mkdir -p "$ac_dir"
19137   else
19138     as_dir="$ac_dir"
19139     as_dirs=
19140     while test ! -d "$as_dir"; do
19141       as_dirs="$as_dir $as_dirs"
19142       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144          X"$as_dir" : 'X\(//\)[^/]' \| \
19145          X"$as_dir" : 'X\(//\)$' \| \
19146          X"$as_dir" : 'X\(/\)' \| \
19147          .     : '\(.\)' 2>/dev/null ||
19148 echo X"$as_dir" |
19149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19151           /^X\(\/\/\)$/{ s//\1/; q; }
19152           /^X\(\/\).*/{ s//\1/; q; }
19153           s/.*/./; q'`
19154     done
19155     test ! -n "$as_dirs" || mkdir $as_dirs
19156   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19158    { (exit 1); exit 1; }; }; }
19159
19160       rm -f $ac_file
19161       mv $tmp/config.h $ac_file
19162     fi
19163   else
19164     cat $tmp/config.h
19165     rm -f $tmp/config.h
19166   fi
19167 done
19168 _ACEOF
19169 cat >>$CONFIG_STATUS <<\_ACEOF
19170
19171 #
19172 # CONFIG_COMMANDS section.
19173 #
19174 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19175   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19176   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19177   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19179          X"$ac_dest" : 'X\(//\)[^/]' \| \
19180          X"$ac_dest" : 'X\(//\)$' \| \
19181          X"$ac_dest" : 'X\(/\)' \| \
19182          .     : '\(.\)' 2>/dev/null ||
19183 echo X"$ac_dest" |
19184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19185           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19186           /^X\(\/\/\)$/{ s//\1/; q; }
19187           /^X\(\/\).*/{ s//\1/; q; }
19188           s/.*/./; q'`
19189   ac_builddir=.
19190
19191 if test "$ac_dir" != .; then
19192   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19193   # A "../" for each directory in $ac_dir_suffix.
19194   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19195 else
19196   ac_dir_suffix= ac_top_builddir=
19197 fi
19198
19199 case $srcdir in
19200   .)  # No --srcdir option.  We are building in place.
19201     ac_srcdir=.
19202     if test -z "$ac_top_builddir"; then
19203        ac_top_srcdir=.
19204     else
19205        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19206     fi ;;
19207   [\\/]* | ?:[\\/]* )  # Absolute path.
19208     ac_srcdir=$srcdir$ac_dir_suffix;
19209     ac_top_srcdir=$srcdir ;;
19210   *) # Relative path.
19211     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19212     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19213 esac
19214 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19215 # absolute.
19216 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19217 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19218 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19219 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19220
19221
19222   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19223 echo "$as_me: executing $ac_dest commands" >&6;}
19224   case $ac_dest in
19225     default ) (echo "Doing make of dependencies"; make depend;)
19226  ;;
19227   esac
19228 done
19229 _ACEOF
19230
19231 cat >>$CONFIG_STATUS <<\_ACEOF
19232
19233 { (exit 0); exit 0; }
19234 _ACEOF
19235 chmod +x $CONFIG_STATUS
19236 ac_clean_files=$ac_clean_files_save
19237
19238
19239 # configure is writing to config.log, and then calls config.status.
19240 # config.status does its own redirection, appending to config.log.
19241 # Unfortunately, on DOS this fails, as config.log is still kept open
19242 # by configure, so config.status won't be able to write to it; its
19243 # output is simply discarded.  So we exec the FD to /dev/null,
19244 # effectively closing config.log, so it can be properly (re)opened and
19245 # appended to by config.status.  When coming back to configure, we
19246 # need to make the FD available again.
19247 if test "$no_create" != yes; then
19248   ac_cs_success=:
19249   ac_config_status_args=
19250   test "$silent" = yes &&
19251     ac_config_status_args="$ac_config_status_args --quiet"
19252   exec 5>/dev/null
19253   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19254   exec 5>>config.log
19255   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19256   # would make configure fail if this is the last instruction.
19257   $ac_cs_success || { (exit 1); exit 1; }
19258 fi
19259
19260
19261 cd scripts
19262 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19263 chmod 755 bconsole gconsole mtx-changer
19264 cd ..
19265 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
19266 chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
19267 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
19268 chmod 755 src/cats/create_postgresql_database
19269 chmod 755 src/cats/create_mysql_database
19270 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
19271 chmod 755 src/cats/grant_postgresql_privileges
19272 chmod 755 src/cats/grant_mysql_privileges
19273 chmod 755 src/cats/grant_sqlite_privileges
19274 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
19275 chmod 755 src/cats/update_sqlite_tables
19276 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
19277 chmod 755 src/cats/update_mysql_tables
19278 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
19279 chmod 755 src/cats/create_sqlite_database
19280 chmod 755 src/cats/sqlite
19281 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
19282 chmod 755 src/cats/create_bdb_database
19283
19284 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19285    largefile_support="yes"
19286 fi
19287
19288 #
19289 # A whole lot of hand springs to get the compiler version.
19290 #  This is because gcc changed the output in version 3.0
19291 #
19292 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19293 if test "x${CCVERSION}" = "x" ; then
19294   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19295 fi
19296 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19297 if test x"${CXXVERSION}" = x ; then
19298   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19299 fi
19300
19301 if test "x${subsysdir}" = "x${sbindir}" ; then
19302    echo " "
19303    echo " "
19304    echo "You have set --sbindir and --with-subsys-dir"
19305    echo "  both equal to: ${subsysdir} "
19306    echo "  This is not permitted. Please reconfigure."
19307    echo "Aborting configuration ..."
19308    echo " "
19309    echo " "
19310    exit 1
19311 fi
19312
19313 echo "
19314 Configuration on `date`:
19315
19316   Host:                       $host -- ${DISTNAME} ${DISTVER}
19317   Bacula version:             ${VERSION} (${DATE})
19318   Source code location:       ${srcdir}
19319   Install binaries:           ${sbindir}
19320   Install config files:       ${sysconfdir}
19321   Scripts directory:          ${scriptdir}
19322   Working directory:          ${working_dir}
19323   PID directory:              ${piddir}
19324   Subsys directory:           ${subsysdir}
19325   C Compiler:                 ${CC} ${CCVERSION}
19326   C++ Compiler:               ${CXX} ${CXXVERSION}
19327   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19328   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19329   Libraries:                  ${LIBS}
19330   Statically Linked Tools:    ${support_static_tools}
19331   Statically Linked FD:       ${support_static_fd}
19332   Statically Linked SD:       ${support_static_sd}
19333   Statically Linked DIR:      ${support_static_dir}
19334   Statically Linked CONS:     ${support_static_cons}
19335   Database type:              ${db_name}
19336   Database lib:               ${DB_LIBS}
19337
19338   Job Output Email:           ${job_email}
19339   Traceback Email:            ${dump_email}
19340   SMTP Host Address:          ${smtp_host}
19341
19342   Director Port:              ${dir_port}
19343   File daemon Port:           ${fd_port}
19344   Storage daemon Port:        ${sd_port}
19345
19346   Director User:              ${dir_user}
19347   Director Group:             ${dir_group}
19348   Storage Daemon User:        ${dir_user}
19349   Storage DaemonGroup:        ${dir_group}
19350   File Daemon User:           ${dir_user}
19351   File Daemon Group:          ${dir_group}
19352
19353   SQL binaries Directory      ${SQL_BINDIR}
19354
19355   Large file support:         $largefile_support
19356   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19357   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19358   TCP Wrappers support:       ${TCPW_MSG}
19359   ZLIB support:               ${have_zlib}
19360   enable-smartalloc:          ${support_smartalloc}
19361   enable-gnome:               ${support_gnome} ${gnome_version}
19362   client-only:                ${build_client_only}
19363
19364   " > config.out
19365
19366 cat config.out
19367
19368 # old stuff
19369 # cweb support:               ${got_cweb} ${CWEB_SRC}
19370 # gmp support:                ${got_gmp} ${GMP_SRC}