]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Complete rescue disk integration with Bacula source
[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 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 WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
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-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
894   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
895   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
896   --with-dir-user=USER           specify user for Director daemon
897   --with-dir-group=GROUP                 specify group for Director daemon
898   --with-sd-user=USER            specify user for Storage daemon
899   --with-sd-group=GROUP          specify group for Storage daemon
900   --with-fd-user=USER            specify user for File daemon
901   --with-fd-group=GROUP          specify group for File daemon
902   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
903   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
904                           base install directory, defaults to /usr/local/pgsql
905
906   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
911                           install directory, default is to search through
912                           a number of common places for the MySQL files.
913
914   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
915                           install directory, default is to search through
916                           a number of common places for the SQLite files.
917   --with-x                use the X Window System
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CXX         C++ compiler command
927   CXXFLAGS    C++ compiler flags
928   CPP         C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937   # If there are subdirs, report their specific --help.
938   ac_popdir=`pwd`
939   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940     test -d $ac_dir || continue
941     ac_builddir=.
942
943 if test "$ac_dir" != .; then
944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945   # A "../" for each directory in $ac_dir_suffix.
946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948   ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952   .)  # No --srcdir option.  We are building in place.
953     ac_srcdir=.
954     if test -z "$ac_top_builddir"; then
955        ac_top_srcdir=.
956     else
957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958     fi ;;
959   [\\/]* | ?:[\\/]* )  # Absolute path.
960     ac_srcdir=$srcdir$ac_dir_suffix;
961     ac_top_srcdir=$srcdir ;;
962   *) # Relative path.
963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
967 # absolute.
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
972
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976       echo
977       $SHELL $ac_srcdir/configure.gnu  --help=recursive
978     elif test -f $ac_srcdir/configure; then
979       echo
980       $SHELL $ac_srcdir/configure  --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982            test -f $ac_srcdir/configure.in; then
983       echo
984       $ac_configure --help
985     else
986       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989   done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994   cat <<\_ACEOF
995
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001   exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57.  Invocation command line was
1010
1011   $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042   IFS=$as_save_IFS
1043   test -z "$as_dir" && as_dir=.
1044   echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071   for ac_arg
1072   do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077       continue ;;
1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085       if test $ac_must_keep_next = true; then
1086         ac_must_keep_next=false # Got value, back to normal.
1087       else
1088         case $ac_arg in
1089           *=* | --config-cache | -C | -disable-* | --disable-* \
1090           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092           | -with-* | --with-* | -without-* | --without-* | --x)
1093             case "$ac_configure_args0 " in
1094               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095             esac
1096             ;;
1097           -* ) ac_must_keep_next=true ;;
1098         esac
1099       fi
1100       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101       # Get rid of the leading space.
1102       ac_sep=" "
1103       ;;
1104     esac
1105   done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log.  We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116   # Save into config.log some information that might help in debugging.
1117   {
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127 {
1128   (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131       sed -n \
1132         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134       ;;
1135     *)
1136       sed -n \
1137         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138       ;;
1139     esac;
1140 }
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151       eval ac_val=$`echo $ac_var`
1152       echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155
1156     if test -n "$ac_subst_files"; then
1157       cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162       echo
1163       for ac_var in $ac_subst_files
1164       do
1165         eval ac_val=$`echo $ac_var`
1166         echo "$ac_var='"'"'$ac_val'"'"'"
1167       done | sort
1168       echo
1169     fi
1170
1171     if test -s confdefs.h; then
1172       cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177       echo
1178       sed "/^$/d" confdefs.h | sort
1179       echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182       echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184   } >&5
1185   rm -f core core.* *.core &&
1186   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188      ' 0
1189 for ac_signal in 1 2 13 15; do
1190   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229   if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231   else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233   fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236   if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241   fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245   # Some versions of bash will fail to source /dev/null (special
1246   # files actually), so we avoid doing that.
1247   if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251       [\\/]* | ?:[\\/]* ) . $cache_file;;
1252       *)                      . ./$cache_file;;
1253     esac
1254   fi
1255 else
1256   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258   >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267   eval ac_new_set=\$ac_env_${ac_var}_set
1268   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269   eval ac_new_val="\$ac_env_${ac_var}_value"
1270   case $ac_old_set,$ac_new_set in
1271     set,)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,set)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281       if test "x$ac_old_val" != "x$ac_new_val"; then
1282         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 echo "$as_me:   former value:  $ac_old_val" >&2;}
1286         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 echo "$as_me:   current value: $ac_new_val" >&2;}
1288         ac_cache_corrupted=:
1289       fi;;
1290   esac
1291   # Pass precious variables to config.status.
1292   if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302   fi
1303 done
1304 if $ac_cache_corrupted; then
1305   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 BUILD_DIR=`pwd`
1337 cd ..
1338 TOP_DIR=`pwd`
1339 cd ${BUILD_DIR}
1340
1341 ac_aux_dir=
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343   if test -f $ac_dir/install-sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install-sh -c"
1346     break
1347   elif test -f $ac_dir/install.sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install.sh -c"
1350     break
1351   elif test -f $ac_dir/shtool; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/shtool install -c"
1354     break
1355   fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367
1368
1369
1370
1371
1372 for ac_prog in true
1373 do
1374   # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   case $TRUEPRG in
1382   [\\/]* | ?:[\\/]*)
1383   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1384   ;;
1385   *)
1386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   ;;
1401 esac
1402 fi
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1404
1405 if test -n "$TRUEPRG"; then
1406   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   test -n "$TRUEPRG" && break
1414 done
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1416
1417 for ac_prog in false
1418 do
1419   # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   case $FALSEPRG in
1427   [\\/]* | ?:[\\/]*)
1428   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1429   ;;
1430   *)
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445   ;;
1446 esac
1447 fi
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1449
1450 if test -n "$FALSEPRG"; then
1451   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1453 else
1454   echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$FALSEPRG" && break
1459 done
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1461
1462
1463 #AC_CANONICAL_HOST
1464
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1469
1470
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990        break;;
1991   esac
1992 done
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2009 ac_objext=$OBJEXT
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026 #ifndef __GNUC__
2027        choke me
2028 #endif
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   ac_compiler_gnu=yes
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_g=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108   CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110   if test "$GCC" = yes; then
2111     CFLAGS="-g -O2"
2112   else
2113     CFLAGS="-g"
2114   fi
2115 else
2116   if test "$GCC" = yes; then
2117     CFLAGS="-O2"
2118   else
2119     CFLAGS=
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_cv_prog_cc_stdc=$ac_arg
2195 break
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.$ac_objext
2202 done
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2204 CC=$ac_save_CC
2205
2206 fi
2207
2208 case "x$ac_cv_prog_cc_stdc" in
2209   x|xno)
2210     echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2212   *)
2213     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215     CC="$CC $ac_cv_prog_cc_stdc" ;;
2216 esac
2217
2218 # Some people use a C++ compiler to compile C.  Since we use `exit',
2219 # in C++ we need to declare it.  In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #ifndef __cplusplus
2224   choke me
2225 #endif
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    ''\
2241    '#include <stdlib.h>' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 #include <stdlib.h>
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   :
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 continue
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   break
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 done
2321 rm -f conftest*
2322 if test -n "$ac_declaration"; then
2323   echo '#ifdef __cplusplus' >>confdefs.h
2324   echo $ac_declaration      >>confdefs.h
2325   echo '#endif'             >>confdefs.h
2326 fi
2327
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340 ac_ext=cc
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CXX"; then
2356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CXX=$ac_cv_prog_CXX
2375 if test -n "$CXX"; then
2376   echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CXX" && break
2384   done
2385 fi
2386 if test -z "$CXX"; then
2387   ac_ct_CXX=$CXX
2388   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CXX"; then
2398   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CXX="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CXX" && break
2426 done
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428
2429   CXX=$ac_ct_CXX
2430 fi
2431
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435      "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438   (eval $ac_compiler --version </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443   (eval $ac_compiler -v </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448   (eval $ac_compiler -V </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_compiler_gnu=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_compiler_gnu=no
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2505 CXXFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_cv_prog_cxx_g=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_cv_prog_cxx_g=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551   CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553   if test "$GXX" = yes; then
2554     CXXFLAGS="-g -O2"
2555   else
2556     CXXFLAGS="-g"
2557   fi
2558 else
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-O2"
2561   else
2562     CXXFLAGS=
2563   fi
2564 fi
2565 for ac_declaration in \
2566    ''\
2567    '#include <stdlib.h>' \
2568    'extern "C" void std::exit (int) throw (); using std::exit;' \
2569    'extern "C" void std::exit (int); using std::exit;' \
2570    'extern "C" void exit (int) throw ();' \
2571    'extern "C" void exit (int);' \
2572    'void exit (int);'
2573 do
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdlib.h>
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 continue
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660 if test "x$CC" != xcc; then
2661   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2663 else
2664   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2666 fi
2667 set dummy $CC; ac_cc=`echo $2 |
2668                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); };
2702 then
2703   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704   if test "x$CC" != xcc; then
2705     # Test first that cc exists at all.
2706     if { ac_try='cc -c conftest.$ac_ext >&5'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); };
2723       then
2724         # cc works too.
2725         :
2726       else
2727         # cc exists but doesn't like -o.
2728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729       fi
2730     fi
2731   fi
2732 else
2733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 fi
2735 rm -f conftest*
2736
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739   echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2747 _ACEOF
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992     then ac_cv_prog_egrep='grep -E'
2993     else ac_cv_prog_egrep='egrep'
2994     fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998  EGREP=$ac_cv_prog_egrep
2999
3000
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007     ac_pattern="Autoconf.*'x'"
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <sgtty.h>
3016 Autoconf TIOCGETP
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020   ac_cv_prog_gcc_traditional=yes
3021 else
3022   ac_cv_prog_gcc_traditional=no
3023 fi
3024 rm -f conftest*
3025
3026
3027   if test $ac_cv_prog_gcc_traditional = no; then
3028     cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 _ACEOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040   ac_cv_prog_gcc_traditional=yes
3041 fi
3042 rm -f conftest*
3043
3044   fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048   if test $ac_cv_prog_gcc_traditional = yes; then
3049     CC="$CC -traditional"
3050   fi
3051 fi
3052
3053 if test x$CC = xgcc
3054 then
3055    cat >>confdefs.h <<\_ACEOF
3056 #define HAVE_GCC 1
3057 _ACEOF
3058
3059 fi
3060
3061 # Find a good install program.  We prefer a C program (faster),
3062 # so one script is as good as another.  But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3067 # AIX /bin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   # Account for people who put trailing slashes in PATH elements.
3085 case $as_dir/ in
3086   ./ | .// | /cC/* | \
3087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106             break 3
3107           fi
3108         fi
3109       done
3110     done
3111     ;;
3112 esac
3113 done
3114
3115
3116 fi
3117   if test "${ac_cv_path_install+set}" = set; then
3118     INSTALL=$ac_cv_path_install
3119   else
3120     # As a last resort, use the slow shell script.  We don't cache a
3121     # path for INSTALL within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the path is relative.
3124     INSTALL=$ac_install_sh
3125   fi
3126 fi
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3129
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3133
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3135
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MV in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245   ;;
3246 esac
3247 fi
3248 MV=$ac_cv_path_MV
3249
3250 if test -n "$MV"; then
3251   echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $RM in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285   ;;
3286 esac
3287 fi
3288 RM=$ac_cv_path_RM
3289
3290 if test -n "$RM"; then
3291   echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $CP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325   ;;
3326 esac
3327 fi
3328 CP=$ac_cv_path_CP
3329
3330 if test -n "$CP"; then
3331   echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $SED in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365   ;;
3366 esac
3367 fi
3368 SED=$ac_cv_path_SED
3369
3370 if test -n "$SED"; then
3371   echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $AWK in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405   ;;
3406 esac
3407 fi
3408 AWK=$ac_cv_path_AWK
3409
3410 if test -n "$AWK"; then
3411   echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $ECHO in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445   ;;
3446 esac
3447 fi
3448 ECHO=$ac_cv_path_ECHO
3449
3450 if test -n "$ECHO"; then
3451   echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $CMP in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485   ;;
3486 esac
3487 fi
3488 CMP=$ac_cv_path_CMP
3489
3490 if test -n "$CMP"; then
3491   echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $TBL in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525   ;;
3526 esac
3527 fi
3528 TBL=$ac_cv_path_TBL
3529
3530 if test -n "$TBL"; then
3531   echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $AR in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565   ;;
3566 esac
3567 fi
3568 AR=$ac_cv_path_AR
3569
3570 if test -n "$AR"; then
3571   echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $OPENSSL in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605   ;;
3606 esac
3607 fi
3608 OPENSSL=$ac_cv_path_OPENSSL
3609
3610 if test -n "$OPENSSL"; then
3611   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $MTX in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3645   ;;
3646 esac
3647 fi
3648 MTX=$ac_cv_path_MTX
3649
3650 if test -n "$MTX"; then
3651   echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $PKGCONFIG in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685   ;;
3686 esac
3687 fi
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3689
3690 if test -n "$PKGCONFIG"; then
3691   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $WXCONFIG in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725   ;;
3726 esac
3727 fi
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3729
3730 if test -n "$WXCONFIG"; then
3731   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738
3739 test -n "$ARFLAG" || ARFLAGS="cr"
3740
3741
3742 MAKE_SHELL=/bin/sh
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 # Make sure we can run config.sub.
3753 $ac_config_sub sun4 >/dev/null 2>&1 ||
3754   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3755 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3756    { (exit 1); exit 1; }; }
3757
3758 echo "$as_me:$LINENO: checking build system type" >&5
3759 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3760 if test "${ac_cv_build+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   ac_cv_build_alias=$build_alias
3764 test -z "$ac_cv_build_alias" &&
3765   ac_cv_build_alias=`$ac_config_guess`
3766 test -z "$ac_cv_build_alias" &&
3767   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3768 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3769    { (exit 1); exit 1; }; }
3770 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3771   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3772 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3773    { (exit 1); exit 1; }; }
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3777 echo "${ECHO_T}$ac_cv_build" >&6
3778 build=$ac_cv_build
3779 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3780 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3781 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782
3783
3784
3785 echo "$as_me:$LINENO: checking host system type" >&5
3786 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3787 if test "${ac_cv_host+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   ac_cv_host_alias=$host_alias
3791 test -z "$ac_cv_host_alias" &&
3792   ac_cv_host_alias=$ac_cv_build_alias
3793 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3794   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3795 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3796    { (exit 1); exit 1; }; }
3797
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3800 echo "${ECHO_T}$ac_cv_host" >&6
3801 host=$ac_cv_host
3802 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3803 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3804 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805
3806
3807 case $host_os in
3808   *cygwin* ) CYGWIN=yes;;
3809          * ) CYGWIN=no;;
3810 esac
3811
3812 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3813 then
3814
3815
3816 if $TRUEPRG; then
3817   HAVE_SUN_OS_TRUE=
3818   HAVE_SUN_OS_FALSE='#'
3819 else
3820   HAVE_SUN_OS_TRUE='#'
3821   HAVE_SUN_OS_FALSE=
3822 fi
3823         cat >>confdefs.h <<\_ACEOF
3824 #define HAVE_SUN_OS 1
3825 _ACEOF
3826
3827 else
3828
3829
3830 if $FALSEPRG; then
3831   HAVE_SUN_OS_TRUE=
3832   HAVE_SUN_OS_FALSE='#'
3833 else
3834   HAVE_SUN_OS_TRUE='#'
3835   HAVE_SUN_OS_FALSE=
3836 fi
3837 fi
3838
3839 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3840 then
3841
3842
3843 if $TRUEPRG; then
3844   HAVE_OSF1_OS_TRUE=
3845   HAVE_OSF1_OS_FALSE='#'
3846 else
3847   HAVE_OSF1_OS_TRUE='#'
3848   HAVE_OSF1_OS_FALSE=
3849 fi
3850         cat >>confdefs.h <<\_ACEOF
3851 #define HAVE_OSF1_OS 1
3852 _ACEOF
3853
3854 else
3855
3856
3857 if $FALSEPRG; then
3858   HAVE_OSF1_OS_TRUE=
3859   HAVE_OSF1_OS_FALSE='#'
3860 else
3861   HAVE_OSF1_OS_TRUE='#'
3862   HAVE_OSF1_OS_FALSE=
3863 fi
3864 fi
3865
3866 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3867 then
3868
3869
3870 if $TRUEPRG; then
3871   HAVE_AIX_OS_TRUE=
3872   HAVE_AIX_OS_FALSE='#'
3873 else
3874   HAVE_AIX_OS_TRUE='#'
3875   HAVE_AIX_OS_FALSE=
3876 fi
3877         cat >>confdefs.h <<\_ACEOF
3878 #define HAVE_AIX_OS 1
3879 _ACEOF
3880
3881 else
3882
3883
3884 if $FALSEPRG; then
3885   HAVE_AIX_OS_TRUE=
3886   HAVE_AIX_OS_FALSE='#'
3887 else
3888   HAVE_AIX_OS_TRUE='#'
3889   HAVE_AIX_OS_FALSE=
3890 fi
3891 fi
3892
3893 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3894 then
3895
3896
3897 if $TRUEPRG; then
3898   HAVE_HPUX_OS_TRUE=
3899   HAVE_HPUX_OS_FALSE='#'
3900 else
3901   HAVE_HPUX_OS_TRUE='#'
3902   HAVE_HPUX_OS_FALSE=
3903 fi
3904         cat >>confdefs.h <<\_ACEOF
3905 #define HAVE_HPUX_OS 1
3906 _ACEOF
3907
3908 else
3909
3910
3911 if $FALSEPRG; then
3912   HAVE_HPUX_OS_TRUE=
3913   HAVE_HPUX_OS_FALSE='#'
3914 else
3915   HAVE_HPUX_OS_TRUE='#'
3916   HAVE_HPUX_OS_FALSE=
3917 fi
3918 fi
3919
3920 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3921 then
3922
3923
3924 if $TRUEPRG; then
3925   HAVE_LINUX_OS_TRUE=
3926   HAVE_LINUX_OS_FALSE='#'
3927 else
3928   HAVE_LINUX_OS_TRUE='#'
3929   HAVE_LINUX_OS_FALSE=
3930 fi
3931         cat >>confdefs.h <<\_ACEOF
3932 #define HAVE_LINUX_OS 1
3933 _ACEOF
3934
3935 else
3936
3937
3938 if $FALSEPRG; then
3939   HAVE_LINUX_OS_TRUE=
3940   HAVE_LINUX_OS_FALSE='#'
3941 else
3942   HAVE_LINUX_OS_TRUE='#'
3943   HAVE_LINUX_OS_FALSE=
3944 fi
3945 fi
3946
3947 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 then
3949
3950
3951 if $TRUEPRG; then
3952   HAVE_FREEBSD_OS_TRUE=
3953   HAVE_FREEBSD_OS_FALSE='#'
3954 else
3955   HAVE_FREEBSD_OS_TRUE='#'
3956   HAVE_FREEBSD_OS_FALSE=
3957 fi
3958         cat >>confdefs.h <<\_ACEOF
3959 #define HAVE_FREEBSD_OS 1
3960 _ACEOF
3961
3962 else
3963
3964
3965 if $FALSEPRG; then
3966   HAVE_FREEBSD_OS_TRUE=
3967   HAVE_FREEBSD_OS_FALSE='#'
3968 else
3969   HAVE_FREEBSD_OS_TRUE='#'
3970   HAVE_FREEBSD_OS_FALSE=
3971 fi
3972 fi
3973
3974 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 then
3976
3977
3978 if $TRUEPRG; then
3979   HAVE_NETBSD_OS_TRUE=
3980   HAVE_NETBSD_OS_FALSE='#'
3981 else
3982   HAVE_NETBSD_OS_TRUE='#'
3983   HAVE_NETBSD_OS_FALSE=
3984 fi
3985         cat >>confdefs.h <<\_ACEOF
3986 #define HAVE_NETBSD_OS 1
3987 _ACEOF
3988
3989 else
3990
3991
3992 if $FALSEPRG; then
3993   HAVE_NETBSD_OS_TRUE=
3994   HAVE_NETBSD_OS_FALSE='#'
3995 else
3996   HAVE_NETBSD_OS_TRUE='#'
3997   HAVE_NETBSD_OS_FALSE=
3998 fi
3999 fi
4000
4001 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 then
4003
4004
4005 if $TRUEPRG; then
4006   HAVE_OPENBSD_OS_TRUE=
4007   HAVE_OPENBSD_OS_FALSE='#'
4008 else
4009   HAVE_OPENBSD_OS_TRUE='#'
4010   HAVE_OPENBSD_OS_FALSE=
4011 fi
4012         cat >>confdefs.h <<\_ACEOF
4013 #define HAVE_OPENBSD_OS 1
4014 _ACEOF
4015
4016 else
4017
4018
4019 if $FALSEPRG; then
4020   HAVE_OPENBSD_OS_TRUE=
4021   HAVE_OPENBSD_OS_FALSE='#'
4022 else
4023   HAVE_OPENBSD_OS_TRUE='#'
4024   HAVE_OPENBSD_OS_FALSE=
4025 fi
4026 fi
4027
4028 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4029 then
4030
4031
4032 if $TRUEPRG; then
4033   HAVE_BSDI_OS_TRUE=
4034   HAVE_BSDI_OS_FALSE='#'
4035 else
4036   HAVE_BSDI_OS_TRUE='#'
4037   HAVE_BSDI_OS_FALSE=
4038 fi
4039         cat >>confdefs.h <<\_ACEOF
4040 #define HAVE_BSDI_OS 1
4041 _ACEOF
4042
4043 else
4044
4045
4046 if $FALSEPRG; then
4047   HAVE_BSDI_OS_TRUE=
4048   HAVE_BSDI_OS_FALSE='#'
4049 else
4050   HAVE_BSDI_OS_TRUE='#'
4051   HAVE_BSDI_OS_FALSE=
4052 fi
4053 fi
4054
4055 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4056 then
4057
4058
4059 if $TRUEPRG; then
4060   HAVE_SGI_OS_TRUE=
4061   HAVE_SGI_OS_FALSE='#'
4062 else
4063   HAVE_SGI_OS_TRUE='#'
4064   HAVE_SGI_OS_FALSE=
4065 fi
4066         cat >>confdefs.h <<\_ACEOF
4067 #define HAVE_SGI_OS 1
4068 _ACEOF
4069
4070 else
4071
4072
4073 if $FALSEPRG; then
4074   HAVE_SGI_OS_TRUE=
4075   HAVE_SGI_OS_FALSE='#'
4076 else
4077   HAVE_SGI_OS_TRUE='#'
4078   HAVE_SGI_OS_FALSE=
4079 fi
4080 fi
4081
4082 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4083 then
4084
4085
4086 if $TRUEPRG; then
4087   HAVE_IRIX_OS_TRUE=
4088   HAVE_IRIX_OS_FALSE='#'
4089 else
4090   HAVE_IRIX_OS_TRUE='#'
4091   HAVE_IRIX_OS_FALSE=
4092 fi
4093         cat >>confdefs.h <<\_ACEOF
4094 #define HAVE_IRIX_OS 1
4095 _ACEOF
4096
4097 else
4098
4099
4100 if $FALSEPRG; then
4101   HAVE_IRIX_OS_TRUE=
4102   HAVE_IRIX_OS_FALSE='#'
4103 else
4104   HAVE_IRIX_OS_TRUE='#'
4105   HAVE_IRIX_OS_FALSE=
4106 fi
4107 fi
4108
4109 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 then
4111
4112
4113 if $TRUEPRG; then
4114   HAVE_DARWIN_OS_TRUE=
4115   HAVE_DARWIN_OS_FALSE='#'
4116 else
4117   HAVE_DARWIN_OS_TRUE='#'
4118   HAVE_DARWIN_OS_FALSE=
4119 fi
4120     cat >>confdefs.h <<\_ACEOF
4121 #define HAVE_DARWIN_OS 1
4122 _ACEOF
4123
4124 else
4125
4126
4127 if $FALSEPRG; then
4128   HAVE_DARWIN_OS_TRUE=
4129   HAVE_DARWIN_OS_FALSE='#'
4130 else
4131   HAVE_DARWIN_OS_TRUE='#'
4132   HAVE_DARWIN_OS_FALSE=
4133 fi
4134 fi
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/whitebox-release
4181 then
4182        DISTNAME=redhat
4183 elif test -f /etc/redhat-release
4184 then
4185         DISTNAME=redhat
4186 elif test -f /etc/gentoo-release
4187 then
4188         DISTNAME=gentoo
4189 elif test -f /etc/debian_version
4190 then
4191         DISTNAME=debian
4192 elif test -f /etc/slackware-version
4193 then
4194         DISTNAME=slackware
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 then
4197     DISTNAME=darwin
4198 elif test -f /etc/engarde-version
4199 then
4200         DISTNAME=engarde
4201 elif test "$CYGWIN" = yes
4202 then
4203         DISTNAME=cygwin
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4206 _ACEOF
4207
4208 else
4209         DISTNAME=unknown
4210 fi
4211 echo "$as_me:$LINENO: result: done" >&5
4212 echo "${ECHO_T}done" >&6
4213
4214
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4217
4218
4219
4220 if false; then
4221   INSIDE_GNOME_COMMON_TRUE=
4222   INSIDE_GNOME_COMMON_FALSE='#'
4223 else
4224   INSIDE_GNOME_COMMON_TRUE='#'
4225   INSIDE_GNOME_COMMON_FALSE=
4226 fi
4227
4228         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4229
4230         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231
4232
4233 # ------------------------------------------------------------------
4234 #  If the user has not set --prefix, we set our default to nothing.
4235 #  In this case, if the user has not set --sysconfdir, we set it
4236 #  to the package default of /etc/bacula.  If either --prefix or
4237 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241         sysconfdir=/etc/bacula
4242     fi
4243     prefix=
4244 fi
4245 sysconfdir=`eval echo ${sysconfdir}`
4246
4247 # -------------------------------------------------------------------------
4248 #  If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251     exec_prefix=${prefix}
4252 fi
4253
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258     sbindir=${exec_prefix}/sbin
4259 fi
4260 sbindir=`eval echo ${sbindir}`
4261
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 #  language is separated by a space.
4265 # ------------------------------------------------------------------
4266 ALL_LINGUAS=""
4267
4268 for ac_prog in msgfmt
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   case $MSGFMT in
4278   [\\/]* | ?:[\\/]*)
4279   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280   ;;
4281   *)
4282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   ;;
4297 esac
4298 fi
4299 MSGFMT=$ac_cv_path_MSGFMT
4300
4301 if test -n "$MSGFMT"; then
4302   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   test -n "$MSGFMT" && break
4310 done
4311 test -n "$MSGFMT" || MSGFMT="no"
4312
4313 if test "$MSGFMT" = "no"
4314 then
4315    echo 'msgfmt program not found, disabling NLS !'
4316    USE_NLS=no
4317    USE_INCLUDED_LIBINTL=no
4318 #else
4319 #   AM_GNU_GETTEXT
4320 fi
4321
4322
4323 support_mysql=no
4324 support_sqlite=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4328 support_conio=yes
4329 support_gnome=no
4330 support_wx_console=no
4331 gnome_version=
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4338 cats=
4339 db_name=Internal
4340 DB_NAME=bdb
4341
4342
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348   enableval="$enable_gnome"
4349   if test x$enableval = xyes; then
4350     support_gnome=yes
4351   fi
4352 fi;
4353
4354 GNOME_DIR=
4355 if test x$support_gnome = xyes; then
4356   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4357   pkg=$?
4358   if test $pkg = 0; then
4359      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363
4364
4365
4366
4367      GNOME_DIR=src/gnome2-console
4368      gnome_version="Version 2.x"
4369   else
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383   withval="$with_gnome_includes"
4384
4385         CFLAGS="$CFLAGS -I$withval"
4386
4387 fi;
4388
4389
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392   withval="$with_gnome_libs"
4393
4394         LDFLAGS="$LDFLAGS -L$withval"
4395         gnome_prefix=$withval
4396
4397 fi;
4398
4399
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402   withval="$with_gnome"
4403   if test x$withval = xyes; then
4404                         want_gnome=yes
4405                                                                         :
4406                 else
4407                         if test "x$withval" = xno; then
4408                                 want_gnome=no
4409                         else
4410                                 want_gnome=yes
4411                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4412                                 CFLAGS="$CFLAGS -I$withval/include"
4413                                 gnome_prefix=$withval/lib
4414                         fi
4415                 fi
4416 else
4417   want_gnome=yes
4418 fi;
4419
4420         if test "x$want_gnome" = xyes; then
4421
4422             # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   case $GNOME_CONFIG in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447
4448   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449   ;;
4450 esac
4451 fi
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4453
4454 if test -n "$GNOME_CONFIG"; then
4455   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461
4462             if test "$GNOME_CONFIG" = "no"; then
4463               no_gnome_config="yes"
4464             else
4465               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468                 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470
4471
4472         # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $ORBIT_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4503
4504 if test -n "$ORBIT_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512         # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   case $ORBIT_IDL in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_exec_ext in '' $ac_executable_extensions; do
4530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536 done
4537
4538   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539   ;;
4540 esac
4541 fi
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4543
4544 if test -n "$ORBIT_IDL"; then
4545   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4547 else
4548   echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557
4558                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559                         gnome_cv_orbit_found=no
4560                 else
4561                         gnome_cv_orbit_found=yes
4562                 fi
4563
4564 fi
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4567
4568
4569 if test x$gnome_cv_orbit_found = xyes; then
4570   HAVE_ORBIT_TRUE=
4571   HAVE_ORBIT_FALSE='#'
4572 else
4573   HAVE_ORBIT_TRUE='#'
4574   HAVE_ORBIT_FALSE=
4575 fi
4576         if test x$gnome_cv_orbit_found = xyes; then
4577
4578                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580
4581
4582         else
4583                 if test xfail = xfailure; then
4584                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586    { (exit 1); exit 1; }; }
4587                 fi
4588         fi
4589
4590         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595
4596                 gnome_cv_gnorba_found=no
4597                 if test x$gnome_cv_orbit_found = xyes; then
4598                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600                         if test -n "$GNORBA_LIBS"; then
4601                                 gnome_cv_gnorba_found=yes
4602                         fi
4603                 fi
4604
4605 fi
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4608
4609
4610 if test x$gnome_cv_gnorba_found = xyes; then
4611   HAVE_GNORBA_TRUE=
4612   HAVE_GNORBA_FALSE='#'
4613 else
4614   HAVE_GNORBA_TRUE='#'
4615   HAVE_GNORBA_FALSE=
4616 fi
4617         if test x$gnome_cv_orbit_found = xyes; then
4618
4619                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621
4622
4623         else
4624                 if test xfail = xfailure; then
4625                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627    { (exit 1); exit 1; }; }
4628                 fi
4629         fi
4630
4631                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4638
4639               else
4640                 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642                 no_gnome_config="yes"
4643               fi
4644             fi
4645
4646             if test x$exec_prefix = xNONE; then
4647                 if test x$prefix = xNONE; then
4648                     gnome_prefix=$ac_default_prefix/lib
4649                 else
4650                     gnome_prefix=$prefix/lib
4651                 fi
4652             else
4653                 gnome_prefix=`eval echo \`echo $libdir\``
4654             fi
4655
4656             if test "$no_gnome_config" = "yes"; then
4657               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659               if test -f $gnome_prefix/gnomeConf.sh; then
4660                 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662                 echo "loading gnome configuration from" \
4663                      "$gnome_prefix/gnomeConf.sh"
4664                 . $gnome_prefix/gnomeConf.sh
4665
4666               else
4667                 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669                 if test xfail = xfail; then
4670                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672    { (exit 1); exit 1; }; }
4673                 fi
4674               fi
4675             fi
4676         fi
4677
4678         if test -n ""; then
4679           n=""
4680           for i in $n; do
4681             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683             case $i in
4684               applets)
4685
4686                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4689               docklets)
4690
4691                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4694               capplet)
4695
4696                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4699               *)
4700                 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4702             esac
4703             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705           done
4706         fi
4707
4708
4709      GNOME_DIR=src/gnome-console
4710      gnome_version="Version 1.4"
4711   fi
4712 fi
4713
4714
4715
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721   enableval="$enable_wx_console"
4722   if test x$enableval = xyes; then
4723     support_wx_console=yes
4724   fi
4725 fi;
4726
4727 WX_DIR=
4728 if test x$support_wx_console = xyes; then
4729   abc=`$WXCONFIG --cppflags`
4730   pkg=$?
4731   if test $pkg = 0; then
4732      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4734
4735
4736      WX_DIR=src/wx-console
4737   else
4738      echo " "
4739      echo "wx-config program not found. wx-console disabled."
4740      echo " "
4741      support_wx_console=no
4742   fi
4743 fi
4744
4745
4746
4747 # -------------------------------------------
4748 # tray-monitor (default off)
4749 # -------------------------------------------
4750 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4751 if test "${enable_tray_monitor+set}" = set; then
4752   enableval="$enable_tray_monitor"
4753   if test x$enableval = xyes; then
4754     support_tray_monitor=yes
4755   fi
4756 fi;
4757
4758 TRAY_MONITOR_DIR=
4759 if test x$support_tray_monitor = xyes; then
4760   abc=`$PKGCONFIG --exists gtk+-2.0`
4761   pkg=$?
4762   if test $pkg = 0; then
4763      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4764      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4765
4766
4767      TRAY_MONITOR_DIR=src/tray-monitor
4768      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4769      pkg=$?
4770      if test $pkg = 0; then
4771         cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_GTK_2_4 1
4773 _ACEOF
4774
4775      fi
4776   fi
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # smartalloc (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4784 if test "${enable_smartalloc+set}" = set; then
4785   enableval="$enable_smartalloc"
4786   if test x$enableval = xno; then
4787     support_smartalloc=no
4788   fi
4789 fi;
4790
4791 if test x$support_smartalloc = xyes; then
4792    cat >>confdefs.h <<\_ACEOF
4793 #define SMARTALLOC 1
4794 _ACEOF
4795
4796 fi
4797
4798 # -------------------------------------------
4799 # static-tools (default off)
4800 # -------------------------------------------
4801 # Check whether --enable-static-tools or --disable-static-tools was given.
4802 if test "${enable_static_tools+set}" = set; then
4803   enableval="$enable_static_tools"
4804   if test x$enableval = xyes; then
4805      support_static_tools=yes
4806    fi
4807 fi;
4808
4809 TTOOL_LDFLAGS=
4810 if test x$support_static_tools = xyes; then
4811    TTOOL_LDFLAGS="-static"
4812 fi
4813
4814
4815 # -------------------------------------------
4816 # static-fd    (default off)
4817 # -------------------------------------------
4818 # Check whether --enable-static-fd or --disable-static-fd was given.
4819 if test "${enable_static_fd+set}" = set; then
4820   enableval="$enable_static_fd"
4821   if test x$enableval = xyes; then
4822      support_static_fd=yes
4823    fi
4824 fi;
4825
4826 STATIC_FD=
4827 if test x$support_static_fd = xyes; then
4828    STATIC_FD="static-bacula-fd"
4829 fi
4830
4831
4832 # -------------------------------------------
4833 # static-sd    (default off)
4834 # -------------------------------------------
4835 # Check whether --enable-static-sd or --disable-static-sd was given.
4836 if test "${enable_static_sd+set}" = set; then
4837   enableval="$enable_static_sd"
4838   if test x$enableval = xyes; then
4839      support_static_sd=yes
4840    fi
4841 fi;
4842
4843 STATIC_SD=
4844 if test x$support_static_sd = xyes; then
4845    STATIC_SD="static-bacula-sd"
4846 fi
4847
4848
4849 # -------------------------------------------
4850 # static-dir   (default off)
4851 # -------------------------------------------
4852 # Check whether --enable-static-dir or --disable-static-dir was given.
4853 if test "${enable_static_dir+set}" = set; then
4854   enableval="$enable_static_dir"
4855   if test x$enableval = xyes; then
4856      support_static_dir=yes
4857    fi
4858 fi;
4859
4860 STATIC_DIR=
4861 if test x$support_static_dir = xyes; then
4862    STATIC_DIR="static-bacula-dir"
4863 fi
4864
4865
4866 # -------------------------------------------
4867 # static-cons  (default off)
4868 # -------------------------------------------
4869 # Check whether --enable-static-cons or --disable-static-cons was given.
4870 if test "${enable_static_cons+set}" = set; then
4871   enableval="$enable_static_cons"
4872   if test x$enableval = xyes; then
4873      support_static_cons=yes
4874    fi
4875 fi;
4876
4877 STATIC_CONS=
4878 STATIC_GNOME_CONS=
4879 STATIC_WX_CONS=
4880 if test x$support_static_cons = xyes; then
4881    STATIC_CONS="static-bconsole"
4882    STATIC_GNOME_CONS="static-gnome-console"
4883    STATIC_WX_CONS="static-wx-console"
4884 fi
4885
4886
4887
4888
4889 # -------------------------------------------
4890 # client_only  (default off)
4891 # -------------------------------------------
4892 # Check whether --enable-client-only or --disable-client-only was given.
4893 if test "${enable_client_only+set}" = set; then
4894   enableval="$enable_client_only"
4895   if test x$enableval = xyes; then
4896      build_client_only=yes
4897     db_name=None
4898     DB_NAME=none
4899    fi
4900 fi;
4901 if test x$build_client_only = xno; then
4902    ALL_DIRS="subdirs"
4903 else
4904    ALL_DIRS=""
4905 fi
4906
4907
4908 # ---------------------------------------------------
4909 # Check for conio (Bacula readline substitute)(
4910 # ---------------------------------------------------
4911 # this allows you to turn it completely off
4912 # Check whether --enable-conio or --disable-conio was given.
4913 if test "${enable_conio+set}" = set; then
4914   enableval="$enable_conio"
4915   if test x$enableval = xno; then
4916     support_conio=no
4917   fi
4918 fi;
4919
4920 got_conio="no"
4921 if test x$support_conio = xyes; then
4922    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4924 if test "${ac_cv_header_stdc+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <stdlib.h>
4935 #include <stdarg.h>
4936 #include <string.h>
4937 #include <float.h>
4938
4939 int
4940 main ()
4941 {
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949   (eval $ac_compile) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } &&
4953          { ac_try='test -s conftest.$ac_objext'
4954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955   (eval $ac_try) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; }; then
4959   ac_cv_header_stdc=yes
4960 else
4961   echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_cv_header_stdc=no
4965 fi
4966 rm -f conftest.$ac_objext conftest.$ac_ext
4967
4968 if test $ac_cv_header_stdc = yes; then
4969   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #include <string.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981   $EGREP "memchr" >/dev/null 2>&1; then
4982   :
4983 else
4984   ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992   cat >conftest.$ac_ext <<_ACEOF
4993 #line $LINENO "configure"
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <stdlib.h>
5000
5001 _ACEOF
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003   $EGREP "free" >/dev/null 2>&1; then
5004   :
5005 else
5006   ac_cv_header_stdc=no
5007 fi
5008 rm -f conftest*
5009
5010 fi
5011
5012 if test $ac_cv_header_stdc = yes; then
5013   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5014   if test "$cross_compiling" = yes; then
5015   :
5016 else
5017   cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 #include <ctype.h>
5025 #if ((' ' & 0x0FF) == 0x020)
5026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5028 #else
5029 # define ISLOWER(c) \
5030                    (('a' <= (c) && (c) <= 'i') \
5031                      || ('j' <= (c) && (c) <= 'r') \
5032                      || ('s' <= (c) && (c) <= 'z'))
5033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034 #endif
5035
5036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5037 int
5038 main ()
5039 {
5040   int i;
5041   for (i = 0; i < 256; i++)
5042     if (XOR (islower (i), ISLOWER (i))
5043         || toupper (i) != TOUPPER (i))
5044       exit(2);
5045   exit (0);
5046 }
5047 _ACEOF
5048 rm -f conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050   (eval $ac_link) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   :
5060 else
5061   echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ( exit $ac_status )
5066 ac_cv_header_stdc=no
5067 fi
5068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 fi
5071 fi
5072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5074 if test $ac_cv_header_stdc = yes; then
5075
5076 cat >>confdefs.h <<\_ACEOF
5077 #define STDC_HEADERS 1
5078 _ACEOF
5079
5080 fi
5081
5082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093                   inttypes.h stdint.h unistd.h
5094 do
5095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 echo "$as_me:$LINENO: checking for $ac_header" >&5
5097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 $ac_includes_default
5109
5110 #include <$ac_header>
5111 _ACEOF
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114   (eval $ac_compile) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -s conftest.$ac_objext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   eval "$as_ac_Header=yes"
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 eval "$as_ac_Header=no"
5130 fi
5131 rm -f conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136   cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138 _ACEOF
5139
5140 fi
5141
5142 done
5143
5144
5145 if test "${ac_cv_header_termcap_h+set}" = set; then
5146   echo "$as_me:$LINENO: checking for termcap.h" >&5
5147 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5148 if test "${ac_cv_header_termcap_h+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5152 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5153 else
5154   # Is the header compilable?
5155 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5156 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 $ac_includes_default
5165 #include <termcap.h>
5166 _ACEOF
5167 rm -f conftest.$ac_objext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169   (eval $ac_compile) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } &&
5173          { ac_try='test -s conftest.$ac_objext'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; }; then
5179   ac_header_compiler=yes
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ac_header_compiler=no
5185 fi
5186 rm -f conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5188 echo "${ECHO_T}$ac_header_compiler" >&6
5189
5190 # Is the header present?
5191 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5192 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200 #include <termcap.h>
5201 _ACEOF
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } >/dev/null; then
5210   if test -s conftest.err; then
5211     ac_cpp_err=$ac_c_preproc_warn_flag
5212   else
5213     ac_cpp_err=
5214   fi
5215 else
5216   ac_cpp_err=yes
5217 fi
5218 if test -z "$ac_cpp_err"; then
5219   ac_header_preproc=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   ac_header_preproc=no
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5228 echo "${ECHO_T}$ac_header_preproc" >&6
5229
5230 # So?  What about this header?
5231 case $ac_header_compiler:$ac_header_preproc in
5232   yes:no )
5233     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5234 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5235     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5236 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5237     (
5238       cat <<\_ASBOX
5239 ## ------------------------------------ ##
5240 ## Report this to bug-autoconf@gnu.org. ##
5241 ## ------------------------------------ ##
5242 _ASBOX
5243     ) |
5244       sed "s/^/$as_me: WARNING:     /" >&2
5245     ;;
5246   no:yes )
5247     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5248 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5249     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5250 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5252 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5253     (
5254       cat <<\_ASBOX
5255 ## ------------------------------------ ##
5256 ## Report this to bug-autoconf@gnu.org. ##
5257 ## ------------------------------------ ##
5258 _ASBOX
5259     ) |
5260       sed "s/^/$as_me: WARNING:     /" >&2
5261     ;;
5262 esac
5263 echo "$as_me:$LINENO: checking for termcap.h" >&5
5264 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5265 if test "${ac_cv_header_termcap_h+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   ac_cv_header_termcap_h=$ac_header_preproc
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5271 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5272
5273 fi
5274 if test $ac_cv_header_termcap_h = yes; then
5275    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5276 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5277 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   ac_check_lib_save_LIBS=$LIBS
5281 LIBS="-ltermcap  $LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289
5290 /* Override any gcc2 internal prototype to avoid an error.  */
5291 #ifdef __cplusplus
5292 extern "C"
5293 #endif
5294 /* We use char because int might match the return type of a gcc2
5295    builtin and then its argument prototype would still apply.  */
5296 char tgetent ();
5297 int
5298 main ()
5299 {
5300 tgetent ();
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307   (eval $ac_link) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -s conftest$ac_exeext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   ac_cv_lib_termcap_tgetent=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 ac_cv_lib_termcap_tgetent=no
5323 fi
5324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5325 LIBS=$ac_check_lib_save_LIBS
5326 fi
5327 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5328 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5329 if test $ac_cv_lib_termcap_tgetent = yes; then
5330    CONS_LIBS="-ltermcap"
5331          CONS_OBJ="conio.o"
5332          CONS_SRC="conio.c"
5333          got_conio="yes"
5334          support_readline=no
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_CONIO 1
5338 _ACEOF
5339
5340
5341 else
5342    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5343 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5344 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lncurses  $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 /* Override any gcc2 internal prototype to avoid an error.  */
5358 #ifdef __cplusplus
5359 extern "C"
5360 #endif
5361 /* We use char because int might match the return type of a gcc2
5362    builtin and then its argument prototype would still apply.  */
5363 char tgetent ();
5364 int
5365 main ()
5366 {
5367 tgetent ();
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374   (eval $ac_link) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -s conftest$ac_exeext'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; }; then
5384   ac_cv_lib_ncurses_tgetent=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 ac_cv_lib_ncurses_tgetent=no
5390 fi
5391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5393 fi
5394 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5395 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5396 if test $ac_cv_lib_ncurses_tgetent = yes; then
5397    CONS_LIBS="-lncurses"
5398            CONS_OBJ="conio.o"
5399            CONS_SRC="conio.c"
5400            got_conio="yes"
5401            support_readline=no
5402
5403 cat >>confdefs.h <<\_ACEOF
5404 #define HAVE_CONIO 1
5405 _ACEOF
5406
5407
5408 else
5409    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5410 fi
5411
5412
5413 fi
5414
5415
5416 else
5417   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5418 fi
5419
5420
5421 fi
5422
5423
5424 # ---------------------------------------------------
5425 # Check for readline support/directory (default off)
5426 # ---------------------------------------------------
5427 # this allows you to turn it completely off
5428 # Check whether --enable-readline or --disable-readline was given.
5429 if test "${enable_readline+set}" = set; then
5430   enableval="$enable_readline"
5431   if test x$enableval = xno; then
5432     support_readline=no
5433   fi
5434 fi;
5435
5436 got_readline="no"
5437 READLINE_SRC=
5438 if test x$support_readline = xyes; then
5439
5440 # Check whether --with-readline or --without-readline was given.
5441 if test "${with_readline+set}" = set; then
5442   withval="$with_readline"
5443
5444         case "$with_readline" in
5445         no) : ;;
5446         yes|*)
5447           if test "$with_readline" != "yes"; then
5448             CONS_INC="-I${with_readline}"
5449             CONS_LDFLAGS="-L$with_readline"
5450           else
5451              with_readline="/usr/include/readline"
5452           fi
5453           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5456 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 fi
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462 else
5463   # Is the header compilable?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 $ac_includes_default
5474 #include <${with_readline}/readline.h>
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478   (eval $ac_compile) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } &&
5482          { ac_try='test -s conftest.$ac_objext'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; }; then
5488   ac_header_compiler=yes
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_header_compiler=no
5494 fi
5495 rm -f conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5497 echo "${ECHO_T}$ac_header_compiler" >&6
5498
5499 # Is the header present?
5500 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5501 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 #include <${with_readline}/readline.h>
5510 _ACEOF
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null; then
5519   if test -s conftest.err; then
5520     ac_cpp_err=$ac_c_preproc_warn_flag
5521   else
5522     ac_cpp_err=
5523   fi
5524 else
5525   ac_cpp_err=yes
5526 fi
5527 if test -z "$ac_cpp_err"; then
5528   ac_header_preproc=yes
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533   ac_header_preproc=no
5534 fi
5535 rm -f conftest.err conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537 echo "${ECHO_T}$ac_header_preproc" >&6
5538
5539 # So?  What about this header?
5540 case $ac_header_compiler:$ac_header_preproc in
5541   yes:no )
5542     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5543 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5546     (
5547       cat <<\_ASBOX
5548 ## ------------------------------------ ##
5549 ## Report this to bug-autoconf@gnu.org. ##
5550 ## ------------------------------------ ##
5551 _ASBOX
5552     ) |
5553       sed "s/^/$as_me: WARNING:     /" >&2
5554     ;;
5555   no:yes )
5556     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5557 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5558     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5562     (
5563       cat <<\_ASBOX
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5567 _ASBOX
5568     ) |
5569       sed "s/^/$as_me: WARNING:     /" >&2
5570     ;;
5571 esac
5572 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5573 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   eval "$as_ac_Header=$ac_header_preproc"
5578 fi
5579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5581
5582 fi
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584    cat >>confdefs.h <<\_ACEOF
5585 #define HAVE_READLINE 1
5586 _ACEOF
5587
5588                CONS_LIBS="-lreadline -ltermcap"
5589                got_readline="yes"
5590
5591 else
5592    echo " "
5593                echo "readline.h not found. readline turned off ..."
5594                echo " "
5595
5596
5597 fi
5598
5599
5600           ;;
5601         esac
5602
5603 else
5604
5605        # check for standard readline library
5606        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5607   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5608 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5609 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 fi
5612 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5613 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5614 else
5615   # Is the header compilable?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 $ac_includes_default
5626 #include </usr/include/readline/readline.h>
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -s conftest.$ac_objext'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_header_compiler=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #include </usr/include/readline/readline.h>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } >/dev/null; then
5671   if test -s conftest.err; then
5672     ac_cpp_err=$ac_c_preproc_warn_flag
5673   else
5674     ac_cpp_err=
5675   fi
5676 else
5677   ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680   ac_header_preproc=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685   ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So?  What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5693   yes:no )
5694     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698     (
5699       cat <<\_ASBOX
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5703 _ASBOX
5704     ) |
5705       sed "s/^/$as_me: WARNING:     /" >&2
5706     ;;
5707   no:yes )
5708     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714     (
5715       cat <<\_ASBOX
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5719 _ASBOX
5720     ) |
5721       sed "s/^/$as_me: WARNING:     /" >&2
5722     ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5725 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5726 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5730 fi
5731 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5732 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5733
5734 fi
5735 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5736    cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5738 _ACEOF
5739
5740            got_readline="yes"
5741            CONS_INC="-I/usr/include/readline"
5742            CONS_LIBS="-lreadline -ltermcap"
5743
5744 else
5745
5746            # Did not find standard library, so try Bacula's default
5747             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5750 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 fi
5754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5756 else
5757   # Is the header compilable?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 $ac_includes_default
5768 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772   (eval $ac_compile) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -s conftest.$ac_objext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_header_compiler=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_header_compiler=no
5788 fi
5789 rm -f conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5791 echo "${ECHO_T}$ac_header_compiler" >&6
5792
5793 # Is the header present?
5794 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5795 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line $LINENO "configure"
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <${TOP_DIR}/depkgs/readline/readline.h>
5804 _ACEOF
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } >/dev/null; then
5813   if test -s conftest.err; then
5814     ac_cpp_err=$ac_c_preproc_warn_flag
5815   else
5816     ac_cpp_err=
5817   fi
5818 else
5819   ac_cpp_err=yes
5820 fi
5821 if test -z "$ac_cpp_err"; then
5822   ac_header_preproc=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827   ac_header_preproc=no
5828 fi
5829 rm -f conftest.err conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5831 echo "${ECHO_T}$ac_header_preproc" >&6
5832
5833 # So?  What about this header?
5834 case $ac_header_compiler:$ac_header_preproc in
5835   yes:no )
5836     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5837 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5838     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5840     (
5841       cat <<\_ASBOX
5842 ## ------------------------------------ ##
5843 ## Report this to bug-autoconf@gnu.org. ##
5844 ## ------------------------------------ ##
5845 _ASBOX
5846     ) |
5847       sed "s/^/$as_me: WARNING:     /" >&2
5848     ;;
5849   no:yes )
5850     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5856     (
5857       cat <<\_ASBOX
5858 ## ------------------------------------ ##
5859 ## Report this to bug-autoconf@gnu.org. ##
5860 ## ------------------------------------ ##
5861 _ASBOX
5862     ) |
5863       sed "s/^/$as_me: WARNING:     /" >&2
5864     ;;
5865 esac
5866 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5867 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   eval "$as_ac_Header=$ac_header_preproc"
5872 fi
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5875
5876 fi
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878    cat >>confdefs.h <<\_ACEOF
5879 #define HAVE_READLINE 1
5880 _ACEOF
5881
5882                  got_readline="yes"
5883                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5884                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5885                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5886                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5887
5888 else
5889    echo " "
5890                 echo "readline.h not found. readline turned off ..."
5891                 echo " "
5892
5893
5894 fi
5895
5896
5897
5898
5899 fi
5900
5901
5902
5903
5904 fi;
5905 fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916 # Minimal stuff for readline Makefile configuration
5917 MAKE_SHELL=/bin/sh
5918
5919 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5921 if test "${ac_cv_header_stat_broken+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <sys/types.h>
5932 #include <sys/stat.h>
5933
5934 #if defined(S_ISBLK) && defined(S_IFDIR)
5935 # if S_ISBLK (S_IFDIR)
5936 You lose.
5937 # endif
5938 #endif
5939
5940 #if defined(S_ISBLK) && defined(S_IFCHR)
5941 # if S_ISBLK (S_IFCHR)
5942 You lose.
5943 # endif
5944 #endif
5945
5946 #if defined(S_ISLNK) && defined(S_IFREG)
5947 # if S_ISLNK (S_IFREG)
5948 You lose.
5949 # endif
5950 #endif
5951
5952 #if defined(S_ISSOCK) && defined(S_IFREG)
5953 # if S_ISSOCK (S_IFREG)
5954 You lose.
5955 # endif
5956 #endif
5957
5958 _ACEOF
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960   $EGREP "You lose" >/dev/null 2>&1; then
5961   ac_cv_header_stat_broken=yes
5962 else
5963   ac_cv_header_stat_broken=no
5964 fi
5965 rm -f conftest*
5966
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5969 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5970 if test $ac_cv_header_stat_broken = yes; then
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define STAT_MACROS_BROKEN 1
5974 _ACEOF
5975
5976 fi
5977
5978
5979
5980
5981
5982
5983 ac_header_dirent=no
5984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5985   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #include <sys/types.h>
5999 #include <$ac_hdr>
6000
6001 int
6002 main ()
6003 {
6004 if ((DIR *) 0)
6005 return 0;
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012   (eval $ac_compile) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -s conftest.$ac_objext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   eval "$as_ac_Header=yes"
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 eval "$as_ac_Header=no"
6028 fi
6029 rm -f conftest.$ac_objext conftest.$ac_ext
6030 fi
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034   cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6036 _ACEOF
6037
6038 ac_header_dirent=$ac_hdr; break
6039 fi
6040
6041 done
6042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6043 if test $ac_header_dirent = dirent.h; then
6044   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6046 if test "${ac_cv_search_opendir+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   ac_func_search_save_LIBS=$LIBS
6050 ac_cv_search_opendir=no
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char opendir ();
6066 int
6067 main ()
6068 {
6069 opendir ();
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076   (eval $ac_link) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -s conftest$ac_exeext'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; }; then
6086   ac_cv_search_opendir="none required"
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 fi
6092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6093 if test "$ac_cv_search_opendir" = no; then
6094   for ac_lib in dir; do
6095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6096     cat >conftest.$ac_ext <<_ACEOF
6097 #line $LINENO "configure"
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103
6104 /* Override any gcc2 internal prototype to avoid an error.  */
6105 #ifdef __cplusplus
6106 extern "C"
6107 #endif
6108 /* We use char because int might match the return type of a gcc2
6109    builtin and then its argument prototype would still apply.  */
6110 char opendir ();
6111 int
6112 main ()
6113 {
6114 opendir ();
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121   (eval $ac_link) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -s conftest$ac_exeext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_cv_search_opendir="-l$ac_lib"
6132 break
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 fi
6138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6139   done
6140 fi
6141 LIBS=$ac_func_search_save_LIBS
6142 fi
6143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6145 if test "$ac_cv_search_opendir" != no; then
6146   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6147
6148 fi
6149
6150 else
6151   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6153 if test "${ac_cv_search_opendir+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   ac_func_search_save_LIBS=$LIBS
6157 ac_cv_search_opendir=no
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165
6166 /* Override any gcc2 internal prototype to avoid an error.  */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 /* We use char because int might match the return type of a gcc2
6171    builtin and then its argument prototype would still apply.  */
6172 char opendir ();
6173 int
6174 main ()
6175 {
6176 opendir ();
6177   ;
6178   return 0;
6179 }
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183   (eval $ac_link) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -s conftest$ac_exeext'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   ac_cv_search_opendir="none required"
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 fi
6199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 if test "$ac_cv_search_opendir" = no; then
6201   for ac_lib in x; do
6202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6203     cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211 /* Override any gcc2 internal prototype to avoid an error.  */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 /* We use char because int might match the return type of a gcc2
6216    builtin and then its argument prototype would still apply.  */
6217 char opendir ();
6218 int
6219 main ()
6220 {
6221 opendir ();
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228   (eval $ac_link) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } &&
6232          { ac_try='test -s conftest$ac_exeext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   ac_cv_search_opendir="-l$ac_lib"
6239 break
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 fi
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246   done
6247 fi
6248 LIBS=$ac_func_search_save_LIBS
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6252 if test "$ac_cv_search_opendir" != no; then
6253   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6254
6255 fi
6256
6257 fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6268 do
6269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6270 echo "$as_me:$LINENO: checking for $ac_func" >&5
6271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6272 if eval "test \"\${$as_ac_var+set}\" = set"; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 /* System header to define __stub macros and hopefully few prototypes,
6283     which can conflict with char $ac_func (); below.
6284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6285     <limits.h> exists even on freestanding compilers.  */
6286 #ifdef __STDC__
6287 # include <limits.h>
6288 #else
6289 # include <assert.h>
6290 #endif
6291 /* Override any gcc2 internal prototype to avoid an error.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 {
6295 #endif
6296 /* We use char because int might match the return type of a gcc2
6297    builtin and then its argument prototype would still apply.  */
6298 char $ac_func ();
6299 /* The GNU C library defines this for functions which it implements
6300     to always fail with ENOSYS.  Some functions are actually named
6301     something starting with __ and the normal name is an alias.  */
6302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 choke me
6304 #else
6305 char (*f) () = $ac_func;
6306 #endif
6307 #ifdef __cplusplus
6308 }
6309 #endif
6310
6311 int
6312 main ()
6313 {
6314 return f != $ac_func;
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321   (eval $ac_link) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 eval "$as_ac_var=no"
6337 fi
6338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6339 fi
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6342 if test `eval echo '${'$as_ac_var'}'` = yes; then
6343   cat >>confdefs.h <<_ACEOF
6344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6345 _ACEOF
6346
6347 fi
6348 done
6349
6350
6351
6352 for ac_func in nanosleep nl_langinfo
6353 do
6354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6355 echo "$as_me:$LINENO: checking for $ac_func" >&5
6356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_var+set}\" = set"; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   cat >conftest.$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 /* System header to define __stub macros and hopefully few prototypes,
6368     which can conflict with char $ac_func (); below.
6369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6370     <limits.h> exists even on freestanding compilers.  */
6371 #ifdef __STDC__
6372 # include <limits.h>
6373 #else
6374 # include <assert.h>
6375 #endif
6376 /* Override any gcc2 internal prototype to avoid an error.  */
6377 #ifdef __cplusplus
6378 extern "C"
6379 {
6380 #endif
6381 /* We use char because int might match the return type of a gcc2
6382    builtin and then its argument prototype would still apply.  */
6383 char $ac_func ();
6384 /* The GNU C library defines this for functions which it implements
6385     to always fail with ENOSYS.  Some functions are actually named
6386     something starting with __ and the normal name is an alias.  */
6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6388 choke me
6389 #else
6390 char (*f) () = $ac_func;
6391 #endif
6392 #ifdef __cplusplus
6393 }
6394 #endif
6395
6396 int
6397 main ()
6398 {
6399 return f != $ac_func;
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406   (eval $ac_link) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -s conftest$ac_exeext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   eval "$as_ac_var=yes"
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 eval "$as_ac_var=no"
6422 fi
6423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6424 fi
6425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6427 if test `eval echo '${'$as_ac_var'}'` = yes; then
6428   cat >>confdefs.h <<_ACEOF
6429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6430 _ACEOF
6431
6432 fi
6433 done
6434
6435
6436 for ac_header in varargs.h
6437 do
6438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440   echo "$as_me:$LINENO: checking for $ac_header" >&5
6441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 fi
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447 else
6448   # Is the header compilable?
6449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 $ac_includes_default
6459 #include <$ac_header>
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463   (eval $ac_compile) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -s conftest.$ac_objext'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; }; then
6473   ac_header_compiler=yes
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ac_header_compiler=no
6479 fi
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6483
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 #include <$ac_header>
6495 _ACEOF
6496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6498   ac_status=$?
6499   grep -v '^ *+' conftest.er1 >conftest.err
6500   rm -f conftest.er1
6501   cat conftest.err >&5
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } >/dev/null; then
6504   if test -s conftest.err; then
6505     ac_cpp_err=$ac_c_preproc_warn_flag
6506   else
6507     ac_cpp_err=
6508   fi
6509 else
6510   ac_cpp_err=yes
6511 fi
6512 if test -z "$ac_cpp_err"; then
6513   ac_header_preproc=yes
6514 else
6515   echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518   ac_header_preproc=no
6519 fi
6520 rm -f conftest.err conftest.$ac_ext
6521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522 echo "${ECHO_T}$ac_header_preproc" >&6
6523
6524 # So?  What about this header?
6525 case $ac_header_compiler:$ac_header_preproc in
6526   yes:no )
6527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531     (
6532       cat <<\_ASBOX
6533 ## ------------------------------------ ##
6534 ## Report this to bug-autoconf@gnu.org. ##
6535 ## ------------------------------------ ##
6536 _ASBOX
6537     ) |
6538       sed "s/^/$as_me: WARNING:     /" >&2
6539     ;;
6540   no:yes )
6541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6547     (
6548       cat <<\_ASBOX
6549 ## ------------------------------------ ##
6550 ## Report this to bug-autoconf@gnu.org. ##
6551 ## ------------------------------------ ##
6552 _ASBOX
6553     ) |
6554       sed "s/^/$as_me: WARNING:     /" >&2
6555     ;;
6556 esac
6557 echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   eval "$as_ac_Header=$ac_header_preproc"
6563 fi
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566
6567 fi
6568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6569   cat >>confdefs.h <<_ACEOF
6570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6571 _ACEOF
6572
6573 fi
6574
6575 done
6576
6577
6578 # End of readline/conio stuff
6579 # -----------------------------------------------------------------------
6580
6581
6582 # ---------------------------------------------------
6583 # Check for GMP support/directory
6584 # ---------------------------------------------------
6585 #GMP_SRC=
6586 #local_gmp="no"
6587 #AC_ARG_WITH(gmp,
6588 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6589 #  [
6590 #     case "$with_gmp" in
6591 #     no) : ;;
6592 #     yes|*)
6593 #       if test "$with_gmp" != "yes"; then
6594 #         GMP_INC="-I$with_gmp"
6595 #         GMP_LIBS="-lgmp"
6596 #         GMP_LDFLAGS="-L$with_gmp"
6597 #       else
6598 #          with_gmp="/usr/include"
6599 #       fi
6600 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6601 #          [ AC_MSG_RESULT(yes)
6602 #            AC_DEFINE(HAVE_GMP)
6603 #            GMP_LIBS="-lgmp"
6604 #            got_gmp="yes"
6605 #          ],
6606 #          [ AC_MSG_ERROR([*** gmp library missing])
6607 #          ]
6608 #       )
6609 #       ;;
6610 #     esac
6611 #  ],[
6612 #    # check for standard gmp library
6613 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6614 #    [ AC_MSG_RESULT(yes)
6615 #      AC_DEFINE(HAVE_GMP)
6616 #      got_gmp="yes"
6617 #      GMP_INC=
6618 #      GMP_LIBS="-lgmp"
6619 #    ], [
6620 #      # Did not find standard library, so use our own
6621 #      AC_MSG_RESULT(yes)
6622 #      AC_DEFINE(HAVE_GMP)
6623 #      got_gmp="yes"
6624 #      local_gmp="yes"
6625 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6626 #      GMP_LIBS="-lgmp"
6627 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6628 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6629 #    ])
6630 #  ]
6631 #)
6632 #AC_SUBST(GMP_INC)
6633 #AC_SUBST(GMP_LIBS)
6634 #AC_SUBST(GMP_LDFLAGS)
6635 #AC_SUBST(GMP_SRC)
6636
6637 # End of GMP stuff
6638 # -----------------------------------------------------------------------
6639
6640
6641 # ---------------------------------------------------
6642 # Check for CWEB support/directory
6643 # ---------------------------------------------------
6644 #CWEB_SRC=
6645 #CWEB=/bin
6646 #local_cweb="no"
6647 #AC_ARG_WITH(cweb,
6648 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6649 #  [
6650 #     case "$with_cweb" in
6651 #     no) : ;;
6652 #     yes|*)
6653 #       if test "$with_cweb" != "yes"; then
6654 #         CWEB_INC="-I$with_cweb"
6655 #         CWEB_LIBS="-lcweb"
6656 #         CWEB_LDFLAGS="-L$with_cweb"
6657 #       else
6658 #          with_cweb="/usr/include"
6659 #       fi
6660 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6661 #          [ AC_MSG_RESULT(yes)
6662 #            AC_DEFINE(HAVE_CWEB)
6663 #            CWEB_LIBS="-lcweb"
6664 #            got_cweb="yes"
6665 #          ],
6666 #          [ AC_MSG_ERROR([*** cweb library missing])
6667 #          ]
6668 #       )
6669 #       ;;
6670 #     esac
6671 #  ],[
6672 #    # check for standard cweb library
6673 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6674 #    [ AC_MSG_RESULT(yes)
6675 #      AC_DEFINE(HAVE_CWEB)
6676 #      got_cweb="yes"
6677 #      CWEB_INC=
6678 #      CWEB_LIBS="-lcweb"
6679 #    ], [
6680 #      # Did not find starndard library, so use our own
6681 #      AC_MSG_RESULT(yes)
6682 #      AC_DEFINE(HAVE_CWEB)
6683 #      got_cweb="yes"
6684 #      local_cweb="yes"
6685 #      CWEB=${TOP_DIR}/depkgs/cweb
6686 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6687 #      CWEB_LIBS="-lcweb"
6688 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6689 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6690 #    ])
6691 #  ]
6692 #)
6693 #AC_SUBST(CWEB)
6694 #AC_SUBST(CWEB_INC)
6695 #AC_SUBST(CWEB_LIBS)
6696 #AC_SUBST(CWEB_LDFLAGS)
6697 #AC_SUBST(CWEB_SRC)
6698
6699 # End of CWEB stuff
6700 # -----------------------------------------------------------------------
6701
6702
6703
6704 # -----------------------------------------------------------
6705 # Check whether user wants TCP wrappers support (default off)
6706 # -----------------------------------------------------------
6707 TCPW_MSG="no"
6708
6709 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6710 if test "${with_tcp_wrappers+set}" = set; then
6711   withval="$with_tcp_wrappers"
6712
6713     if test "x$withval" != "xno" ; then
6714        saved_LIBS="$LIBS"
6715        LIBS="$saved_LIBS -lwrap"
6716        echo "$as_me:$LINENO: checking for libwrap" >&5
6717 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6718        cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725  #include <tcpd.h>
6726              int deny_severity = 0;
6727              int allow_severity = 0;
6728              struct request_info *req;
6729 int
6730 main ()
6731 {
6732  hosts_access(req);
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest$ac_exeext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749
6750             echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6752             cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_LIBWRAP 1
6754 _ACEOF
6755
6756             TCPW_MSG="yes"
6757
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762
6763             LIBS="$saved_LIBS -lwrap -lnsl"
6764             cat >conftest.$ac_ext <<_ACEOF
6765 #line $LINENO "configure"
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771  #include <tcpd.h>
6772                  int deny_severity = 0;
6773                  int allow_severity = 0;
6774                  struct request_info *req;
6775 int
6776 main ()
6777 {
6778  hosts_access(req);
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -s conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795
6796                  echo "$as_me:$LINENO: result: yes" >&5
6797 echo "${ECHO_T}yes" >&6
6798                  cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_LIBWRAP 1
6800 _ACEOF
6801
6802                  TCPW_MSG="yes"
6803
6804 else
6805   echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6809 echo "$as_me: error: *** libwrap missing" >&2;}
6810    { (exit 1); exit 1; }; }
6811
6812 fi
6813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814
6815 fi
6816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817     fi
6818
6819
6820 fi;
6821
6822 # ------------------------------------------
6823 # Where to place working dir
6824 # ------------------------------------------
6825 working_dir=`eval echo ${prefix}/var/bacula/working`
6826
6827 # Check whether --with-working-dir or --without-working-dir was given.
6828 if test "${with_working_dir+set}" = set; then
6829   withval="$with_working_dir"
6830
6831        if test "x$withval" != "xno" ; then
6832               working_dir=$withval
6833        fi
6834
6835
6836 fi;
6837
6838
6839
6840
6841 # ------------------------------------------
6842 # Where to place scriptdir (script files)
6843 # ------------------------------------------
6844 scriptdir=`eval echo ${sysconfdir}`
6845
6846 # Check whether --with-scriptdir or --without-scriptdir was given.
6847 if test "${with_scriptdir+set}" = set; then
6848   withval="$with_scriptdir"
6849
6850        if test "x$withval" != "xno" ; then
6851               scriptdir=$withval
6852        fi
6853
6854
6855 fi;
6856
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to send dump email
6862 # ------------------------------------------
6863 dump_email=root@localhost
6864
6865 # Check whether --with-dump-email or --without-dump-email was given.
6866 if test "${with_dump_email+set}" = set; then
6867   withval="$with_dump_email"
6868
6869        if test "x$withval" != "xno" ; then
6870               dump_email=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878 # ------------------------------------------
6879 # Where to send job email
6880 # ------------------------------------------
6881 job_email=root@localhost
6882
6883 # Check whether --with-job-email or --without-job-email was given.
6884 if test "${with_job_email+set}" = set; then
6885   withval="$with_job_email"
6886
6887        if test "x$withval" != "xno" ; then
6888               job_email=$withval
6889        fi
6890
6891
6892 fi;
6893
6894
6895
6896 # ------------------------------------------
6897 # Where to find smtp host
6898 # ------------------------------------------
6899 smtp_host=localhost
6900
6901 # Check whether --with-smtp_host or --without-smtp_host was given.
6902 if test "${with_smtp_host+set}" = set; then
6903   withval="$with_smtp_host"
6904
6905        if test "x$withval" != "xno" ; then
6906               smtp_host=$withval
6907        fi
6908
6909
6910 fi;
6911
6912
6913
6914
6915 # ------------------------------------
6916 # Where to place pid files
6917 # ------------------------------------
6918 piddir=/var/run
6919
6920 # Check whether --with-pid-dir or --without-pid-dir was given.
6921 if test "${with_pid_dir+set}" = set; then
6922   withval="$with_pid_dir"
6923
6924         if test "x$withval" != "xno" ; then
6925             piddir=$withval
6926         fi
6927
6928
6929 fi;
6930
6931 cat >>confdefs.h <<_ACEOF
6932 #define _PATH_BACULA_PIDDIR "$piddir"
6933 _ACEOF
6934
6935
6936
6937
6938 # ------------------------------------
6939 # Where to place subsys "lock file"
6940 # ------------------------------------
6941 subsysdir=/var/run/subsys
6942
6943 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6944 if test "${with_subsys_dir+set}" = set; then
6945   withval="$with_subsys_dir"
6946
6947         if test "x$withval" != "xno" ; then
6948             subsysdir=$withval
6949         fi
6950
6951
6952 fi;
6953
6954
6955
6956
6957
6958 # ------------------------------------
6959 # Where to start assigning ports
6960 # ------------------------------------
6961 baseport=9101
6962
6963 # Check whether --with-baseport or --without-baseport was given.
6964 if test "${with_baseport+set}" = set; then
6965   withval="$with_baseport"
6966
6967         if test "x$withval" != "xno" ; then
6968              baseport=$withval
6969         fi
6970
6971
6972 fi;
6973
6974
6975 dir_port=`expr $baseport`
6976 fd_port=`expr $baseport + 1`
6977 sd_port=`expr $fd_port + 1`
6978
6979
6980
6981
6982
6983
6984 # ------------------------------------------
6985 # Generate passwords
6986 # ------------------------------------------
6987 dir_password=
6988
6989 # Check whether --with-dir-password or --without-dir-password was given.
6990 if test "${with_dir_password+set}" = set; then
6991   withval="$with_dir_password"
6992
6993        if test "x$withval" != "xno" ; then
6994            dir_password=$withval
6995        fi
6996
6997
6998 fi;
6999
7000 if test "x$dir_password" = "x" ; then
7001    if test "x$OPENSSL" = "xnone" ; then
7002 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7003       key=`autoconf/randpass 33`
7004    else
7005       key=`openssl rand -base64 33`
7006    fi
7007    dir_password=$key
7008 fi
7009
7010 fd_password=
7011
7012 # Check whether --with-fd-password or --without-fd-password was given.
7013 if test "${with_fd_password+set}" = set; then
7014   withval="$with_fd_password"
7015
7016        if test "x$withval" != "xno" ; then
7017            fd_password=$withval
7018        fi
7019
7020
7021 fi;
7022
7023 if test "x$fd_password" = "x" ; then
7024    if test "x$OPENSSL" = "xnone" ; then
7025 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7026       key=`autoconf/randpass 37`
7027    else
7028       key=`openssl rand -base64 33`
7029    fi
7030    fd_password=$key
7031 fi
7032
7033 sd_password=
7034
7035 # Check whether --with-sd-password or --without-sd-password was given.
7036 if test "${with_sd_password+set}" = set; then
7037   withval="$with_sd_password"
7038
7039        if test "x$withval" != "xno" ; then
7040            sd_password=$withval
7041        fi
7042
7043
7044 fi;
7045
7046 if test "x$sd_password" = "x" ; then
7047    if test "x$OPENSSL" = "xnone" ; then
7048 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7049       key=`autoconf/randpass 41`
7050    else
7051       key=`openssl rand -base64 33`
7052    fi
7053    sd_password=$key
7054 fi
7055
7056 mon_dir_password=
7057
7058 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7059 if test "${with_mon_dir_password+set}" = set; then
7060   withval="$with_mon_dir_password"
7061
7062        if test "x$withval" != "xno" ; then
7063            mon_dir_password=$withval
7064        fi
7065
7066
7067 fi;
7068
7069 if test "x$mon_dir_password" = "x" ; then
7070    if test "x$OPENSSL" = "xnone" ; then
7071 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7072       key=`autoconf/randpass 33`
7073    else
7074       key=`openssl rand -base64 33`
7075    fi
7076    mon_dir_password=$key
7077 fi
7078
7079 mon_fd_password=
7080
7081 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7082 if test "${with_mon_fd_password+set}" = set; then
7083   withval="$with_mon_fd_password"
7084
7085        if test "x$withval" != "xno" ; then
7086            mon_fd_password=$withval
7087        fi
7088
7089
7090 fi;
7091
7092 if test "x$mon_fd_password" = "x" ; then
7093    if test "x$OPENSSL" = "xnone" ; then
7094 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7095       key=`autoconf/randpass 37`
7096    else
7097       key=`openssl rand -base64 33`
7098    fi
7099    mon_fd_password=$key
7100 fi
7101
7102 mon_sd_password=
7103
7104 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7105 if test "${with_mon_sd_password+set}" = set; then
7106   withval="$with_mon_sd_password"
7107
7108        if test "x$withval" != "xno" ; then
7109            mon_sd_password=$withval
7110        fi
7111
7112
7113 fi;
7114
7115 if test "x$mon_sd_password" = "x" ; then
7116    if test "x$OPENSSL" = "xnone" ; then
7117 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7118       key=`autoconf/randpass 41`
7119    else
7120       key=`openssl rand -base64 33`
7121    fi
7122    mon_sd_password=$key
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132 #
7133 # Handle users and groups for each daemon
7134 #
7135 dir_user=
7136
7137 # Check whether --with-dir_user or --without-dir_user was given.
7138 if test "${with_dir_user+set}" = set; then
7139   withval="$with_dir_user"
7140
7141         if test "x$withval" != "x" ; then
7142              dir_user=$withval
7143         fi
7144
7145
7146 fi;
7147
7148 dir_group=
7149
7150 # Check whether --with-dir_group or --without-dir_group was given.
7151 if test "${with_dir_group+set}" = set; then
7152   withval="$with_dir_group"
7153
7154         if test "x$withval" != "x" ; then
7155              dir_group=$withval
7156         fi
7157
7158
7159 fi;
7160
7161 sd_user=
7162
7163 # Check whether --with-sd_user or --without-sd_user was given.
7164 if test "${with_sd_user+set}" = set; then
7165   withval="$with_sd_user"
7166
7167         if test "x$withval" != "x" ; then
7168              sd_user=$withval
7169         fi
7170
7171
7172 fi;
7173
7174 sd_group=
7175
7176 # Check whether --with-sd_group or --without-sd_group was given.
7177 if test "${with_sd_group+set}" = set; then
7178   withval="$with_sd_group"
7179
7180         if test "x$withval" != "x" ; then
7181              sd_group=$withval
7182         fi
7183
7184
7185 fi;
7186
7187 fd_user=
7188
7189 # Check whether --with-fd_user or --without-fd_user was given.
7190 if test "${with_fd_user+set}" = set; then
7191   withval="$with_fd_user"
7192
7193         if test "x$withval" != "x" ; then
7194              fd_user=$withval
7195         fi
7196
7197
7198 fi;
7199
7200 fd_group=
7201
7202 # Check whether --with-fd_group or --without-fd_group was given.
7203 if test "${with_fd_group+set}" = set; then
7204   withval="$with_fd_group"
7205
7206         if test "x$withval" != "x" ; then
7207              fd_group=$withval
7208         fi
7209
7210
7211 fi;
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 #
7224 # allow setting default executable permissions
7225 #
7226 SBINPERM=0754
7227
7228 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7229 if test "${with_sbin_perm+set}" = set; then
7230   withval="$with_sbin_perm"
7231
7232         if test "x$withval" != "x" ; then
7233             SBINPERM=$withval
7234         fi
7235
7236
7237 fi;
7238
7239
7240
7241 # ------------------------------------------------
7242 # Bacula check for various SQL database engines
7243 # ------------------------------------------------
7244
7245 db_found=no
7246 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7247 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7248
7249 # Check whether --with-postgresql or --without-postgresql was given.
7250 if test "${with_postgresql+set}" = set; then
7251   withval="$with_postgresql"
7252
7253   if test "$withval" != "no"; then
7254       if test "$db_found" = "yes"; then
7255           echo "$as_me:$LINENO: result: error" >&5
7256 echo "${ECHO_T}error" >&6
7257           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7258 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7259    { (exit 1); exit 1; }; };
7260       fi
7261       if test "$withval" = "yes"; then
7262           if test -f /usr/local/include/libpq-fe.h; then
7263               POSTGRESQL_INCDIR=/usr/local/include
7264               POSTGRESQL_LIBDIR=/usr/local/lib
7265               POSTGRESQL_BINDIR=/usr/local/bin
7266           elif test -f /usr/include/libpq-fe.h; then
7267               POSTGRESQL_INCDIR=/usr/include
7268               POSTGRESQL_LIBDIR=/usr/lib
7269               POSTGRESQL_BINDIR=/usr/bin
7270           elif test -f /usr/include/pgsql/libpq-fe.h; then
7271               POSTGRESQL_INCDIR=/usr/include/pgsql
7272               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7273               POSTGRESQL_BINDIR=/usr/bin
7274           elif test -f /usr/include/postgresql/libpq-fe.h; then
7275               POSTGRESQL_INCDIR=/usr/include/postgresql
7276               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7277               POSTGRESQL_BINDIR=/usr/bin
7278           else
7279               echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7282 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7283    { (exit 1); exit 1; }; }
7284           fi
7285       elif test -f $withval/include/libpq-fe.h; then
7286           POSTGRESQL_INCDIR=$withval/include
7287           POSTGRESQL_LIBDIR=$withval/lib
7288           POSTGRESQL_BINDIR=$withval/bin
7289       else
7290           echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7293 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7294    { (exit 1); exit 1; }; }
7295       fi
7296       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7297       echo "$as_me:$LINENO: checking for crypt" >&5
7298 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7299 if test "${ac_cv_func_crypt+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 /* System header to define __stub macros and hopefully few prototypes,
7310     which can conflict with char crypt (); below.
7311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7312     <limits.h> exists even on freestanding compilers.  */
7313 #ifdef __STDC__
7314 # include <limits.h>
7315 #else
7316 # include <assert.h>
7317 #endif
7318 /* Override any gcc2 internal prototype to avoid an error.  */
7319 #ifdef __cplusplus
7320 extern "C"
7321 {
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324    builtin and then its argument prototype would still apply.  */
7325 char crypt ();
7326 /* The GNU C library defines this for functions which it implements
7327     to always fail with ENOSYS.  Some functions are actually named
7328     something starting with __ and the normal name is an alias.  */
7329 #if defined (__stub_crypt) || defined (__stub___crypt)
7330 choke me
7331 #else
7332 char (*f) () = crypt;
7333 #endif
7334 #ifdef __cplusplus
7335 }
7336 #endif
7337
7338 int
7339 main ()
7340 {
7341 return f != crypt;
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7348   (eval $ac_link) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -s conftest$ac_exeext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_func_crypt=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 ac_cv_func_crypt=no
7364 fi
7365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7368 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7369 if test $ac_cv_func_crypt = yes; then
7370   :
7371 else
7372   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7373 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7374 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lcrypt  $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386
7387 /* Override any gcc2 internal prototype to avoid an error.  */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char crypt ();
7394 int
7395 main ()
7396 {
7397 crypt ();
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404   (eval $ac_link) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } &&
7408          { ac_try='test -s conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   ac_cv_lib_crypt_crypt=yes
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_lib_crypt_crypt=no
7420 fi
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7423 fi
7424 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7425 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7426 if test $ac_cv_lib_crypt_crypt = yes; then
7427   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7428 fi
7429
7430 fi
7431
7432       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7433       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7434       SQL_BINDIR=$POSTGRESQL_BINDIR
7435       cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_POSTGRESQL 1
7437 _ACEOF
7438
7439       echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7441       db_found=yes
7442       support_postgresql=yes
7443       db_name=PostgreSQL
7444       DB_NAME=postgresql
7445   else
7446       echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448   fi
7449
7450 else
7451
7452   echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7454
7455 fi;
7456
7457
7458
7459
7460
7461
7462
7463 db_found=no
7464 echo "$as_me:$LINENO: checking for MySQL support" >&5
7465 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7466
7467 # Check whether --with-mysql or --without-mysql was given.
7468 if test "${with_mysql+set}" = set; then
7469   withval="$with_mysql"
7470
7471   if test "$withval" != "no"; then
7472         if test "$withval" = "yes"; then
7473                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7474                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7475                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7476                         MYSQL_BINDIR=/usr/local/mysql/bin
7477                 elif test -f /usr/include/mysql/mysql.h; then
7478                         MYSQL_INCDIR=/usr/include/mysql
7479                         MYSQL_LIBDIR=/usr/lib/mysql
7480                         MYSQL_BINDIR=/usr/bin
7481                 elif test -f /usr/include/mysql.h; then
7482                         MYSQL_INCDIR=/usr/include
7483                         MYSQL_LIBDIR=/usr/lib
7484                         MYSQL_BINDIR=/usr/bin
7485                 elif test -f /usr/local/include/mysql/mysql.h; then
7486                         MYSQL_INCDIR=/usr/local/include/mysql
7487                         MYSQL_LIBDIR=/usr/local/lib/mysql
7488                         MYSQL_BINDIR=/usr/local/bin
7489                 elif test -f /usr/local/include/mysql.h; then
7490                         MYSQL_INCDIR=/usr/local/include
7491                         MYSQL_LIBDIR=/usr/local/lib
7492                         MYSQL_BINDIR=/usr/local/bin
7493                 else
7494                    echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7498    { (exit 1); exit 1; }; }
7499                 fi
7500         else
7501                 if test -f $withval/include/mysql/mysql.h; then
7502                         MYSQL_INCDIR=$withval/include/mysql
7503                         MYSQL_LIBDIR=$withval/lib/mysql
7504                         MYSQL_BINDIR=$withval/bin
7505                 elif test -f $withval/include/mysql.h; then
7506                         MYSQL_INCDIR=$withval/include
7507                         MYSQL_LIBDIR=$withval/lib
7508                         MYSQL_BINDIR=$withval/bin
7509                 else
7510                    echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7513 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7514    { (exit 1); exit 1; }; }
7515                 fi
7516         fi
7517     SQL_INCLUDE=-I$MYSQL_INCDIR
7518     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7519        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7520        cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_THREAD_SAFE_MYSQL 1
7522 _ACEOF
7523
7524     else
7525        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7526     fi
7527     SQL_BINDIR=$MYSQL_BINDIR
7528
7529     cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_MYSQL 1
7531 _ACEOF
7532
7533     echo "$as_me:$LINENO: result: yes" >&5
7534 echo "${ECHO_T}yes" >&6
7535     db_found=yes
7536     support_mysql=yes
7537     db_name=MySQL
7538     DB_NAME=mysql
7539
7540   else
7541         echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7543   fi
7544
7545
7546 fi;
7547
7548
7549 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7550 if test "${with_embedded_mysql+set}" = set; then
7551   withval="$with_embedded_mysql"
7552
7553   if test "$withval" != "no"; then
7554         if test "$withval" = "yes"; then
7555                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7556                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7557                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7558                         MYSQL_BINDIR=/usr/local/mysql/bin
7559                 elif test -f /usr/include/mysql/mysql.h; then
7560                         MYSQL_INCDIR=/usr/include/mysql
7561                         MYSQL_LIBDIR=/usr/lib/mysql
7562                         MYSQL_BINDIR=/usr/bin
7563                 elif test -f /usr/include/mysql.h; then
7564                         MYSQL_INCDIR=/usr/include
7565                         MYSQL_LIBDIR=/usr/lib
7566                         MYSQL_BINDIR=/usr/bin
7567                 elif test -f /usr/local/include/mysql/mysql.h; then
7568                         MYSQL_INCDIR=/usr/local/include/mysql
7569                         MYSQL_LIBDIR=/usr/local/lib/mysql
7570                         MYSQL_BINDIR=/usr/local/bin
7571                 elif test -f /usr/local/include/mysql.h; then
7572                         MYSQL_INCDIR=/usr/local/include
7573                         MYSQL_LIBDIR=/usr/local/lib
7574                         MYSQL_BINDIR=/usr/local/bin
7575                 else
7576                    echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7578                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7579 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7580    { (exit 1); exit 1; }; }
7581                 fi
7582         else
7583                 if test -f $withval/include/mysql/mysql.h; then
7584                         MYSQL_INCDIR=$withval/include/mysql
7585                         MYSQL_LIBDIR=$withval/lib/mysql
7586                         MYSQL_BINDIR=$withval/bin
7587                 elif test -f $withval/include/mysql.h; then
7588                         MYSQL_INCDIR=$withval/include
7589                         MYSQL_LIBDIR=$withval/lib
7590                         MYSQL_BINDIR=$withval/bin
7591                 else
7592                    echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7595 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7596    { (exit 1); exit 1; }; }
7597                 fi
7598         fi
7599     SQL_INCLUDE=-I$MYSQL_INCDIR
7600     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7601     SQL_BINDIR=$MYSQL_BINDIR
7602
7603     cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_MYSQL 1
7605 _ACEOF
7606
7607     cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_EMBEDDED_MYSQL 1
7609 _ACEOF
7610
7611     echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6
7613     db_found=yes
7614     support_mysql=yes
7615     db_name=MySQL
7616     DB_NAME=mysql
7617
7618   else
7619         echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7621   fi
7622
7623
7624 fi;
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 db_found=no
7635 echo "$as_me:$LINENO: checking for SQLite support" >&5
7636 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7637
7638 # Check whether --with-sqlite or --without-sqlite was given.
7639 if test "${with_sqlite+set}" = set; then
7640   withval="$with_sqlite"
7641
7642   if test "$withval" != "no"; then
7643      if test "$withval" = "yes"; then
7644         if test -f /usr/local/include/sqlite.h; then
7645            SQLITE_INCDIR=/usr/local/include
7646            SQLITE_LIBDIR=/usr/local/lib
7647            SQLITE_BINDIR=/usr/local/bin
7648         elif test -f /usr/include/sqlite.h; then
7649            SQLITE_INCDIR=/usr/include
7650            SQLITE_LIBDIR=/usr/lib
7651            SQLITE_BINDIR=/usr/bin
7652         else
7653            echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6
7655            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7656 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7657    { (exit 1); exit 1; }; }
7658         fi
7659      else
7660         if test -f $withval/sqlite.h; then
7661            SQLITE_INCDIR=$withval
7662            SQLITE_LIBDIR=$withval
7663            SQLITE_BINDIR=$withval
7664         else
7665            echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7668 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7669    { (exit 1); exit 1; }; }
7670         fi
7671      fi
7672      SQL_INCLUDE=-I$SQLITE_INCDIR
7673      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7674      SQL_BINDIR=$SQLITE_BINDIR
7675
7676      cat >>confdefs.h <<\_ACEOF
7677 #define HAVE_SQLITE 1
7678 _ACEOF
7679
7680      echo "$as_me:$LINENO: result: yes" >&5
7681 echo "${ECHO_T}yes" >&6
7682      db_found=yes
7683      support_sqlite=yes
7684      db_name=SQLite
7685      DB_NAME=sqlite
7686
7687   else
7688      echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7690   fi
7691
7692 else
7693
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696
7697 fi;
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define PROTOTYPES 1
7709 _ACEOF
7710
7711
7712 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7713     if test -z "$CCOPTS"; then
7714         CCOPTS='-g -O2 -Wall'
7715     fi
7716     CFLAGS="$CCOPTS"
7717 fi
7718
7719
7720
7721
7722 largefile_support="no"
7723
7724    # Check whether --enable-largefile or --disable-largefile was given.
7725 if test "${enable_largefile+set}" = set; then
7726   enableval="$enable_largefile"
7727
7728 fi;
7729    if test "$enable_largefile" != no; then
7730      if test -n "$ac_tool_prefix"; then
7731   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7732 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7733 echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7735 if test "${ac_cv_prog_GETCONF+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   if test -n "$GETCONF"; then
7739   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746   for ac_exec_ext in '' $ac_executable_extensions; do
7747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753 done
7754
7755 fi
7756 fi
7757 GETCONF=$ac_cv_prog_GETCONF
7758 if test -n "$GETCONF"; then
7759   echo "$as_me:$LINENO: result: $GETCONF" >&5
7760 echo "${ECHO_T}$GETCONF" >&6
7761 else
7762   echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6
7764 fi
7765
7766 fi
7767 if test -z "$ac_cv_prog_GETCONF"; then
7768   ac_ct_GETCONF=$GETCONF
7769   # Extract the first word of "getconf", so it can be a program name with args.
7770 set dummy getconf; ac_word=$2
7771 echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776   if test -n "$ac_ct_GETCONF"; then
7777   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784   for ac_exec_ext in '' $ac_executable_extensions; do
7785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_prog_ac_ct_GETCONF="getconf"
7787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791 done
7792
7793 fi
7794 fi
7795 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7796 if test -n "$ac_ct_GETCONF"; then
7797   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7798 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7799 else
7800   echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 fi
7803
7804   GETCONF=$ac_ct_GETCONF
7805 else
7806   GETCONF="$ac_cv_prog_GETCONF"
7807 fi
7808
7809      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7810 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7811 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7815         ac_cv_sys_largefile_CFLAGS=no
7816         case "$host_os" in
7817            # IRIX 6.2 and later require cc -n32.
7818            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7819              if test "$GCC" != yes; then
7820                ac_cv_sys_largefile_CFLAGS=-n32
7821              fi
7822              ac_save_CC="$CC"
7823              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7824              cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 int
7833 main ()
7834 {
7835
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842   (eval $ac_link) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } &&
7846          { ac_try='test -s conftest$ac_exeext'
7847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; }; then
7852   :
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 ac_cv_sys_largefile_CFLAGS=no
7858 fi
7859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7860              CC="$ac_save_CC"
7861            esac
7862       }
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7865 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7866      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7867 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7868 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7872         ac_cv_sys_largefile_LDFLAGS=no
7873
7874       }
7875 fi
7876 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7877 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7878      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7879 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7880 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7884         ac_cv_sys_largefile_LIBS=no
7885
7886       }
7887 fi
7888 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7889 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7890
7891      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7892        case "$ac_flag" in
7893        no) ;;
7894        -D_FILE_OFFSET_BITS=*) ;;
7895        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7896        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7897        -D?* | -I?*)
7898          case "$ac_flag" in
7899    no) ;;
7900    ?*)
7901      case "$CPPFLAGS" in
7902      '') CPPFLAGS="$ac_flag" ;;
7903      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7904      esac ;;
7905    esac ;;
7906        *)
7907          case "$ac_flag" in
7908    no) ;;
7909    ?*)
7910      case "$CFLAGS" in
7911      '') CFLAGS="$ac_flag" ;;
7912      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7913      esac ;;
7914    esac ;;
7915        esac
7916      done
7917      case "$ac_cv_sys_largefile_LDFLAGS" in
7918    no) ;;
7919    ?*)
7920      case "$LDFLAGS" in
7921      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7922      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7923      esac ;;
7924    esac
7925      case "$ac_cv_sys_largefile_LIBS" in
7926    no) ;;
7927    ?*)
7928      case "$LIBS" in
7929      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7930      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7931      esac ;;
7932    esac
7933      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7934 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   ac_cv_sys_file_offset_bits=no
7939       case "$host_os" in
7940         # HP-UX 10.20 and later
7941         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7942           ac_cv_sys_file_offset_bits=64 ;;
7943         esac
7944       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7945         case "$ac_flag" in
7946         -D_FILE_OFFSET_BITS)
7947           ac_cv_sys_file_offset_bits=1 ;;
7948         -D_FILE_OFFSET_BITS=*)
7949           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7950         esac
7951       done
7952
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7955 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7956    if test "$ac_cv_sys_file_offset_bits" != no; then
7957
7958 cat >>confdefs.h <<_ACEOF
7959 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7960 _ACEOF
7961
7962    fi
7963      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7964 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7965 if test "${ac_cv_sys_largefile_source+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   ac_cv_sys_largefile_source=no
7969       case "$host_os" in
7970         # HP-UX 10.20 and later
7971         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7972           ac_cv_sys_largefile_source=1 ;;
7973         esac
7974       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7975         case "$ac_flag" in
7976         -D_LARGEFILE_SOURCE)
7977           ac_cv_sys_largefile_source=1 ;;
7978         -D_LARGEFILE_SOURCE=*)
7979           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7980         esac
7981       done
7982
7983 fi
7984 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7985 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7986    if test "$ac_cv_sys_largefile_source" != no; then
7987
7988 cat >>confdefs.h <<_ACEOF
7989 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7990 _ACEOF
7991
7992    fi
7993      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7994 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7995 if test "${ac_cv_sys_large_files+set}" = set; then
7996   echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998   ac_cv_sys_large_files=no
7999       case "$host_os" in
8000         # AIX 4.2 and later
8001         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8002           ac_cv_sys_large_files=1 ;;
8003         esac
8004       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8005         case "$ac_flag" in
8006         -D_LARGE_FILES)
8007           ac_cv_sys_large_files=1 ;;
8008         -D_LARGE_FILES=*)
8009           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8010         esac
8011       done
8012
8013 fi
8014 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8015 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8016    if test "$ac_cv_sys_large_files" != no; then
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define _LARGE_FILES $ac_cv_sys_large_files
8020 _ACEOF
8021
8022    fi
8023    fi
8024
8025
8026
8027 echo "$as_me:$LINENO: checking for X" >&5
8028 echo $ECHO_N "checking for X... $ECHO_C" >&6
8029
8030
8031 # Check whether --with-x or --without-x was given.
8032 if test "${with_x+set}" = set; then
8033   withval="$with_x"
8034
8035 fi;
8036 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8037 if test "x$with_x" = xno; then
8038   # The user explicitly disabled X.
8039   have_x=disabled
8040 else
8041   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8042     # Both variables are already set.
8043     have_x=yes
8044   else
8045     if test "${ac_cv_have_x+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   # One or both of the vars are not set, and there is no cached value.
8049 ac_x_includes=no ac_x_libraries=no
8050 rm -fr conftest.dir
8051 if mkdir conftest.dir; then
8052   cd conftest.dir
8053   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8054   cat >Imakefile <<'_ACEOF'
8055 acfindx:
8056         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8057 _ACEOF
8058   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8059     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8060     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8061     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8062     for ac_extension in a so sl; do
8063       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8064          test -f $ac_im_libdir/libX11.$ac_extension; then
8065         ac_im_usrlibdir=$ac_im_libdir; break
8066       fi
8067     done
8068     # Screen out bogus values from the imake configuration.  They are
8069     # bogus both because they are the default anyway, and because
8070     # using them would break gcc on systems where it needs fixed includes.
8071     case $ac_im_incroot in
8072         /usr/include) ;;
8073         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8074     esac
8075     case $ac_im_usrlibdir in
8076         /usr/lib | /lib) ;;
8077         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8078     esac
8079   fi
8080   cd ..
8081   rm -fr conftest.dir
8082 fi
8083
8084 # Standard set of common directories for X headers.
8085 # Check X11 before X11Rn because it is often a symlink to the current release.
8086 ac_x_header_dirs='
8087 /usr/X11/include
8088 /usr/X11R6/include
8089 /usr/X11R5/include
8090 /usr/X11R4/include
8091
8092 /usr/include/X11
8093 /usr/include/X11R6
8094 /usr/include/X11R5
8095 /usr/include/X11R4
8096
8097 /usr/local/X11/include
8098 /usr/local/X11R6/include
8099 /usr/local/X11R5/include
8100 /usr/local/X11R4/include
8101
8102 /usr/local/include/X11
8103 /usr/local/include/X11R6
8104 /usr/local/include/X11R5
8105 /usr/local/include/X11R4
8106
8107 /usr/X386/include
8108 /usr/x386/include
8109 /usr/XFree86/include/X11
8110
8111 /usr/include
8112 /usr/local/include
8113 /usr/unsupported/include
8114 /usr/athena/include
8115 /usr/local/x11r5/include
8116 /usr/lpp/Xamples/include
8117
8118 /usr/openwin/include
8119 /usr/openwin/share/include'
8120
8121 if test "$ac_x_includes" = no; then
8122   # Guess where to find include files, by looking for Intrinsic.h.
8123   # First, try using that file with no special directory specified.
8124   cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <X11/Intrinsic.h>
8132 _ACEOF
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } >/dev/null; then
8141   if test -s conftest.err; then
8142     ac_cpp_err=$ac_c_preproc_warn_flag
8143   else
8144     ac_cpp_err=
8145   fi
8146 else
8147   ac_cpp_err=yes
8148 fi
8149 if test -z "$ac_cpp_err"; then
8150   # We can compile using X headers with no special include directory.
8151 ac_x_includes=
8152 else
8153   echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156   for ac_dir in $ac_x_header_dirs; do
8157   if test -r "$ac_dir/X11/Intrinsic.h"; then
8158     ac_x_includes=$ac_dir
8159     break
8160   fi
8161 done
8162 fi
8163 rm -f conftest.err conftest.$ac_ext
8164 fi # $ac_x_includes = no
8165
8166 if test "$ac_x_libraries" = no; then
8167   # Check for the libraries.
8168   # See if we find them without any special options.
8169   # Don't add to $LIBS permanently.
8170   ac_save_LIBS=$LIBS
8171   LIBS="-lXt $LIBS"
8172   cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 #include <X11/Intrinsic.h>
8180 int
8181 main ()
8182 {
8183 XtMalloc (0)
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -s conftest$ac_exeext'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   LIBS=$ac_save_LIBS
8201 # We can link X programs with no special library path.
8202 ac_x_libraries=
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 LIBS=$ac_save_LIBS
8208 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8209 do
8210   # Don't even attempt the hair of trying to link an X program!
8211   for ac_extension in a so sl; do
8212     if test -r $ac_dir/libXt.$ac_extension; then
8213       ac_x_libraries=$ac_dir
8214       break 2
8215     fi
8216   done
8217 done
8218 fi
8219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8220 fi # $ac_x_libraries = no
8221
8222 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8223   # Didn't find X anywhere.  Cache the known absence of X.
8224   ac_cv_have_x="have_x=no"
8225 else
8226   # Record where we found X for the cache.
8227   ac_cv_have_x="have_x=yes \
8228                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8229 fi
8230 fi
8231
8232   fi
8233   eval "$ac_cv_have_x"
8234 fi # $with_x != no
8235
8236 if test "$have_x" != yes; then
8237   echo "$as_me:$LINENO: result: $have_x" >&5
8238 echo "${ECHO_T}$have_x" >&6
8239   no_x=yes
8240 else
8241   # If each of the values was on the command line, it overrides each guess.
8242   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8243   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8244   # Update the cache value to reflect the command line values.
8245   ac_cv_have_x="have_x=yes \
8246                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8247   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8248 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8249 fi
8250
8251 if test "$no_x" = yes; then
8252   # Not all programs may use this symbol, but it does not hurt to define it.
8253
8254 cat >>confdefs.h <<\_ACEOF
8255 #define X_DISPLAY_MISSING 1
8256 _ACEOF
8257
8258   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8259 else
8260   if test -n "$x_includes"; then
8261     X_CFLAGS="$X_CFLAGS -I$x_includes"
8262   fi
8263
8264   # It would also be nice to do this for all -L options, not just this one.
8265   if test -n "$x_libraries"; then
8266     X_LIBS="$X_LIBS -L$x_libraries"
8267     # For Solaris; some versions of Sun CC require a space after -R and
8268     # others require no space.  Words are not sufficient . . . .
8269     case `(uname -sr) 2>/dev/null` in
8270     "SunOS 5"*)
8271       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8272 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8273       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8274       cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292   (eval $ac_link) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -s conftest$ac_exeext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_R_nospace=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_R_nospace=no
8308 fi
8309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8310       if test $ac_R_nospace = yes; then
8311         echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6
8313         X_LIBS="$X_LIBS -R$x_libraries"
8314       else
8315         LIBS="$ac_xsave_LIBS -R $x_libraries"
8316         cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323
8324 int
8325 main ()
8326 {
8327
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334   (eval $ac_link) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_R_space=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_R_space=no
8350 fi
8351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8352         if test $ac_R_space = yes; then
8353           echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355           X_LIBS="$X_LIBS -R $x_libraries"
8356         else
8357           echo "$as_me:$LINENO: result: neither works" >&5
8358 echo "${ECHO_T}neither works" >&6
8359         fi
8360       fi
8361       LIBS=$ac_xsave_LIBS
8362     esac
8363   fi
8364
8365   # Check for system-dependent libraries X programs must link with.
8366   # Do this before checking for the system-independent R6 libraries
8367   # (-lICE), since we may need -lsocket or whatever for X linking.
8368
8369   if test "$ISC" = yes; then
8370     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8371   else
8372     # Martyn Johnson says this is needed for Ultrix, if the X
8373     # libraries were built with DECnet support.  And Karl Berry says
8374     # the Alpha needs dnet_stub (dnet does not exist).
8375     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8376     cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char XOpenDisplay ();
8391 int
8392 main ()
8393 {
8394 XOpenDisplay ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   :
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8417 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8418 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-ldnet  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 /* Override any gcc2 internal prototype to avoid an error.  */
8432 #ifdef __cplusplus
8433 extern "C"
8434 #endif
8435 /* We use char because int might match the return type of a gcc2
8436    builtin and then its argument prototype would still apply.  */
8437 char dnet_ntoa ();
8438 int
8439 main ()
8440 {
8441 dnet_ntoa ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -s conftest$ac_exeext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_lib_dnet_dnet_ntoa=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_cv_lib_dnet_dnet_ntoa=no
8464 fi
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8467 fi
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8469 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8470 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8471   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8472 fi
8473
8474     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8475       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8476 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8477 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   ac_check_lib_save_LIBS=$LIBS
8481 LIBS="-ldnet_stub  $LIBS"
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490 /* Override any gcc2 internal prototype to avoid an error.  */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 /* We use char because int might match the return type of a gcc2
8495    builtin and then its argument prototype would still apply.  */
8496 char dnet_ntoa ();
8497 int
8498 main ()
8499 {
8500 dnet_ntoa ();
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507   (eval $ac_link) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } &&
8511          { ac_try='test -s conftest$ac_exeext'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ac_cv_lib_dnet_stub_dnet_ntoa=no
8523 fi
8524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8526 fi
8527 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8528 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8529 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8530   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8531 fi
8532
8533     fi
8534 fi
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536     LIBS="$ac_xsave_LIBS"
8537
8538     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8539     # to get the SysV transport functions.
8540     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8541     # needs -lnsl.
8542     # The nsl library prevents programs from opening the X display
8543     # on Irix 5.2, according to T.E. Dickey.
8544     # The functions gethostbyname, getservbyname, and inet_addr are
8545     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8546     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8547 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8548 if test "${ac_cv_func_gethostbyname+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   cat >conftest.$ac_ext <<_ACEOF
8552 #line $LINENO "configure"
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558 /* System header to define __stub macros and hopefully few prototypes,
8559     which can conflict with char gethostbyname (); below.
8560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561     <limits.h> exists even on freestanding compilers.  */
8562 #ifdef __STDC__
8563 # include <limits.h>
8564 #else
8565 # include <assert.h>
8566 #endif
8567 /* Override any gcc2 internal prototype to avoid an error.  */
8568 #ifdef __cplusplus
8569 extern "C"
8570 {
8571 #endif
8572 /* We use char because int might match the return type of a gcc2
8573    builtin and then its argument prototype would still apply.  */
8574 char gethostbyname ();
8575 /* The GNU C library defines this for functions which it implements
8576     to always fail with ENOSYS.  Some functions are actually named
8577     something starting with __ and the normal name is an alias.  */
8578 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8579 choke me
8580 #else
8581 char (*f) () = gethostbyname;
8582 #endif
8583 #ifdef __cplusplus
8584 }
8585 #endif
8586
8587 int
8588 main ()
8589 {
8590 return f != gethostbyname;
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597   (eval $ac_link) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -s conftest$ac_exeext'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   ac_cv_func_gethostbyname=yes
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_cv_func_gethostbyname=no
8613 fi
8614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8617 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8618
8619     if test $ac_cv_func_gethostbyname = no; then
8620       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8621 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   ac_check_lib_save_LIBS=$LIBS
8626 LIBS="-lnsl  $LIBS"
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634
8635 /* Override any gcc2 internal prototype to avoid an error.  */
8636 #ifdef __cplusplus
8637 extern "C"
8638 #endif
8639 /* We use char because int might match the return type of a gcc2
8640    builtin and then its argument prototype would still apply.  */
8641 char gethostbyname ();
8642 int
8643 main ()
8644 {
8645 gethostbyname ();
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652   (eval $ac_link) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -s conftest$ac_exeext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_lib_nsl_gethostbyname=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_lib_nsl_gethostbyname=no
8668 fi
8669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8671 fi
8672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8673 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8674 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8675   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8676 fi
8677
8678       if test $ac_cv_lib_nsl_gethostbyname = no; then
8679         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8680 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8681 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-lbsd  $LIBS"
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 /* Override any gcc2 internal prototype to avoid an error.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char gethostbyname ();
8701 int
8702 main ()
8703 {
8704 gethostbyname ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } &&
8715          { ac_try='test -s conftest$ac_exeext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   ac_cv_lib_bsd_gethostbyname=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_cv_lib_bsd_gethostbyname=no
8727 fi
8728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8732 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8733 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8734   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8735 fi
8736
8737       fi
8738     fi
8739
8740     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8741     # socket/setsockopt and other routines are undefined under SCO ODT
8742     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8743     # on later versions), says Simon Leinen: it contains gethostby*
8744     # variants that don't use the name server (or something).  -lsocket
8745     # must be given before -lnsl if both are needed.  We assume that
8746     # if connect needs -lnsl, so does gethostbyname.
8747     echo "$as_me:$LINENO: checking for connect" >&5
8748 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8749 if test "${ac_cv_func_connect+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 /* System header to define __stub macros and hopefully few prototypes,
8760     which can conflict with char connect (); below.
8761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762     <limits.h> exists even on freestanding compilers.  */
8763 #ifdef __STDC__
8764 # include <limits.h>
8765 #else
8766 # include <assert.h>
8767 #endif
8768 /* Override any gcc2 internal prototype to avoid an error.  */
8769 #ifdef __cplusplus
8770 extern "C"
8771 {
8772 #endif
8773 /* We use char because int might match the return type of a gcc2
8774    builtin and then its argument prototype would still apply.  */
8775 char connect ();
8776 /* The GNU C library defines this for functions which it implements
8777     to always fail with ENOSYS.  Some functions are actually named
8778     something starting with __ and the normal name is an alias.  */
8779 #if defined (__stub_connect) || defined (__stub___connect)
8780 choke me
8781 #else
8782 char (*f) () = connect;
8783 #endif
8784 #ifdef __cplusplus
8785 }
8786 #endif
8787
8788 int
8789 main ()
8790 {
8791 return f != connect;
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798   (eval $ac_link) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -s conftest$ac_exeext'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_cv_func_connect=yes
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813 ac_cv_func_connect=no
8814 fi
8815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8816 fi
8817 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8818 echo "${ECHO_T}$ac_cv_func_connect" >&6
8819
8820     if test $ac_cv_func_connect = no; then
8821       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8822 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8823 if test "${ac_cv_lib_socket_connect+set}" = set; then
8824   echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826   ac_check_lib_save_LIBS=$LIBS
8827 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835
8836 /* Override any gcc2 internal prototype to avoid an error.  */
8837 #ifdef __cplusplus
8838 extern "C"
8839 #endif
8840 /* We use char because int might match the return type of a gcc2
8841    builtin and then its argument prototype would still apply.  */
8842 char connect ();
8843 int
8844 main ()
8845 {
8846 connect ();
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853   (eval $ac_link) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   ac_cv_lib_socket_connect=yes
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_lib_socket_connect=no
8869 fi
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8874 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8875 if test $ac_cv_lib_socket_connect = yes; then
8876   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8877 fi
8878
8879     fi
8880
8881     # Guillermo Gomez says -lposix is necessary on A/UX.
8882     echo "$as_me:$LINENO: checking for remove" >&5
8883 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8884 if test "${ac_cv_func_remove+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894 /* System header to define __stub macros and hopefully few prototypes,
8895     which can conflict with char remove (); below.
8896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897     <limits.h> exists even on freestanding compilers.  */
8898 #ifdef __STDC__
8899 # include <limits.h>
8900 #else
8901 # include <assert.h>
8902 #endif
8903 /* Override any gcc2 internal prototype to avoid an error.  */
8904 #ifdef __cplusplus
8905 extern "C"
8906 {
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909    builtin and then its argument prototype would still apply.  */
8910 char remove ();
8911 /* The GNU C library defines this for functions which it implements
8912     to always fail with ENOSYS.  Some functions are actually named
8913     something starting with __ and the normal name is an alias.  */
8914 #if defined (__stub_remove) || defined (__stub___remove)
8915 choke me
8916 #else
8917 char (*f) () = remove;
8918 #endif
8919 #ifdef __cplusplus
8920 }
8921 #endif
8922
8923 int
8924 main ()
8925 {
8926 return f != remove;
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933   (eval $ac_link) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -s conftest$ac_exeext'
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_cv_func_remove=yes
8944 else
8945   echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_cv_func_remove=no
8949 fi
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8953 echo "${ECHO_T}$ac_cv_func_remove" >&6
8954
8955     if test $ac_cv_func_remove = no; then
8956       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8957 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8958 if test "${ac_cv_lib_posix_remove+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-lposix  $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 /* Override any gcc2 internal prototype to avoid an error.  */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976    builtin and then its argument prototype would still apply.  */
8977 char remove ();
8978 int
8979 main ()
8980 {
8981 remove ();
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988   (eval $ac_link) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -s conftest$ac_exeext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_cv_lib_posix_remove=yes
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_cv_lib_posix_remove=no
9004 fi
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 LIBS=$ac_check_lib_save_LIBS
9007 fi
9008 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9009 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9010 if test $ac_cv_lib_posix_remove = yes; then
9011   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9012 fi
9013
9014     fi
9015
9016     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9017     echo "$as_me:$LINENO: checking for shmat" >&5
9018 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9019 if test "${ac_cv_func_shmat+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029 /* System header to define __stub macros and hopefully few prototypes,
9030     which can conflict with char shmat (); below.
9031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9032     <limits.h> exists even on freestanding compilers.  */
9033 #ifdef __STDC__
9034 # include <limits.h>
9035 #else
9036 # include <assert.h>
9037 #endif
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 {
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044    builtin and then its argument prototype would still apply.  */
9045 char shmat ();
9046 /* The GNU C library defines this for functions which it implements
9047     to always fail with ENOSYS.  Some functions are actually named
9048     something starting with __ and the normal name is an alias.  */
9049 #if defined (__stub_shmat) || defined (__stub___shmat)
9050 choke me
9051 #else
9052 char (*f) () = shmat;
9053 #endif
9054 #ifdef __cplusplus
9055 }
9056 #endif
9057
9058 int
9059 main ()
9060 {
9061 return f != shmat;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068   (eval $ac_link) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_func_shmat=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 ac_cv_func_shmat=no
9084 fi
9085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9088 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9089
9090     if test $ac_cv_func_shmat = no; then
9091       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9092 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9093 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096   ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-lipc  $LIBS"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105
9106 /* Override any gcc2 internal prototype to avoid an error.  */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 /* We use char because int might match the return type of a gcc2
9111    builtin and then its argument prototype would still apply.  */
9112 char shmat ();
9113 int
9114 main ()
9115 {
9116 shmat ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123   (eval $ac_link) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -s conftest$ac_exeext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_lib_ipc_shmat=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_lib_ipc_shmat=no
9139 fi
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9144 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9145 if test $ac_cv_lib_ipc_shmat = yes; then
9146   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9147 fi
9148
9149     fi
9150   fi
9151
9152   # Check for libraries that X11R6 Xt/Xaw programs need.
9153   ac_save_LDFLAGS=$LDFLAGS
9154   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9155   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9156   # check for ICE first), but we must link in the order -lSM -lICE or
9157   # we get undefined symbols.  So assume we have SM if we have ICE.
9158   # These have to be linked with before -lX11, unlike the other
9159   # libraries we check for below, so use a different variable.
9160   # John Interrante, Karl Berry
9161   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9162 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9163 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166   ac_check_lib_save_LIBS=$LIBS
9167 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9170 /* confdefs.h.  */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h.  */
9175
9176 /* Override any gcc2 internal prototype to avoid an error.  */
9177 #ifdef __cplusplus
9178 extern "C"
9179 #endif
9180 /* We use char because int might match the return type of a gcc2
9181    builtin and then its argument prototype would still apply.  */
9182 char IceConnectionNumber ();
9183 int
9184 main ()
9185 {
9186 IceConnectionNumber ();
9187   ;
9188   return 0;
9189 }
9190 _ACEOF
9191 rm -f conftest.$ac_objext conftest$ac_exeext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193   (eval $ac_link) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); } &&
9197          { ac_try='test -s conftest$ac_exeext'
9198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199   (eval $ac_try) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); }; }; then
9203   ac_cv_lib_ICE_IceConnectionNumber=yes
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_lib_ICE_IceConnectionNumber=no
9209 fi
9210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9212 fi
9213 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9214 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9215 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9216   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9217 fi
9218
9219   LDFLAGS=$ac_save_LDFLAGS
9220
9221 fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250 for ac_header in \
9251         assert.h \
9252         fcntl.h \
9253         grp.h \
9254         pwd.h \
9255         libc.h \
9256         limits.h \
9257         stdarg.h \
9258         stdlib.h \
9259         stdint.h \
9260         string.h \
9261         termios.h \
9262         termcap.h \
9263         unistd.h \
9264         sys/bitypes.h \
9265         sys/byteorder.h \
9266         sys/ioctl.h \
9267         sys/select.h \
9268         sys/sockio.h \
9269         sys/time.h \
9270         sys/socket.h \
9271         arpa/nameser.h \
9272         resolv.h \
9273         mtio.h \
9274         sys/mtio.h \
9275         sys/tape.h \
9276         regex.h \
9277
9278 do
9279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9281   echo "$as_me:$LINENO: checking for $ac_header" >&5
9282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 fi
9286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9288 else
9289   # Is the header compilable?
9290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9292 cat >conftest.$ac_ext <<_ACEOF
9293 #line $LINENO "configure"
9294 /* confdefs.h.  */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h.  */
9299 $ac_includes_default
9300 #include <$ac_header>
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304   (eval $ac_compile) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } &&
9308          { ac_try='test -s conftest.$ac_objext'
9309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310   (eval $ac_try) 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); }; }; then
9314   ac_header_compiler=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 ac_header_compiler=no
9320 fi
9321 rm -f conftest.$ac_objext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6
9324
9325 # Is the header present?
9326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 #include <$ac_header>
9336 _ACEOF
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } >/dev/null; then
9345   if test -s conftest.err; then
9346     ac_cpp_err=$ac_c_preproc_warn_flag
9347   else
9348     ac_cpp_err=
9349   fi
9350 else
9351   ac_cpp_err=yes
9352 fi
9353 if test -z "$ac_cpp_err"; then
9354   ac_header_preproc=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359   ac_header_preproc=no
9360 fi
9361 rm -f conftest.err conftest.$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6
9364
9365 # So?  What about this header?
9366 case $ac_header_compiler:$ac_header_preproc in
9367   yes:no )
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9372     (
9373       cat <<\_ASBOX
9374 ## ------------------------------------ ##
9375 ## Report this to bug-autoconf@gnu.org. ##
9376 ## ------------------------------------ ##
9377 _ASBOX
9378     ) |
9379       sed "s/^/$as_me: WARNING:     /" >&2
9380     ;;
9381   no:yes )
9382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9384     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9388     (
9389       cat <<\_ASBOX
9390 ## ------------------------------------ ##
9391 ## Report this to bug-autoconf@gnu.org. ##
9392 ## ------------------------------------ ##
9393 _ASBOX
9394     ) |
9395       sed "s/^/$as_me: WARNING:     /" >&2
9396     ;;
9397 esac
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   eval "$as_ac_Header=$ac_header_preproc"
9404 fi
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407
9408 fi
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410   cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412 _ACEOF
9413
9414 fi
9415
9416 done
9417
9418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9420 if test "${ac_cv_header_stdc+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430 #include <stdlib.h>
9431 #include <stdarg.h>
9432 #include <string.h>
9433 #include <float.h>
9434
9435 int
9436 main ()
9437 {
9438
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445   (eval $ac_compile) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } &&
9449          { ac_try='test -s conftest.$ac_objext'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; }; then
9455   ac_cv_header_stdc=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_cv_header_stdc=no
9461 fi
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9463
9464 if test $ac_cv_header_stdc = yes; then
9465   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9466   cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 #include <string.h>
9474
9475 _ACEOF
9476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9477   $EGREP "memchr" >/dev/null 2>&1; then
9478   :
9479 else
9480   ac_cv_header_stdc=no
9481 fi
9482 rm -f conftest*
9483
9484 fi
9485
9486 if test $ac_cv_header_stdc = yes; then
9487   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9488   cat >conftest.$ac_ext <<_ACEOF
9489 #line $LINENO "configure"
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 #include <stdlib.h>
9496
9497 _ACEOF
9498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9499   $EGREP "free" >/dev/null 2>&1; then
9500   :
9501 else
9502   ac_cv_header_stdc=no
9503 fi
9504 rm -f conftest*
9505
9506 fi
9507
9508 if test $ac_cv_header_stdc = yes; then
9509   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9510   if test "$cross_compiling" = yes; then
9511   :
9512 else
9513   cat >conftest.$ac_ext <<_ACEOF
9514 #line $LINENO "configure"
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520 #include <ctype.h>
9521 #if ((' ' & 0x0FF) == 0x020)
9522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9524 #else
9525 # define ISLOWER(c) \
9526                    (('a' <= (c) && (c) <= 'i') \
9527                      || ('j' <= (c) && (c) <= 'r') \
9528                      || ('s' <= (c) && (c) <= 'z'))
9529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9530 #endif
9531
9532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9533 int
9534 main ()
9535 {
9536   int i;
9537   for (i = 0; i < 256; i++)
9538     if (XOR (islower (i), ISLOWER (i))
9539         || toupper (i) != TOUPPER (i))
9540       exit(2);
9541   exit (0);
9542 }
9543 _ACEOF
9544 rm -f conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546   (eval $ac_link) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   :
9556 else
9557   echo "$as_me: program exited with status $ac_status" >&5
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ( exit $ac_status )
9562 ac_cv_header_stdc=no
9563 fi
9564 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9565 fi
9566 fi
9567 fi
9568 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9569 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9570 if test $ac_cv_header_stdc = yes; then
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define STDC_HEADERS 1
9574 _ACEOF
9575
9576 fi
9577
9578 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9579 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9580 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590 #include <sys/types.h>
9591 int
9592 main ()
9593 {
9594 return makedev(0, 0);
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601   (eval $ac_link) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } &&
9605          { ac_try='test -s conftest$ac_exeext'
9606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607   (eval $ac_try) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; }; then
9611   ac_cv_header_sys_types_h_makedev=yes
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 ac_cv_header_sys_types_h_makedev=no
9617 fi
9618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9619
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9622 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9623
9624 if test $ac_cv_header_sys_types_h_makedev = no; then
9625 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9626   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9627 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9628 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 fi
9631 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9632 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9633 else
9634   # Is the header compilable?
9635 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9636 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 #line $LINENO "configure"
9639 /* confdefs.h.  */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h.  */
9644 $ac_includes_default
9645 #include <sys/mkdev.h>
9646 _ACEOF
9647 rm -f conftest.$ac_objext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649   (eval $ac_compile) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } &&
9653          { ac_try='test -s conftest.$ac_objext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   ac_header_compiler=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_header_compiler=no
9665 fi
9666 rm -f conftest.$ac_objext conftest.$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9668 echo "${ECHO_T}$ac_header_compiler" >&6
9669
9670 # Is the header present?
9671 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9672 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 #include <sys/mkdev.h>
9681 _ACEOF
9682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
9687   cat conftest.err >&5
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } >/dev/null; then
9690   if test -s conftest.err; then
9691     ac_cpp_err=$ac_c_preproc_warn_flag
9692   else
9693     ac_cpp_err=
9694   fi
9695 else
9696   ac_cpp_err=yes
9697 fi
9698 if test -z "$ac_cpp_err"; then
9699   ac_header_preproc=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704   ac_header_preproc=no
9705 fi
9706 rm -f conftest.err conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9708 echo "${ECHO_T}$ac_header_preproc" >&6
9709
9710 # So?  What about this header?
9711 case $ac_header_compiler:$ac_header_preproc in
9712   yes:no )
9713     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9714 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9715     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9717     (
9718       cat <<\_ASBOX
9719 ## ------------------------------------ ##
9720 ## Report this to bug-autoconf@gnu.org. ##
9721 ## ------------------------------------ ##
9722 _ASBOX
9723     ) |
9724       sed "s/^/$as_me: WARNING:     /" >&2
9725     ;;
9726   no:yes )
9727     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9728 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9729     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9730 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9731     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9732 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9733     (
9734       cat <<\_ASBOX
9735 ## ------------------------------------ ##
9736 ## Report this to bug-autoconf@gnu.org. ##
9737 ## ------------------------------------ ##
9738 _ASBOX
9739     ) |
9740       sed "s/^/$as_me: WARNING:     /" >&2
9741     ;;
9742 esac
9743 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9744 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9745 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9749 fi
9750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9751 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9752
9753 fi
9754 if test $ac_cv_header_sys_mkdev_h = yes; then
9755
9756 cat >>confdefs.h <<\_ACEOF
9757 #define MAJOR_IN_MKDEV 1
9758 _ACEOF
9759
9760 fi
9761
9762
9763
9764   if test $ac_cv_header_sys_mkdev_h = no; then
9765     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9766   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9767 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9768 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 fi
9771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9772 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9773 else
9774   # Is the header compilable?
9775 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9776 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 $ac_includes_default
9785 #include <sys/sysmacros.h>
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789   (eval $ac_compile) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -s conftest.$ac_objext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_header_compiler=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_header_compiler=no
9805 fi
9806 rm -f conftest.$ac_objext conftest.$ac_ext
9807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9808 echo "${ECHO_T}$ac_header_compiler" >&6
9809
9810 # Is the header present?
9811 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9812 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9813 cat >conftest.$ac_ext <<_ACEOF
9814 #line $LINENO "configure"
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 #include <sys/sysmacros.h>
9821 _ACEOF
9822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } >/dev/null; then
9830   if test -s conftest.err; then
9831     ac_cpp_err=$ac_c_preproc_warn_flag
9832   else
9833     ac_cpp_err=
9834   fi
9835 else
9836   ac_cpp_err=yes
9837 fi
9838 if test -z "$ac_cpp_err"; then
9839   ac_header_preproc=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844   ac_header_preproc=no
9845 fi
9846 rm -f conftest.err conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9848 echo "${ECHO_T}$ac_header_preproc" >&6
9849
9850 # So?  What about this header?
9851 case $ac_header_compiler:$ac_header_preproc in
9852   yes:no )
9853     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9854 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9855     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9856 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9857     (
9858       cat <<\_ASBOX
9859 ## ------------------------------------ ##
9860 ## Report this to bug-autoconf@gnu.org. ##
9861 ## ------------------------------------ ##
9862 _ASBOX
9863     ) |
9864       sed "s/^/$as_me: WARNING:     /" >&2
9865     ;;
9866   no:yes )
9867     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9868 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9869     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9870 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9871     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9872 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9873     (
9874       cat <<\_ASBOX
9875 ## ------------------------------------ ##
9876 ## Report this to bug-autoconf@gnu.org. ##
9877 ## ------------------------------------ ##
9878 _ASBOX
9879     ) |
9880       sed "s/^/$as_me: WARNING:     /" >&2
9881     ;;
9882 esac
9883 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9884 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9885 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9891 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9892
9893 fi
9894 if test $ac_cv_header_sys_sysmacros_h = yes; then
9895
9896 cat >>confdefs.h <<\_ACEOF
9897 #define MAJOR_IN_SYSMACROS 1
9898 _ACEOF
9899
9900 fi
9901
9902
9903   fi
9904 fi
9905
9906
9907
9908
9909
9910
9911 ac_header_dirent=no
9912 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9913   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9914 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9915 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 #include <sys/types.h>
9927 #include <$ac_hdr>
9928
9929 int
9930 main ()
9931 {
9932 if ((DIR *) 0)
9933 return 0;
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940   (eval $ac_compile) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } &&
9944          { ac_try='test -s conftest.$ac_objext'
9945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946   (eval $ac_try) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); }; }; then
9950   eval "$as_ac_Header=yes"
9951 else
9952   echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 eval "$as_ac_Header=no"
9956 fi
9957 rm -f conftest.$ac_objext conftest.$ac_ext
9958 fi
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9962   cat >>confdefs.h <<_ACEOF
9963 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9964 _ACEOF
9965
9966 ac_header_dirent=$ac_hdr; break
9967 fi
9968
9969 done
9970 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9971 if test $ac_header_dirent = dirent.h; then
9972   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9974 if test "${ac_cv_search_opendir+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   ac_func_search_save_LIBS=$LIBS
9978 ac_cv_search_opendir=no
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992    builtin and then its argument prototype would still apply.  */
9993 char opendir ();
9994 int
9995 main ()
9996 {
9997 opendir ();
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004   (eval $ac_link) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -s conftest$ac_exeext'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_search_opendir="none required"
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 fi
10020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10021 if test "$ac_cv_search_opendir" = no; then
10022   for ac_lib in dir; do
10023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10024     cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031
10032 /* Override any gcc2 internal prototype to avoid an error.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 /* We use char because int might match the return type of a gcc2
10037    builtin and then its argument prototype would still apply.  */
10038 char opendir ();
10039 int
10040 main ()
10041 {
10042 opendir ();
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049   (eval $ac_link) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_search_opendir="-l$ac_lib"
10060 break
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 fi
10066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10067   done
10068 fi
10069 LIBS=$ac_func_search_save_LIBS
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10072 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10073 if test "$ac_cv_search_opendir" != no; then
10074   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10075
10076 fi
10077
10078 else
10079   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10081 if test "${ac_cv_search_opendir+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   ac_func_search_save_LIBS=$LIBS
10085 ac_cv_search_opendir=no
10086 cat >conftest.$ac_ext <<_ACEOF
10087 #line $LINENO "configure"
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any gcc2 internal prototype to avoid an error.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char opendir ();
10101 int
10102 main ()
10103 {
10104 opendir ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111   (eval $ac_link) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -s conftest$ac_exeext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_cv_search_opendir="none required"
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 fi
10127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10128 if test "$ac_cv_search_opendir" = no; then
10129   for ac_lib in x; do
10130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
10139 /* Override any gcc2 internal prototype to avoid an error.  */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144    builtin and then its argument prototype would still apply.  */
10145 char opendir ();
10146 int
10147 main ()
10148 {
10149 opendir ();
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156   (eval $ac_link) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -s conftest$ac_exeext'
10161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162   (eval $ac_try) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; }; then
10166   ac_cv_search_opendir="-l$ac_lib"
10167 break
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 fi
10173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10174   done
10175 fi
10176 LIBS=$ac_func_search_save_LIBS
10177 fi
10178 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10179 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10180 if test "$ac_cv_search_opendir" != no; then
10181   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10182
10183 fi
10184
10185 fi
10186
10187 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10188 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10189 if test "${ac_cv_header_stat_broken+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 /* confdefs.h.  */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h.  */
10199 #include <sys/types.h>
10200 #include <sys/stat.h>
10201
10202 #if defined(S_ISBLK) && defined(S_IFDIR)
10203 # if S_ISBLK (S_IFDIR)
10204 You lose.
10205 # endif
10206 #endif
10207
10208 #if defined(S_ISBLK) && defined(S_IFCHR)
10209 # if S_ISBLK (S_IFCHR)
10210 You lose.
10211 # endif
10212 #endif
10213
10214 #if defined(S_ISLNK) && defined(S_IFREG)
10215 # if S_ISLNK (S_IFREG)
10216 You lose.
10217 # endif
10218 #endif
10219
10220 #if defined(S_ISSOCK) && defined(S_IFREG)
10221 # if S_ISSOCK (S_IFREG)
10222 You lose.
10223 # endif
10224 #endif
10225
10226 _ACEOF
10227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10228   $EGREP "You lose" >/dev/null 2>&1; then
10229   ac_cv_header_stat_broken=yes
10230 else
10231   ac_cv_header_stat_broken=no
10232 fi
10233 rm -f conftest*
10234
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10237 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10238 if test $ac_cv_header_stat_broken = yes; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define STAT_MACROS_BROKEN 1
10242 _ACEOF
10243
10244 fi
10245
10246 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10247 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10248 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 #include <sys/types.h>
10259 #include <sys/wait.h>
10260 #ifndef WEXITSTATUS
10261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10262 #endif
10263 #ifndef WIFEXITED
10264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10265 #endif
10266
10267 int
10268 main ()
10269 {
10270   int s;
10271   wait (&s);
10272   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -s conftest.$ac_objext'
10284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285   (eval $ac_try) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; }; then
10289   ac_cv_header_sys_wait_h=yes
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 ac_cv_header_sys_wait_h=no
10295 fi
10296 rm -f conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10300 if test $ac_cv_header_sys_wait_h = yes; then
10301
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_SYS_WAIT_H 1
10304 _ACEOF
10305
10306 fi
10307
10308 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10309 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10310 if test "${ac_cv_header_time+set}" = set; then
10311   echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313   cat >conftest.$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10315 /* confdefs.h.  */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h.  */
10320 #include <sys/types.h>
10321 #include <sys/time.h>
10322 #include <time.h>
10323
10324 int
10325 main ()
10326 {
10327 if ((struct tm *) 0)
10328 return 0;
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 rm -f conftest.$ac_objext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10335   (eval $ac_compile) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -s conftest.$ac_objext'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; }; then
10345   ac_cv_header_time=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_cv_header_time=no
10351 fi
10352 rm -f conftest.$ac_objext conftest.$ac_ext
10353 fi
10354 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10355 echo "${ECHO_T}$ac_cv_header_time" >&6
10356 if test $ac_cv_header_time = yes; then
10357
10358 cat >>confdefs.h <<\_ACEOF
10359 #define TIME_WITH_SYS_TIME 1
10360 _ACEOF
10361
10362 fi
10363
10364
10365 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10366 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10367 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370   cat >conftest.$ac_ext <<_ACEOF
10371 #line $LINENO "configure"
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377 $ac_includes_default
10378 int
10379 main ()
10380 {
10381 static struct stat ac_aggr;
10382 if (ac_aggr.st_blksize)
10383 return 0;
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390   (eval $ac_compile) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } &&
10394          { ac_try='test -s conftest.$ac_objext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   ac_cv_member_struct_stat_st_blksize=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 $ac_includes_default
10413 int
10414 main ()
10415 {
10416 static struct stat ac_aggr;
10417 if (sizeof ac_aggr.st_blksize)
10418 return 0;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425   (eval $ac_compile) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } &&
10429          { ac_try='test -s conftest.$ac_objext'
10430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431   (eval $ac_try) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   ac_cv_member_struct_stat_st_blksize=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ac_cv_member_struct_stat_st_blksize=no
10441 fi
10442 rm -f conftest.$ac_objext conftest.$ac_ext
10443 fi
10444 rm -f conftest.$ac_objext conftest.$ac_ext
10445 fi
10446 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10447 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10448 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10449
10450 cat >>confdefs.h <<_ACEOF
10451 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10452 _ACEOF
10453
10454
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_ST_BLKSIZE 1
10457 _ACEOF
10458
10459 fi
10460
10461
10462 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10463 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10464 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467   cat >conftest.$ac_ext <<_ACEOF
10468 #line $LINENO "configure"
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474 $ac_includes_default
10475 int
10476 main ()
10477 {
10478 static struct stat ac_aggr;
10479 if (ac_aggr.st_blocks)
10480 return 0;
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487   (eval $ac_compile) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -s conftest.$ac_objext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   ac_cv_member_struct_stat_st_blocks=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 $ac_includes_default
10510 int
10511 main ()
10512 {
10513 static struct stat ac_aggr;
10514 if (sizeof ac_aggr.st_blocks)
10515 return 0;
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522   (eval $ac_compile) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } &&
10526          { ac_try='test -s conftest.$ac_objext'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; }; then
10532   ac_cv_member_struct_stat_st_blocks=yes
10533 else
10534   echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537 ac_cv_member_struct_stat_st_blocks=no
10538 fi
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10540 fi
10541 rm -f conftest.$ac_objext conftest.$ac_ext
10542 fi
10543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10544 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10545 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10546
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10549 _ACEOF
10550
10551
10552 cat >>confdefs.h <<\_ACEOF
10553 #define HAVE_ST_BLOCKS 1
10554 _ACEOF
10555
10556 else
10557   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10558 fi
10559
10560
10561 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10563 if test "${ac_cv_struct_tm+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #include <sys/types.h>
10574 #include <time.h>
10575
10576 int
10577 main ()
10578 {
10579 struct tm *tp; tp->tm_sec;
10580   ;
10581   return 0;
10582 }
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586   (eval $ac_compile) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } &&
10590          { ac_try='test -s conftest.$ac_objext'
10591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592   (eval $ac_try) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; }; then
10596   ac_cv_struct_tm=time.h
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 ac_cv_struct_tm=sys/time.h
10602 fi
10603 rm -f conftest.$ac_objext conftest.$ac_ext
10604 fi
10605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10606 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10607 if test $ac_cv_struct_tm = sys/time.h; then
10608
10609 cat >>confdefs.h <<\_ACEOF
10610 #define TM_IN_SYS_TIME 1
10611 _ACEOF
10612
10613 fi
10614
10615 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10616 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10617 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10618   echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620   cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627 #include <sys/types.h>
10628 #include <$ac_cv_struct_tm>
10629
10630
10631 int
10632 main ()
10633 {
10634 static struct tm ac_aggr;
10635 if (ac_aggr.tm_zone)
10636 return 0;
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643   (eval $ac_compile) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -s conftest.$ac_objext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_member_struct_tm_tm_zone=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line $LINENO "configure"
10660 /* confdefs.h.  */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h.  */
10665 #include <sys/types.h>
10666 #include <$ac_cv_struct_tm>
10667
10668
10669 int
10670 main ()
10671 {
10672 static struct tm ac_aggr;
10673 if (sizeof ac_aggr.tm_zone)
10674 return 0;
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681   (eval $ac_compile) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -s conftest.$ac_objext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_cv_member_struct_tm_tm_zone=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 ac_cv_member_struct_tm_tm_zone=no
10697 fi
10698 rm -f conftest.$ac_objext conftest.$ac_ext
10699 fi
10700 rm -f conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10703 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10704 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_STRUCT_TM_TM_ZONE 1
10708 _ACEOF
10709
10710
10711 fi
10712
10713 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10714
10715 cat >>confdefs.h <<\_ACEOF
10716 #define HAVE_TM_ZONE 1
10717 _ACEOF
10718
10719 else
10720   echo "$as_me:$LINENO: checking for tzname" >&5
10721 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10722 if test "${ac_cv_var_tzname+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #include <time.h>
10733 #ifndef tzname /* For SGI.  */
10734 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10735 #endif
10736
10737 int
10738 main ()
10739 {
10740 atoi(*tzname);
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747   (eval $ac_link) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -s conftest$ac_exeext'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }; then
10757   ac_cv_var_tzname=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_cv_var_tzname=no
10763 fi
10764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10765 fi
10766 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10767 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10768   if test $ac_cv_var_tzname = yes; then
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_TZNAME 1
10772 _ACEOF
10773
10774   fi
10775 fi
10776
10777
10778 echo "$as_me:$LINENO: checking for utime.h" >&5
10779 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10780 if test "${ba_cv_header_utime_h+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   cat >conftest.$ac_ext <<_ACEOF
10784 #line $LINENO "configure"
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790
10791 #include <sys/types.h>
10792 #include <utime.h>
10793 int
10794 main ()
10795 {
10796 struct utimbuf foo
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803   (eval $ac_compile) 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } &&
10807          { ac_try='test -s conftest.$ac_objext'
10808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809   (eval $ac_try) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; }; then
10813   ba_cv_header_utime_h=yes
10814 else
10815   echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10817
10818 ba_cv_header_utime_h=no
10819 fi
10820 rm -f conftest.$ac_objext conftest.$ac_ext
10821 fi
10822 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10823 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10824 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_UTIME_H 1
10826 _ACEOF
10827
10828
10829 echo "$as_me:$LINENO: checking for socklen_t" >&5
10830 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10831 if test "${ba_cv_header_socklen_t+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841
10842 #include <sys/types.h>
10843 #include <sys/socket.h>
10844 int
10845 main ()
10846 {
10847 socklen_t x
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854   (eval $ac_compile) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -s conftest.$ac_objext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ba_cv_header_socklen_t=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ba_cv_header_socklen_t=no
10870 fi
10871 rm -f conftest.$ac_objext conftest.$ac_ext
10872 fi
10873 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10874 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10875 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10876 #define HAVE_SOCKLEN_T 1
10877 _ACEOF
10878
10879
10880 echo "$as_me:$LINENO: checking for bigendian" >&5
10881 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10882 if test "${ba_cv_bigendian+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   if test "$cross_compiling" = yes; then
10886   ba_cv_bigendian=no
10887 else
10888   cat >conftest.$ac_ext <<_ACEOF
10889 #line $LINENO "configure"
10890 /* confdefs.h.  */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h.  */
10895 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10896 _ACEOF
10897 rm -f conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899   (eval $ac_link) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ba_cv_bigendian=yes
10909 else
10910   echo "$as_me: program exited with status $ac_status" >&5
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ( exit $ac_status )
10915 ba_cv_bigendian=no
10916 fi
10917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10918 fi
10919 fi
10920 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10921 echo "${ECHO_T}$ba_cv_bigendian" >&6
10922 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_BIGENDIAN 1
10924 _ACEOF
10925
10926
10927
10928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10930 if test "${ac_cv_c_const+set}" = set; then
10931   echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933   cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940
10941 int
10942 main ()
10943 {
10944 /* FIXME: Include the comments suggested by Paul. */
10945 #ifndef __cplusplus
10946   /* Ultrix mips cc rejects this.  */
10947   typedef int charset[2];
10948   const charset x;
10949   /* SunOS 4.1.1 cc rejects this.  */
10950   char const *const *ccp;
10951   char **p;
10952   /* NEC SVR4.0.2 mips cc rejects this.  */
10953   struct point {int x, y;};
10954   static struct point const zero = {0,0};
10955   /* AIX XL C 1.02.0.0 rejects this.
10956      It does not let you subtract one const X* pointer from another in
10957      an arm of an if-expression whose if-part is not a constant
10958      expression */
10959   const char *g = "string";
10960   ccp = &g + (g ? g-g : 0);
10961   /* HPUX 7.0 cc rejects these. */
10962   ++ccp;
10963   p = (char**) ccp;
10964   ccp = (char const *const *) p;
10965   { /* SCO 3.2v4 cc rejects this.  */
10966     char *t;
10967     char const *s = 0 ? (char *) 0 : (char const *) 0;
10968
10969     *t++ = 0;
10970   }
10971   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10972     int x[] = {25, 17};
10973     const int *foo = &x[0];
10974     ++foo;
10975   }
10976   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10977     typedef const int *iptr;
10978     iptr p = 0;
10979     ++p;
10980   }
10981   { /* AIX XL C 1.02.0.0 rejects this saying
10982        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10983     struct s { int j; const int *ap[3]; };
10984     struct s *b; b->j = 5;
10985   }
10986   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10987     const int foo = 10;
10988   }
10989 #endif
10990
10991   ;
10992   return 0;
10993 }
10994 _ACEOF
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997   (eval $ac_compile) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -s conftest.$ac_objext'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   ac_cv_c_const=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 ac_cv_c_const=no
11013 fi
11014 rm -f conftest.$ac_objext conftest.$ac_ext
11015 fi
11016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11017 echo "${ECHO_T}$ac_cv_c_const" >&6
11018 if test $ac_cv_c_const = no; then
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define const
11022 _ACEOF
11023
11024 fi
11025
11026
11027
11028 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11029 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11030 fstype=no
11031 # The order of these tests is important.
11032 cat >conftest.$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <sys/statvfs.h>
11040 #include <sys/fstyp.h>
11041 _ACEOF
11042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } >/dev/null; then
11050   if test -s conftest.err; then
11051     ac_cpp_err=$ac_c_preproc_warn_flag
11052   else
11053     ac_cpp_err=
11054   fi
11055 else
11056   ac_cpp_err=yes
11057 fi
11058 if test -z "$ac_cpp_err"; then
11059   cat >>confdefs.h <<\_ACEOF
11060 #define FSTYPE_STATVFS 1
11061 _ACEOF
11062  fstype=SVR4
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067
11068 fi
11069 rm -f conftest.err conftest.$ac_ext
11070 if test $fstype = no; then
11071 cat >conftest.$ac_ext <<_ACEOF
11072 #line $LINENO "configure"
11073 /* confdefs.h.  */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h.  */
11078 #include <sys/statfs.h>
11079 #include <sys/fstyp.h>
11080 _ACEOF
11081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } >/dev/null; then
11089   if test -s conftest.err; then
11090     ac_cpp_err=$ac_c_preproc_warn_flag
11091   else
11092     ac_cpp_err=
11093   fi
11094 else
11095   ac_cpp_err=yes
11096 fi
11097 if test -z "$ac_cpp_err"; then
11098   cat >>confdefs.h <<\_ACEOF
11099 #define FSTYPE_USG_STATFS 1
11100 _ACEOF
11101  fstype=SVR3
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11105
11106
11107 fi
11108 rm -f conftest.err conftest.$ac_ext
11109 fi
11110 if test $fstype = no; then
11111 cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <sys/statfs.h>
11119 #include <sys/vmount.h>
11120 _ACEOF
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } >/dev/null; then
11129   if test -s conftest.err; then
11130     ac_cpp_err=$ac_c_preproc_warn_flag
11131   else
11132     ac_cpp_err=
11133   fi
11134 else
11135   ac_cpp_err=yes
11136 fi
11137 if test -z "$ac_cpp_err"; then
11138   cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_AIX_STATFS 1
11140 _ACEOF
11141  fstype=AIX
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146
11147 fi
11148 rm -f conftest.err conftest.$ac_ext
11149 fi
11150 if test $fstype = no; then
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 #include <mntent.h>
11159 _ACEOF
11160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11162   ac_status=$?
11163   grep -v '^ *+' conftest.er1 >conftest.err
11164   rm -f conftest.er1
11165   cat conftest.err >&5
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } >/dev/null; then
11168   if test -s conftest.err; then
11169     ac_cpp_err=$ac_c_preproc_warn_flag
11170   else
11171     ac_cpp_err=
11172   fi
11173 else
11174   ac_cpp_err=yes
11175 fi
11176 if test -z "$ac_cpp_err"; then
11177   cat >>confdefs.h <<\_ACEOF
11178 #define FSTYPE_MNTENT 1
11179 _ACEOF
11180  fstype=4.3BSD
11181 else
11182   echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11184
11185
11186 fi
11187 rm -f conftest.err conftest.$ac_ext
11188 fi
11189 if test $fstype = no; then
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11192 /* confdefs.h.  */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h.  */
11197 #include <sys/mount.h>
11198
11199 _ACEOF
11200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11201   $EGREP "f_type;" >/dev/null 2>&1; then
11202   cat >>confdefs.h <<\_ACEOF
11203 #define FSTYPE_STATFS 1
11204 _ACEOF
11205  fstype=4.4BSD/OSF1
11206 fi
11207 rm -f conftest*
11208
11209 fi
11210 if test $fstype = no; then
11211 cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 #include <sys/mount.h>
11219 #include <sys/fs_types.h>
11220 _ACEOF
11221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } >/dev/null; then
11229   if test -s conftest.err; then
11230     ac_cpp_err=$ac_c_preproc_warn_flag
11231   else
11232     ac_cpp_err=
11233   fi
11234 else
11235   ac_cpp_err=yes
11236 fi
11237 if test -z "$ac_cpp_err"; then
11238   cat >>confdefs.h <<\_ACEOF
11239 #define FSTYPE_GETMNT 1
11240 _ACEOF
11241  fstype=Ultrix
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246
11247 fi
11248 rm -f conftest.err conftest.$ac_ext
11249 fi
11250 echo "$as_me:$LINENO: result: $fstype" >&5
11251 echo "${ECHO_T}$fstype" >&6
11252
11253 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11254 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11255 if test "${ac_cv_type_signal+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 #include <sys/types.h>
11266 #include <signal.h>
11267 #ifdef signal
11268 # undef signal
11269 #endif
11270 #ifdef __cplusplus
11271 extern "C" void (*signal (int, void (*)(int)))(int);
11272 #else
11273 void (*signal ()) ();
11274 #endif
11275
11276 int
11277 main ()
11278 {
11279 int i;
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286   (eval $ac_compile) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -s conftest.$ac_objext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   ac_cv_type_signal=void
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_cv_type_signal=int
11302 fi
11303 rm -f conftest.$ac_objext conftest.$ac_ext
11304 fi
11305 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11306 echo "${ECHO_T}$ac_cv_type_signal" >&6
11307
11308 cat >>confdefs.h <<_ACEOF
11309 #define RETSIGTYPE $ac_cv_type_signal
11310 _ACEOF
11311
11312
11313
11314 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11315 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11316 if test "${bash_cv_signal_vintage+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319
11320   cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <signal.h>
11328 int
11329 main ()
11330 {
11331
11332     sigset_t ss;
11333     struct sigaction sa;
11334     sigemptyset(&ss); sigsuspend(&ss);
11335     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11336     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11337
11338   ;
11339   return 0;
11340 }
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344   (eval $ac_link) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } &&
11348          { ac_try='test -s conftest$ac_exeext'
11349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350   (eval $ac_try) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; }; then
11354   bash_cv_signal_vintage=posix
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359
11360     cat >conftest.$ac_ext <<_ACEOF
11361 #line $LINENO "configure"
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367 #include <signal.h>
11368 int
11369 main ()
11370 {
11371
11372         int mask = sigmask(SIGINT);
11373         sigsetmask(mask); sigblock(mask); sigpause(mask);
11374
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381   (eval $ac_link) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -s conftest$ac_exeext'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; }; then
11391   bash_cv_signal_vintage=4.2bsd
11392 else
11393   echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11395
11396
11397       cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404
11405         #include <signal.h>
11406         RETSIGTYPE foo() { }
11407 int
11408 main ()
11409 {
11410
11411                 int mask = sigmask(SIGINT);
11412                 sigset(SIGINT, foo); sigrelse(SIGINT);
11413                 sighold(SIGINT); sigpause(SIGINT);
11414
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421   (eval $ac_link) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; }; then
11431   bash_cv_signal_vintage=svr3
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 bash_cv_signal_vintage=v7
11437
11438 fi
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440
11441 fi
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11443
11444 fi
11445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11446
11447 fi
11448
11449 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11450 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11451 if test "$bash_cv_signal_vintage" = posix; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_POSIX_SIGNALS 1
11454 _ACEOF
11455
11456 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_BSD_SIGNALS 1
11459 _ACEOF
11460
11461 elif test "$bash_cv_signal_vintage" = svr3; then
11462 cat >>confdefs.h <<\_ACEOF
11463 #define HAVE_USG_SIGHOLD 1
11464 _ACEOF
11465
11466 fi
11467
11468 echo "$as_me:$LINENO: checking for mode_t" >&5
11469 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11470 if test "${ac_cv_type_mode_t+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 $ac_includes_default
11481 int
11482 main ()
11483 {
11484 if ((mode_t *) 0)
11485   return 0;
11486 if (sizeof (mode_t))
11487   return 0;
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494   (eval $ac_compile) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   ac_cv_type_mode_t=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_type_mode_t=no
11510 fi
11511 rm -f conftest.$ac_objext conftest.$ac_ext
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11514 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11515 if test $ac_cv_type_mode_t = yes; then
11516   :
11517 else
11518
11519 cat >>confdefs.h <<_ACEOF
11520 #define mode_t int
11521 _ACEOF
11522
11523 fi
11524
11525 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11526 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11527 if test "${ac_cv_type_uid_t+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537 #include <sys/types.h>
11538
11539 _ACEOF
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541   $EGREP "uid_t" >/dev/null 2>&1; then
11542   ac_cv_type_uid_t=yes
11543 else
11544   ac_cv_type_uid_t=no
11545 fi
11546 rm -f conftest*
11547
11548 fi
11549 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11550 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11551 if test $ac_cv_type_uid_t = no; then
11552
11553 cat >>confdefs.h <<\_ACEOF
11554 #define uid_t int
11555 _ACEOF
11556
11557
11558 cat >>confdefs.h <<\_ACEOF
11559 #define gid_t int
11560 _ACEOF
11561
11562 fi
11563
11564 echo "$as_me:$LINENO: checking for size_t" >&5
11565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11566 if test "${ac_cv_type_size_t+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 #line $LINENO "configure"
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 $ac_includes_default
11577 int
11578 main ()
11579 {
11580 if ((size_t *) 0)
11581   return 0;
11582 if (sizeof (size_t))
11583   return 0;
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590   (eval $ac_compile) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596   (eval $ac_try) 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   ac_cv_type_size_t=yes
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 ac_cv_type_size_t=no
11606 fi
11607 rm -f conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11610 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11611 if test $ac_cv_type_size_t = yes; then
11612   :
11613 else
11614
11615 cat >>confdefs.h <<_ACEOF
11616 #define size_t unsigned
11617 _ACEOF
11618
11619 fi
11620
11621 echo "$as_me:$LINENO: checking for pid_t" >&5
11622 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11623 if test "${ac_cv_type_pid_t+set}" = set; then
11624   echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626   cat >conftest.$ac_ext <<_ACEOF
11627 #line $LINENO "configure"
11628 /* confdefs.h.  */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h.  */
11633 $ac_includes_default
11634 int
11635 main ()
11636 {
11637 if ((pid_t *) 0)
11638   return 0;
11639 if (sizeof (pid_t))
11640   return 0;
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647   (eval $ac_compile) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -s conftest.$ac_objext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   ac_cv_type_pid_t=yes
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 ac_cv_type_pid_t=no
11663 fi
11664 rm -f conftest.$ac_objext conftest.$ac_ext
11665 fi
11666 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11667 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11668 if test $ac_cv_type_pid_t = yes; then
11669   :
11670 else
11671
11672 cat >>confdefs.h <<_ACEOF
11673 #define pid_t int
11674 _ACEOF
11675
11676 fi
11677
11678 echo "$as_me:$LINENO: checking for off_t" >&5
11679 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11680 if test "${ac_cv_type_off_t+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 $ac_includes_default
11691 int
11692 main ()
11693 {
11694 if ((off_t *) 0)
11695   return 0;
11696 if (sizeof (off_t))
11697   return 0;
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11704   (eval $ac_compile) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -s conftest.$ac_objext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   ac_cv_type_off_t=yes
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719 ac_cv_type_off_t=no
11720 fi
11721 rm -f conftest.$ac_objext conftest.$ac_ext
11722 fi
11723 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11724 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11725 if test $ac_cv_type_off_t = yes; then
11726   :
11727 else
11728
11729 cat >>confdefs.h <<_ACEOF
11730 #define off_t long
11731 _ACEOF
11732
11733 fi
11734
11735 echo "$as_me:$LINENO: checking for ino_t" >&5
11736 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11737 if test "${ac_cv_type_ino_t+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 #line $LINENO "configure"
11742 /* confdefs.h.  */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h.  */
11747 $ac_includes_default
11748 int
11749 main ()
11750 {
11751 if ((ino_t *) 0)
11752   return 0;
11753 if (sizeof (ino_t))
11754   return 0;
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761   (eval $ac_compile) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -s conftest.$ac_objext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_type_ino_t=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_type_ino_t=no
11777 fi
11778 rm -f conftest.$ac_objext conftest.$ac_ext
11779 fi
11780 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11781 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11782 if test $ac_cv_type_ino_t = yes; then
11783   :
11784 else
11785
11786 cat >>confdefs.h <<_ACEOF
11787 #define ino_t unsigned long
11788 _ACEOF
11789
11790 fi
11791
11792 echo "$as_me:$LINENO: checking for dev_t" >&5
11793 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11794 if test "${ac_cv_type_dev_t+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   cat >conftest.$ac_ext <<_ACEOF
11798 #line $LINENO "configure"
11799 /* confdefs.h.  */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h.  */
11804 $ac_includes_default
11805 int
11806 main ()
11807 {
11808 if ((dev_t *) 0)
11809   return 0;
11810 if (sizeof (dev_t))
11811   return 0;
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818   (eval $ac_compile) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } &&
11822          { ac_try='test -s conftest.$ac_objext'
11823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824   (eval $ac_try) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; }; then
11828   ac_cv_type_dev_t=yes
11829 else
11830   echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_cv_type_dev_t=no
11834 fi
11835 rm -f conftest.$ac_objext conftest.$ac_ext
11836 fi
11837 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11838 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11839 if test $ac_cv_type_dev_t = yes; then
11840   :
11841 else
11842
11843 cat >>confdefs.h <<_ACEOF
11844 #define dev_t unsigned long
11845 _ACEOF
11846
11847 fi
11848
11849 echo "$as_me:$LINENO: checking for daddr_t" >&5
11850 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11851 if test "${ac_cv_type_daddr_t+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   cat >conftest.$ac_ext <<_ACEOF
11855 #line $LINENO "configure"
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 $ac_includes_default
11862 int
11863 main ()
11864 {
11865 if ((daddr_t *) 0)
11866   return 0;
11867 if (sizeof (daddr_t))
11868   return 0;
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875   (eval $ac_compile) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -s conftest.$ac_objext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   ac_cv_type_daddr_t=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 ac_cv_type_daddr_t=no
11891 fi
11892 rm -f conftest.$ac_objext conftest.$ac_ext
11893 fi
11894 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11895 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11896 if test $ac_cv_type_daddr_t = yes; then
11897   :
11898 else
11899
11900 cat >>confdefs.h <<_ACEOF
11901 #define daddr_t long
11902 _ACEOF
11903
11904 fi
11905
11906 echo "$as_me:$LINENO: checking for major_t" >&5
11907 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11908 if test "${ac_cv_type_major_t+set}" = set; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918 $ac_includes_default
11919 int
11920 main ()
11921 {
11922 if ((major_t *) 0)
11923   return 0;
11924 if (sizeof (major_t))
11925   return 0;
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932   (eval $ac_compile) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -s conftest.$ac_objext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_type_major_t=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_type_major_t=no
11948 fi
11949 rm -f conftest.$ac_objext conftest.$ac_ext
11950 fi
11951 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11952 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11953 if test $ac_cv_type_major_t = yes; then
11954   :
11955 else
11956
11957 cat >>confdefs.h <<_ACEOF
11958 #define major_t int
11959 _ACEOF
11960
11961 fi
11962
11963 echo "$as_me:$LINENO: checking for minor_t" >&5
11964 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11965 if test "${ac_cv_type_minor_t+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975 $ac_includes_default
11976 int
11977 main ()
11978 {
11979 if ((minor_t *) 0)
11980   return 0;
11981 if (sizeof (minor_t))
11982   return 0;
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11989   (eval $ac_compile) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } &&
11993          { ac_try='test -s conftest.$ac_objext'
11994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995   (eval $ac_try) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; }; then
11999   ac_cv_type_minor_t=yes
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ac_cv_type_minor_t=no
12005 fi
12006 rm -f conftest.$ac_objext conftest.$ac_ext
12007 fi
12008 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12009 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12010 if test $ac_cv_type_minor_t = yes; then
12011   :
12012 else
12013
12014 cat >>confdefs.h <<_ACEOF
12015 #define minor_t int
12016 _ACEOF
12017
12018 fi
12019
12020 echo "$as_me:$LINENO: checking for ssize_t" >&5
12021 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12022 if test "${ac_cv_type_ssize_t+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 #line $LINENO "configure"
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 $ac_includes_default
12033 int
12034 main ()
12035 {
12036 if ((ssize_t *) 0)
12037   return 0;
12038 if (sizeof (ssize_t))
12039   return 0;
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12046   (eval $ac_compile) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } &&
12050          { ac_try='test -s conftest.$ac_objext'
12051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052   (eval $ac_try) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_cv_type_ssize_t=yes
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_cv_type_ssize_t=no
12062 fi
12063 rm -f conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12066 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12067 if test $ac_cv_type_ssize_t = yes; then
12068   :
12069 else
12070
12071 cat >>confdefs.h <<_ACEOF
12072 #define ssize_t int
12073 _ACEOF
12074
12075 fi
12076
12077 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12078 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12079 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089 $ac_includes_default
12090 int
12091 main ()
12092 {
12093 static struct stat ac_aggr;
12094 if (ac_aggr.st_blocks)
12095 return 0;
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102   (eval $ac_compile) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } &&
12106          { ac_try='test -s conftest.$ac_objext'
12107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108   (eval $ac_try) 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; }; then
12112   ac_cv_member_struct_stat_st_blocks=yes
12113 else
12114   echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
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 struct stat ac_aggr;
12129 if (sizeof ac_aggr.st_blocks)
12130 return 0;
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_cv_member_struct_stat_st_blocks=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_member_struct_stat_st_blocks=no
12153 fi
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12159 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12160 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12161
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12164 _ACEOF
12165
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_ST_BLOCKS 1
12169 _ACEOF
12170
12171 else
12172   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12173 fi
12174
12175
12176
12177 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12178 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12179 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   cat >conftest.$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 $ac_includes_default
12190 int
12191 main ()
12192 {
12193 static struct stat ac_aggr;
12194 if (ac_aggr.st_rdev)
12195 return 0;
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202   (eval $ac_compile) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -s conftest.$ac_objext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_cv_member_struct_stat_st_rdev=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 cat >conftest.$ac_ext <<_ACEOF
12218 #line $LINENO "configure"
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224 $ac_includes_default
12225 int
12226 main ()
12227 {
12228 static struct stat ac_aggr;
12229 if (sizeof ac_aggr.st_rdev)
12230 return 0;
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237   (eval $ac_compile) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } &&
12241          { ac_try='test -s conftest.$ac_objext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   ac_cv_member_struct_stat_st_rdev=yes
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_cv_member_struct_stat_st_rdev=no
12253 fi
12254 rm -f conftest.$ac_objext conftest.$ac_ext
12255 fi
12256 rm -f conftest.$ac_objext conftest.$ac_ext
12257 fi
12258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12259 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12260 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12261
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_STRUCT_STAT_ST_RDEV 1
12264 _ACEOF
12265
12266
12267 cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_ST_RDEV 1
12269 _ACEOF
12270
12271 fi
12272
12273
12274 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12275 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12276 if test "${ac_cv_struct_tm+set}" = set; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 #include <sys/types.h>
12287 #include <time.h>
12288
12289 int
12290 main ()
12291 {
12292 struct tm *tp; tp->tm_sec;
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299   (eval $ac_compile) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -s conftest.$ac_objext'
12304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305   (eval $ac_try) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; }; then
12309   ac_cv_struct_tm=time.h
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_cv_struct_tm=sys/time.h
12315 fi
12316 rm -f conftest.$ac_objext conftest.$ac_ext
12317 fi
12318 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12319 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12320 if test $ac_cv_struct_tm = sys/time.h; then
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define TM_IN_SYS_TIME 1
12324 _ACEOF
12325
12326 fi
12327
12328 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12329 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12330 if test "${ac_cv_c_const+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340
12341 int
12342 main ()
12343 {
12344 /* FIXME: Include the comments suggested by Paul. */
12345 #ifndef __cplusplus
12346   /* Ultrix mips cc rejects this.  */
12347   typedef int charset[2];
12348   const charset x;
12349   /* SunOS 4.1.1 cc rejects this.  */
12350   char const *const *ccp;
12351   char **p;
12352   /* NEC SVR4.0.2 mips cc rejects this.  */
12353   struct point {int x, y;};
12354   static struct point const zero = {0,0};
12355   /* AIX XL C 1.02.0.0 rejects this.
12356      It does not let you subtract one const X* pointer from another in
12357      an arm of an if-expression whose if-part is not a constant
12358      expression */
12359   const char *g = "string";
12360   ccp = &g + (g ? g-g : 0);
12361   /* HPUX 7.0 cc rejects these. */
12362   ++ccp;
12363   p = (char**) ccp;
12364   ccp = (char const *const *) p;
12365   { /* SCO 3.2v4 cc rejects this.  */
12366     char *t;
12367     char const *s = 0 ? (char *) 0 : (char const *) 0;
12368
12369     *t++ = 0;
12370   }
12371   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12372     int x[] = {25, 17};
12373     const int *foo = &x[0];
12374     ++foo;
12375   }
12376   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12377     typedef const int *iptr;
12378     iptr p = 0;
12379     ++p;
12380   }
12381   { /* AIX XL C 1.02.0.0 rejects this saying
12382        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12383     struct s { int j; const int *ap[3]; };
12384     struct s *b; b->j = 5;
12385   }
12386   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12387     const int foo = 10;
12388   }
12389 #endif
12390
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397   (eval $ac_compile) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -s conftest.$ac_objext'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407   ac_cv_c_const=yes
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_cv_c_const=no
12413 fi
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12417 echo "${ECHO_T}$ac_cv_c_const" >&6
12418 if test $ac_cv_c_const = no; then
12419
12420 cat >>confdefs.h <<\_ACEOF
12421 #define const
12422 _ACEOF
12423
12424 fi
12425
12426
12427
12428 echo "$as_me:$LINENO: checking for char" >&5
12429 echo $ECHO_N "checking for char... $ECHO_C" >&6
12430 if test "${ac_cv_type_char+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 $ac_includes_default
12441 int
12442 main ()
12443 {
12444 if ((char *) 0)
12445   return 0;
12446 if (sizeof (char))
12447   return 0;
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454   (eval $ac_compile) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } &&
12458          { ac_try='test -s conftest.$ac_objext'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   ac_cv_type_char=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_type_char=no
12470 fi
12471 rm -f conftest.$ac_objext conftest.$ac_ext
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12474 echo "${ECHO_T}$ac_cv_type_char" >&6
12475
12476 echo "$as_me:$LINENO: checking size of char" >&5
12477 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12478 if test "${ac_cv_sizeof_char+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   if test "$ac_cv_type_char" = yes; then
12482   # The cast to unsigned long works around a bug in the HP C Compiler
12483   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12484   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12485   # This bug is HP SR number 8606223364.
12486   if test "$cross_compiling" = yes; then
12487   # Depending upon the size, compute the lo and hi bounds.
12488 cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 $ac_includes_default
12496 int
12497 main ()
12498 {
12499 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12500 test_array [0] = 0
12501
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_lo=0 ac_mid=0
12519   while :; do
12520     cat >conftest.$ac_ext <<_ACEOF
12521 #line $LINENO "configure"
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527 $ac_includes_default
12528 int
12529 main ()
12530 {
12531 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12532 test_array [0] = 0
12533
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 rm -f conftest.$ac_objext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540   (eval $ac_compile) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -s conftest.$ac_objext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_hi=$ac_mid; break
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_lo=`expr $ac_mid + 1`
12556                     if test $ac_lo -le $ac_mid; then
12557                       ac_lo= ac_hi=
12558                       break
12559                     fi
12560                     ac_mid=`expr 2 '*' $ac_mid + 1`
12561 fi
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12563   done
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575 $ac_includes_default
12576 int
12577 main ()
12578 {
12579 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12580 test_array [0] = 0
12581
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -s conftest.$ac_objext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_hi=-1 ac_mid=-1
12599   while :; do
12600     cat >conftest.$ac_ext <<_ACEOF
12601 #line $LINENO "configure"
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 $ac_includes_default
12608 int
12609 main ()
12610 {
12611 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12612 test_array [0] = 0
12613
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 rm -f conftest.$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620   (eval $ac_compile) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -s conftest.$ac_objext'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_lo=$ac_mid; break
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_hi=`expr '(' $ac_mid ')' - 1`
12636                        if test $ac_mid -le $ac_hi; then
12637                          ac_lo= ac_hi=
12638                          break
12639                        fi
12640                        ac_mid=`expr 2 '*' $ac_mid`
12641 fi
12642 rm -f conftest.$ac_objext conftest.$ac_ext
12643   done
12644 else
12645   echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_lo= ac_hi=
12649 fi
12650 rm -f conftest.$ac_objext conftest.$ac_ext
12651 fi
12652 rm -f conftest.$ac_objext conftest.$ac_ext
12653 # Binary search between lo and hi bounds.
12654 while test "x$ac_lo" != "x$ac_hi"; do
12655   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12656   cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663 $ac_includes_default
12664 int
12665 main ()
12666 {
12667 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12668 test_array [0] = 0
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676   (eval $ac_compile) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } &&
12680          { ac_try='test -s conftest.$ac_objext'
12681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682   (eval $ac_try) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   ac_hi=$ac_mid
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 ac_lo=`expr '(' $ac_mid ')' + 1`
12692 fi
12693 rm -f conftest.$ac_objext conftest.$ac_ext
12694 done
12695 case $ac_lo in
12696 ?*) ac_cv_sizeof_char=$ac_lo;;
12697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12698 See \`config.log' for more details." >&5
12699 echo "$as_me: error: cannot compute sizeof (char), 77
12700 See \`config.log' for more details." >&2;}
12701    { (exit 1); exit 1; }; } ;;
12702 esac
12703 else
12704   if test "$cross_compiling" = yes; then
12705   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot run test program while cross compiling
12708 See \`config.log' for more details." >&2;}
12709    { (exit 1); exit 1; }; }
12710 else
12711   cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718 $ac_includes_default
12719 long longval () { return (long) (sizeof (char)); }
12720 unsigned long ulongval () { return (long) (sizeof (char)); }
12721 #include <stdio.h>
12722 #include <stdlib.h>
12723 int
12724 main ()
12725 {
12726
12727   FILE *f = fopen ("conftest.val", "w");
12728   if (! f)
12729     exit (1);
12730   if (((long) (sizeof (char))) < 0)
12731     {
12732       long i = longval ();
12733       if (i != ((long) (sizeof (char))))
12734         exit (1);
12735       fprintf (f, "%ld\n", i);
12736     }
12737   else
12738     {
12739       unsigned long i = ulongval ();
12740       if (i != ((long) (sizeof (char))))
12741         exit (1);
12742       fprintf (f, "%lu\n", i);
12743     }
12744   exit (ferror (f) || fclose (f) != 0);
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761   ac_cv_sizeof_char=`cat conftest.val`
12762 else
12763   echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ( exit $ac_status )
12768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12769 See \`config.log' for more details." >&5
12770 echo "$as_me: error: cannot compute sizeof (char), 77
12771 See \`config.log' for more details." >&2;}
12772    { (exit 1); exit 1; }; }
12773 fi
12774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12775 fi
12776 fi
12777 rm -f conftest.val
12778 else
12779   ac_cv_sizeof_char=0
12780 fi
12781 fi
12782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12783 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12784 cat >>confdefs.h <<_ACEOF
12785 #define SIZEOF_CHAR $ac_cv_sizeof_char
12786 _ACEOF
12787
12788
12789 echo "$as_me:$LINENO: checking for short int" >&5
12790 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12791 if test "${ac_cv_type_short_int+set}" = set; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 int
12803 main ()
12804 {
12805 if ((short int *) 0)
12806   return 0;
12807 if (sizeof (short int))
12808   return 0;
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815   (eval $ac_compile) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } &&
12819          { ac_try='test -s conftest.$ac_objext'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825   ac_cv_type_short_int=yes
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_type_short_int=no
12831 fi
12832 rm -f conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12835 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12836
12837 echo "$as_me:$LINENO: checking size of short int" >&5
12838 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12839 if test "${ac_cv_sizeof_short_int+set}" = set; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   if test "$ac_cv_type_short_int" = yes; then
12843   # The cast to unsigned long works around a bug in the HP C Compiler
12844   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12845   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12846   # This bug is HP SR number 8606223364.
12847   if test "$cross_compiling" = yes; then
12848   # Depending upon the size, compute the lo and hi bounds.
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856 $ac_includes_default
12857 int
12858 main ()
12859 {
12860 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12861 test_array [0] = 0
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869   (eval $ac_compile) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -s conftest.$ac_objext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_lo=0 ac_mid=0
12880   while :; do
12881     cat >conftest.$ac_ext <<_ACEOF
12882 #line $LINENO "configure"
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888 $ac_includes_default
12889 int
12890 main ()
12891 {
12892 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12893 test_array [0] = 0
12894
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901   (eval $ac_compile) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -s conftest.$ac_objext'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   ac_hi=$ac_mid; break
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 ac_lo=`expr $ac_mid + 1`
12917                     if test $ac_lo -le $ac_mid; then
12918                       ac_lo= ac_hi=
12919                       break
12920                     fi
12921                     ac_mid=`expr 2 '*' $ac_mid + 1`
12922 fi
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12924   done
12925 else
12926   echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929 cat >conftest.$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 $ac_includes_default
12937 int
12938 main ()
12939 {
12940 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12941 test_array [0] = 0
12942
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949   (eval $ac_compile) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } &&
12953          { ac_try='test -s conftest.$ac_objext'
12954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955   (eval $ac_try) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_hi=-1 ac_mid=-1
12960   while :; do
12961     cat >conftest.$ac_ext <<_ACEOF
12962 #line $LINENO "configure"
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 $ac_includes_default
12969 int
12970 main ()
12971 {
12972 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12973 test_array [0] = 0
12974
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 rm -f conftest.$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981   (eval $ac_compile) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -s conftest.$ac_objext'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   ac_lo=$ac_mid; break
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_hi=`expr '(' $ac_mid ')' - 1`
12997                        if test $ac_mid -le $ac_hi; then
12998                          ac_lo= ac_hi=
12999                          break
13000                        fi
13001                        ac_mid=`expr 2 '*' $ac_mid`
13002 fi
13003 rm -f conftest.$ac_objext conftest.$ac_ext
13004   done
13005 else
13006   echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 ac_lo= ac_hi=
13010 fi
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13012 fi
13013 rm -f conftest.$ac_objext conftest.$ac_ext
13014 # Binary search between lo and hi bounds.
13015 while test "x$ac_lo" != "x$ac_hi"; do
13016   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13017   cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 $ac_includes_default
13025 int
13026 main ()
13027 {
13028 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13029 test_array [0] = 0
13030
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 rm -f conftest.$ac_objext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037   (eval $ac_compile) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } &&
13041          { ac_try='test -s conftest.$ac_objext'
13042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043   (eval $ac_try) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_hi=$ac_mid
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_lo=`expr '(' $ac_mid ')' + 1`
13053 fi
13054 rm -f conftest.$ac_objext conftest.$ac_ext
13055 done
13056 case $ac_lo in
13057 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13059 See \`config.log' for more details." >&5
13060 echo "$as_me: error: cannot compute sizeof (short int), 77
13061 See \`config.log' for more details." >&2;}
13062    { (exit 1); exit 1; }; } ;;
13063 esac
13064 else
13065   if test "$cross_compiling" = yes; then
13066   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot run test program while cross compiling
13069 See \`config.log' for more details." >&2;}
13070    { (exit 1); exit 1; }; }
13071 else
13072   cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079 $ac_includes_default
13080 long longval () { return (long) (sizeof (short int)); }
13081 unsigned long ulongval () { return (long) (sizeof (short int)); }
13082 #include <stdio.h>
13083 #include <stdlib.h>
13084 int
13085 main ()
13086 {
13087
13088   FILE *f = fopen ("conftest.val", "w");
13089   if (! f)
13090     exit (1);
13091   if (((long) (sizeof (short int))) < 0)
13092     {
13093       long i = longval ();
13094       if (i != ((long) (sizeof (short int))))
13095         exit (1);
13096       fprintf (f, "%ld\n", i);
13097     }
13098   else
13099     {
13100       unsigned long i = ulongval ();
13101       if (i != ((long) (sizeof (short int))))
13102         exit (1);
13103       fprintf (f, "%lu\n", i);
13104     }
13105   exit (ferror (f) || fclose (f) != 0);
13106
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; }; then
13122   ac_cv_sizeof_short_int=`cat conftest.val`
13123 else
13124   echo "$as_me: program exited with status $ac_status" >&5
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ( exit $ac_status )
13129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot compute sizeof (short int), 77
13132 See \`config.log' for more details." >&2;}
13133    { (exit 1); exit 1; }; }
13134 fi
13135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13136 fi
13137 fi
13138 rm -f conftest.val
13139 else
13140   ac_cv_sizeof_short_int=0
13141 fi
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13144 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13145 cat >>confdefs.h <<_ACEOF
13146 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13147 _ACEOF
13148
13149
13150 echo "$as_me:$LINENO: checking for int" >&5
13151 echo $ECHO_N "checking for int... $ECHO_C" >&6
13152 if test "${ac_cv_type_int+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 $ac_includes_default
13163 int
13164 main ()
13165 {
13166 if ((int *) 0)
13167   return 0;
13168 if (sizeof (int))
13169   return 0;
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest.$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176   (eval $ac_compile) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } &&
13180          { ac_try='test -s conftest.$ac_objext'
13181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182   (eval $ac_try) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; }; then
13186   ac_cv_type_int=yes
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_cv_type_int=no
13192 fi
13193 rm -f conftest.$ac_objext conftest.$ac_ext
13194 fi
13195 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13196 echo "${ECHO_T}$ac_cv_type_int" >&6
13197
13198 echo "$as_me:$LINENO: checking size of int" >&5
13199 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13200 if test "${ac_cv_sizeof_int+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   if test "$ac_cv_type_int" = yes; then
13204   # The cast to unsigned long works around a bug in the HP C Compiler
13205   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13206   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13207   # This bug is HP SR number 8606223364.
13208   if test "$cross_compiling" = yes; then
13209   # Depending upon the size, compute the lo and hi bounds.
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217 $ac_includes_default
13218 int
13219 main ()
13220 {
13221 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13222 test_array [0] = 0
13223
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230   (eval $ac_compile) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -s conftest.$ac_objext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_lo=0 ac_mid=0
13241   while :; do
13242     cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 $ac_includes_default
13250 int
13251 main ()
13252 {
13253 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13254 test_array [0] = 0
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_hi=$ac_mid; break
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_lo=`expr $ac_mid + 1`
13278                     if test $ac_lo -le $ac_mid; then
13279                       ac_lo= ac_hi=
13280                       break
13281                     fi
13282                     ac_mid=`expr 2 '*' $ac_mid + 1`
13283 fi
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13285   done
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297 $ac_includes_default
13298 int
13299 main ()
13300 {
13301 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13302 test_array [0] = 0
13303
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310   (eval $ac_compile) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -s conftest.$ac_objext'
13315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316   (eval $ac_try) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   ac_hi=-1 ac_mid=-1
13321   while :; do
13322     cat >conftest.$ac_ext <<_ACEOF
13323 #line $LINENO "configure"
13324 /* confdefs.h.  */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h.  */
13329 $ac_includes_default
13330 int
13331 main ()
13332 {
13333 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13334 test_array [0] = 0
13335
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342   (eval $ac_compile) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } &&
13346          { ac_try='test -s conftest.$ac_objext'
13347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348   (eval $ac_try) 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_lo=$ac_mid; break
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_hi=`expr '(' $ac_mid ')' - 1`
13358                        if test $ac_mid -le $ac_hi; then
13359                          ac_lo= ac_hi=
13360                          break
13361                        fi
13362                        ac_mid=`expr 2 '*' $ac_mid`
13363 fi
13364 rm -f conftest.$ac_objext conftest.$ac_ext
13365   done
13366 else
13367   echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ac_lo= ac_hi=
13371 fi
13372 rm -f conftest.$ac_objext conftest.$ac_ext
13373 fi
13374 rm -f conftest.$ac_objext conftest.$ac_ext
13375 # Binary search between lo and hi bounds.
13376 while test "x$ac_lo" != "x$ac_hi"; do
13377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13378   cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385 $ac_includes_default
13386 int
13387 main ()
13388 {
13389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13390 test_array [0] = 0
13391
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398   (eval $ac_compile) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } &&
13402          { ac_try='test -s conftest.$ac_objext'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_hi=$ac_mid
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_lo=`expr '(' $ac_mid ')' + 1`
13414 fi
13415 rm -f conftest.$ac_objext conftest.$ac_ext
13416 done
13417 case $ac_lo in
13418 ?*) ac_cv_sizeof_int=$ac_lo;;
13419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13420 See \`config.log' for more details." >&5
13421 echo "$as_me: error: cannot compute sizeof (int), 77
13422 See \`config.log' for more details." >&2;}
13423    { (exit 1); exit 1; }; } ;;
13424 esac
13425 else
13426   if test "$cross_compiling" = yes; then
13427   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot run test program while cross compiling
13430 See \`config.log' for more details." >&2;}
13431    { (exit 1); exit 1; }; }
13432 else
13433   cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13435 /* confdefs.h.  */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h.  */
13440 $ac_includes_default
13441 long longval () { return (long) (sizeof (int)); }
13442 unsigned long ulongval () { return (long) (sizeof (int)); }
13443 #include <stdio.h>
13444 #include <stdlib.h>
13445 int
13446 main ()
13447 {
13448
13449   FILE *f = fopen ("conftest.val", "w");
13450   if (! f)
13451     exit (1);
13452   if (((long) (sizeof (int))) < 0)
13453     {
13454       long i = longval ();
13455       if (i != ((long) (sizeof (int))))
13456         exit (1);
13457       fprintf (f, "%ld\n", i);
13458     }
13459   else
13460     {
13461       unsigned long i = ulongval ();
13462       if (i != ((long) (sizeof (int))))
13463         exit (1);
13464       fprintf (f, "%lu\n", i);
13465     }
13466   exit (ferror (f) || fclose (f) != 0);
13467
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest$ac_exeext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13474   (eval $ac_link) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479   (eval $ac_try) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_sizeof_int=`cat conftest.val`
13484 else
13485   echo "$as_me: program exited with status $ac_status" >&5
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ( exit $ac_status )
13490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: cannot compute sizeof (int), 77
13493 See \`config.log' for more details." >&2;}
13494    { (exit 1); exit 1; }; }
13495 fi
13496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13497 fi
13498 fi
13499 rm -f conftest.val
13500 else
13501   ac_cv_sizeof_int=0
13502 fi
13503 fi
13504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13506 cat >>confdefs.h <<_ACEOF
13507 #define SIZEOF_INT $ac_cv_sizeof_int
13508 _ACEOF
13509
13510
13511 echo "$as_me:$LINENO: checking for long int" >&5
13512 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13513 if test "${ac_cv_type_long_int+set}" = set; then
13514   echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516   cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523 $ac_includes_default
13524 int
13525 main ()
13526 {
13527 if ((long int *) 0)
13528   return 0;
13529 if (sizeof (long int))
13530   return 0;
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -s conftest.$ac_objext'
13542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543   (eval $ac_try) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_type_long_int=yes
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 ac_cv_type_long_int=no
13553 fi
13554 rm -f conftest.$ac_objext conftest.$ac_ext
13555 fi
13556 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13557 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13558
13559 echo "$as_me:$LINENO: checking size of long int" >&5
13560 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13561 if test "${ac_cv_sizeof_long_int+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   if test "$ac_cv_type_long_int" = yes; then
13565   # The cast to unsigned long works around a bug in the HP C Compiler
13566   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13567   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13568   # This bug is HP SR number 8606223364.
13569   if test "$cross_compiling" = yes; then
13570   # Depending upon the size, compute the lo and hi bounds.
13571 cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 int
13580 main ()
13581 {
13582 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13583 test_array [0] = 0
13584
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591   (eval $ac_compile) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -s conftest.$ac_objext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601   ac_lo=0 ac_mid=0
13602   while :; do
13603     cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 $ac_includes_default
13611 int
13612 main ()
13613 {
13614 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13615 test_array [0] = 0
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623   (eval $ac_compile) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -s conftest.$ac_objext'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_hi=$ac_mid; break
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_lo=`expr $ac_mid + 1`
13639                     if test $ac_lo -le $ac_mid; then
13640                       ac_lo= ac_hi=
13641                       break
13642                     fi
13643                     ac_mid=`expr 2 '*' $ac_mid + 1`
13644 fi
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13646   done
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 cat >conftest.$ac_ext <<_ACEOF
13652 #line $LINENO "configure"
13653 /* confdefs.h.  */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h.  */
13658 $ac_includes_default
13659 int
13660 main ()
13661 {
13662 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13663 test_array [0] = 0
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_hi=-1 ac_mid=-1
13682   while :; do
13683     cat >conftest.$ac_ext <<_ACEOF
13684 #line $LINENO "configure"
13685 /* confdefs.h.  */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h.  */
13690 $ac_includes_default
13691 int
13692 main ()
13693 {
13694 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13695 test_array [0] = 0
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703   (eval $ac_compile) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -s conftest.$ac_objext'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_lo=$ac_mid; break
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 ac_hi=`expr '(' $ac_mid ')' - 1`
13719                        if test $ac_mid -le $ac_hi; then
13720                          ac_lo= ac_hi=
13721                          break
13722                        fi
13723                        ac_mid=`expr 2 '*' $ac_mid`
13724 fi
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13726   done
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_lo= ac_hi=
13732 fi
13733 rm -f conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 rm -f conftest.$ac_objext conftest.$ac_ext
13736 # Binary search between lo and hi bounds.
13737 while test "x$ac_lo" != "x$ac_hi"; do
13738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13739   cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 $ac_includes_default
13747 int
13748 main ()
13749 {
13750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13751 test_array [0] = 0
13752
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 rm -f conftest.$ac_objext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759   (eval $ac_compile) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } &&
13763          { ac_try='test -s conftest.$ac_objext'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_hi=$ac_mid
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 ac_lo=`expr '(' $ac_mid ')' + 1`
13775 fi
13776 rm -f conftest.$ac_objext conftest.$ac_ext
13777 done
13778 case $ac_lo in
13779 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13781 See \`config.log' for more details." >&5
13782 echo "$as_me: error: cannot compute sizeof (long int), 77
13783 See \`config.log' for more details." >&2;}
13784    { (exit 1); exit 1; }; } ;;
13785 esac
13786 else
13787   if test "$cross_compiling" = yes; then
13788   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot run test program while cross compiling
13791 See \`config.log' for more details." >&2;}
13792    { (exit 1); exit 1; }; }
13793 else
13794   cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 $ac_includes_default
13802 long longval () { return (long) (sizeof (long int)); }
13803 unsigned long ulongval () { return (long) (sizeof (long int)); }
13804 #include <stdio.h>
13805 #include <stdlib.h>
13806 int
13807 main ()
13808 {
13809
13810   FILE *f = fopen ("conftest.val", "w");
13811   if (! f)
13812     exit (1);
13813   if (((long) (sizeof (long int))) < 0)
13814     {
13815       long i = longval ();
13816       if (i != ((long) (sizeof (long int))))
13817         exit (1);
13818       fprintf (f, "%ld\n", i);
13819     }
13820   else
13821     {
13822       unsigned long i = ulongval ();
13823       if (i != ((long) (sizeof (long int))))
13824         exit (1);
13825       fprintf (f, "%lu\n", i);
13826     }
13827   exit (ferror (f) || fclose (f) != 0);
13828
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835   (eval $ac_link) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840   (eval $ac_try) 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; }; then
13844   ac_cv_sizeof_long_int=`cat conftest.val`
13845 else
13846   echo "$as_me: program exited with status $ac_status" >&5
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ( exit $ac_status )
13851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13852 See \`config.log' for more details." >&5
13853 echo "$as_me: error: cannot compute sizeof (long int), 77
13854 See \`config.log' for more details." >&2;}
13855    { (exit 1); exit 1; }; }
13856 fi
13857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13858 fi
13859 fi
13860 rm -f conftest.val
13861 else
13862   ac_cv_sizeof_long_int=0
13863 fi
13864 fi
13865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13866 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13867 cat >>confdefs.h <<_ACEOF
13868 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13869 _ACEOF
13870
13871
13872 echo "$as_me:$LINENO: checking for long long int" >&5
13873 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13874 if test "${ac_cv_type_long_long_int+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 #line $LINENO "configure"
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884 $ac_includes_default
13885 int
13886 main ()
13887 {
13888 if ((long long int *) 0)
13889   return 0;
13890 if (sizeof (long long int))
13891   return 0;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898   (eval $ac_compile) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } &&
13902          { ac_try='test -s conftest.$ac_objext'
13903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904   (eval $ac_try) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; }; then
13908   ac_cv_type_long_long_int=yes
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_cv_type_long_long_int=no
13914 fi
13915 rm -f conftest.$ac_objext conftest.$ac_ext
13916 fi
13917 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13918 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13919
13920 echo "$as_me:$LINENO: checking size of long long int" >&5
13921 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13922 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   if test "$ac_cv_type_long_long_int" = yes; then
13926   # The cast to unsigned long works around a bug in the HP C Compiler
13927   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13928   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13929   # This bug is HP SR number 8606223364.
13930   if test "$cross_compiling" = yes; then
13931   # Depending upon the size, compute the lo and hi bounds.
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 $ac_includes_default
13940 int
13941 main ()
13942 {
13943 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13944 test_array [0] = 0
13945
13946   ;
13947   return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952   (eval $ac_compile) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -s conftest.$ac_objext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_lo=0 ac_mid=0
13963   while :; do
13964     cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 /* confdefs.h.  */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h.  */
13971 $ac_includes_default
13972 int
13973 main ()
13974 {
13975 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13976 test_array [0] = 0
13977
13978   ;
13979   return 0;
13980 }
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984   (eval $ac_compile) 2>&5
13985   ac_status=$?
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } &&
13988          { ac_try='test -s conftest.$ac_objext'
13989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990   (eval $ac_try) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; }; then
13994   ac_hi=$ac_mid; break
13995 else
13996   echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999 ac_lo=`expr $ac_mid + 1`
14000                     if test $ac_lo -le $ac_mid; then
14001                       ac_lo= ac_hi=
14002                       break
14003                     fi
14004                     ac_mid=`expr 2 '*' $ac_mid + 1`
14005 fi
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007   done
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019 $ac_includes_default
14020 int
14021 main ()
14022 {
14023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14024 test_array [0] = 0
14025
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032   (eval $ac_compile) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -s conftest.$ac_objext'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042   ac_hi=-1 ac_mid=-1
14043   while :; do
14044     cat >conftest.$ac_ext <<_ACEOF
14045 #line $LINENO "configure"
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 $ac_includes_default
14052 int
14053 main ()
14054 {
14055 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14056 test_array [0] = 0
14057
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064   (eval $ac_compile) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -s conftest.$ac_objext'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; }; then
14074   ac_lo=$ac_mid; break
14075 else
14076   echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079 ac_hi=`expr '(' $ac_mid ')' - 1`
14080                        if test $ac_mid -le $ac_hi; then
14081                          ac_lo= ac_hi=
14082                          break
14083                        fi
14084                        ac_mid=`expr 2 '*' $ac_mid`
14085 fi
14086 rm -f conftest.$ac_objext conftest.$ac_ext
14087   done
14088 else
14089   echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092 ac_lo= ac_hi=
14093 fi
14094 rm -f conftest.$ac_objext conftest.$ac_ext
14095 fi
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14097 # Binary search between lo and hi bounds.
14098 while test "x$ac_lo" != "x$ac_hi"; do
14099   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14100   cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14102 /* confdefs.h.  */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h.  */
14107 $ac_includes_default
14108 int
14109 main ()
14110 {
14111 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14112 test_array [0] = 0
14113
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 rm -f conftest.$ac_objext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120   (eval $ac_compile) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -s conftest.$ac_objext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   ac_hi=$ac_mid
14131 else
14132   echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135 ac_lo=`expr '(' $ac_mid ')' + 1`
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 done
14139 case $ac_lo in
14140 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14141 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14142 See \`config.log' for more details." >&5
14143 echo "$as_me: error: cannot compute sizeof (long long int), 77
14144 See \`config.log' for more details." >&2;}
14145    { (exit 1); exit 1; }; } ;;
14146 esac
14147 else
14148   if test "$cross_compiling" = yes; then
14149   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot run test program while cross compiling
14152 See \`config.log' for more details." >&2;}
14153    { (exit 1); exit 1; }; }
14154 else
14155   cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 $ac_includes_default
14163 long longval () { return (long) (sizeof (long long int)); }
14164 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14165 #include <stdio.h>
14166 #include <stdlib.h>
14167 int
14168 main ()
14169 {
14170
14171   FILE *f = fopen ("conftest.val", "w");
14172   if (! f)
14173     exit (1);
14174   if (((long) (sizeof (long long int))) < 0)
14175     {
14176       long i = longval ();
14177       if (i != ((long) (sizeof (long long int))))
14178         exit (1);
14179       fprintf (f, "%ld\n", i);
14180     }
14181   else
14182     {
14183       unsigned long i = ulongval ();
14184       if (i != ((long) (sizeof (long long int))))
14185         exit (1);
14186       fprintf (f, "%lu\n", i);
14187     }
14188   exit (ferror (f) || fclose (f) != 0);
14189
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196   (eval $ac_link) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_cv_sizeof_long_long_int=`cat conftest.val`
14206 else
14207   echo "$as_me: program exited with status $ac_status" >&5
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ( exit $ac_status )
14212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14213 See \`config.log' for more details." >&5
14214 echo "$as_me: error: cannot compute sizeof (long long int), 77
14215 See \`config.log' for more details." >&2;}
14216    { (exit 1); exit 1; }; }
14217 fi
14218 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14219 fi
14220 fi
14221 rm -f conftest.val
14222 else
14223   ac_cv_sizeof_long_long_int=0
14224 fi
14225 fi
14226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14227 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14228 cat >>confdefs.h <<_ACEOF
14229 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14230 _ACEOF
14231
14232
14233 echo "$as_me:$LINENO: checking for int *" >&5
14234 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14235 if test "${ac_cv_type_int_p+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 #line $LINENO "configure"
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 $ac_includes_default
14246 int
14247 main ()
14248 {
14249 if ((int * *) 0)
14250   return 0;
14251 if (sizeof (int *))
14252   return 0;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259   (eval $ac_compile) 2>&5
14260   ac_status=$?
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } &&
14263          { ac_try='test -s conftest.$ac_objext'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; }; then
14269   ac_cv_type_int_p=yes
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_cv_type_int_p=no
14275 fi
14276 rm -f conftest.$ac_objext conftest.$ac_ext
14277 fi
14278 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14279 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14280
14281 echo "$as_me:$LINENO: checking size of int *" >&5
14282 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14283 if test "${ac_cv_sizeof_int_p+set}" = set; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   if test "$ac_cv_type_int_p" = yes; then
14287   # The cast to unsigned long works around a bug in the HP C Compiler
14288   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14289   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14290   # This bug is HP SR number 8606223364.
14291   if test "$cross_compiling" = yes; then
14292   # Depending upon the size, compute the lo and hi bounds.
14293 cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 $ac_includes_default
14301 int
14302 main ()
14303 {
14304 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14305 test_array [0] = 0
14306
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313   (eval $ac_compile) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   ac_lo=0 ac_mid=0
14324   while :; do
14325     cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332 $ac_includes_default
14333 int
14334 main ()
14335 {
14336 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14337 test_array [0] = 0
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345   (eval $ac_compile) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_hi=$ac_mid; break
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 ac_lo=`expr $ac_mid + 1`
14361                     if test $ac_lo -le $ac_mid; then
14362                       ac_lo= ac_hi=
14363                       break
14364                     fi
14365                     ac_mid=`expr 2 '*' $ac_mid + 1`
14366 fi
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14368   done
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380 $ac_includes_default
14381 int
14382 main ()
14383 {
14384 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14385 test_array [0] = 0
14386
14387   ;
14388   return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393   (eval $ac_compile) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); } &&
14397          { ac_try='test -s conftest.$ac_objext'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }; then
14403   ac_hi=-1 ac_mid=-1
14404   while :; do
14405     cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 $ac_includes_default
14413 int
14414 main ()
14415 {
14416 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14417 test_array [0] = 0
14418
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425   (eval $ac_compile) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -s conftest.$ac_objext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_lo=$ac_mid; break
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 ac_hi=`expr '(' $ac_mid ')' - 1`
14441                        if test $ac_mid -le $ac_hi; then
14442                          ac_lo= ac_hi=
14443                          break
14444                        fi
14445                        ac_mid=`expr 2 '*' $ac_mid`
14446 fi
14447 rm -f conftest.$ac_objext conftest.$ac_ext
14448   done
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_lo= ac_hi=
14454 fi
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14456 fi
14457 rm -f conftest.$ac_objext conftest.$ac_ext
14458 # Binary search between lo and hi bounds.
14459 while test "x$ac_lo" != "x$ac_hi"; do
14460   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14461   cat >conftest.$ac_ext <<_ACEOF
14462 #line $LINENO "configure"
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 $ac_includes_default
14469 int
14470 main ()
14471 {
14472 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14473 test_array [0] = 0
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481   (eval $ac_compile) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -s conftest.$ac_objext'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   ac_hi=$ac_mid
14492 else
14493   echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_lo=`expr '(' $ac_mid ')' + 1`
14497 fi
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499 done
14500 case $ac_lo in
14501 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14503 See \`config.log' for more details." >&5
14504 echo "$as_me: error: cannot compute sizeof (int *), 77
14505 See \`config.log' for more details." >&2;}
14506    { (exit 1); exit 1; }; } ;;
14507 esac
14508 else
14509   if test "$cross_compiling" = yes; then
14510   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14511 See \`config.log' for more details." >&5
14512 echo "$as_me: error: cannot run test program while cross compiling
14513 See \`config.log' for more details." >&2;}
14514    { (exit 1); exit 1; }; }
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 $ac_includes_default
14524 long longval () { return (long) (sizeof (int *)); }
14525 unsigned long ulongval () { return (long) (sizeof (int *)); }
14526 #include <stdio.h>
14527 #include <stdlib.h>
14528 int
14529 main ()
14530 {
14531
14532   FILE *f = fopen ("conftest.val", "w");
14533   if (! f)
14534     exit (1);
14535   if (((long) (sizeof (int *))) < 0)
14536     {
14537       long i = longval ();
14538       if (i != ((long) (sizeof (int *))))
14539         exit (1);
14540       fprintf (f, "%ld\n", i);
14541     }
14542   else
14543     {
14544       unsigned long i = ulongval ();
14545       if (i != ((long) (sizeof (int *))))
14546         exit (1);
14547       fprintf (f, "%lu\n", i);
14548     }
14549   exit (ferror (f) || fclose (f) != 0);
14550
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest$ac_exeext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14557   (eval $ac_link) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_cv_sizeof_int_p=`cat conftest.val`
14567 else
14568   echo "$as_me: program exited with status $ac_status" >&5
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ( exit $ac_status )
14573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot compute sizeof (int *), 77
14576 See \`config.log' for more details." >&2;}
14577    { (exit 1); exit 1; }; }
14578 fi
14579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 fi
14582 rm -f conftest.val
14583 else
14584   ac_cv_sizeof_int_p=0
14585 fi
14586 fi
14587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14588 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14589 cat >>confdefs.h <<_ACEOF
14590 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14591 _ACEOF
14592
14593
14594
14595 # Check for sys/types.h types
14596 echo "$as_me:$LINENO: checking for u_int type" >&5
14597 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14598 if test "${ac_cv_have_u_int+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601
14602     cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609  #include <sys/types.h>
14610 int
14611 main ()
14612 {
14613  u_int a; a = 1;
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620   (eval $ac_compile) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -s conftest.$ac_objext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630    ac_cv_have_u_int="yes"
14631 else
14632   echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635  ac_cv_have_u_int="no"
14636
14637 fi
14638 rm -f conftest.$ac_objext conftest.$ac_ext
14639
14640 fi
14641 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14642 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14643 if test "x$ac_cv_have_u_int" = "xyes" ; then
14644    cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_U_INT 1
14646 _ACEOF
14647
14648    have_u_int=1
14649 fi
14650
14651 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14652 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14653 if test "${ac_cv_have_intmax_t+set}" = set; then
14654   echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656
14657    cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14659 /* confdefs.h.  */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h.  */
14664  #include <sys/types.h>
14665 int
14666 main ()
14667 {
14668  intmax_t a; a = 1;
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest.$ac_objext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14675   (eval $ac_compile) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } &&
14679          { ac_try='test -s conftest.$ac_objext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685    ac_cv_have_intmax_t="yes"
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690
14691          cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698  #include <stdint.h>
14699 int
14700 main ()
14701 {
14702  intmax_t a; a = 1;
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709   (eval $ac_compile) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -s conftest.$ac_objext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719    ac_cv_have_intmax_t="yes"
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724  ac_cv_have_intmax_t="no"
14725
14726 fi
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14728
14729
14730 fi
14731 rm -f conftest.$ac_objext conftest.$ac_ext
14732
14733
14734 fi
14735 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14736 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14737 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14738    cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_INTMAX_T 1
14740 _ACEOF
14741
14742    have_intmax_t=1
14743 fi
14744
14745
14746 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14747 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14748 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751
14752    cat >conftest.$ac_ext <<_ACEOF
14753 #line $LINENO "configure"
14754 /* confdefs.h.  */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h.  */
14759  #include <sys/types.h>
14760 int
14761 main ()
14762 {
14763  u_intmax_t a; a = 1;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770   (eval $ac_compile) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -s conftest.$ac_objext'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }; then
14780    ac_cv_have_u_intmax_t="yes"
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785
14786          cat >conftest.$ac_ext <<_ACEOF
14787 #line $LINENO "configure"
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793  #include <stdint.h>
14794 int
14795 main ()
14796 {
14797  u_intmax_t a; a = 1;
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804   (eval $ac_compile) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } &&
14808          { ac_try='test -s conftest.$ac_objext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814    ac_cv_have_u_intmax_t="yes"
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819  ac_cv_have_u_intmax_t="no"
14820
14821 fi
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14823
14824
14825 fi
14826 rm -f conftest.$ac_objext conftest.$ac_ext
14827
14828 fi
14829 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14830 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14831 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14832    cat >>confdefs.h <<\_ACEOF
14833 #define HAVE_U_INTMAX_T 1
14834 _ACEOF
14835
14836    have_u_intmax_t=1
14837 fi
14838
14839
14840 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14841 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_intxx_t+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845
14846    cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853  #include <sys/types.h>
14854 int
14855 main ()
14856 {
14857  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864   (eval $ac_compile) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -s conftest.$ac_objext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874    ac_cv_have_intxx_t="yes"
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879  ac_cv_have_intxx_t="no"
14880
14881 fi
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14883
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14887 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14888    cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_INTXX_T 1
14890 _ACEOF
14891
14892    have_intxx_t=1
14893 fi
14894
14895 echo "$as_me:$LINENO: checking for int64_t type" >&5
14896 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14897 if test "${ac_cv_have_int64_t+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900
14901    cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908  #include <sys/types.h>
14909 int
14910 main ()
14911 {
14912  int64_t a; a = 1;
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919   (eval $ac_compile) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } &&
14923          { ac_try='test -s conftest.$ac_objext'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }; then
14929    ac_cv_have_int64_t="yes"
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934  ac_cv_have_int64_t="no"
14935
14936 fi
14937 rm -f conftest.$ac_objext conftest.$ac_ext
14938
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14941 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14942 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14943    cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_INT64_T 1
14945 _ACEOF
14946
14947    have_int64_t=1
14948 fi
14949
14950 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14951 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14952 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955
14956    cat >conftest.$ac_ext <<_ACEOF
14957 #line $LINENO "configure"
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963  #include <sys/types.h>
14964 int
14965 main ()
14966 {
14967  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974   (eval $ac_compile) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); } &&
14978          { ac_try='test -s conftest.$ac_objext'
14979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980   (eval $ac_try) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984    ac_cv_have_u_intxx_t="yes"
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989  ac_cv_have_u_intxx_t="no"
14990
14991 fi
14992 rm -f conftest.$ac_objext conftest.$ac_ext
14993
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14996 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14997 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14998    cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_U_INTXX_T 1
15000 _ACEOF
15001
15002    have_u_intxx_t=1
15003 fi
15004
15005 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15006 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15007 if test "${ac_cv_have_u_int64_t+set}" = set; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010
15011    cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018  #include <sys/types.h>
15019 int
15020 main ()
15021 {
15022  u_int64_t a; a = 1;
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -s conftest.$ac_objext'
15034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035   (eval $ac_try) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); }; }; then
15039    ac_cv_have_u_int64_t="yes"
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044  ac_cv_have_u_int64_t="no"
15045
15046 fi
15047 rm -f conftest.$ac_objext conftest.$ac_ext
15048
15049 fi
15050 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15051 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15052 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15053    cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_U_INT64_T 1
15055 _ACEOF
15056
15057    have_u_int64_t=1
15058 fi
15059
15060 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15061            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15062 then
15063    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15064 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15065    cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072  #include <sys/bitypes.h>
15073 int
15074 main ()
15075 {
15076  int8_t a; int16_t b; int32_t c;
15077         u_int8_t e; u_int16_t f; u_int32_t g;
15078         a = b = c = e = f = g = 1;
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085   (eval $ac_compile) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -s conftest.$ac_objext'
15090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091   (eval $ac_try) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; }; then
15095    cat >>confdefs.h <<\_ACEOF
15096 #define HAVE_U_INTXX_T 1
15097 _ACEOF
15098
15099         cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_INTXX_T 1
15101 _ACEOF
15102
15103         cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_SYS_BITYPES_H 1
15105 _ACEOF
15106
15107         echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113  echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15115
15116 fi
15117 rm -f conftest.$ac_objext conftest.$ac_ext
15118 fi
15119
15120 if test -z "$have_u_intxx_t" ; then
15121    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15122 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15123 if test "${ac_cv_have_uintxx_t+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126
15127       cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134  #include <sys/types.h>
15135 int
15136 main ()
15137 {
15138  uint8_t a; uint16_t b;
15139            uint32_t c; a = b = c = 1;
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146   (eval $ac_compile) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -s conftest.$ac_objext'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156    ac_cv_have_uintxx_t="yes"
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161  ac_cv_have_uintxx_t="no"
15162
15163 fi
15164 rm -f conftest.$ac_objext conftest.$ac_ext
15165
15166 fi
15167 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15168 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15169    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15170       cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_UINTXX_T 1
15172 _ACEOF
15173
15174    fi
15175 fi
15176
15177 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15178           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15179 then
15180    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15181 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15182    cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15184 /* confdefs.h.  */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h.  */
15189  #include <sys/bitypes.h>
15190 int
15191 main ()
15192 {
15193  int64_t a; u_int64_t b;
15194        a = b = 1;
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201   (eval $ac_compile) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } &&
15205          { ac_try='test -s conftest.$ac_objext'
15206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207   (eval $ac_try) 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; }; then
15211    cat >>confdefs.h <<\_ACEOF
15212 #define HAVE_U_INT64_T 1
15213 _ACEOF
15214
15215        cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_INT64_T 1
15217 _ACEOF
15218
15219        echo "$as_me:$LINENO: result: yes" >&5
15220 echo "${ECHO_T}yes" >&6
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225  echo "$as_me:$LINENO: result: no" >&5
15226 echo "${ECHO_T}no" >&6
15227
15228 fi
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 fi
15231
15232 if (test -z "$have_uintxx_t" && \
15233           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15234 then
15235    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15236 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15237    cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244  #include <sys/bitypes.h>
15245 int
15246 main ()
15247 {
15248  uint8_t a; uint16_t b;
15249           uint32_t c; a = b = c = 1;
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256   (eval $ac_compile) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -s conftest.$ac_objext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266    cat >>confdefs.h <<\_ACEOF
15267 #define HAVE_UINTXX_T 1
15268 _ACEOF
15269
15270        echo "$as_me:$LINENO: result: yes" >&5
15271 echo "${ECHO_T}yes" >&6
15272 else
15273   echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276  echo "$as_me:$LINENO: result: no" >&5
15277 echo "${ECHO_T}no" >&6
15278
15279 fi
15280 rm -f conftest.$ac_objext conftest.$ac_ext
15281
15282 fi
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300 for ac_func in \
15301         fork \
15302         getcwd \
15303         gethostname \
15304         getpid \
15305         gettimeofday \
15306         setpgid \
15307         setpgrp \
15308         setsid \
15309         signal \
15310         strerror \
15311         strncmp \
15312         strncpy \
15313         vfprintf \
15314
15315 do
15316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 echo "$as_me:$LINENO: checking for $ac_func" >&5
15318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_var+set}\" = set"; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   cat >conftest.$ac_ext <<_ACEOF
15323 #line $LINENO "configure"
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 /* System header to define __stub macros and hopefully few prototypes,
15330     which can conflict with char $ac_func (); below.
15331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332     <limits.h> exists even on freestanding compilers.  */
15333 #ifdef __STDC__
15334 # include <limits.h>
15335 #else
15336 # include <assert.h>
15337 #endif
15338 /* Override any gcc2 internal prototype to avoid an error.  */
15339 #ifdef __cplusplus
15340 extern "C"
15341 {
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344    builtin and then its argument prototype would still apply.  */
15345 char $ac_func ();
15346 /* The GNU C library defines this for functions which it implements
15347     to always fail with ENOSYS.  Some functions are actually named
15348     something starting with __ and the normal name is an alias.  */
15349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15350 choke me
15351 #else
15352 char (*f) () = $ac_func;
15353 #endif
15354 #ifdef __cplusplus
15355 }
15356 #endif
15357
15358 int
15359 main ()
15360 {
15361 return f != $ac_func;
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368   (eval $ac_link) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } &&
15372          { ac_try='test -s conftest$ac_exeext'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378   eval "$as_ac_var=yes"
15379 else
15380   echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 eval "$as_ac_var=no"
15384 fi
15385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15386 fi
15387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15389 if test `eval echo '${'$as_ac_var'}'` = yes; then
15390   cat >>confdefs.h <<_ACEOF
15391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15392 _ACEOF
15393
15394 else
15395   echo 'configure: cannot find needed function.'; exit 1
15396
15397 fi
15398 done
15399
15400
15401
15402 for ac_func in fchdir
15403 do
15404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   cat >conftest.$ac_ext <<_ACEOF
15411 #line $LINENO "configure"
15412 /* confdefs.h.  */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h.  */
15417 /* System header to define __stub macros and hopefully few prototypes,
15418     which can conflict with char $ac_func (); below.
15419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420     <limits.h> exists even on freestanding compilers.  */
15421 #ifdef __STDC__
15422 # include <limits.h>
15423 #else
15424 # include <assert.h>
15425 #endif
15426 /* Override any gcc2 internal prototype to avoid an error.  */
15427 #ifdef __cplusplus
15428 extern "C"
15429 {
15430 #endif
15431 /* We use char because int might match the return type of a gcc2
15432    builtin and then its argument prototype would still apply.  */
15433 char $ac_func ();
15434 /* The GNU C library defines this for functions which it implements
15435     to always fail with ENOSYS.  Some functions are actually named
15436     something starting with __ and the normal name is an alias.  */
15437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15438 choke me
15439 #else
15440 char (*f) () = $ac_func;
15441 #endif
15442 #ifdef __cplusplus
15443 }
15444 #endif
15445
15446 int
15447 main ()
15448 {
15449 return f != $ac_func;
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456   (eval $ac_link) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -s conftest$ac_exeext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   eval "$as_ac_var=yes"
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 eval "$as_ac_var=no"
15472 fi
15473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15474 fi
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15477 if test `eval echo '${'$as_ac_var'}'` = yes; then
15478   cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15480 _ACEOF
15481  cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_FCHDIR 1
15483 _ACEOF
15484
15485 fi
15486 done
15487
15488
15489 for ac_func in strtoll
15490 do
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_var+set}\" = set"; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 /* System header to define __stub macros and hopefully few prototypes,
15505     which can conflict with char $ac_func (); below.
15506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507     <limits.h> exists even on freestanding compilers.  */
15508 #ifdef __STDC__
15509 # include <limits.h>
15510 #else
15511 # include <assert.h>
15512 #endif
15513 /* Override any gcc2 internal prototype to avoid an error.  */
15514 #ifdef __cplusplus
15515 extern "C"
15516 {
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 $ac_func ();
15521 /* The GNU C library defines this for functions which it implements
15522     to always fail with ENOSYS.  Some functions are actually named
15523     something starting with __ and the normal name is an alias.  */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 choke me
15526 #else
15527 char (*f) () = $ac_func;
15528 #endif
15529 #ifdef __cplusplus
15530 }
15531 #endif
15532
15533 int
15534 main ()
15535 {
15536 return f != $ac_func;
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543   (eval $ac_link) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } &&
15547          { ac_try='test -s conftest$ac_exeext'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; }; then
15553   eval "$as_ac_var=yes"
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 eval "$as_ac_var=no"
15559 fi
15560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15561 fi
15562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15564 if test `eval echo '${'$as_ac_var'}'` = yes; then
15565   cat >>confdefs.h <<_ACEOF
15566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15567 _ACEOF
15568  cat >>confdefs.h <<\_ACEOF
15569 #define HAVE_STRTOLL 1
15570 _ACEOF
15571
15572 fi
15573 done
15574
15575
15576
15577 for ac_func in chflags
15578 do
15579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15580 echo "$as_me:$LINENO: checking for $ac_func" >&5
15581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15582 if eval "test \"\${$as_ac_var+set}\" = set"; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15587 /* confdefs.h.  */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h.  */
15592 /* System header to define __stub macros and hopefully few prototypes,
15593     which can conflict with char $ac_func (); below.
15594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15595     <limits.h> exists even on freestanding compilers.  */
15596 #ifdef __STDC__
15597 # include <limits.h>
15598 #else
15599 # include <assert.h>
15600 #endif
15601 /* Override any gcc2 internal prototype to avoid an error.  */
15602 #ifdef __cplusplus
15603 extern "C"
15604 {
15605 #endif
15606 /* We use char because int might match the return type of a gcc2
15607    builtin and then its argument prototype would still apply.  */
15608 char $ac_func ();
15609 /* The GNU C library defines this for functions which it implements
15610     to always fail with ENOSYS.  Some functions are actually named
15611     something starting with __ and the normal name is an alias.  */
15612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613 choke me
15614 #else
15615 char (*f) () = $ac_func;
15616 #endif
15617 #ifdef __cplusplus
15618 }
15619 #endif
15620
15621 int
15622 main ()
15623 {
15624 return f != $ac_func;
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631   (eval $ac_link) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); } &&
15635          { ac_try='test -s conftest$ac_exeext'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641   eval "$as_ac_var=yes"
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 eval "$as_ac_var=no"
15647 fi
15648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15649 fi
15650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15652 if test `eval echo '${'$as_ac_var'}'` = yes; then
15653   cat >>confdefs.h <<_ACEOF
15654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15655 _ACEOF
15656
15657 fi
15658 done
15659
15660
15661
15662
15663
15664
15665 for ac_func in snprintf vsnprintf gethostid getdomainname
15666 do
15667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15668 echo "$as_me:$LINENO: checking for $ac_func" >&5
15669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15670 if eval "test \"\${$as_ac_var+set}\" = set"; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673   cat >conftest.$ac_ext <<_ACEOF
15674 #line $LINENO "configure"
15675 /* confdefs.h.  */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h.  */
15680 /* System header to define __stub macros and hopefully few prototypes,
15681     which can conflict with char $ac_func (); below.
15682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15683     <limits.h> exists even on freestanding compilers.  */
15684 #ifdef __STDC__
15685 # include <limits.h>
15686 #else
15687 # include <assert.h>
15688 #endif
15689 /* Override any gcc2 internal prototype to avoid an error.  */
15690 #ifdef __cplusplus
15691 extern "C"
15692 {
15693 #endif
15694 /* We use char because int might match the return type of a gcc2
15695    builtin and then its argument prototype would still apply.  */
15696 char $ac_func ();
15697 /* The GNU C library defines this for functions which it implements
15698     to always fail with ENOSYS.  Some functions are actually named
15699     something starting with __ and the normal name is an alias.  */
15700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15701 choke me
15702 #else
15703 char (*f) () = $ac_func;
15704 #endif
15705 #ifdef __cplusplus
15706 }
15707 #endif
15708
15709 int
15710 main ()
15711 {
15712 return f != $ac_func;
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719   (eval $ac_link) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -s conftest$ac_exeext'
15724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725   (eval $ac_try) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   eval "$as_ac_var=yes"
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 eval "$as_ac_var=no"
15735 fi
15736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15737 fi
15738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741   cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 _ACEOF
15744
15745 fi
15746 done
15747
15748
15749
15750
15751
15752
15753 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15754 do
15755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15756 echo "$as_me:$LINENO: checking for $ac_func" >&5
15757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_var+set}\" = set"; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 /* System header to define __stub macros and hopefully few prototypes,
15769     which can conflict with char $ac_func (); below.
15770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771     <limits.h> exists even on freestanding compilers.  */
15772 #ifdef __STDC__
15773 # include <limits.h>
15774 #else
15775 # include <assert.h>
15776 #endif
15777 /* Override any gcc2 internal prototype to avoid an error.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 {
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783    builtin and then its argument prototype would still apply.  */
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786     to always fail with ENOSYS.  Some functions are actually named
15787     something starting with __ and the normal name is an alias.  */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 char (*f) () = $ac_func;
15792 #endif
15793 #ifdef __cplusplus
15794 }
15795 #endif
15796
15797 int
15798 main ()
15799 {
15800 return f != $ac_func;
15801   ;
15802   return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807   (eval $ac_link) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); } &&
15811          { ac_try='test -s conftest$ac_exeext'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }; then
15817   eval "$as_ac_var=yes"
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 eval "$as_ac_var=no"
15823 fi
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15825 fi
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829   cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831 _ACEOF
15832
15833 fi
15834 done
15835
15836
15837 # If resolver functions are not in libc check for -lnsl or -lresolv.
15838 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15839 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15840 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843   cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 /* System header to define __stub macros and hopefully few prototypes,
15851     which can conflict with char gethostbyname_r (); below.
15852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15853     <limits.h> exists even on freestanding compilers.  */
15854 #ifdef __STDC__
15855 # include <limits.h>
15856 #else
15857 # include <assert.h>
15858 #endif
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 #ifdef __cplusplus
15861 extern "C"
15862 {
15863 #endif
15864 /* We use char because int might match the return type of a gcc2
15865    builtin and then its argument prototype would still apply.  */
15866 char gethostbyname_r ();
15867 /* The GNU C library defines this for functions which it implements
15868     to always fail with ENOSYS.  Some functions are actually named
15869     something starting with __ and the normal name is an alias.  */
15870 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15871 choke me
15872 #else
15873 char (*f) () = gethostbyname_r;
15874 #endif
15875 #ifdef __cplusplus
15876 }
15877 #endif
15878
15879 int
15880 main ()
15881 {
15882 return f != gethostbyname_r;
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889   (eval $ac_link) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -s conftest$ac_exeext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_cv_func_gethostbyname_r=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ac_cv_func_gethostbyname_r=no
15905 fi
15906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15907 fi
15908 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15909 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15910 if test $ac_cv_func_gethostbyname_r = yes; then
15911   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15912 echo "${ECHO_T}using libc's resolver" >&6
15913 else
15914
15915 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15916 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15917 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-lnsl  $LIBS"
15922 cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929
15930 /* Override any gcc2 internal prototype to avoid an error.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 /* We use char because int might match the return type of a gcc2
15935    builtin and then its argument prototype would still apply.  */
15936 char gethostbyname_r ();
15937 int
15938 main ()
15939 {
15940 gethostbyname_r ();
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947   (eval $ac_link) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -s conftest$ac_exeext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_cv_lib_nsl_gethostbyname_r=yes
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 ac_cv_lib_nsl_gethostbyname_r=no
15963 fi
15964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15966 fi
15967 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15968 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15969 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15970   cat >>confdefs.h <<_ACEOF
15971 #define HAVE_LIBNSL 1
15972 _ACEOF
15973
15974   LIBS="-lnsl $LIBS"
15975
15976 fi
15977
15978
15979 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15980 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15981 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   ac_check_lib_save_LIBS=$LIBS
15985 LIBS="-lresolv  $LIBS"
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993
15994 /* Override any gcc2 internal prototype to avoid an error.  */
15995 #ifdef __cplusplus
15996 extern "C"
15997 #endif
15998 /* We use char because int might match the return type of a gcc2
15999    builtin and then its argument prototype would still apply.  */
16000 char gethostbyname_r ();
16001 int
16002 main ()
16003 {
16004 gethostbyname_r ();
16005   ;
16006   return 0;
16007 }
16008 _ACEOF
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011   (eval $ac_link) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -s conftest$ac_exeext'
16016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017   (eval $ac_try) 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); }; }; then
16021   ac_cv_lib_resolv_gethostbyname_r=yes
16022 else
16023   echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 ac_cv_lib_resolv_gethostbyname_r=no
16027 fi
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16030 fi
16031 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16032 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16033 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16034   cat >>confdefs.h <<_ACEOF
16035 #define HAVE_LIBRESOLV 1
16036 _ACEOF
16037
16038   LIBS="-lresolv $LIBS"
16039
16040 fi
16041
16042 fi
16043
16044
16045
16046 # Find where sockets are (especially for Solaris)
16047 echo "$as_me:$LINENO: checking for socket" >&5
16048 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16049 if test "${ac_cv_func_socket+set}" = set; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052   cat >conftest.$ac_ext <<_ACEOF
16053 #line $LINENO "configure"
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 /* System header to define __stub macros and hopefully few prototypes,
16060     which can conflict with char socket (); below.
16061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16062     <limits.h> exists even on freestanding compilers.  */
16063 #ifdef __STDC__
16064 # include <limits.h>
16065 #else
16066 # include <assert.h>
16067 #endif
16068 /* Override any gcc2 internal prototype to avoid an error.  */
16069 #ifdef __cplusplus
16070 extern "C"
16071 {
16072 #endif
16073 /* We use char because int might match the return type of a gcc2
16074    builtin and then its argument prototype would still apply.  */
16075 char socket ();
16076 /* The GNU C library defines this for functions which it implements
16077     to always fail with ENOSYS.  Some functions are actually named
16078     something starting with __ and the normal name is an alias.  */
16079 #if defined (__stub_socket) || defined (__stub___socket)
16080 choke me
16081 #else
16082 char (*f) () = socket;
16083 #endif
16084 #ifdef __cplusplus
16085 }
16086 #endif
16087
16088 int
16089 main ()
16090 {
16091 return f != socket;
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098   (eval $ac_link) 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); } &&
16102          { ac_try='test -s conftest$ac_exeext'
16103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104   (eval $ac_try) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108   ac_cv_func_socket=yes
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_cv_func_socket=no
16114 fi
16115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16116 fi
16117 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16118 echo "${ECHO_T}$ac_cv_func_socket" >&6
16119 if test $ac_cv_func_socket = yes; then
16120   echo "$as_me:$LINENO: result: using libc's socket" >&5
16121 echo "${ECHO_T}using libc's socket" >&6
16122 else
16123
16124 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16125 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16126 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   ac_check_lib_save_LIBS=$LIBS
16130 LIBS="-lxnet  $LIBS"
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138
16139 /* Override any gcc2 internal prototype to avoid an error.  */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 /* We use char because int might match the return type of a gcc2
16144    builtin and then its argument prototype would still apply.  */
16145 char socket ();
16146 int
16147 main ()
16148 {
16149 socket ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156   (eval $ac_link) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -s conftest$ac_exeext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   ac_cv_lib_xnet_socket=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 ac_cv_lib_xnet_socket=no
16172 fi
16173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16174 LIBS=$ac_check_lib_save_LIBS
16175 fi
16176 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16177 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16178 if test $ac_cv_lib_xnet_socket = yes; then
16179   cat >>confdefs.h <<_ACEOF
16180 #define HAVE_LIBXNET 1
16181 _ACEOF
16182
16183   LIBS="-lxnet $LIBS"
16184
16185 fi
16186
16187
16188 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16189 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16190 if test "${ac_cv_lib_socket_socket+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   ac_check_lib_save_LIBS=$LIBS
16194 LIBS="-lsocket  $LIBS"
16195 cat >conftest.$ac_ext <<_ACEOF
16196 #line $LINENO "configure"
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202
16203 /* Override any gcc2 internal prototype to avoid an error.  */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 /* We use char because int might match the return type of a gcc2
16208    builtin and then its argument prototype would still apply.  */
16209 char socket ();
16210 int
16211 main ()
16212 {
16213 socket ();
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220   (eval $ac_link) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -s conftest$ac_exeext'
16225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226   (eval $ac_try) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; }; then
16230   ac_cv_lib_socket_socket=yes
16231 else
16232   echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ac_cv_lib_socket_socket=no
16236 fi
16237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16238 LIBS=$ac_check_lib_save_LIBS
16239 fi
16240 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16241 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16242 if test $ac_cv_lib_socket_socket = yes; then
16243   cat >>confdefs.h <<_ACEOF
16244 #define HAVE_LIBSOCKET 1
16245 _ACEOF
16246
16247   LIBS="-lsocket $LIBS"
16248
16249 fi
16250
16251
16252 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16253 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16254 if test "${ac_cv_lib_inet_socket+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   ac_check_lib_save_LIBS=$LIBS
16258 LIBS="-linet  $LIBS"
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #line $LINENO "configure"
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 /* We use char because int might match the return type of a gcc2
16272    builtin and then its argument prototype would still apply.  */
16273 char socket ();
16274 int
16275 main ()
16276 {
16277 socket ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284   (eval $ac_link) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } &&
16288          { ac_try='test -s conftest$ac_exeext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   ac_cv_lib_inet_socket=yes
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 ac_cv_lib_inet_socket=no
16300 fi
16301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16303 fi
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16305 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16306 if test $ac_cv_lib_inet_socket = yes; then
16307   cat >>confdefs.h <<_ACEOF
16308 #define HAVE_LIBINET 1
16309 _ACEOF
16310
16311   LIBS="-linet $LIBS"
16312
16313 fi
16314
16315 fi
16316
16317
16318
16319 for ac_func in inet_pton
16320 do
16321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   cat >conftest.$ac_ext <<_ACEOF
16328 #line $LINENO "configure"
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334 /* System header to define __stub macros and hopefully few prototypes,
16335     which can conflict with char $ac_func (); below.
16336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337     <limits.h> exists even on freestanding compilers.  */
16338 #ifdef __STDC__
16339 # include <limits.h>
16340 #else
16341 # include <assert.h>
16342 #endif
16343 /* Override any gcc2 internal prototype to avoid an error.  */
16344 #ifdef __cplusplus
16345 extern "C"
16346 {
16347 #endif
16348 /* We use char because int might match the return type of a gcc2
16349    builtin and then its argument prototype would still apply.  */
16350 char $ac_func ();
16351 /* The GNU C library defines this for functions which it implements
16352     to always fail with ENOSYS.  Some functions are actually named
16353     something starting with __ and the normal name is an alias.  */
16354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16355 choke me
16356 #else
16357 char (*f) () = $ac_func;
16358 #endif
16359 #ifdef __cplusplus
16360 }
16361 #endif
16362
16363 int
16364 main ()
16365 {
16366 return f != $ac_func;
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373   (eval $ac_link) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); } &&
16377          { ac_try='test -s conftest$ac_exeext'
16378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379   (eval $ac_try) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; }; then
16383   eval "$as_ac_var=yes"
16384 else
16385   echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 eval "$as_ac_var=no"
16389 fi
16390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16391 fi
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395   cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 _ACEOF
16398  cat >>confdefs.h <<\_ACEOF
16399 #define HAVE_INET_PTON 1
16400 _ACEOF
16401
16402 fi
16403 done
16404
16405
16406 for ac_func in inet_ntop
16407 do
16408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16409 echo "$as_me:$LINENO: checking for $ac_func" >&5
16410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16411 if eval "test \"\${$as_ac_var+set}\" = set"; then
16412   echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414   cat >conftest.$ac_ext <<_ACEOF
16415 #line $LINENO "configure"
16416 /* confdefs.h.  */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h.  */
16421 /* System header to define __stub macros and hopefully few prototypes,
16422     which can conflict with char $ac_func (); below.
16423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16424     <limits.h> exists even on freestanding compilers.  */
16425 #ifdef __STDC__
16426 # include <limits.h>
16427 #else
16428 # include <assert.h>
16429 #endif
16430 /* Override any gcc2 internal prototype to avoid an error.  */
16431 #ifdef __cplusplus
16432 extern "C"
16433 {
16434 #endif
16435 /* We use char because int might match the return type of a gcc2
16436    builtin and then its argument prototype would still apply.  */
16437 char $ac_func ();
16438 /* The GNU C library defines this for functions which it implements
16439     to always fail with ENOSYS.  Some functions are actually named
16440     something starting with __ and the normal name is an alias.  */
16441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16442 choke me
16443 #else
16444 char (*f) () = $ac_func;
16445 #endif
16446 #ifdef __cplusplus
16447 }
16448 #endif
16449
16450 int
16451 main ()
16452 {
16453 return f != $ac_func;
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460   (eval $ac_link) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470   eval "$as_ac_var=yes"
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475 eval "$as_ac_var=no"
16476 fi
16477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16478 fi
16479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482   cat >>confdefs.h <<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16484 _ACEOF
16485  cat >>confdefs.h <<\_ACEOF
16486 #define HAVE_INET_NTOP 1
16487 _ACEOF
16488
16489 fi
16490 done
16491
16492
16493 for ac_func in gethostbyname2
16494 do
16495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16496 echo "$as_me:$LINENO: checking for $ac_func" >&5
16497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16498 if eval "test \"\${$as_ac_var+set}\" = set"; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   cat >conftest.$ac_ext <<_ACEOF
16502 #line $LINENO "configure"
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508 /* System header to define __stub macros and hopefully few prototypes,
16509     which can conflict with char $ac_func (); below.
16510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16511     <limits.h> exists even on freestanding compilers.  */
16512 #ifdef __STDC__
16513 # include <limits.h>
16514 #else
16515 # include <assert.h>
16516 #endif
16517 /* Override any gcc2 internal prototype to avoid an error.  */
16518 #ifdef __cplusplus
16519 extern "C"
16520 {
16521 #endif
16522 /* We use char because int might match the return type of a gcc2
16523    builtin and then its argument prototype would still apply.  */
16524 char $ac_func ();
16525 /* The GNU C library defines this for functions which it implements
16526     to always fail with ENOSYS.  Some functions are actually named
16527     something starting with __ and the normal name is an alias.  */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16529 choke me
16530 #else
16531 char (*f) () = $ac_func;
16532 #endif
16533 #ifdef __cplusplus
16534 }
16535 #endif
16536
16537 int
16538 main ()
16539 {
16540 return f != $ac_func;
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547   (eval $ac_link) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   eval "$as_ac_var=yes"
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 eval "$as_ac_var=no"
16563 fi
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16565 fi
16566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16568 if test `eval echo '${'$as_ac_var'}'` = yes; then
16569   cat >>confdefs.h <<_ACEOF
16570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571 _ACEOF
16572  cat >>confdefs.h <<\_ACEOF
16573 #define HAVE_GETHOSTBYNAME2 1
16574 _ACEOF
16575
16576 fi
16577 done
16578
16579
16580 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16581 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16582 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 #include <sys/socket.h>
16593 int
16594 main ()
16595 {
16596 struct sockaddr s; s.sa_len;
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16603   (eval $ac_compile) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -s conftest.$ac_objext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   ac_cv_struct_sockaddr_sa_len=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ac_cv_struct_sockaddr_sa_len=no
16619 fi
16620 rm -f conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16623 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16624
16625  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16626
16627 cat >>confdefs.h <<\_ACEOF
16628 #define HAVE_SA_LEN 1
16629 _ACEOF
16630
16631  fi
16632
16633
16634 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16635 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16636 if test "${ac_cv_ipv6_support+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639   cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646  #include <sys/types.h>
16647 #include <sys/socket.h>
16648 #include <netinet/in.h>
16649 int
16650 main ()
16651 {
16652 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16653  0;
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660   (eval $ac_link) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -s conftest$ac_exeext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_ipv6_support=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_cv_ipv6_support=no
16676 fi
16677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678 fi
16679 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16680 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16681
16682 if test "$ac_cv_ipv6_support" = yes; then
16683
16684 cat >>confdefs.h <<\_ACEOF
16685 #define HAVE_IPV6 1
16686 _ACEOF
16687
16688 fi
16689
16690
16691
16692
16693 for ac_func in strftime
16694 do
16695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16696 echo "$as_me:$LINENO: checking for $ac_func" >&5
16697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16698 if eval "test \"\${$as_ac_var+set}\" = set"; then
16699   echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701   cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708 /* System header to define __stub macros and hopefully few prototypes,
16709     which can conflict with char $ac_func (); below.
16710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711     <limits.h> exists even on freestanding compilers.  */
16712 #ifdef __STDC__
16713 # include <limits.h>
16714 #else
16715 # include <assert.h>
16716 #endif
16717 /* Override any gcc2 internal prototype to avoid an error.  */
16718 #ifdef __cplusplus
16719 extern "C"
16720 {
16721 #endif
16722 /* We use char because int might match the return type of a gcc2
16723    builtin and then its argument prototype would still apply.  */
16724 char $ac_func ();
16725 /* The GNU C library defines this for functions which it implements
16726     to always fail with ENOSYS.  Some functions are actually named
16727     something starting with __ and the normal name is an alias.  */
16728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16729 choke me
16730 #else
16731 char (*f) () = $ac_func;
16732 #endif
16733 #ifdef __cplusplus
16734 }
16735 #endif
16736
16737 int
16738 main ()
16739 {
16740 return f != $ac_func;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747   (eval $ac_link) 2>&5
16748   ac_status=$?
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } &&
16751          { ac_try='test -s conftest$ac_exeext'
16752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753   (eval $ac_try) 2>&5
16754   ac_status=$?
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); }; }; then
16757   eval "$as_ac_var=yes"
16758 else
16759   echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 eval "$as_ac_var=no"
16763 fi
16764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16765 fi
16766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16768 if test `eval echo '${'$as_ac_var'}'` = yes; then
16769   cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16771 _ACEOF
16772
16773 else
16774   # strftime is in -lintl on SCO UNIX.
16775 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16776 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16777 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   ac_check_lib_save_LIBS=$LIBS
16781 LIBS="-lintl  $LIBS"
16782 cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16784 /* confdefs.h.  */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h.  */
16789
16790 /* Override any gcc2 internal prototype to avoid an error.  */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 /* We use char because int might match the return type of a gcc2
16795    builtin and then its argument prototype would still apply.  */
16796 char strftime ();
16797 int
16798 main ()
16799 {
16800 strftime ();
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807   (eval $ac_link) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -s conftest$ac_exeext'
16812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813   (eval $ac_try) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; }; then
16817   ac_cv_lib_intl_strftime=yes
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 ac_cv_lib_intl_strftime=no
16823 fi
16824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16826 fi
16827 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16828 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16829 if test $ac_cv_lib_intl_strftime = yes; then
16830   cat >>confdefs.h <<\_ACEOF
16831 #define HAVE_STRFTIME 1
16832 _ACEOF
16833
16834 LIBS="-lintl $LIBS"
16835 fi
16836
16837 fi
16838 done
16839
16840
16841 for ac_func in vprintf
16842 do
16843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844 echo "$as_me:$LINENO: checking for $ac_func" >&5
16845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16846 if eval "test \"\${$as_ac_var+set}\" = set"; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 /* System header to define __stub macros and hopefully few prototypes,
16857     which can conflict with char $ac_func (); below.
16858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16859     <limits.h> exists even on freestanding compilers.  */
16860 #ifdef __STDC__
16861 # include <limits.h>
16862 #else
16863 # include <assert.h>
16864 #endif
16865 /* Override any gcc2 internal prototype to avoid an error.  */
16866 #ifdef __cplusplus
16867 extern "C"
16868 {
16869 #endif
16870 /* We use char because int might match the return type of a gcc2
16871    builtin and then its argument prototype would still apply.  */
16872 char $ac_func ();
16873 /* The GNU C library defines this for functions which it implements
16874     to always fail with ENOSYS.  Some functions are actually named
16875     something starting with __ and the normal name is an alias.  */
16876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16877 choke me
16878 #else
16879 char (*f) () = $ac_func;
16880 #endif
16881 #ifdef __cplusplus
16882 }
16883 #endif
16884
16885 int
16886 main ()
16887 {
16888 return f != $ac_func;
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16895   (eval $ac_link) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -s conftest$ac_exeext'
16900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901   (eval $ac_try) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   eval "$as_ac_var=yes"
16906 else
16907   echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 eval "$as_ac_var=no"
16911 fi
16912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16913 fi
16914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16916 if test `eval echo '${'$as_ac_var'}'` = yes; then
16917   cat >>confdefs.h <<_ACEOF
16918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16919 _ACEOF
16920
16921 echo "$as_me:$LINENO: checking for _doprnt" >&5
16922 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16923 if test "${ac_cv_func__doprnt+set}" = set; then
16924   echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926   cat >conftest.$ac_ext <<_ACEOF
16927 #line $LINENO "configure"
16928 /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933 /* System header to define __stub macros and hopefully few prototypes,
16934     which can conflict with char _doprnt (); below.
16935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936     <limits.h> exists even on freestanding compilers.  */
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16942 /* Override any gcc2 internal prototype to avoid an error.  */
16943 #ifdef __cplusplus
16944 extern "C"
16945 {
16946 #endif
16947 /* We use char because int might match the return type of a gcc2
16948    builtin and then its argument prototype would still apply.  */
16949 char _doprnt ();
16950 /* The GNU C library defines this for functions which it implements
16951     to always fail with ENOSYS.  Some functions are actually named
16952     something starting with __ and the normal name is an alias.  */
16953 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16954 choke me
16955 #else
16956 char (*f) () = _doprnt;
16957 #endif
16958 #ifdef __cplusplus
16959 }
16960 #endif
16961
16962 int
16963 main ()
16964 {
16965 return f != _doprnt;
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972   (eval $ac_link) 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); } &&
16976          { ac_try='test -s conftest$ac_exeext'
16977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978   (eval $ac_try) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); }; }; then
16982   ac_cv_func__doprnt=yes
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 ac_cv_func__doprnt=no
16988 fi
16989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16990 fi
16991 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16992 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16993 if test $ac_cv_func__doprnt = yes; then
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_DOPRNT 1
16997 _ACEOF
16998
16999 fi
17000
17001 fi
17002 done
17003
17004
17005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17006 # for constant arguments.  Useless!
17007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17009 if test "${ac_cv_working_alloca_h+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   cat >conftest.$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17014 /* confdefs.h.  */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h.  */
17019 #include <alloca.h>
17020 int
17021 main ()
17022 {
17023 char *p = (char *) alloca (2 * sizeof (int));
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030   (eval $ac_link) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_working_alloca_h=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_cv_working_alloca_h=no
17046 fi
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048 fi
17049 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17050 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17051 if test $ac_cv_working_alloca_h = yes; then
17052
17053 cat >>confdefs.h <<\_ACEOF
17054 #define HAVE_ALLOCA_H 1
17055 _ACEOF
17056
17057 fi
17058
17059 echo "$as_me:$LINENO: checking for alloca" >&5
17060 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17061 if test "${ac_cv_func_alloca_works+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   cat >conftest.$ac_ext <<_ACEOF
17065 #line $LINENO "configure"
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071 #ifdef __GNUC__
17072 # define alloca __builtin_alloca
17073 #else
17074 # ifdef _MSC_VER
17075 #  include <malloc.h>
17076 #  define alloca _alloca
17077 # else
17078 #  if HAVE_ALLOCA_H
17079 #   include <alloca.h>
17080 #  else
17081 #   ifdef _AIX
17082  #pragma alloca
17083 #   else
17084 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17085 char *alloca ();
17086 #    endif
17087 #   endif
17088 #  endif
17089 # endif
17090 #endif
17091
17092 int
17093 main ()
17094 {
17095 char *p = (char *) alloca (1);
17096   ;
17097   return 0;
17098 }
17099 _ACEOF
17100 rm -f conftest.$ac_objext conftest$ac_exeext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102   (eval $ac_link) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } &&
17106          { ac_try='test -s conftest$ac_exeext'
17107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108   (eval $ac_try) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112   ac_cv_func_alloca_works=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_cv_func_alloca_works=no
17118 fi
17119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17123
17124 if test $ac_cv_func_alloca_works = yes; then
17125
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_ALLOCA 1
17128 _ACEOF
17129
17130 else
17131   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17132 # that cause trouble.  Some versions do not even contain alloca or
17133 # contain a buggy version.  If you still want to use their alloca,
17134 # use ar to extract alloca.o from them instead of compiling alloca.c.
17135
17136 ALLOCA=alloca.$ac_objext
17137
17138 cat >>confdefs.h <<\_ACEOF
17139 #define C_ALLOCA 1
17140 _ACEOF
17141
17142
17143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17145 if test "${ac_cv_os_cray+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148   cat >conftest.$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17150 /* confdefs.h.  */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h.  */
17155 #if defined(CRAY) && ! defined(CRAY2)
17156 webecray
17157 #else
17158 wenotbecray
17159 #endif
17160
17161 _ACEOF
17162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17163   $EGREP "webecray" >/dev/null 2>&1; then
17164   ac_cv_os_cray=yes
17165 else
17166   ac_cv_os_cray=no
17167 fi
17168 rm -f conftest*
17169
17170 fi
17171 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17172 echo "${ECHO_T}$ac_cv_os_cray" >&6
17173 if test $ac_cv_os_cray = yes; then
17174   for ac_func in _getb67 GETB67 getb67; do
17175     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17176 echo "$as_me:$LINENO: checking for $ac_func" >&5
17177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_var+set}\" = set"; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   cat >conftest.$ac_ext <<_ACEOF
17182 #line $LINENO "configure"
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 /* System header to define __stub macros and hopefully few prototypes,
17189     which can conflict with char $ac_func (); below.
17190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17191     <limits.h> exists even on freestanding compilers.  */
17192 #ifdef __STDC__
17193 # include <limits.h>
17194 #else
17195 # include <assert.h>
17196 #endif
17197 /* Override any gcc2 internal prototype to avoid an error.  */
17198 #ifdef __cplusplus
17199 extern "C"
17200 {
17201 #endif
17202 /* We use char because int might match the return type of a gcc2
17203    builtin and then its argument prototype would still apply.  */
17204 char $ac_func ();
17205 /* The GNU C library defines this for functions which it implements
17206     to always fail with ENOSYS.  Some functions are actually named
17207     something starting with __ and the normal name is an alias.  */
17208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17209 choke me
17210 #else
17211 char (*f) () = $ac_func;
17212 #endif
17213 #ifdef __cplusplus
17214 }
17215 #endif
17216
17217 int
17218 main ()
17219 {
17220 return f != $ac_func;
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227   (eval $ac_link) 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } &&
17231          { ac_try='test -s conftest$ac_exeext'
17232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233   (eval $ac_try) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   eval "$as_ac_var=yes"
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 eval "$as_ac_var=no"
17243 fi
17244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17245 fi
17246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17248 if test `eval echo '${'$as_ac_var'}'` = yes; then
17249
17250 cat >>confdefs.h <<_ACEOF
17251 #define CRAY_STACKSEG_END $ac_func
17252 _ACEOF
17253
17254     break
17255 fi
17256
17257   done
17258 fi
17259
17260 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17262 if test "${ac_cv_c_stack_direction+set}" = set; then
17263   echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17265   if test "$cross_compiling" = yes; then
17266   ac_cv_c_stack_direction=0
17267 else
17268   cat >conftest.$ac_ext <<_ACEOF
17269 #line $LINENO "configure"
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 int
17276 find_stack_direction ()
17277 {
17278   static char *addr = 0;
17279   auto char dummy;
17280   if (addr == 0)
17281     {
17282       addr = &dummy;
17283       return find_stack_direction ();
17284     }
17285   else
17286     return (&dummy > addr) ? 1 : -1;
17287 }
17288
17289 int
17290 main ()
17291 {
17292   exit (find_stack_direction () < 0);
17293 }
17294 _ACEOF
17295 rm -f conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297   (eval $ac_link) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_cv_c_stack_direction=1
17307 else
17308   echo "$as_me: program exited with status $ac_status" >&5
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ( exit $ac_status )
17313 ac_cv_c_stack_direction=-1
17314 fi
17315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17316 fi
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17320
17321 cat >>confdefs.h <<_ACEOF
17322 #define STACK_DIRECTION $ac_cv_c_stack_direction
17323 _ACEOF
17324
17325
17326 fi
17327
17328 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17329 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17330 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17331 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334   ac_check_lib_save_LIBS=$LIBS
17335 LIBS="-lsun  $LIBS"
17336 cat >conftest.$ac_ext <<_ACEOF
17337 #line $LINENO "configure"
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343
17344 /* Override any gcc2 internal prototype to avoid an error.  */
17345 #ifdef __cplusplus
17346 extern "C"
17347 #endif
17348 /* We use char because int might match the return type of a gcc2
17349    builtin and then its argument prototype would still apply.  */
17350 char getmntent ();
17351 int
17352 main ()
17353 {
17354 getmntent ();
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361   (eval $ac_link) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ac_cv_lib_sun_getmntent=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_cv_lib_sun_getmntent=no
17377 fi
17378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17382 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17383 if test $ac_cv_lib_sun_getmntent = yes; then
17384   LIBS="-lsun $LIBS"
17385 else
17386   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17387 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17388 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lseq  $LIBS"
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17395 /* confdefs.h.  */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h.  */
17400
17401 /* Override any gcc2 internal prototype to avoid an error.  */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 /* We use char because int might match the return type of a gcc2
17406    builtin and then its argument prototype would still apply.  */
17407 char getmntent ();
17408 int
17409 main ()
17410 {
17411 getmntent ();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418   (eval $ac_link) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } &&
17422          { ac_try='test -s conftest$ac_exeext'
17423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424   (eval $ac_try) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; }; then
17428   ac_cv_lib_seq_getmntent=yes
17429 else
17430   echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 ac_cv_lib_seq_getmntent=no
17434 fi
17435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17436 LIBS=$ac_check_lib_save_LIBS
17437 fi
17438 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17439 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17440 if test $ac_cv_lib_seq_getmntent = yes; then
17441   LIBS="-lseq $LIBS"
17442 else
17443   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17444 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17445 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   ac_check_lib_save_LIBS=$LIBS
17449 LIBS="-lgen  $LIBS"
17450 cat >conftest.$ac_ext <<_ACEOF
17451 #line $LINENO "configure"
17452 /* confdefs.h.  */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h.  */
17457
17458 /* Override any gcc2 internal prototype to avoid an error.  */
17459 #ifdef __cplusplus
17460 extern "C"
17461 #endif
17462 /* We use char because int might match the return type of a gcc2
17463    builtin and then its argument prototype would still apply.  */
17464 char getmntent ();
17465 int
17466 main ()
17467 {
17468 getmntent ();
17469   ;
17470   return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475   (eval $ac_link) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); } &&
17479          { ac_try='test -s conftest$ac_exeext'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; }; then
17485   ac_cv_lib_gen_getmntent=yes
17486 else
17487   echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490 ac_cv_lib_gen_getmntent=no
17491 fi
17492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17493 LIBS=$ac_check_lib_save_LIBS
17494 fi
17495 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17496 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17497 if test $ac_cv_lib_gen_getmntent = yes; then
17498   LIBS="-lgen $LIBS"
17499 fi
17500
17501 fi
17502
17503 fi
17504
17505
17506 for ac_func in getmntent
17507 do
17508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17509 echo "$as_me:$LINENO: checking for $ac_func" >&5
17510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17511 if eval "test \"\${$as_ac_var+set}\" = set"; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   cat >conftest.$ac_ext <<_ACEOF
17515 #line $LINENO "configure"
17516 /* confdefs.h.  */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h.  */
17521 /* System header to define __stub macros and hopefully few prototypes,
17522     which can conflict with char $ac_func (); below.
17523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524     <limits.h> exists even on freestanding compilers.  */
17525 #ifdef __STDC__
17526 # include <limits.h>
17527 #else
17528 # include <assert.h>
17529 #endif
17530 /* Override any gcc2 internal prototype to avoid an error.  */
17531 #ifdef __cplusplus
17532 extern "C"
17533 {
17534 #endif
17535 /* We use char because int might match the return type of a gcc2
17536    builtin and then its argument prototype would still apply.  */
17537 char $ac_func ();
17538 /* The GNU C library defines this for functions which it implements
17539     to always fail with ENOSYS.  Some functions are actually named
17540     something starting with __ and the normal name is an alias.  */
17541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17542 choke me
17543 #else
17544 char (*f) () = $ac_func;
17545 #endif
17546 #ifdef __cplusplus
17547 }
17548 #endif
17549
17550 int
17551 main ()
17552 {
17553 return f != $ac_func;
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560   (eval $ac_link) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -s conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   eval "$as_ac_var=yes"
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 eval "$as_ac_var=no"
17576 fi
17577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17578 fi
17579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17581 if test `eval echo '${'$as_ac_var'}'` = yes; then
17582   cat >>confdefs.h <<_ACEOF
17583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17584 _ACEOF
17585
17586 fi
17587 done
17588
17589
17590 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17591 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17592 if test "${ac_cv_func_closedir_void+set}" = set; then
17593   echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595   if test "$cross_compiling" = yes; then
17596   ac_cv_func_closedir_void=yes
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 #line $LINENO "configure"
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 $ac_includes_default
17606 #include <$ac_header_dirent>
17607 #ifndef __cplusplus
17608 int closedir ();
17609 #endif
17610
17611 int
17612 main ()
17613 {
17614 exit (closedir (opendir (".")) != 0);
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest$ac_exeext
17620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17621   (eval $ac_link) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626   (eval $ac_try) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); }; }; then
17630   ac_cv_func_closedir_void=no
17631 else
17632   echo "$as_me: program exited with status $ac_status" >&5
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636 ( exit $ac_status )
17637 ac_cv_func_closedir_void=yes
17638 fi
17639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17640 fi
17641 fi
17642 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17643 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17644 if test $ac_cv_func_closedir_void = yes; then
17645
17646 cat >>confdefs.h <<\_ACEOF
17647 #define CLOSEDIR_VOID 1
17648 _ACEOF
17649
17650 fi
17651
17652 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17653 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17654 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   if test "$cross_compiling" = yes; then
17658   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17659 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17660    { (exit 1); exit 1; }; }
17661 else
17662   cat >conftest.$ac_ext <<_ACEOF
17663 #line $LINENO "configure"
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669 #if HAVE_UNISTD_H
17670 # include <unistd.h>
17671 #endif
17672
17673 int
17674 main ()
17675 {
17676 /* If this system has a BSD-style setpgrp which takes arguments,
17677   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17678   exit successfully. */
17679   exit (setpgrp (1,1) == -1 ? 0 : 1);
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686   (eval $ac_link) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691   (eval $ac_try) 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; }; then
17695   ac_cv_func_setpgrp_void=no
17696 else
17697   echo "$as_me: program exited with status $ac_status" >&5
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 ( exit $ac_status )
17702 ac_cv_func_setpgrp_void=yes
17703 fi
17704 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17705 fi
17706 fi
17707 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17708 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17709 if test $ac_cv_func_setpgrp_void = yes; then
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define SETPGRP_VOID 1
17713 _ACEOF
17714
17715 fi
17716                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17717 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17718 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721   # Some versions of Solaris, SCO, and the GNU C Library
17722    # have a broken or incompatible fnmatch.
17723    # So we run a test program.  If we are cross-compiling, take no chance.
17724    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17725    if test "$cross_compiling" = yes; then
17726   ac_cv_func_fnmatch_works=cross
17727 else
17728   cat >conftest.$ac_ext <<_ACEOF
17729 #line $LINENO "configure"
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 #include <fnmatch.h>
17736 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17737 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17738
17739 int
17740 main ()
17741 {
17742 exit
17743            (!(y ("a*", "abc", 0)
17744               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17745               && y ("a\\\\bc", "abc", 0)
17746               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17747               && y ("*x", ".x", 0)
17748               && n ("*x", ".x", FNM_PERIOD)
17749               && 1));
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   ac_cv_func_fnmatch_works=yes
17766 else
17767   echo "$as_me: program exited with status $ac_status" >&5
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ( exit $ac_status )
17772 ac_cv_func_fnmatch_works=no
17773 fi
17774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17775 fi
17776 fi
17777 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17778 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17779 if test $ac_cv_func_fnmatch_works = yes; then
17780
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_FNMATCH 1
17783 _ACEOF
17784
17785 fi
17786
17787
17788
17789
17790
17791 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17792 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17793 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17794   echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796   ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-lxpg4  $LIBS"
17798 cat >conftest.$ac_ext <<_ACEOF
17799 #line $LINENO "configure"
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 /* Override any gcc2 internal prototype to avoid an error.  */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 /* We use char because int might match the return type of a gcc2
17811    builtin and then its argument prototype would still apply.  */
17812 char setlocale ();
17813 int
17814 main ()
17815 {
17816 setlocale ();
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823   (eval $ac_link) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); } &&
17827          { ac_try='test -s conftest$ac_exeext'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; }; then
17833   ac_cv_lib_xpg4_setlocale=yes
17834 else
17835   echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_cv_lib_xpg4_setlocale=no
17839 fi
17840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17842 fi
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17844 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17845 if test $ac_cv_lib_xpg4_setlocale = yes; then
17846   LIBS="$LIBS -lxpg4"
17847 fi
17848
17849
17850
17851
17852 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17853 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17854 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   ac_check_lib_save_LIBS=$LIBS
17858 LIBS="-lsun  $LIBS"
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line $LINENO "configure"
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866
17867 /* Override any gcc2 internal prototype to avoid an error.  */
17868 #ifdef __cplusplus
17869 extern "C"
17870 #endif
17871 /* We use char because int might match the return type of a gcc2
17872    builtin and then its argument prototype would still apply.  */
17873 char getpwnam ();
17874 int
17875 main ()
17876 {
17877 getpwnam ();
17878   ;
17879   return 0;
17880 }
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17884   (eval $ac_link) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -s conftest$ac_exeext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   ac_cv_lib_sun_getpwnam=yes
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 ac_cv_lib_sun_getpwnam=no
17900 fi
17901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17903 fi
17904 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17905 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17906 if test $ac_cv_lib_sun_getpwnam = yes; then
17907   cat >>confdefs.h <<_ACEOF
17908 #define HAVE_LIBSUN 1
17909 _ACEOF
17910
17911   LIBS="-lsun $LIBS"
17912
17913 fi
17914
17915
17916
17917 for ac_header in zlib.h
17918 do
17919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17921   echo "$as_me:$LINENO: checking for $ac_header" >&5
17922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17924   echo $ECHO_N "(cached) $ECHO_C" >&6
17925 fi
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17928 else
17929   # Is the header compilable?
17930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17933 #line $LINENO "configure"
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939 $ac_includes_default
17940 #include <$ac_header>
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944   (eval $ac_compile) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } &&
17948          { ac_try='test -s conftest.$ac_objext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_header_compiler=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_header_compiler=no
17960 fi
17961 rm -f conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17963 echo "${ECHO_T}$ac_header_compiler" >&6
17964
17965 # Is the header present?
17966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17968 cat >conftest.$ac_ext <<_ACEOF
17969 #line $LINENO "configure"
17970 /* confdefs.h.  */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h.  */
17975 #include <$ac_header>
17976 _ACEOF
17977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } >/dev/null; then
17985   if test -s conftest.err; then
17986     ac_cpp_err=$ac_c_preproc_warn_flag
17987   else
17988     ac_cpp_err=
17989   fi
17990 else
17991   ac_cpp_err=yes
17992 fi
17993 if test -z "$ac_cpp_err"; then
17994   ac_header_preproc=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999   ac_header_preproc=no
18000 fi
18001 rm -f conftest.err conftest.$ac_ext
18002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18003 echo "${ECHO_T}$ac_header_preproc" >&6
18004
18005 # So?  What about this header?
18006 case $ac_header_compiler:$ac_header_preproc in
18007   yes:no )
18008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012     (
18013       cat <<\_ASBOX
18014 ## ------------------------------------ ##
18015 ## Report this to bug-autoconf@gnu.org. ##
18016 ## ------------------------------------ ##
18017 _ASBOX
18018     ) |
18019       sed "s/^/$as_me: WARNING:     /" >&2
18020     ;;
18021   no:yes )
18022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18024     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18028     (
18029       cat <<\_ASBOX
18030 ## ------------------------------------ ##
18031 ## Report this to bug-autoconf@gnu.org. ##
18032 ## ------------------------------------ ##
18033 _ASBOX
18034     ) |
18035       sed "s/^/$as_me: WARNING:     /" >&2
18036     ;;
18037 esac
18038 echo "$as_me:$LINENO: checking for $ac_header" >&5
18039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   eval "$as_ac_Header=$ac_header_preproc"
18044 fi
18045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18047
18048 fi
18049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18050   cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18052 _ACEOF
18053
18054 fi
18055
18056 done
18057
18058 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18059 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18060 if test "${ac_cv_lib_z_deflate+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063   ac_check_lib_save_LIBS=$LIBS
18064 LIBS="-lz  $LIBS"
18065 cat >conftest.$ac_ext <<_ACEOF
18066 #line $LINENO "configure"
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072
18073 /* Override any gcc2 internal prototype to avoid an error.  */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 /* We use char because int might match the return type of a gcc2
18078    builtin and then its argument prototype would still apply.  */
18079 char deflate ();
18080 int
18081 main ()
18082 {
18083 deflate ();
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090   (eval $ac_link) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } &&
18094          { ac_try='test -s conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_lib_z_deflate=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_lib_z_deflate=no
18106 fi
18107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18108 LIBS=$ac_check_lib_save_LIBS
18109 fi
18110 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18111 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18112 if test $ac_cv_lib_z_deflate = yes; then
18113   FDLIBS="-lz"
18114 fi
18115
18116 have_zlib=no
18117 if test x$FDLIBS = x-lz; then
18118   cat >>confdefs.h <<\_ACEOF
18119 #define HAVE_LIBZ 1
18120 _ACEOF
18121
18122   have_zlib=yes
18123 fi
18124
18125 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18126   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18127 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18128 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 fi
18131 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18132 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18133 else
18134   # Is the header compilable?
18135 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18136 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144 $ac_includes_default
18145 #include <sys/acl.h>
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149   (eval $ac_compile) 2>&5
18150   ac_status=$?
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -s conftest.$ac_objext'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; }; then
18159   ac_header_compiler=yes
18160 else
18161   echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 ac_header_compiler=no
18165 fi
18166 rm -f conftest.$ac_objext conftest.$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6
18169
18170 # Is the header present?
18171 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18172 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180 #include <sys/acl.h>
18181 _ACEOF
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } >/dev/null; then
18190   if test -s conftest.err; then
18191     ac_cpp_err=$ac_c_preproc_warn_flag
18192   else
18193     ac_cpp_err=
18194   fi
18195 else
18196   ac_cpp_err=yes
18197 fi
18198 if test -z "$ac_cpp_err"; then
18199   ac_header_preproc=yes
18200 else
18201   echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204   ac_header_preproc=no
18205 fi
18206 rm -f conftest.err conftest.$ac_ext
18207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6
18209
18210 # So?  What about this header?
18211 case $ac_header_compiler:$ac_header_preproc in
18212   yes:no )
18213     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18216 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18217     (
18218       cat <<\_ASBOX
18219 ## ------------------------------------ ##
18220 ## Report this to bug-autoconf@gnu.org. ##
18221 ## ------------------------------------ ##
18222 _ASBOX
18223     ) |
18224       sed "s/^/$as_me: WARNING:     /" >&2
18225     ;;
18226   no:yes )
18227     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18228 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18229     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18230 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18231     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18233     (
18234       cat <<\_ASBOX
18235 ## ------------------------------------ ##
18236 ## Report this to bug-autoconf@gnu.org. ##
18237 ## ------------------------------------ ##
18238 _ASBOX
18239     ) |
18240       sed "s/^/$as_me: WARNING:     /" >&2
18241     ;;
18242 esac
18243 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18244 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18245 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   ac_cv_header_sys_acl_h=$ac_header_preproc
18249 fi
18250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18251 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18252
18253 fi
18254
18255
18256 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18257 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18258 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18259   echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261   ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-lacl  $LIBS"
18263 cat >conftest.$ac_ext <<_ACEOF
18264 #line $LINENO "configure"
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270
18271 /* Override any gcc2 internal prototype to avoid an error.  */
18272 #ifdef __cplusplus
18273 extern "C"
18274 #endif
18275 /* We use char because int might match the return type of a gcc2
18276    builtin and then its argument prototype would still apply.  */
18277 char acl_get_file ();
18278 int
18279 main ()
18280 {
18281 acl_get_file ();
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18288   (eval $ac_link) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } &&
18292          { ac_try='test -s conftest$ac_exeext'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; }; then
18298   ac_cv_lib_acl_acl_get_file=yes
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 ac_cv_lib_acl_acl_get_file=no
18304 fi
18305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18307 fi
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18309 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18310 if test $ac_cv_lib_acl_acl_get_file = yes; then
18311   FDLIBS="-lacl $FDLIBS"
18312 fi
18313
18314 have_acl=no
18315 if test $ac_cv_lib_acl_acl_get_file = yes; then
18316    cat >>confdefs.h <<\_ACEOF
18317 #define HAVE_ACL 1
18318 _ACEOF
18319
18320    have_acl=yes
18321 fi
18322
18323 PTHREAD_LIB=""
18324 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18325 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18326 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lpthread  $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 #line $LINENO "configure"
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339 /* Override any gcc2 internal prototype to avoid an error.  */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 /* We use char because int might match the return type of a gcc2
18344    builtin and then its argument prototype would still apply.  */
18345 char pthread_create ();
18346 int
18347 main ()
18348 {
18349 pthread_create ();
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356   (eval $ac_link) 2>&5
18357   ac_status=$?
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -s conftest$ac_exeext'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   ac_cv_lib_pthread_pthread_create=yes
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 ac_cv_lib_pthread_pthread_create=no
18372 fi
18373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18375 fi
18376 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18377 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18378 if test $ac_cv_lib_pthread_pthread_create = yes; then
18379   PTHREAD_LIB="-lpthread"
18380 else
18381   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18382 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18383 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   ac_check_lib_save_LIBS=$LIBS
18387 LIBS="-lpthreads  $LIBS"
18388 cat >conftest.$ac_ext <<_ACEOF
18389 #line $LINENO "configure"
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 /* Override any gcc2 internal prototype to avoid an error.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 /* We use char because int might match the return type of a gcc2
18401    builtin and then its argument prototype would still apply.  */
18402 char pthread_create ();
18403 int
18404 main ()
18405 {
18406 pthread_create ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413   (eval $ac_link) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -s conftest$ac_exeext'
18418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423   ac_cv_lib_pthreads_pthread_create=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428 ac_cv_lib_pthreads_pthread_create=no
18429 fi
18430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18434 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18435 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18436   PTHREAD_LIB="-lpthreads"
18437 else
18438   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18439 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18440 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18441   echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443   ac_check_lib_save_LIBS=$LIBS
18444 LIBS="-lc_r  $LIBS"
18445 cat >conftest.$ac_ext <<_ACEOF
18446 #line $LINENO "configure"
18447 /* confdefs.h.  */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h.  */
18452
18453 /* Override any gcc2 internal prototype to avoid an error.  */
18454 #ifdef __cplusplus
18455 extern "C"
18456 #endif
18457 /* We use char because int might match the return type of a gcc2
18458    builtin and then its argument prototype would still apply.  */
18459 char pthread_create ();
18460 int
18461 main ()
18462 {
18463 pthread_create ();
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470   (eval $ac_link) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } &&
18474          { ac_try='test -s conftest$ac_exeext'
18475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   ac_cv_lib_c_r_pthread_create=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_lib_c_r_pthread_create=no
18486 fi
18487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18489 fi
18490 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18491 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18492 if test $ac_cv_lib_c_r_pthread_create = yes; then
18493   PTHREAD_LIB="-lc_r"
18494 else
18495   echo "$as_me:$LINENO: checking for pthread_create" >&5
18496 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18497 if test "${ac_cv_func_pthread_create+set}" = set; then
18498   echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500   cat >conftest.$ac_ext <<_ACEOF
18501 #line $LINENO "configure"
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 /* System header to define __stub macros and hopefully few prototypes,
18508     which can conflict with char pthread_create (); below.
18509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18510     <limits.h> exists even on freestanding compilers.  */
18511 #ifdef __STDC__
18512 # include <limits.h>
18513 #else
18514 # include <assert.h>
18515 #endif
18516 /* Override any gcc2 internal prototype to avoid an error.  */
18517 #ifdef __cplusplus
18518 extern "C"
18519 {
18520 #endif
18521 /* We use char because int might match the return type of a gcc2
18522    builtin and then its argument prototype would still apply.  */
18523 char pthread_create ();
18524 /* The GNU C library defines this for functions which it implements
18525     to always fail with ENOSYS.  Some functions are actually named
18526     something starting with __ and the normal name is an alias.  */
18527 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18528 choke me
18529 #else
18530 char (*f) () = pthread_create;
18531 #endif
18532 #ifdef __cplusplus
18533 }
18534 #endif
18535
18536 int
18537 main ()
18538 {
18539 return f != pthread_create;
18540   ;
18541   return 0;
18542 }
18543 _ACEOF
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18546   (eval $ac_link) 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); } &&
18550          { ac_try='test -s conftest$ac_exeext'
18551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552   (eval $ac_try) 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_func_pthread_create=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 ac_cv_func_pthread_create=no
18562 fi
18563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18566 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18567
18568
18569 fi
18570
18571
18572 fi
18573
18574
18575 fi
18576
18577
18578
18579 cat >>confdefs.h <<\_ACEOF
18580 #define FDLIBS 1
18581 _ACEOF
18582
18583
18584
18585 CFLAGS=${CFLAGS--O}
18586 LDFLAGS=${LDFLAGS--O}
18587 DB_LIBS="${SQL_LFLAGS}"
18588
18589 CPPFLAGS="$CPPFLAGS"
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604 OBJLIST=
18605
18606
18607 lld="lld"
18608 llu="llu"
18609
18610 WCFLAGS=
18611 WLDFLAGS=
18612
18613 #
18614 # Finally we set appropriate distribution specific
18615 #  variables and defaults
18616 #
18617 # PFILES are platform specific files
18618 PFILES="platforms/Makefile"
18619 PSCMD="ps -e"
18620 WIN32=
18621 MACOSX=
18622 hostname=`uname -n | cut -d '.' -f 1`
18623 case "$DISTNAME" in
18624 aix)
18625         DISTVER=`uname -r`
18626         PSCMD="ps -e -o pid,comm"
18627         PFILES="${PFILES} \
18628            platforms/aix/Makefile"
18629         TAPEDRIVE="/dev/rmt0.1"
18630   ;;
18631 alpha)
18632         DISTVER=`uname -r`
18633         PTHREAD_LIB="-lpthread -lexc"
18634         if test "${CC}" = "gcc" ; then
18635            lld="lld"
18636            llu="llu"
18637         else
18638            lld="ld"
18639            llu="lu"
18640         fi
18641         TAPEDRIVE="/dev/nrmt0"
18642   ;;
18643 bsdi)
18644         DISTVER=`uname -a |awk '{print $3}'`
18645         TAPEDRIVE="/dev/nrmt0"
18646         PTHREAD_LIB="-pthread"
18647         CFLAGS="${CFLAGS} -pthread"
18648         PSCMD="ps -x -o pid,command"
18649         lld="qd"
18650         llu="qu"
18651         PFILES="${PFILES} \
18652             platforms/bsdi/Makefile \
18653             platforms/bsdi/bacula-fd \
18654             platforms/bsdi/bacula-sd \
18655             platforms/bsdi/bacula-dir"
18656         largefile_support="yes"
18657   ;;
18658 cygwin)
18659         DISTVER=`uname -a |awk '{print $3}'`
18660         TAPEDRIVE="/dev/nrst0"
18661         WIN32=win32
18662         WCFLAGS="-mwindows"
18663         WLDFLAGS="-mwindows"
18664   ;;
18665 darwin)
18666         DISTVER=`uname -r`
18667         TAPEDRIVE="/dev/nst0"
18668         PSCMD="ps -e -o pid,command"
18669         MACOSX=macosx
18670         PFILES="${PFILES} \
18671            platforms/darwin/Makefile"
18672   ;;
18673 debian)
18674         DISTVER=`cat /etc/debian_version`
18675         TAPEDRIVE="/dev/nrst0"
18676         PSCMD="ps -e -o pid,command"
18677   ;;
18678 freebsd)
18679         DISTVER=`uname -a |awk '{print $3}'`
18680         VER=`echo $DISTVER | cut -c 1`
18681         if test x$VER = x4 ; then
18682            PTHREAD_LIB="-pthread"
18683            CFLAGS="${CFLAGS} -pthread"
18684         fi
18685         lld="qd"
18686         llu="qu"
18687         TAPEDRIVE="/dev/nrsa0"
18688         PSCMD="ps -x -o pid,command"
18689         PFILES="${PFILES} \
18690             platforms/freebsd/Makefile \
18691             platforms/freebsd/bacula-fd \
18692             platforms/freebsd/bacula-sd \
18693             platforms/freebsd/bacula-dir"
18694         largefile_support="yes"
18695   ;;
18696 hpux)
18697         PSCMD="UNIX95=1 ps -e -o pid,comm"
18698         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18699         DISTVER=`uname -r`
18700         TAPEDRIVE="/dev/rmt/0hnb"
18701   ;;
18702 irix)
18703         DISTVER=`uname -r`
18704         TAPEDRIVE="/dev/rmt/0cbn"
18705         PSCMD="ps -e -o pid,comm"
18706         PFILES="${PFILES} \
18707             platforms/irix/Makefile \
18708             platforms/irix/bacula-fd \
18709             platforms/irix/bacula-sd \
18710             platforms/irix/bacula-dir"
18711   ;;
18712 netbsd)
18713         DISTVER=`uname -a |awk '{print $3}'`
18714         lld="qd"
18715         llu="qu"
18716         TAPEDRIVE="/dev/nrst0"
18717         PSCMD="ps -a -o pid,command"
18718         PTHREAD_LIB="-pthread"
18719         CFLAGS="${CFLAGS} -pthread"
18720   ;;
18721 openbsd)
18722         DISTVER=`uname -a |awk '{print $3}'`
18723         lld="qd"
18724         llu="qu"
18725         TAPEDRIVE="/dev/nrst0"
18726         PSCMD="ps -a -o pid,command"
18727         PTHREAD_LIB="-pthread"
18728         CFLAGS="${CFLAGS} -pthread"
18729         PFILES="${PFILES} \
18730             platforms/openbsd/Makefile \
18731             platforms/openbsd/bacula-fd \
18732             platforms/openbsd/bacula-sd \
18733             platforms/openbsd/bacula-dir"
18734   ;;
18735 redhat)
18736         if test -f /etc/whitebox-release ; then
18737            f=/etc/whitebox-release
18738         else
18739            f=/etc/redhat-release
18740         fi
18741         if test `cat $f | grep release |\
18742                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18743            DISTVER="Enterprise "`cat $f | grep release |\
18744                     cut -f 6 -d ' '`
18745         else
18746             DISTVER=`cat /etc/redhat-release | grep release |\
18747                      cut -f 5 -d ' '`
18748         fi
18749         TAPEDRIVE="/dev/nst0"
18750         PSCMD="ps -e -o pid,command"
18751         PFILES="${PFILES} \
18752             platforms/redhat/Makefile \
18753             platforms/redhat/bacula-fd \
18754             platforms/redhat/bacula-sd \
18755             platforms/redhat/bacula-dir \
18756             platforms/redhat/bacula.spec \
18757             "
18758         hostname=`hostname -s`
18759   ;;
18760 mandrake)
18761         DISTVER=`cat /etc/mandrake-release | grep release |\
18762            cut -f 5 -d ' '`
18763         TAPEDRIVE="/dev/nst0"
18764         PSCMD="ps -e -o pid,command"
18765         PFILES="${PFILES} \
18766             platforms/mandrake/Makefile \
18767             platforms/mandrake/bacula-fd \
18768             platforms/mandrake/bacula-sd \
18769             platforms/mandrake/bacula-dir \
18770             platforms/mandrake/bacula.spec \
18771             "
18772   ;;
18773 gentoo)
18774         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18775         TAPEDRIVE="/dev/nst0"
18776         PSCMD="ps -e -o pid,command"
18777         PFILES="${PFILES} \
18778             platforms/gentoo/Makefile \
18779             platforms/gentoo/bacula-fd \
18780             platforms/gentoo/bacula-sd \
18781             platforms/gentoo/bacula-dir"
18782   ;;
18783 slackware)
18784         DISTVER=`cat /etc/slackware-version`
18785         TAPEDRIVE="/dev/nst0"
18786         PSCMD="ps -e -o pid,command"
18787         PFILES="${PFILES} \
18788             platforms/slackware/Makefile \
18789             platforms/slackware/rc.bacula-fd \
18790             platforms/slackware/rc.bacula-sd \
18791             platforms/slackware/rc.bacula-dir\
18792             platforms/slackware/functions.bacula"
18793   ;;
18794 solaris)
18795         DISTVER=`uname -r`
18796         TAPEDRIVE="/dev/rmt/0cbn"
18797         PSCMD="ps -e -o pid,comm"
18798         PFILES="${PFILES} \
18799             platforms/solaris/Makefile \
18800             platforms/solaris/bacula-fd \
18801             platforms/solaris/bacula-sd \
18802             platforms/solaris/bacula-dir"
18803         if test x$DISTVER = x5.6 ; then
18804             cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_OLD_SOCKOPT 1
18806 _ACEOF
18807
18808         fi
18809   ;;
18810 suse)
18811         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18812             cut -f 3 -d ' '`
18813         TAPEDRIVE="/dev/nst0"
18814         PSCMD="ps -e -o pid,command"
18815         PFILES="${PFILES} \
18816             platforms/suse/Makefile \
18817             platforms/suse/bacula-fd \
18818             platforms/suse/bacula-sd \
18819             platforms/suse/bacula-dir \
18820             platforms/suse/bacula \
18821             platforms/suse/bacula.spec"
18822   ;;
18823 suse5)
18824         DISTNAME=suse
18825         DISTVER=5.x
18826         TAPEDRIVE="/dev/nst0"
18827         PSCMD="ps -e -o pid,command"
18828         PFILES="${PFILES} \
18829             platforms/suse/Makefile \
18830             platforms/suse/bacula-fd \
18831             platforms/suse/bacula-sd \
18832             platforms/suse/bacula-dir"
18833   ;;
18834 unknown)
18835         DISTVER=unknown
18836         TAPEDRIVE="/dev/nst0"
18837   ;;
18838 *)
18839   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18840   ;;
18841 esac
18842
18843
18844
18845 LIBS="$PTHREAD_LIB $LIBS"
18846
18847 cat >>confdefs.h <<_ACEOF
18848 #define lld "$lld"
18849 _ACEOF
18850
18851 cat >>confdefs.h <<_ACEOF
18852 #define llu "$llu"
18853 _ACEOF
18854
18855
18856
18857
18858
18859
18860
18861
18862 MCOMMON=./autoconf/Make.common
18863
18864
18865 if test "x${subsysdir}" = "x${sbindir}" ; then
18866    echo " "
18867    echo " "
18868    echo "You have set both --sbindir and --with-subsys-dir"
18869    echo "  equal to: ${subsysdir} "
18870    echo "This is not permitted. Please reconfigure."
18871    echo " "
18872    echo "Aborting configuration ..."
18873    echo " "
18874    echo " "
18875    exit 1
18876 fi
18877
18878                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18879           ac_config_commands="$ac_config_commands default"
18880 cat >confcache <<\_ACEOF
18881 # This file is a shell script that caches the results of configure
18882 # tests run on this system so they can be shared between configure
18883 # scripts and configure runs, see configure's option --config-cache.
18884 # It is not useful on other systems.  If it contains results you don't
18885 # want to keep, you may remove or edit it.
18886 #
18887 # config.status only pays attention to the cache file if you give it
18888 # the --recheck option to rerun configure.
18889 #
18890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18892 # following values.
18893
18894 _ACEOF
18895
18896 # The following way of writing the cache mishandles newlines in values,
18897 # but we know of no workaround that is simple, portable, and efficient.
18898 # So, don't put newlines in cache variables' values.
18899 # Ultrix sh set writes to stderr and can't be redirected directly,
18900 # and sets the high bit in the cache file unless we assign to the vars.
18901 {
18902   (set) 2>&1 |
18903     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18904     *ac_space=\ *)
18905       # `set' does not quote correctly, so add quotes (double-quote
18906       # substitution turns \\\\ into \\, and sed turns \\ into \).
18907       sed -n \
18908         "s/'/'\\\\''/g;
18909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18910       ;;
18911     *)
18912       # `set' quotes correctly as required by POSIX, so do not add quotes.
18913       sed -n \
18914         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18915       ;;
18916     esac;
18917 } |
18918   sed '
18919      t clear
18920      : clear
18921      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18922      t end
18923      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18924      : end' >>confcache
18925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18926   if test -w $cache_file; then
18927     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18928     cat confcache >$cache_file
18929   else
18930     echo "not updating unwritable cache $cache_file"
18931   fi
18932 fi
18933 rm -f confcache
18934
18935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18936 # Let make expand exec_prefix.
18937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18938
18939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18941 # trailing colons and then remove the whole line if VPATH becomes empty
18942 # (actually we leave an empty line to preserve line numbers).
18943 if test "x$srcdir" = x.; then
18944   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18945 s/:*\$(srcdir):*/:/;
18946 s/:*\${srcdir}:*/:/;
18947 s/:*@srcdir@:*/:/;
18948 s/^\([^=]*=[    ]*\):*/\1/;
18949 s/:*$//;
18950 s/^[^=]*=[      ]*$//;
18951 }'
18952 fi
18953
18954 DEFS=-DHAVE_CONFIG_H
18955
18956 ac_libobjs=
18957 ac_ltlibobjs=
18958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18959   # 1. Remove the extension, and $U if already installed.
18960   ac_i=`echo "$ac_i" |
18961          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18962   # 2. Add them.
18963   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18964   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18965 done
18966 LIBOBJS=$ac_libobjs
18967
18968 LTLIBOBJS=$ac_ltlibobjs
18969
18970
18971
18972 : ${CONFIG_STATUS=./config.status}
18973 ac_clean_files_save=$ac_clean_files
18974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18977 cat >$CONFIG_STATUS <<_ACEOF
18978 #! $SHELL
18979 # Generated by $as_me.
18980 # Run this file to recreate the current configuration.
18981 # Compiler output produced by configure, useful for debugging
18982 # configure, is in config.log if it exists.
18983
18984 debug=false
18985 ac_cs_recheck=false
18986 ac_cs_silent=false
18987 SHELL=\${CONFIG_SHELL-$SHELL}
18988 _ACEOF
18989
18990 cat >>$CONFIG_STATUS <<\_ACEOF
18991 ## --------------------- ##
18992 ## M4sh Initialization.  ##
18993 ## --------------------- ##
18994
18995 # Be Bourne compatible
18996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18997   emulate sh
18998   NULLCMD=:
18999   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19000   # is contrary to our usage.  Disable this feature.
19001   alias -g '${1+"$@"}'='"$@"'
19002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19003   set -o posix
19004 fi
19005
19006 # Support unset when possible.
19007 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19008   as_unset=unset
19009 else
19010   as_unset=false
19011 fi
19012
19013
19014 # Work around bugs in pre-3.0 UWIN ksh.
19015 $as_unset ENV MAIL MAILPATH
19016 PS1='$ '
19017 PS2='> '
19018 PS4='+ '
19019
19020 # NLS nuisances.
19021 for as_var in \
19022   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19023   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19024   LC_TELEPHONE LC_TIME
19025 do
19026   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19027     eval $as_var=C; export $as_var
19028   else
19029     $as_unset $as_var
19030   fi
19031 done
19032
19033 # Required to use basename.
19034 if expr a : '\(a\)' >/dev/null 2>&1; then
19035   as_expr=expr
19036 else
19037   as_expr=false
19038 fi
19039
19040 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19041   as_basename=basename
19042 else
19043   as_basename=false
19044 fi
19045
19046
19047 # Name of the executable.
19048 as_me=`$as_basename "$0" ||
19049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19050          X"$0" : 'X\(//\)$' \| \
19051          X"$0" : 'X\(/\)$' \| \
19052          .     : '\(.\)' 2>/dev/null ||
19053 echo X/"$0" |
19054     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19055           /^X\/\(\/\/\)$/{ s//\1/; q; }
19056           /^X\/\(\/\).*/{ s//\1/; q; }
19057           s/.*/./; q'`
19058
19059
19060 # PATH needs CR, and LINENO needs CR and PATH.
19061 # Avoid depending upon Character Ranges.
19062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19065 as_cr_digits='0123456789'
19066 as_cr_alnum=$as_cr_Letters$as_cr_digits
19067
19068 # The user is always right.
19069 if test "${PATH_SEPARATOR+set}" != set; then
19070   echo "#! /bin/sh" >conf$$.sh
19071   echo  "exit 0"   >>conf$$.sh
19072   chmod +x conf$$.sh
19073   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19074     PATH_SEPARATOR=';'
19075   else
19076     PATH_SEPARATOR=:
19077   fi
19078   rm -f conf$$.sh
19079 fi
19080
19081
19082   as_lineno_1=$LINENO
19083   as_lineno_2=$LINENO
19084   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19085   test "x$as_lineno_1" != "x$as_lineno_2" &&
19086   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19087   # Find who we are.  Look in the path if we contain no path at all
19088   # relative or not.
19089   case $0 in
19090     *[\\/]* ) as_myself=$0 ;;
19091     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19093 do
19094   IFS=$as_save_IFS
19095   test -z "$as_dir" && as_dir=.
19096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19097 done
19098
19099        ;;
19100   esac
19101   # We did not find ourselves, most probably we were run as `sh COMMAND'
19102   # in which case we are not to be found in the path.
19103   if test "x$as_myself" = x; then
19104     as_myself=$0
19105   fi
19106   if test ! -f "$as_myself"; then
19107     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19108 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19109    { (exit 1); exit 1; }; }
19110   fi
19111   case $CONFIG_SHELL in
19112   '')
19113     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19115 do
19116   IFS=$as_save_IFS
19117   test -z "$as_dir" && as_dir=.
19118   for as_base in sh bash ksh sh5; do
19119          case $as_dir in
19120          /*)
19121            if ("$as_dir/$as_base" -c '
19122   as_lineno_1=$LINENO
19123   as_lineno_2=$LINENO
19124   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19125   test "x$as_lineno_1" != "x$as_lineno_2" &&
19126   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19127              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19128              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19129              CONFIG_SHELL=$as_dir/$as_base
19130              export CONFIG_SHELL
19131              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19132            fi;;
19133          esac
19134        done
19135 done
19136 ;;
19137   esac
19138
19139   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19140   # uniformly replaced by the line number.  The first 'sed' inserts a
19141   # line-number line before each line; the second 'sed' does the real
19142   # work.  The second script uses 'N' to pair each line-number line
19143   # with the numbered line, and appends trailing '-' during
19144   # substitution so that $LINENO is not a special case at line end.
19145   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19146   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19147   sed '=' <$as_myself |
19148     sed '
19149       N
19150       s,$,-,
19151       : loop
19152       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19153       t loop
19154       s,-$,,
19155       s,^['$as_cr_digits']*\n,,
19156     ' >$as_me.lineno &&
19157   chmod +x $as_me.lineno ||
19158     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19159 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19160    { (exit 1); exit 1; }; }
19161
19162   # Don't try to exec as it changes $[0], causing all sort of problems
19163   # (the dirname of $[0] is not the place where we might find the
19164   # original and so on.  Autoconf is especially sensible to this).
19165   . ./$as_me.lineno
19166   # Exit status is that of the last command.
19167   exit
19168 }
19169
19170
19171 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19172   *c*,-n*) ECHO_N= ECHO_C='
19173 ' ECHO_T='      ' ;;
19174   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19175   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19176 esac
19177
19178 if expr a : '\(a\)' >/dev/null 2>&1; then
19179   as_expr=expr
19180 else
19181   as_expr=false
19182 fi
19183
19184 rm -f conf$$ conf$$.exe conf$$.file
19185 echo >conf$$.file
19186 if ln -s conf$$.file conf$$ 2>/dev/null; then
19187   # We could just check for DJGPP; but this test a) works b) is more generic
19188   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19189   if test -f conf$$.exe; then
19190     # Don't use ln at all; we don't have any links
19191     as_ln_s='cp -p'
19192   else
19193     as_ln_s='ln -s'
19194   fi
19195 elif ln conf$$.file conf$$ 2>/dev/null; then
19196   as_ln_s=ln
19197 else
19198   as_ln_s='cp -p'
19199 fi
19200 rm -f conf$$ conf$$.exe conf$$.file
19201
19202 if mkdir -p . 2>/dev/null; then
19203   as_mkdir_p=:
19204 else
19205   as_mkdir_p=false
19206 fi
19207
19208 as_executable_p="test -f"
19209
19210 # Sed expression to map a string onto a valid CPP name.
19211 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19212
19213 # Sed expression to map a string onto a valid variable name.
19214 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19215
19216
19217 # IFS
19218 # We need space, tab and new line, in precisely that order.
19219 as_nl='
19220 '
19221 IFS="   $as_nl"
19222
19223 # CDPATH.
19224 $as_unset CDPATH
19225
19226 exec 6>&1
19227
19228 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19229 # report actual input values of CONFIG_FILES etc. instead of their
19230 # values after options handling.  Logging --version etc. is OK.
19231 exec 5>>config.log
19232 {
19233   echo
19234   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19235 ## Running $as_me. ##
19236 _ASBOX
19237 } >&5
19238 cat >&5 <<_CSEOF
19239
19240 This file was extended by $as_me, which was
19241 generated by GNU Autoconf 2.57.  Invocation command line was
19242
19243   CONFIG_FILES    = $CONFIG_FILES
19244   CONFIG_HEADERS  = $CONFIG_HEADERS
19245   CONFIG_LINKS    = $CONFIG_LINKS
19246   CONFIG_COMMANDS = $CONFIG_COMMANDS
19247   $ $0 $@
19248
19249 _CSEOF
19250 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19251 echo >&5
19252 _ACEOF
19253
19254 # Files that config.status was made for.
19255 if test -n "$ac_config_files"; then
19256   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19257 fi
19258
19259 if test -n "$ac_config_headers"; then
19260   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19261 fi
19262
19263 if test -n "$ac_config_links"; then
19264   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19265 fi
19266
19267 if test -n "$ac_config_commands"; then
19268   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19269 fi
19270
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19272
19273 ac_cs_usage="\
19274 \`$as_me' instantiates files from templates according to the
19275 current configuration.
19276
19277 Usage: $0 [OPTIONS] [FILE]...
19278
19279   -h, --help       print this help, then exit
19280   -V, --version    print version number, then exit
19281   -q, --quiet      do not print progress messages
19282   -d, --debug      don't remove temporary files
19283       --recheck    update $as_me by reconfiguring in the same conditions
19284   --file=FILE[:TEMPLATE]
19285                    instantiate the configuration file FILE
19286   --header=FILE[:TEMPLATE]
19287                    instantiate the configuration header FILE
19288
19289 Configuration files:
19290 $config_files
19291
19292 Configuration headers:
19293 $config_headers
19294
19295 Configuration commands:
19296 $config_commands
19297
19298 Report bugs to <bug-autoconf@gnu.org>."
19299 _ACEOF
19300
19301 cat >>$CONFIG_STATUS <<_ACEOF
19302 ac_cs_version="\\
19303 config.status
19304 configured by $0, generated by GNU Autoconf 2.57,
19305   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19306
19307 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19308 Free Software Foundation, Inc.
19309 This config.status script is free software; the Free Software Foundation
19310 gives unlimited permission to copy, distribute and modify it."
19311 srcdir=$srcdir
19312 INSTALL="$INSTALL"
19313 _ACEOF
19314
19315 cat >>$CONFIG_STATUS <<\_ACEOF
19316 # If no file are specified by the user, then we need to provide default
19317 # value.  By we need to know if files were specified by the user.
19318 ac_need_defaults=:
19319 while test $# != 0
19320 do
19321   case $1 in
19322   --*=*)
19323     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19324     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19325     ac_shift=:
19326     ;;
19327   -*)
19328     ac_option=$1
19329     ac_optarg=$2
19330     ac_shift=shift
19331     ;;
19332   *) # This is not an option, so the user has probably given explicit
19333      # arguments.
19334      ac_option=$1
19335      ac_need_defaults=false;;
19336   esac
19337
19338   case $ac_option in
19339   # Handling of the options.
19340 _ACEOF
19341 cat >>$CONFIG_STATUS <<\_ACEOF
19342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19343     ac_cs_recheck=: ;;
19344   --version | --vers* | -V )
19345     echo "$ac_cs_version"; exit 0 ;;
19346   --he | --h)
19347     # Conflict between --help and --header
19348     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19349 Try \`$0 --help' for more information." >&5
19350 echo "$as_me: error: ambiguous option: $1
19351 Try \`$0 --help' for more information." >&2;}
19352    { (exit 1); exit 1; }; };;
19353   --help | --hel | -h )
19354     echo "$ac_cs_usage"; exit 0 ;;
19355   --debug | --d* | -d )
19356     debug=: ;;
19357   --file | --fil | --fi | --f )
19358     $ac_shift
19359     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19360     ac_need_defaults=false;;
19361   --header | --heade | --head | --hea )
19362     $ac_shift
19363     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19364     ac_need_defaults=false;;
19365   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19366   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19367     ac_cs_silent=: ;;
19368
19369   # This is an error.
19370   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19371 Try \`$0 --help' for more information." >&5
19372 echo "$as_me: error: unrecognized option: $1
19373 Try \`$0 --help' for more information." >&2;}
19374    { (exit 1); exit 1; }; } ;;
19375
19376   *) ac_config_targets="$ac_config_targets $1" ;;
19377
19378   esac
19379   shift
19380 done
19381
19382 ac_configure_extra_args=
19383
19384 if $ac_cs_silent; then
19385   exec 6>/dev/null
19386   ac_configure_extra_args="$ac_configure_extra_args --silent"
19387 fi
19388
19389 _ACEOF
19390 cat >>$CONFIG_STATUS <<_ACEOF
19391 if \$ac_cs_recheck; then
19392   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19393   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19394 fi
19395
19396 _ACEOF
19397
19398
19399
19400
19401
19402 cat >>$CONFIG_STATUS <<\_ACEOF
19403 for ac_config_target in $ac_config_targets
19404 do
19405   case "$ac_config_target" in
19406   # Handling of arguments.
19407   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19408   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19409   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19410   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19411   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19412   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19413   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19414   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19415   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19416   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19417   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19418   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19419   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19420   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19421   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19422   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19423   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19424   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19425   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19426   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19427   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19428   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19429   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19430   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19431   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19432   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19433   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19434   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19435   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19436   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19437   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19438   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19439   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19440   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19441   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19442   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19443   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19444   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19445   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19446   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19447   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19448   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19449   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19450   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19451   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19452   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19453   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19454   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19455   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19456   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19457   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19458   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19459   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19460   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19461   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19462   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19463   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19464   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19465   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19466   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19467   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19468   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19469   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19470   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19471   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19472   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19473   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19474   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19475   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19476   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19477   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19478   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19479   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19480   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19481   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19482   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19483   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19484   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19485   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19486   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19487   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19488   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19489   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19490   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19491   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19492   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19493   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19494   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19495   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19496   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19497   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19498   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19499   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19500   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19501 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19502    { (exit 1); exit 1; }; };;
19503   esac
19504 done
19505
19506 # If the user did not use the arguments to specify the items to instantiate,
19507 # then the envvar interface is used.  Set only those that are not.
19508 # We use the long form for the default assignment because of an extremely
19509 # bizarre bug on SunOS 4.1.3.
19510 if $ac_need_defaults; then
19511   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19512   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19514 fi
19515
19516 # Have a temporary directory for convenience.  Make it in the build tree
19517 # simply because there is no reason to put it here, and in addition,
19518 # creating and moving files from /tmp can sometimes cause problems.
19519 # Create a temporary directory, and hook for its removal unless debugging.
19520 $debug ||
19521 {
19522   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19523   trap '{ (exit 1); exit 1; }' 1 2 13 15
19524 }
19525
19526 # Create a (secure) tmp directory for tmp files.
19527
19528 {
19529   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19530   test -n "$tmp" && test -d "$tmp"
19531 }  ||
19532 {
19533   tmp=./confstat$$-$RANDOM
19534   (umask 077 && mkdir $tmp)
19535 } ||
19536 {
19537    echo "$me: cannot create a temporary directory in ." >&2
19538    { (exit 1); exit 1; }
19539 }
19540
19541 _ACEOF
19542
19543 cat >>$CONFIG_STATUS <<_ACEOF
19544
19545 #
19546 # CONFIG_FILES section.
19547 #
19548
19549 # No need to generate the scripts if there are no CONFIG_FILES.
19550 # This happens for instance when ./config.status config.h
19551 if test -n "\$CONFIG_FILES"; then
19552   # Protect against being on the right side of a sed subst in config.status.
19553   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19554    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19555 s,@SHELL@,$SHELL,;t t
19556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19562 s,@exec_prefix@,$exec_prefix,;t t
19563 s,@prefix@,$prefix,;t t
19564 s,@program_transform_name@,$program_transform_name,;t t
19565 s,@bindir@,$bindir,;t t
19566 s,@sbindir@,$sbindir,;t t
19567 s,@libexecdir@,$libexecdir,;t t
19568 s,@datadir@,$datadir,;t t
19569 s,@sysconfdir@,$sysconfdir,;t t
19570 s,@sharedstatedir@,$sharedstatedir,;t t
19571 s,@localstatedir@,$localstatedir,;t t
19572 s,@libdir@,$libdir,;t t
19573 s,@includedir@,$includedir,;t t
19574 s,@oldincludedir@,$oldincludedir,;t t
19575 s,@infodir@,$infodir,;t t
19576 s,@mandir@,$mandir,;t t
19577 s,@build_alias@,$build_alias,;t t
19578 s,@host_alias@,$host_alias,;t t
19579 s,@target_alias@,$target_alias,;t t
19580 s,@DEFS@,$DEFS,;t t
19581 s,@ECHO_C@,$ECHO_C,;t t
19582 s,@ECHO_N@,$ECHO_N,;t t
19583 s,@ECHO_T@,$ECHO_T,;t t
19584 s,@LIBS@,$LIBS,;t t
19585 s,@BUILD_DIR@,$BUILD_DIR,;t t
19586 s,@TRUEPRG@,$TRUEPRG,;t t
19587 s,@FALSEPRG@,$FALSEPRG,;t t
19588 s,@VERSION@,$VERSION,;t t
19589 s,@DATE@,$DATE,;t t
19590 s,@LSMDATE@,$LSMDATE,;t t
19591 s,@CC@,$CC,;t t
19592 s,@CFLAGS@,$CFLAGS,;t t
19593 s,@LDFLAGS@,$LDFLAGS,;t t
19594 s,@CPPFLAGS@,$CPPFLAGS,;t t
19595 s,@ac_ct_CC@,$ac_ct_CC,;t t
19596 s,@EXEEXT@,$EXEEXT,;t t
19597 s,@OBJEXT@,$OBJEXT,;t t
19598 s,@CXX@,$CXX,;t t
19599 s,@CXXFLAGS@,$CXXFLAGS,;t t
19600 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19601 s,@CPP@,$CPP,;t t
19602 s,@EGREP@,$EGREP,;t t
19603 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19604 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19605 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19606 s,@RANLIB@,$RANLIB,;t t
19607 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19608 s,@MV@,$MV,;t t
19609 s,@RM@,$RM,;t t
19610 s,@CP@,$CP,;t t
19611 s,@SED@,$SED,;t t
19612 s,@AWK@,$AWK,;t t
19613 s,@ECHO@,$ECHO,;t t
19614 s,@CMP@,$CMP,;t t
19615 s,@TBL@,$TBL,;t t
19616 s,@AR@,$AR,;t t
19617 s,@OPENSSL@,$OPENSSL,;t t
19618 s,@MTX@,$MTX,;t t
19619 s,@PKGCONFIG@,$PKGCONFIG,;t t
19620 s,@WXCONFIG@,$WXCONFIG,;t t
19621 s,@ARFLAGS@,$ARFLAGS,;t t
19622 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19623 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19624 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19625 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19626 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19627 s,@build@,$build,;t t
19628 s,@build_cpu@,$build_cpu,;t t
19629 s,@build_vendor@,$build_vendor,;t t
19630 s,@build_os@,$build_os,;t t
19631 s,@host@,$host,;t t
19632 s,@host_cpu@,$host_cpu,;t t
19633 s,@host_vendor@,$host_vendor,;t t
19634 s,@host_os@,$host_os,;t t
19635 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19636 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19637 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19638 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19639 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19640 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19641 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19642 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19643 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19644 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19645 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19646 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19647 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19648 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19649 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19650 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19651 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19652 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19653 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19654 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19655 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19656 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19657 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19658 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19659 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19660 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19661 s,@MSGFMT@,$MSGFMT,;t t
19662 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19663 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19664 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19665 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19666 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19667 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19668 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19669 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19670 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19671 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19672 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19673 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19674 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19675 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19676 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19677 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19678 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19679 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19680 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19681 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19682 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19683 s,@GNOME_DIR@,$GNOME_DIR,;t t
19684 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19685 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19686 s,@WX_DIR@,$WX_DIR,;t t
19687 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19688 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19689 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19690 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19691 s,@STATIC_FD@,$STATIC_FD,;t t
19692 s,@STATIC_SD@,$STATIC_SD,;t t
19693 s,@STATIC_DIR@,$STATIC_DIR,;t t
19694 s,@STATIC_CONS@,$STATIC_CONS,;t t
19695 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19696 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19697 s,@ALL_DIRS@,$ALL_DIRS,;t t
19698 s,@CONS_INC@,$CONS_INC,;t t
19699 s,@CONS_OBJ@,$CONS_OBJ,;t t
19700 s,@CONS_SRC@,$CONS_SRC,;t t
19701 s,@CONS_LIBS@,$CONS_LIBS,;t t
19702 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19703 s,@READLINE_SRC@,$READLINE_SRC,;t t
19704 s,@working_dir@,$working_dir,;t t
19705 s,@scriptdir@,$scriptdir,;t t
19706 s,@dump_email@,$dump_email,;t t
19707 s,@job_email@,$job_email,;t t
19708 s,@smtp_host@,$smtp_host,;t t
19709 s,@piddir@,$piddir,;t t
19710 s,@subsysdir@,$subsysdir,;t t
19711 s,@baseport@,$baseport,;t t
19712 s,@dir_port@,$dir_port,;t t
19713 s,@fd_port@,$fd_port,;t t
19714 s,@sd_port@,$sd_port,;t t
19715 s,@dir_password@,$dir_password,;t t
19716 s,@fd_password@,$fd_password,;t t
19717 s,@sd_password@,$sd_password,;t t
19718 s,@mon_dir_password@,$mon_dir_password,;t t
19719 s,@mon_fd_password@,$mon_fd_password,;t t
19720 s,@mon_sd_password@,$mon_sd_password,;t t
19721 s,@dir_user@,$dir_user,;t t
19722 s,@dir_group@,$dir_group,;t t
19723 s,@sd_user@,$sd_user,;t t
19724 s,@sd_group@,$sd_group,;t t
19725 s,@fd_user@,$fd_user,;t t
19726 s,@fd_group@,$fd_group,;t t
19727 s,@SBINPERM@,$SBINPERM,;t t
19728 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19729 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19730 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19731 s,@cats@,$cats,;t t
19732 s,@DB_NAME@,$DB_NAME,;t t
19733 s,@GETCONF@,$GETCONF,;t t
19734 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19735 s,@X_CFLAGS@,$X_CFLAGS,;t t
19736 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19737 s,@X_LIBS@,$X_LIBS,;t t
19738 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19739 s,@LIBOBJS@,$LIBOBJS,;t t
19740 s,@ALLOCA@,$ALLOCA,;t t
19741 s,@FDLIBS@,$FDLIBS,;t t
19742 s,@DEBUG@,$DEBUG,;t t
19743 s,@DINCLUDE@,$DINCLUDE,;t t
19744 s,@DLIB@,$DLIB,;t t
19745 s,@DB_LIBS@,$DB_LIBS,;t t
19746 s,@WCFLAGS@,$WCFLAGS,;t t
19747 s,@WLDFLAGS@,$WLDFLAGS,;t t
19748 s,@OBJLIST@,$OBJLIST,;t t
19749 s,@hostname@,$hostname,;t t
19750 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19751 s,@PSCMD@,$PSCMD,;t t
19752 s,@WIN32@,$WIN32,;t t
19753 s,@MACOSX@,$MACOSX,;t t
19754 s,@DISTNAME@,$DISTNAME,;t t
19755 s,@DISTVER@,$DISTVER,;t t
19756 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19757 /@MCOMMON@/r $MCOMMON
19758 s,@MCOMMON@,,;t t
19759 CEOF
19760
19761 _ACEOF
19762
19763   cat >>$CONFIG_STATUS <<\_ACEOF
19764   # Split the substitutions into bite-sized pieces for seds with
19765   # small command number limits, like on Digital OSF/1 and HP-UX.
19766   ac_max_sed_lines=48
19767   ac_sed_frag=1 # Number of current file.
19768   ac_beg=1 # First line for current file.
19769   ac_end=$ac_max_sed_lines # Line after last line for current file.
19770   ac_more_lines=:
19771   ac_sed_cmds=
19772   while $ac_more_lines; do
19773     if test $ac_beg -gt 1; then
19774       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19775     else
19776       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19777     fi
19778     if test ! -s $tmp/subs.frag; then
19779       ac_more_lines=false
19780     else
19781       # The purpose of the label and of the branching condition is to
19782       # speed up the sed processing (if there are no `@' at all, there
19783       # is no need to browse any of the substitutions).
19784       # These are the two extra sed commands mentioned above.
19785       (echo ':t
19786   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19787       if test -z "$ac_sed_cmds"; then
19788         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19789       else
19790         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19791       fi
19792       ac_sed_frag=`expr $ac_sed_frag + 1`
19793       ac_beg=$ac_end
19794       ac_end=`expr $ac_end + $ac_max_sed_lines`
19795     fi
19796   done
19797   if test -z "$ac_sed_cmds"; then
19798     ac_sed_cmds=cat
19799   fi
19800 fi # test -n "$CONFIG_FILES"
19801
19802 _ACEOF
19803 cat >>$CONFIG_STATUS <<\_ACEOF
19804 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19805   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19806   case $ac_file in
19807   - | *:- | *:-:* ) # input from stdin
19808         cat >$tmp/stdin
19809         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19810         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19811   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19813   * )   ac_file_in=$ac_file.in ;;
19814   esac
19815
19816   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19817   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19819          X"$ac_file" : 'X\(//\)[^/]' \| \
19820          X"$ac_file" : 'X\(//\)$' \| \
19821          X"$ac_file" : 'X\(/\)' \| \
19822          .     : '\(.\)' 2>/dev/null ||
19823 echo X"$ac_file" |
19824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19825           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19826           /^X\(\/\/\)$/{ s//\1/; q; }
19827           /^X\(\/\).*/{ s//\1/; q; }
19828           s/.*/./; q'`
19829   { if $as_mkdir_p; then
19830     mkdir -p "$ac_dir"
19831   else
19832     as_dir="$ac_dir"
19833     as_dirs=
19834     while test ! -d "$as_dir"; do
19835       as_dirs="$as_dir $as_dirs"
19836       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19838          X"$as_dir" : 'X\(//\)[^/]' \| \
19839          X"$as_dir" : 'X\(//\)$' \| \
19840          X"$as_dir" : 'X\(/\)' \| \
19841          .     : '\(.\)' 2>/dev/null ||
19842 echo X"$as_dir" |
19843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19845           /^X\(\/\/\)$/{ s//\1/; q; }
19846           /^X\(\/\).*/{ s//\1/; q; }
19847           s/.*/./; q'`
19848     done
19849     test ! -n "$as_dirs" || mkdir $as_dirs
19850   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19852    { (exit 1); exit 1; }; }; }
19853
19854   ac_builddir=.
19855
19856 if test "$ac_dir" != .; then
19857   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19858   # A "../" for each directory in $ac_dir_suffix.
19859   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19860 else
19861   ac_dir_suffix= ac_top_builddir=
19862 fi
19863
19864 case $srcdir in
19865   .)  # No --srcdir option.  We are building in place.
19866     ac_srcdir=.
19867     if test -z "$ac_top_builddir"; then
19868        ac_top_srcdir=.
19869     else
19870        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19871     fi ;;
19872   [\\/]* | ?:[\\/]* )  # Absolute path.
19873     ac_srcdir=$srcdir$ac_dir_suffix;
19874     ac_top_srcdir=$srcdir ;;
19875   *) # Relative path.
19876     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19877     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19878 esac
19879 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19880 # absolute.
19881 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19882 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19883 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19884 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19885
19886
19887   case $INSTALL in
19888   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19889   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19890   esac
19891
19892   if test x"$ac_file" != x-; then
19893     { echo "$as_me:$LINENO: creating $ac_file" >&5
19894 echo "$as_me: creating $ac_file" >&6;}
19895     rm -f "$ac_file"
19896   fi
19897   # Let's still pretend it is `configure' which instantiates (i.e., don't
19898   # use $as_me), people would be surprised to read:
19899   #    /* config.h.  Generated by config.status.  */
19900   if test x"$ac_file" = x-; then
19901     configure_input=
19902   else
19903     configure_input="$ac_file.  "
19904   fi
19905   configure_input=$configure_input"Generated from `echo $ac_file_in |
19906                                      sed 's,.*/,,'` by configure."
19907
19908   # First look for the input files in the build tree, otherwise in the
19909   # src tree.
19910   ac_file_inputs=`IFS=:
19911     for f in $ac_file_in; do
19912       case $f in
19913       -) echo $tmp/stdin ;;
19914       [\\/$]*)
19915          # Absolute (can't be DOS-style, as IFS=:)
19916          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19917 echo "$as_me: error: cannot find input file: $f" >&2;}
19918    { (exit 1); exit 1; }; }
19919          echo $f;;
19920       *) # Relative
19921          if test -f "$f"; then
19922            # Build tree
19923            echo $f
19924          elif test -f "$srcdir/$f"; then
19925            # Source tree
19926            echo $srcdir/$f
19927          else
19928            # /dev/null tree
19929            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19930 echo "$as_me: error: cannot find input file: $f" >&2;}
19931    { (exit 1); exit 1; }; }
19932          fi;;
19933       esac
19934     done` || { (exit 1); exit 1; }
19935 _ACEOF
19936 cat >>$CONFIG_STATUS <<_ACEOF
19937   sed "$ac_vpsub
19938 $extrasub
19939 _ACEOF
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19941 :t
19942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19943 s,@configure_input@,$configure_input,;t t
19944 s,@srcdir@,$ac_srcdir,;t t
19945 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19946 s,@top_srcdir@,$ac_top_srcdir,;t t
19947 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19948 s,@builddir@,$ac_builddir,;t t
19949 s,@abs_builddir@,$ac_abs_builddir,;t t
19950 s,@top_builddir@,$ac_top_builddir,;t t
19951 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19952 s,@INSTALL@,$ac_INSTALL,;t t
19953 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19954   rm -f $tmp/stdin
19955   if test x"$ac_file" != x-; then
19956     mv $tmp/out $ac_file
19957   else
19958     cat $tmp/out
19959     rm -f $tmp/out
19960   fi
19961
19962 done
19963 _ACEOF
19964 cat >>$CONFIG_STATUS <<\_ACEOF
19965
19966 #
19967 # CONFIG_HEADER section.
19968 #
19969
19970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19972 #
19973 # ac_d sets the value in "#define NAME VALUE" lines.
19974 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19975 ac_dB='[        ].*$,\1#\2'
19976 ac_dC=' '
19977 ac_dD=',;t'
19978 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19979 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19980 ac_uB='$,\1#\2define\3'
19981 ac_uC=' '
19982 ac_uD=',;t'
19983
19984 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19985   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19986   case $ac_file in
19987   - | *:- | *:-:* ) # input from stdin
19988         cat >$tmp/stdin
19989         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19990         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19991   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19992         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19993   * )   ac_file_in=$ac_file.in ;;
19994   esac
19995
19996   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19997 echo "$as_me: creating $ac_file" >&6;}
19998
19999   # First look for the input files in the build tree, otherwise in the
20000   # src tree.
20001   ac_file_inputs=`IFS=:
20002     for f in $ac_file_in; do
20003       case $f in
20004       -) echo $tmp/stdin ;;
20005       [\\/$]*)
20006          # Absolute (can't be DOS-style, as IFS=:)
20007          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20008 echo "$as_me: error: cannot find input file: $f" >&2;}
20009    { (exit 1); exit 1; }; }
20010          echo $f;;
20011       *) # Relative
20012          if test -f "$f"; then
20013            # Build tree
20014            echo $f
20015          elif test -f "$srcdir/$f"; then
20016            # Source tree
20017            echo $srcdir/$f
20018          else
20019            # /dev/null tree
20020            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20021 echo "$as_me: error: cannot find input file: $f" >&2;}
20022    { (exit 1); exit 1; }; }
20023          fi;;
20024       esac
20025     done` || { (exit 1); exit 1; }
20026   # Remove the trailing spaces.
20027   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20028
20029 _ACEOF
20030
20031 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20032 # `conftest.undefs', that substitutes the proper values into
20033 # config.h.in to produce config.h.  The first handles `#define'
20034 # templates, and the second `#undef' templates.
20035 # And first: Protect against being on the right side of a sed subst in
20036 # config.status.  Protect against being in an unquoted here document
20037 # in config.status.
20038 rm -f conftest.defines conftest.undefs
20039 # Using a here document instead of a string reduces the quoting nightmare.
20040 # Putting comments in sed scripts is not portable.
20041 #
20042 # `end' is used to avoid that the second main sed command (meant for
20043 # 0-ary CPP macros) applies to n-ary macro definitions.
20044 # See the Autoconf documentation for `clear'.
20045 cat >confdef2sed.sed <<\_ACEOF
20046 s/[\\&,]/\\&/g
20047 s,[\\$`],\\&,g
20048 t clear
20049 : clear
20050 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20051 t end
20052 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20053 : end
20054 _ACEOF
20055 # If some macros were called several times there might be several times
20056 # the same #defines, which is useless.  Nevertheless, we may not want to
20057 # sort them, since we want the *last* AC-DEFINE to be honored.
20058 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20059 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20060 rm -f confdef2sed.sed
20061
20062 # This sed command replaces #undef with comments.  This is necessary, for
20063 # example, in the case of _POSIX_SOURCE, which is predefined and required
20064 # on some systems where configure will not decide to define it.
20065 cat >>conftest.undefs <<\_ACEOF
20066 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20067 _ACEOF
20068
20069 # Break up conftest.defines because some shells have a limit on the size
20070 # of here documents, and old seds have small limits too (100 cmds).
20071 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20072 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20073 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20074 echo '  :' >>$CONFIG_STATUS
20075 rm -f conftest.tail
20076 while grep . conftest.defines >/dev/null
20077 do
20078   # Write a limited-size here document to $tmp/defines.sed.
20079   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20080   # Speed up: don't consider the non `#define' lines.
20081   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20082   # Work around the forget-to-reset-the-flag bug.
20083   echo 't clr' >>$CONFIG_STATUS
20084   echo ': clr' >>$CONFIG_STATUS
20085   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20086   echo 'CEOF
20087   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20088   rm -f $tmp/in
20089   mv $tmp/out $tmp/in
20090 ' >>$CONFIG_STATUS
20091   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20092   rm -f conftest.defines
20093   mv conftest.tail conftest.defines
20094 done
20095 rm -f conftest.defines
20096 echo '  fi # grep' >>$CONFIG_STATUS
20097 echo >>$CONFIG_STATUS
20098
20099 # Break up conftest.undefs because some shells have a limit on the size
20100 # of here documents, and old seds have small limits too (100 cmds).
20101 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20102 rm -f conftest.tail
20103 while grep . conftest.undefs >/dev/null
20104 do
20105   # Write a limited-size here document to $tmp/undefs.sed.
20106   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20107   # Speed up: don't consider the non `#undef'
20108   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20109   # Work around the forget-to-reset-the-flag bug.
20110   echo 't clr' >>$CONFIG_STATUS
20111   echo ': clr' >>$CONFIG_STATUS
20112   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20113   echo 'CEOF
20114   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20115   rm -f $tmp/in
20116   mv $tmp/out $tmp/in
20117 ' >>$CONFIG_STATUS
20118   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20119   rm -f conftest.undefs
20120   mv conftest.tail conftest.undefs
20121 done
20122 rm -f conftest.undefs
20123
20124 cat >>$CONFIG_STATUS <<\_ACEOF
20125   # Let's still pretend it is `configure' which instantiates (i.e., don't
20126   # use $as_me), people would be surprised to read:
20127   #    /* config.h.  Generated by config.status.  */
20128   if test x"$ac_file" = x-; then
20129     echo "/* Generated by configure.  */" >$tmp/config.h
20130   else
20131     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20132   fi
20133   cat $tmp/in >>$tmp/config.h
20134   rm -f $tmp/in
20135   if test x"$ac_file" != x-; then
20136     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20137       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20138 echo "$as_me: $ac_file is unchanged" >&6;}
20139     else
20140       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20142          X"$ac_file" : 'X\(//\)[^/]' \| \
20143          X"$ac_file" : 'X\(//\)$' \| \
20144          X"$ac_file" : 'X\(/\)' \| \
20145          .     : '\(.\)' 2>/dev/null ||
20146 echo X"$ac_file" |
20147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20148           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20149           /^X\(\/\/\)$/{ s//\1/; q; }
20150           /^X\(\/\).*/{ s//\1/; q; }
20151           s/.*/./; q'`
20152       { if $as_mkdir_p; then
20153     mkdir -p "$ac_dir"
20154   else
20155     as_dir="$ac_dir"
20156     as_dirs=
20157     while test ! -d "$as_dir"; do
20158       as_dirs="$as_dir $as_dirs"
20159       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20161          X"$as_dir" : 'X\(//\)[^/]' \| \
20162          X"$as_dir" : 'X\(//\)$' \| \
20163          X"$as_dir" : 'X\(/\)' \| \
20164          .     : '\(.\)' 2>/dev/null ||
20165 echo X"$as_dir" |
20166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20167           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20168           /^X\(\/\/\)$/{ s//\1/; q; }
20169           /^X\(\/\).*/{ s//\1/; q; }
20170           s/.*/./; q'`
20171     done
20172     test ! -n "$as_dirs" || mkdir $as_dirs
20173   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20175    { (exit 1); exit 1; }; }; }
20176
20177       rm -f $ac_file
20178       mv $tmp/config.h $ac_file
20179     fi
20180   else
20181     cat $tmp/config.h
20182     rm -f $tmp/config.h
20183   fi
20184 done
20185 _ACEOF
20186 cat >>$CONFIG_STATUS <<\_ACEOF
20187
20188 #
20189 # CONFIG_COMMANDS section.
20190 #
20191 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20192   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20193   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20194   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20195 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20196          X"$ac_dest" : 'X\(//\)[^/]' \| \
20197          X"$ac_dest" : 'X\(//\)$' \| \
20198          X"$ac_dest" : 'X\(/\)' \| \
20199          .     : '\(.\)' 2>/dev/null ||
20200 echo X"$ac_dest" |
20201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20202           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20203           /^X\(\/\/\)$/{ s//\1/; q; }
20204           /^X\(\/\).*/{ s//\1/; q; }
20205           s/.*/./; q'`
20206   ac_builddir=.
20207
20208 if test "$ac_dir" != .; then
20209   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20210   # A "../" for each directory in $ac_dir_suffix.
20211   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20212 else
20213   ac_dir_suffix= ac_top_builddir=
20214 fi
20215
20216 case $srcdir in
20217   .)  # No --srcdir option.  We are building in place.
20218     ac_srcdir=.
20219     if test -z "$ac_top_builddir"; then
20220        ac_top_srcdir=.
20221     else
20222        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20223     fi ;;
20224   [\\/]* | ?:[\\/]* )  # Absolute path.
20225     ac_srcdir=$srcdir$ac_dir_suffix;
20226     ac_top_srcdir=$srcdir ;;
20227   *) # Relative path.
20228     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20229     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20230 esac
20231 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20232 # absolute.
20233 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20234 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20235 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20236 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20237
20238
20239   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20240 echo "$as_me: executing $ac_dest commands" >&6;}
20241   case $ac_dest in
20242     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20243  ;;
20244   esac
20245 done
20246 _ACEOF
20247
20248 cat >>$CONFIG_STATUS <<\_ACEOF
20249
20250 { (exit 0); exit 0; }
20251 _ACEOF
20252 chmod +x $CONFIG_STATUS
20253 ac_clean_files=$ac_clean_files_save
20254
20255
20256 # configure is writing to config.log, and then calls config.status.
20257 # config.status does its own redirection, appending to config.log.
20258 # Unfortunately, on DOS this fails, as config.log is still kept open
20259 # by configure, so config.status won't be able to write to it; its
20260 # output is simply discarded.  So we exec the FD to /dev/null,
20261 # effectively closing config.log, so it can be properly (re)opened and
20262 # appended to by config.status.  When coming back to configure, we
20263 # need to make the FD available again.
20264 if test "$no_create" != yes; then
20265   ac_cs_success=:
20266   ac_config_status_args=
20267   test "$silent" = yes &&
20268     ac_config_status_args="$ac_config_status_args --quiet"
20269   exec 5>/dev/null
20270   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20271   exec 5>>config.log
20272   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20273   # would make configure fail if this is the last instruction.
20274   $ac_cs_success || { (exit 1); exit 1; }
20275 fi
20276
20277
20278 cd scripts
20279 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20280 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20281 cd ..
20282
20283 c=src/cats
20284
20285 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20286 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20287
20288 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20289 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20290
20291 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20292 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20293
20294 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20295 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20296
20297 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20298 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20299
20300 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20301 chmod 755 $c/sqlite
20302 chmod 755 $c/mysql
20303
20304 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20305    largefile_support="yes"
20306 fi
20307
20308 #
20309 # A whole lot of hand springs to get the compiler version.
20310 #  This is because gcc changed the output in version 3.0
20311 #
20312 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20313 if test "x${CCVERSION}" = "x" ; then
20314   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20315 fi
20316 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20317 if test x"${CXXVERSION}" = x ; then
20318   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20319 fi
20320
20321 if test "x${subsysdir}" = "x${sbindir}" ; then
20322    echo " "
20323    echo " "
20324    echo "You have set --sbindir and --with-subsys-dir"
20325    echo "  both equal to: ${subsysdir} "
20326    echo "  This is not permitted. Please reconfigure."
20327    echo " "
20328    echo "Aborting configuration ..."
20329    echo " "
20330    echo " "
20331    exit 1
20332 fi
20333
20334 if test "x${db_name}" = "xInternal" ; then
20335    echo " "
20336    echo " "
20337    echo "You have not specified either --enable-client-only or one of the"
20338    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20339    echo "  This is not permitted. Please reconfigure."
20340    echo " "
20341    echo "Aborting the configuration ..."
20342    echo " "
20343    echo " "
20344    exit 1
20345 fi
20346
20347 echo "
20348 Configuration on `date`:
20349
20350   Host:                       $host -- ${DISTNAME} ${DISTVER}
20351   Bacula version:             ${VERSION} (${DATE})
20352   Source code location:       ${srcdir}
20353   Install binaries:           ${sbindir}
20354   Install config files:       ${sysconfdir}
20355   Scripts directory:          ${scriptdir}
20356   Working directory:          ${working_dir}
20357   PID directory:              ${piddir}
20358   Subsys directory:           ${subsysdir}
20359   C Compiler:                 ${CC} ${CCVERSION}
20360   C++ Compiler:               ${CXX} ${CXXVERSION}
20361   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20362   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20363   Libraries:                  ${LIBS}
20364   Statically Linked Tools:    ${support_static_tools}
20365   Statically Linked FD:       ${support_static_fd}
20366   Statically Linked SD:       ${support_static_sd}
20367   Statically Linked DIR:      ${support_static_dir}
20368   Statically Linked CONS:     ${support_static_cons}
20369   Database type:              ${db_name}
20370   Database lib:               ${DB_LIBS}
20371
20372   Job Output Email:           ${job_email}
20373   Traceback Email:            ${dump_email}
20374   SMTP Host Address:          ${smtp_host}
20375
20376   Director Port:              ${dir_port}
20377   File daemon Port:           ${fd_port}
20378   Storage daemon Port:        ${sd_port}
20379
20380   Director User:              ${dir_user}
20381   Director Group:             ${dir_group}
20382   Storage Daemon User:        ${sd_user}
20383   Storage DaemonGroup:        ${sd_group}
20384   File Daemon User:           ${fd_user}
20385   File Daemon Group:          ${fd_group}
20386
20387   SQL binaries Directory      ${SQL_BINDIR}
20388
20389   Large file support:         $largefile_support
20390   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20391   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20392   TCP Wrappers support:       ${TCPW_MSG}
20393   ZLIB support:               ${have_zlib}
20394   enable-smartalloc:          ${support_smartalloc}
20395   enable-gnome:               ${support_gnome} ${gnome_version}
20396   enable-wx-console:          ${support_wx_console}
20397   enable-tray-monitor:        ${support_tray_monitor}
20398   client-only:                ${build_client_only}
20399   ACL support:                ${have_acl}
20400
20401   " > config.out
20402
20403 cat config.out
20404
20405 # old stuff
20406 # cweb support:               ${got_cweb} ${CWEB_SRC}
20407   # gmp support:                      ${got_gmp} ${GMP_SRC}