]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Misc
[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 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 dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
899                           base install directory, defaults to /usr/local/pgsql
900
901   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
902                           install directory, default is to search through
903                           a number of common places for the MySQL files.
904
905   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
906                           install directory, default is to search through
907                           a number of common places for the MySQL files.
908
909   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
910                           install directory, default is to search through
911                           a number of common places for the SQLite files.
912   --with-x                use the X Window System
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CXX         C++ compiler command
922   CXXFLAGS    C++ compiler flags
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 _ACEOF
929 fi
930
931 if test "$ac_init_help" = "recursive"; then
932   # If there are subdirs, report their specific --help.
933   ac_popdir=`pwd`
934   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935     test -d $ac_dir || continue
936     ac_builddir=.
937
938 if test "$ac_dir" != .; then
939   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940   # A "../" for each directory in $ac_dir_suffix.
941   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 else
943   ac_dir_suffix= ac_top_builddir=
944 fi
945
946 case $srcdir in
947   .)  # No --srcdir option.  We are building in place.
948     ac_srcdir=.
949     if test -z "$ac_top_builddir"; then
950        ac_top_srcdir=.
951     else
952        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953     fi ;;
954   [\\/]* | ?:[\\/]* )  # Absolute path.
955     ac_srcdir=$srcdir$ac_dir_suffix;
956     ac_top_srcdir=$srcdir ;;
957   *) # Relative path.
958     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959     ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 esac
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 # absolute.
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core core.* *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 BUILD_DIR=`pwd`
1332 cd ..
1333 TOP_DIR=`pwd`
1334 cd ${BUILD_DIR}
1335
1336 ac_aux_dir=
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338   if test -f $ac_dir/install-sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install-sh -c"
1341     break
1342   elif test -f $ac_dir/install.sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install.sh -c"
1345     break
1346   elif test -f $ac_dir/shtool; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/shtool install -c"
1349     break
1350   fi
1351 done
1352 if test -z "$ac_aux_dir"; then
1353   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
1361           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1362
1363
1364
1365
1366
1367 for ac_prog in true
1368 do
1369   # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374   echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376   case $TRUEPRG in
1377   [\\/]* | ?:[\\/]*)
1378   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379   ;;
1380   *)
1381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   for ac_exec_ext in '' $ac_executable_extensions; do
1387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390     break 2
1391   fi
1392 done
1393 done
1394
1395   ;;
1396 esac
1397 fi
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1399
1400 if test -n "$TRUEPRG"; then
1401   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406 fi
1407
1408   test -n "$TRUEPRG" && break
1409 done
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1411
1412 for ac_prog in false
1413 do
1414   # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   case $FALSEPRG in
1422   [\\/]* | ?:[\\/]*)
1423   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424   ;;
1425   *)
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   for ac_exec_ext in '' $ac_executable_extensions; do
1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435     break 2
1436   fi
1437 done
1438 done
1439
1440   ;;
1441 esac
1442 fi
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1444
1445 if test -n "$FALSEPRG"; then
1446   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1448 else
1449   echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453   test -n "$FALSEPRG" && break
1454 done
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1456
1457
1458 #AC_CANONICAL_HOST
1459
1460 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 echo "configuring for bacula $VERSION ($DATE)"
1464
1465
1466
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$CC"; then
1481   ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 CC=$ac_cv_prog_CC
1500 if test -n "$CC"; then
1501   echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508 fi
1509 if test -z "$ac_cv_prog_CC"; then
1510   ac_ct_CC=$CC
1511   # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$ac_ct_CC"; then
1519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_ac_ct_CC="gcc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546   CC=$ac_ct_CC
1547 else
1548   CC="$ac_cv_prog_CC"
1549 fi
1550
1551 if test -z "$CC"; then
1552   if test -n "$ac_tool_prefix"; then
1553   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$CC"; then
1561   ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="${ac_tool_prefix}cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$ac_cv_prog_CC"; then
1590   ac_ct_CC=$CC
1591   # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   if test -n "$ac_ct_CC"; then
1599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   for ac_exec_ext in '' $ac_executable_extensions; do
1607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_ac_ct_CC="cc"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611   fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626   CC=$ac_ct_CC
1627 else
1628   CC="$ac_cv_prog_CC"
1629 fi
1630
1631 fi
1632 if test -z "$CC"; then
1633   # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$CC"; then
1641   ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643   ac_prog_rejected=no
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652        ac_prog_rejected=yes
1653        continue
1654      fi
1655     ac_cv_prog_CC="cc"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661
1662 if test $ac_prog_rejected = yes; then
1663   # We found a bogon in the path, so make sure we never use it.
1664   set dummy $ac_cv_prog_CC
1665   shift
1666   if test $# != 0; then
1667     # We chose a different compiler from the bogus one.
1668     # However, it has the same basename, so the bogon will be chosen
1669     # first if we set CC to just the basename; use the full file name.
1670     shift
1671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672   fi
1673 fi
1674 fi
1675 fi
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678   echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   if test -n "$ac_tool_prefix"; then
1688   for ac_prog in cl
1689   do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718   echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725     test -n "$CC" && break
1726   done
1727 fi
1728 if test -z "$CC"; then
1729   ac_ct_CC=$CC
1730   for ac_prog in cl
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_CC"; then
1740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$ac_ct_CC" && break
1768 done
1769
1770   CC=$ac_ct_CC
1771 fi
1772
1773 fi
1774
1775
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784      "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787   (eval $ac_compiler --version </dev/null >&5) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792   (eval $ac_compiler -v </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
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line $LINENO "configure"
1804 /* confdefs.h.  */
1805 _ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h.  */
1809
1810 int
1811 main ()
1812 {
1813
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1822 # of exeext.
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827   (eval $ac_link_default) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }; then
1831   # Find the output, starting from the most likely.  This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1833 # resort.
1834
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 ac_cv_exeext=
1838 # b.out is created by i960 compilers.
1839 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1840 do
1841   test -f "$ac_file" || continue
1842   case $ac_file in
1843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1844         ;;
1845     conftest.$ac_ext )
1846         # This is the source file.
1847         ;;
1848     [ab].out )
1849         # We found the default executable, but exeext='' is most
1850         # certainly right.
1851         break;;
1852     *.* )
1853         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854         # FIXME: I believe we export ac_cv_exeext for Libtool,
1855         # but it would be cool to find out if it's true.  Does anybody
1856         # maintain Libtool? --akim.
1857         export ac_cv_exeext
1858         break;;
1859     * )
1860         break;;
1861   esac
1862 done
1863 else
1864   echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&2;}
1871    { (exit 77); exit 77; }; }
1872 fi
1873
1874 ac_exeext=$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_file" >&5
1876 echo "${ECHO_T}$ac_file" >&6
1877
1878 # Check the compiler produces executables we can run.  If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1883 # If not cross compiling, check that we can run a simple program.
1884 if test "$cross_compiling" != yes; then
1885   if { ac_try='./$ac_file'
1886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887   (eval $ac_try) 2>&5
1888   ac_status=$?
1889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890   (exit $ac_status); }; }; then
1891     cross_compiling=no
1892   else
1893     if test "$cross_compiling" = maybe; then
1894         cross_compiling=yes
1895     else
1896         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902    { (exit 1); exit 1; }; }
1903     fi
1904   fi
1905 fi
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1908
1909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1910 ac_clean_files=$ac_clean_files_save
1911 # Check the compiler produces executables we can run.  If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1917
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921   (eval $ac_link) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; then
1925   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1928 # `rm'.
1929 for ac_file in conftest.exe conftest conftest.*; do
1930   test -f "$ac_file" || continue
1931   case $ac_file in
1932     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1933     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1934           export ac_cv_exeext
1935           break;;
1936     * ) break;;
1937   esac
1938 done
1939 else
1940   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 rm -f conftest$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1949 echo "${ECHO_T}$ac_cv_exeext" >&6
1950
1951 rm -f conftest.$ac_ext
1952 EXEEXT=$ac_cv_exeext
1953 ac_exeext=$EXEEXT
1954 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1956 if test "${ac_cv_objext+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   cat >conftest.$ac_ext <<_ACEOF
1960 #line $LINENO "configure"
1961 /* confdefs.h.  */
1962 _ACEOF
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h.  */
1966
1967 int
1968 main ()
1969 {
1970
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.o conftest.obj
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977   (eval $ac_compile) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; then
1981   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1984     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985        break;;
1986   esac
1987 done
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2000 fi
2001 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2002 echo "${ECHO_T}$ac_cv_objext" >&6
2003 OBJEXT=$ac_cv_objext
2004 ac_objext=$OBJEXT
2005 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021 #ifndef __GNUC__
2022        choke me
2023 #endif
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); } &&
2035          { ac_try='test -s conftest.$ac_objext'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; }; then
2041   ac_compiler_gnu=yes
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_compiler_gnu=no
2047 fi
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS=${CFLAGS+set}
2056 ac_save_CFLAGS=$CFLAGS
2057 CFLAGS="-g"
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); } &&
2085          { ac_try='test -s conftest.$ac_objext'
2086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087   (eval $ac_try) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; }; then
2091   ac_cv_prog_cc_g=yes
2092 else
2093   echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_cv_prog_cc_g=no
2097 fi
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103   CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105   if test "$GCC" = yes; then
2106     CFLAGS="-g -O2"
2107   else
2108     CFLAGS="-g"
2109   fi
2110 else
2111   if test "$GCC" = yes; then
2112     CFLAGS="-O2"
2113   else
2114     CFLAGS=
2115   fi
2116 fi
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   ac_cv_prog_cc_stdc=no
2123 ac_save_CC=$CC
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131 #include <stdarg.h>
2132 #include <stdio.h>
2133 #include <sys/types.h>
2134 #include <sys/stat.h>
2135 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2136 struct buf { int x; };
2137 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2138 static char *e (p, i)
2139      char **p;
2140      int i;
2141 {
2142   return p[i];
2143 }
2144 static char *f (char * (*g) (char **, int), char **p, ...)
2145 {
2146   char *s;
2147   va_list v;
2148   va_start (v,p);
2149   s = g (p, va_arg (v,int));
2150   va_end (v);
2151   return s;
2152 }
2153 int test (int i, double x);
2154 struct s1 {int (*f) (int a);};
2155 struct s2 {int (*f) (double a);};
2156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2157 int argc;
2158 char **argv;
2159 int
2160 main ()
2161 {
2162 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 # Don't try gcc -ansi; that turns off useful extensions and
2168 # breaks some systems' header files.
2169 # AIX                   -qlanglvl=ansi
2170 # Ultrix and OSF/1      -std1
2171 # HP-UX 10.20 and later -Ae
2172 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2173 # SVR4                  -Xc -D__EXTENSIONS__
2174 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2175 do
2176   CC="$ac_save_CC $ac_arg"
2177   rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 fi
2196 rm -f conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2200
2201 fi
2202
2203 case "x$ac_cv_prog_cc_stdc" in
2204   x|xno)
2205     echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2207   *)
2208     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210     CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2212
2213 # Some people use a C++ compiler to compile C.  Since we use `exit',
2214 # in C++ we need to declare it.  In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219   choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   for ac_declaration in \
2235    ''\
2236    '#include <stdlib.h>' \
2237    'extern "C" void std::exit (int) throw (); using std::exit;' \
2238    'extern "C" void std::exit (int); using std::exit;' \
2239    'extern "C" void exit (int) throw ();' \
2240    'extern "C" void exit (int);' \
2241    'void exit (int);'
2242 do
2243   cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 #include <stdlib.h>
2251 $ac_declaration
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   :
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 continue
2278 fi
2279 rm -f conftest.$ac_objext conftest.$ac_ext
2280   cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 /* confdefs.h.  */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h.  */
2287 $ac_declaration
2288 int
2289 main ()
2290 {
2291 exit (42);
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298   (eval $ac_compile) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   break
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 fi
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2315 done
2316 rm -f conftest*
2317 if test -n "$ac_declaration"; then
2318   echo '#ifdef __cplusplus' >>confdefs.h
2319   echo $ac_declaration      >>confdefs.h
2320   echo '#endif'             >>confdefs.h
2321 fi
2322
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 fi
2328 rm -f conftest.$ac_objext conftest.$ac_ext
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335 ac_ext=cc
2336 ac_cpp='$CXXCPP $CPPFLAGS'
2337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2342   do
2343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_prog_CXX+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$CXX"; then
2351   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366
2367 fi
2368 fi
2369 CXX=$ac_cv_prog_CXX
2370 if test -n "$CXX"; then
2371   echo "$as_me:$LINENO: result: $CXX" >&5
2372 echo "${ECHO_T}$CXX" >&6
2373 else
2374   echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2376 fi
2377
2378     test -n "$CXX" && break
2379   done
2380 fi
2381 if test -z "$CXX"; then
2382   ac_ct_CXX=$CXX
2383   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2384 do
2385   # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$ac_ct_CXX"; then
2393   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     ac_cv_prog_ac_ct_CXX="$ac_prog"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408
2409 fi
2410 fi
2411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2412 if test -n "$ac_ct_CXX"; then
2413   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2414 echo "${ECHO_T}$ac_ct_CXX" >&6
2415 else
2416   echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2418 fi
2419
2420   test -n "$ac_ct_CXX" && break
2421 done
2422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2423
2424   CXX=$ac_ct_CXX
2425 fi
2426
2427
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430      "checking for C++ compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433   (eval $ac_compiler --version </dev/null >&5) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438   (eval $ac_compiler -v </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
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464 #ifndef __GNUC__
2465        choke me
2466 #endif
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   ac_compiler_gnu=yes
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 ac_compiler_gnu=no
2490 fi
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2493
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2496 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2497 GXX=`test $ac_compiler_gnu = yes && echo yes`
2498 ac_test_CXXFLAGS=${CXXFLAGS+set}
2499 ac_save_CXXFLAGS=$CXXFLAGS
2500 CXXFLAGS="-g"
2501 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2502 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2503 if test "${ac_cv_prog_cxx_g+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   ac_cv_prog_cxx_g=yes
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_cv_prog_cxx_g=no
2540 fi
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542 fi
2543 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2544 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2545 if test "$ac_test_CXXFLAGS" = set; then
2546   CXXFLAGS=$ac_save_CXXFLAGS
2547 elif test $ac_cv_prog_cxx_g = yes; then
2548   if test "$GXX" = yes; then
2549     CXXFLAGS="-g -O2"
2550   else
2551     CXXFLAGS="-g"
2552   fi
2553 else
2554   if test "$GXX" = yes; then
2555     CXXFLAGS="-O2"
2556   else
2557     CXXFLAGS=
2558   fi
2559 fi
2560 for ac_declaration in \
2561    ''\
2562    '#include <stdlib.h>' \
2563    'extern "C" void std::exit (int) throw (); using std::exit;' \
2564    'extern "C" void std::exit (int); using std::exit;' \
2565    'extern "C" void exit (int) throw ();' \
2566    'extern "C" void exit (int);' \
2567    'void exit (int);'
2568 do
2569   cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576 #include <stdlib.h>
2577 $ac_declaration
2578 int
2579 main ()
2580 {
2581 exit (42);
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   :
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 continue
2604 fi
2605 rm -f conftest.$ac_objext conftest.$ac_ext
2606   cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613 $ac_declaration
2614 int
2615 main ()
2616 {
2617 exit (42);
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624   (eval $ac_compile) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   break
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 fi
2640 rm -f conftest.$ac_objext conftest.$ac_ext
2641 done
2642 rm -f conftest*
2643 if test -n "$ac_declaration"; then
2644   echo '#ifdef __cplusplus' >>confdefs.h
2645   echo $ac_declaration      >>confdefs.h
2646   echo '#endif'             >>confdefs.h
2647 fi
2648
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654
2655 if test "x$CC" != xcc; then
2656   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2657 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2658 else
2659   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2660 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2661 fi
2662 set dummy $CC; ac_cc=`echo $2 |
2663                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2664 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 # Make sure it works both with $CC and with simple cc.
2684 # We do the test twice because some compilers refuse to overwrite an
2685 # existing .o file with -o, though they will create one.
2686 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2687 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692    test -f conftest.$ac_objext && { (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 then
2698   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2699   if test "x$CC" != xcc; then
2700     # Test first that cc exists at all.
2701     if { ac_try='cc -c conftest.$ac_ext >&5'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2708       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          test -f conftest.$ac_objext && { (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       then
2719         # cc works too.
2720         :
2721       else
2722         # cc exists but doesn't like -o.
2723         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2724       fi
2725     fi
2726   fi
2727 else
2728   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 fi
2730 rm -f conftest*
2731
2732 fi
2733 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2734   echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 else
2737   echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739
2740 cat >>confdefs.h <<\_ACEOF
2741 #define NO_MINUS_C_MINUS_O 1
2742 _ACEOF
2743
2744 fi
2745
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2753 # On Suns, sometimes $CPP names a directory.
2754 if test -n "$CPP" && test -d "$CPP"; then
2755   CPP=
2756 fi
2757 if test -z "$CPP"; then
2758   if test "${ac_cv_prog_CPP+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761       # Double quotes because CPP needs to be expanded
2762     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2763     do
2764       ac_preproc_ok=false
2765 for ac_c_preproc_warn_flag in '' yes
2766 do
2767   # Use a header file that comes with gcc, so configuring glibc
2768   # with a fresh cross-compiler works.
2769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2770   # <limits.h> exists even on freestanding compilers.
2771   # On the NeXT, cc -E runs the code through the compiler's parser,
2772   # not just through cpp. "Syntax error" is here to catch this case.
2773   cat >conftest.$ac_ext <<_ACEOF
2774 #line $LINENO "configure"
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 #ifdef __STDC__
2781 # include <limits.h>
2782 #else
2783 # include <assert.h>
2784 #endif
2785                      Syntax error
2786 _ACEOF
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789   ac_status=$?
2790   grep -v '^ *+' conftest.er1 >conftest.err
2791   rm -f conftest.er1
2792   cat conftest.err >&5
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } >/dev/null; then
2795   if test -s conftest.err; then
2796     ac_cpp_err=$ac_c_preproc_warn_flag
2797   else
2798     ac_cpp_err=
2799   fi
2800 else
2801   ac_cpp_err=yes
2802 fi
2803 if test -z "$ac_cpp_err"; then
2804   :
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809   # Broken: fails on valid input.
2810 continue
2811 fi
2812 rm -f conftest.err conftest.$ac_ext
2813
2814   # OK, works on sane cases.  Now check whether non-existent headers
2815   # can be detected and how.
2816   cat >conftest.$ac_ext <<_ACEOF
2817 #line $LINENO "configure"
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823 #include <ac_nonexistent.h>
2824 _ACEOF
2825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2827   ac_status=$?
2828   grep -v '^ *+' conftest.er1 >conftest.err
2829   rm -f conftest.er1
2830   cat conftest.err >&5
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } >/dev/null; then
2833   if test -s conftest.err; then
2834     ac_cpp_err=$ac_c_preproc_warn_flag
2835   else
2836     ac_cpp_err=
2837   fi
2838 else
2839   ac_cpp_err=yes
2840 fi
2841 if test -z "$ac_cpp_err"; then
2842   # Broken: success on invalid input.
2843 continue
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848   # Passes both tests.
2849 ac_preproc_ok=:
2850 break
2851 fi
2852 rm -f conftest.err conftest.$ac_ext
2853
2854 done
2855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2856 rm -f conftest.err conftest.$ac_ext
2857 if $ac_preproc_ok; then
2858   break
2859 fi
2860
2861     done
2862     ac_cv_prog_CPP=$CPP
2863
2864 fi
2865   CPP=$ac_cv_prog_CPP
2866 else
2867   ac_cv_prog_CPP=$CPP
2868 fi
2869 echo "$as_me:$LINENO: result: $CPP" >&5
2870 echo "${ECHO_T}$CPP" >&6
2871 ac_preproc_ok=false
2872 for ac_c_preproc_warn_flag in '' yes
2873 do
2874   # Use a header file that comes with gcc, so configuring glibc
2875   # with a fresh cross-compiler works.
2876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877   # <limits.h> exists even on freestanding compilers.
2878   # On the NeXT, cc -E runs the code through the compiler's parser,
2879   # not just through cpp. "Syntax error" is here to catch this case.
2880   cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887 #ifdef __STDC__
2888 # include <limits.h>
2889 #else
2890 # include <assert.h>
2891 #endif
2892                      Syntax error
2893 _ACEOF
2894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896   ac_status=$?
2897   grep -v '^ *+' conftest.er1 >conftest.err
2898   rm -f conftest.er1
2899   cat conftest.err >&5
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } >/dev/null; then
2902   if test -s conftest.err; then
2903     ac_cpp_err=$ac_c_preproc_warn_flag
2904   else
2905     ac_cpp_err=
2906   fi
2907 else
2908   ac_cpp_err=yes
2909 fi
2910 if test -z "$ac_cpp_err"; then
2911   :
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916   # Broken: fails on valid input.
2917 continue
2918 fi
2919 rm -f conftest.err conftest.$ac_ext
2920
2921   # OK, works on sane cases.  Now check whether non-existent headers
2922   # can be detected and how.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 #include <ac_nonexistent.h>
2931 _ACEOF
2932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } >/dev/null; then
2940   if test -s conftest.err; then
2941     ac_cpp_err=$ac_c_preproc_warn_flag
2942   else
2943     ac_cpp_err=
2944   fi
2945 else
2946   ac_cpp_err=yes
2947 fi
2948 if test -z "$ac_cpp_err"; then
2949   # Broken: success on invalid input.
2950 continue
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955   # Passes both tests.
2956 ac_preproc_ok=:
2957 break
2958 fi
2959 rm -f conftest.err conftest.$ac_ext
2960
2961 done
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.err conftest.$ac_ext
2964 if $ac_preproc_ok; then
2965   :
2966 else
2967   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&2;}
2971    { (exit 1); exit 1; }; }
2972 fi
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981 echo "$as_me:$LINENO: checking for egrep" >&5
2982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2983 if test "${ac_cv_prog_egrep+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2987     then ac_cv_prog_egrep='grep -E'
2988     else ac_cv_prog_egrep='egrep'
2989     fi
2990 fi
2991 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2992 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2993  EGREP=$ac_cv_prog_egrep
2994
2995
2996 if test $ac_cv_c_compiler_gnu = yes; then
2997     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2998 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2999 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002     ac_pattern="Autoconf.*'x'"
3003   cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <sgtty.h>
3011 Autoconf TIOCGETP
3012 _ACEOF
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3015   ac_cv_prog_gcc_traditional=yes
3016 else
3017   ac_cv_prog_gcc_traditional=no
3018 fi
3019 rm -f conftest*
3020
3021
3022   if test $ac_cv_prog_gcc_traditional = no; then
3023     cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #include <termio.h>
3031 Autoconf TCGETA
3032 _ACEOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3035   ac_cv_prog_gcc_traditional=yes
3036 fi
3037 rm -f conftest*
3038
3039   fi
3040 fi
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3043   if test $ac_cv_prog_gcc_traditional = yes; then
3044     CC="$CC -traditional"
3045   fi
3046 fi
3047
3048 if test x$CC = xgcc
3049 then
3050    cat >>confdefs.h <<\_ACEOF
3051 #define HAVE_GCC 1
3052 _ACEOF
3053
3054 fi
3055
3056 # Find a good install program.  We prefer a C program (faster),
3057 # so one script is as good as another.  But avoid the broken or
3058 # incompatible versions:
3059 # SysV /etc/install, /usr/sbin/install
3060 # SunOS /usr/etc/install
3061 # IRIX /sbin/install
3062 # AIX /bin/install
3063 # AmigaOS /C/install, which installs bootblocks on floppy discs
3064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3067 # ./install, which can be erroneously created by make from ./install.sh.
3068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3070 if test -z "$INSTALL"; then
3071 if test "${ac_cv_path_install+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077   IFS=$as_save_IFS
3078   test -z "$as_dir" && as_dir=.
3079   # Account for people who put trailing slashes in PATH elements.
3080 case $as_dir/ in
3081   ./ | .// | /cC/* | \
3082   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3083   /usr/ucb/* ) ;;
3084   *)
3085     # OSF1 and SCO ODT 3.0 have their own names for install.
3086     # Don't use installbsd from OSF since it installs stuff as root
3087     # by default.
3088     for ac_prog in ginstall scoinst install; do
3089       for ac_exec_ext in '' $ac_executable_extensions; do
3090         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3091           if test $ac_prog = install &&
3092             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093             # AIX install.  It has an incompatible calling convention.
3094             :
3095           elif test $ac_prog = install &&
3096             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097             # program-specific install script used by HP pwplus--don't use.
3098             :
3099           else
3100             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3101             break 3
3102           fi
3103         fi
3104       done
3105     done
3106     ;;
3107 esac
3108 done
3109
3110
3111 fi
3112   if test "${ac_cv_path_install+set}" = set; then
3113     INSTALL=$ac_cv_path_install
3114   else
3115     # As a last resort, use the slow shell script.  We don't cache a
3116     # path for INSTALL within a source directory, because that will
3117     # break other packages using the cache if that directory is
3118     # removed, or if the path is relative.
3119     INSTALL=$ac_install_sh
3120   fi
3121 fi
3122 echo "$as_me:$LINENO: result: $INSTALL" >&5
3123 echo "${ECHO_T}$INSTALL" >&6
3124
3125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3126 # It thinks the first close brace ends the variable substitution.
3127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3128
3129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3130
3131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3132
3133 if test -n "$ac_tool_prefix"; then
3134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_RANLIB+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   if test -n "$RANLIB"; then
3142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   for ac_exec_ext in '' $ac_executable_extensions; do
3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157
3158 fi
3159 fi
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162   echo "$as_me:$LINENO: result: $RANLIB" >&5
3163 echo "${ECHO_T}$RANLIB" >&6
3164 else
3165   echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 fi
3168
3169 fi
3170 if test -z "$ac_cv_prog_RANLIB"; then
3171   ac_ct_RANLIB=$RANLIB
3172   # Extract the first word of "ranlib", so it can be a program name with args.
3173 set dummy ranlib; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$ac_ct_RANLIB"; then
3180   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_ac_ct_RANLIB="ranlib"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3197 fi
3198 fi
3199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3200 if test -n "$ac_ct_RANLIB"; then
3201   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3203 else
3204   echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208   RANLIB=$ac_ct_RANLIB
3209 else
3210   RANLIB="$ac_cv_prog_RANLIB"
3211 fi
3212
3213 # Extract the first word of "mv", so it can be a program name with args.
3214 set dummy mv; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_MV+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   case $MV in
3221   [\\/]* | ?:[\\/]*)
3222   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3223   ;;
3224   *)
3225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230   for ac_exec_ext in '' $ac_executable_extensions; do
3231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237 done
3238
3239   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3240   ;;
3241 esac
3242 fi
3243 MV=$ac_cv_path_MV
3244
3245 if test -n "$MV"; then
3246   echo "$as_me:$LINENO: result: $MV" >&5
3247 echo "${ECHO_T}$MV" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 # Extract the first word of "rm", so it can be a program name with args.
3254 set dummy rm; ac_word=$2
3255 echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257 if test "${ac_cv_path_RM+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   case $RM in
3261   [\\/]* | ?:[\\/]*)
3262   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3263   ;;
3264   *)
3265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268   IFS=$as_save_IFS
3269   test -z "$as_dir" && as_dir=.
3270   for ac_exec_ext in '' $ac_executable_extensions; do
3271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274     break 2
3275   fi
3276 done
3277 done
3278
3279   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3280   ;;
3281 esac
3282 fi
3283 RM=$ac_cv_path_RM
3284
3285 if test -n "$RM"; then
3286   echo "$as_me:$LINENO: result: $RM" >&5
3287 echo "${ECHO_T}$RM" >&6
3288 else
3289   echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 fi
3292
3293 # Extract the first word of "cp", so it can be a program name with args.
3294 set dummy cp; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_path_CP+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   case $CP in
3301   [\\/]* | ?:[\\/]*)
3302   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3303   ;;
3304   *)
3305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318
3319   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3320   ;;
3321 esac
3322 fi
3323 CP=$ac_cv_path_CP
3324
3325 if test -n "$CP"; then
3326   echo "$as_me:$LINENO: result: $CP" >&5
3327 echo "${ECHO_T}$CP" >&6
3328 else
3329   echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 # Extract the first word of "sed", so it can be a program name with args.
3334 set dummy sed; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_path_SED+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   case $SED in
3341   [\\/]* | ?:[\\/]*)
3342   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3343   ;;
3344   *)
3345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358
3359   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3360   ;;
3361 esac
3362 fi
3363 SED=$ac_cv_path_SED
3364
3365 if test -n "$SED"; then
3366   echo "$as_me:$LINENO: result: $SED" >&5
3367 echo "${ECHO_T}$SED" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3371 fi
3372
3373 # Extract the first word of "awk", so it can be a program name with args.
3374 set dummy awk; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_path_AWK+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   case $AWK in
3381   [\\/]* | ?:[\\/]*)
3382   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3383   ;;
3384   *)
3385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3400   ;;
3401 esac
3402 fi
3403 AWK=$ac_cv_path_AWK
3404
3405 if test -n "$AWK"; then
3406   echo "$as_me:$LINENO: result: $AWK" >&5
3407 echo "${ECHO_T}$AWK" >&6
3408 else
3409   echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413 # Extract the first word of "echo", so it can be a program name with args.
3414 set dummy echo; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_path_ECHO+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   case $ECHO in
3421   [\\/]* | ?:[\\/]*)
3422   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3423   ;;
3424   *)
3425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428   IFS=$as_save_IFS
3429   test -z "$as_dir" && as_dir=.
3430   for ac_exec_ext in '' $ac_executable_extensions; do
3431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434     break 2
3435   fi
3436 done
3437 done
3438
3439   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3440   ;;
3441 esac
3442 fi
3443 ECHO=$ac_cv_path_ECHO
3444
3445 if test -n "$ECHO"; then
3446   echo "$as_me:$LINENO: result: $ECHO" >&5
3447 echo "${ECHO_T}$ECHO" >&6
3448 else
3449   echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3451 fi
3452
3453 # Extract the first word of "cmp", so it can be a program name with args.
3454 set dummy cmp; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_path_CMP+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   case $CMP in
3461   [\\/]* | ?:[\\/]*)
3462   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3463   ;;
3464   *)
3465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3480   ;;
3481 esac
3482 fi
3483 CMP=$ac_cv_path_CMP
3484
3485 if test -n "$CMP"; then
3486   echo "$as_me:$LINENO: result: $CMP" >&5
3487 echo "${ECHO_T}$CMP" >&6
3488 else
3489   echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3491 fi
3492
3493 # Extract the first word of "tbl", so it can be a program name with args.
3494 set dummy tbl; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_path_TBL+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   case $TBL in
3501   [\\/]* | ?:[\\/]*)
3502   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3503   ;;
3504   *)
3505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510   for ac_exec_ext in '' $ac_executable_extensions; do
3511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517 done
3518
3519   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3520   ;;
3521 esac
3522 fi
3523 TBL=$ac_cv_path_TBL
3524
3525 if test -n "$TBL"; then
3526   echo "$as_me:$LINENO: result: $TBL" >&5
3527 echo "${ECHO_T}$TBL" >&6
3528 else
3529   echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3531 fi
3532
3533 # Extract the first word of "ar", so it can be a program name with args.
3534 set dummy ar; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_path_AR+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   case $AR in
3541   [\\/]* | ?:[\\/]*)
3542   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3543   ;;
3544   *)
3545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550   for ac_exec_ext in '' $ac_executable_extensions; do
3551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558
3559   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3560   ;;
3561 esac
3562 fi
3563 AR=$ac_cv_path_AR
3564
3565 if test -n "$AR"; then
3566   echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3568 else
3569   echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573 # Extract the first word of "ranlib", so it can be a program name with args.
3574 set dummy ranlib; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_path_RANLIB+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   case $RANLIB in
3581   [\\/]* | ?:[\\/]*)
3582   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3583   ;;
3584   *)
3585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588   IFS=$as_save_IFS
3589   test -z "$as_dir" && as_dir=.
3590   for ac_exec_ext in '' $ac_executable_extensions; do
3591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594     break 2
3595   fi
3596 done
3597 done
3598
3599   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3600   ;;
3601 esac
3602 fi
3603 RANLIB=$ac_cv_path_RANLIB
3604
3605 if test -n "$RANLIB"; then
3606   echo "$as_me:$LINENO: result: $RANLIB" >&5
3607 echo "${ECHO_T}$RANLIB" >&6
3608 else
3609   echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613 # Extract the first word of "openssl", so it can be a program name with args.
3614 set dummy openssl; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_path_OPENSSL+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   case $OPENSSL in
3621   [\\/]* | ?:[\\/]*)
3622   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3623   ;;
3624   *)
3625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3640   ;;
3641 esac
3642 fi
3643 OPENSSL=$ac_cv_path_OPENSSL
3644
3645 if test -n "$OPENSSL"; then
3646   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3647 echo "${ECHO_T}$OPENSSL" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652
3653 # Extract the first word of "mtx", so it can be a program name with args.
3654 set dummy mtx; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_path_MTX+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   case $MTX in
3661   [\\/]* | ?:[\\/]*)
3662   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3663   ;;
3664   *)
3665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670   for ac_exec_ext in '' $ac_executable_extensions; do
3671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674     break 2
3675   fi
3676 done
3677 done
3678
3679   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3680   ;;
3681 esac
3682 fi
3683 MTX=$ac_cv_path_MTX
3684
3685 if test -n "$MTX"; then
3686   echo "$as_me:$LINENO: result: $MTX" >&5
3687 echo "${ECHO_T}$MTX" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691 fi
3692
3693 # Extract the first word of "pkg-config", so it can be a program name with args.
3694 set dummy pkg-config; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   case $PKGCONFIG in
3701   [\\/]* | ?:[\\/]*)
3702   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3703   ;;
3704   *)
3705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_exec_ext in '' $ac_executable_extensions; do
3711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717 done
3718
3719   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3720   ;;
3721 esac
3722 fi
3723 PKGCONFIG=$ac_cv_path_PKGCONFIG
3724
3725 if test -n "$PKGCONFIG"; then
3726   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3727 echo "${ECHO_T}$PKGCONFIG" >&6
3728 else
3729   echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3731 fi
3732
3733 # Extract the first word of "wx-config", so it can be a program name with args.
3734 set dummy wx-config; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   case $WXCONFIG in
3741   [\\/]* | ?:[\\/]*)
3742   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3743   ;;
3744   *)
3745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750   for ac_exec_ext in '' $ac_executable_extensions; do
3751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757 done
3758
3759   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3760   ;;
3761 esac
3762 fi
3763 WXCONFIG=$ac_cv_path_WXCONFIG
3764
3765 if test -n "$WXCONFIG"; then
3766   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3767 echo "${ECHO_T}$WXCONFIG" >&6
3768 else
3769   echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 test -n "$ARFLAG" || ARFLAGS="cr"
3775
3776
3777 MAKE_SHELL=/bin/sh
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787 # Make sure we can run config.sub.
3788 $ac_config_sub sun4 >/dev/null 2>&1 ||
3789   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3790 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3791    { (exit 1); exit 1; }; }
3792
3793 echo "$as_me:$LINENO: checking build system type" >&5
3794 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3795 if test "${ac_cv_build+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   ac_cv_build_alias=$build_alias
3799 test -z "$ac_cv_build_alias" &&
3800   ac_cv_build_alias=`$ac_config_guess`
3801 test -z "$ac_cv_build_alias" &&
3802   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3803 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3804    { (exit 1); exit 1; }; }
3805 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3806   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3807 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3808    { (exit 1); exit 1; }; }
3809
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3812 echo "${ECHO_T}$ac_cv_build" >&6
3813 build=$ac_cv_build
3814 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3815 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3816 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3817
3818
3819 echo "$as_me:$LINENO: checking for Operating System" >&5
3820 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3821 echo "$as_me:$LINENO: checking host system type" >&5
3822 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3823 if test "${ac_cv_host+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   ac_cv_host_alias=$host_alias
3827 test -z "$ac_cv_host_alias" &&
3828   ac_cv_host_alias=$ac_cv_build_alias
3829 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3830   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3831 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3832    { (exit 1); exit 1; }; }
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3836 echo "${ECHO_T}$ac_cv_host" >&6
3837 host=$ac_cv_host
3838 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3839 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3840 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3841
3842
3843 case $host_os in
3844   *cygwin* ) CYGWIN=yes;;
3845          * ) CYGWIN=no;;
3846 esac
3847
3848 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3849 then
3850
3851
3852 if $TRUEPRG; then
3853   HAVE_SUN_OS_TRUE=
3854   HAVE_SUN_OS_FALSE='#'
3855 else
3856   HAVE_SUN_OS_TRUE='#'
3857   HAVE_SUN_OS_FALSE=
3858 fi
3859         cat >>confdefs.h <<\_ACEOF
3860 #define HAVE_SUN_OS 1
3861 _ACEOF
3862
3863 else
3864
3865
3866 if $FALSEPRG; then
3867   HAVE_SUN_OS_TRUE=
3868   HAVE_SUN_OS_FALSE='#'
3869 else
3870   HAVE_SUN_OS_TRUE='#'
3871   HAVE_SUN_OS_FALSE=
3872 fi
3873 fi
3874
3875 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3876 then
3877
3878
3879 if $TRUEPRG; then
3880   HAVE_OSF1_OS_TRUE=
3881   HAVE_OSF1_OS_FALSE='#'
3882 else
3883   HAVE_OSF1_OS_TRUE='#'
3884   HAVE_OSF1_OS_FALSE=
3885 fi
3886         cat >>confdefs.h <<\_ACEOF
3887 #define HAVE_OSF1_OS 1
3888 _ACEOF
3889
3890 else
3891
3892
3893 if $FALSEPRG; then
3894   HAVE_OSF1_OS_TRUE=
3895   HAVE_OSF1_OS_FALSE='#'
3896 else
3897   HAVE_OSF1_OS_TRUE='#'
3898   HAVE_OSF1_OS_FALSE=
3899 fi
3900 fi
3901
3902 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3903 then
3904
3905
3906 if $TRUEPRG; then
3907   HAVE_AIX_OS_TRUE=
3908   HAVE_AIX_OS_FALSE='#'
3909 else
3910   HAVE_AIX_OS_TRUE='#'
3911   HAVE_AIX_OS_FALSE=
3912 fi
3913         cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_AIX_OS 1
3915 _ACEOF
3916
3917 else
3918
3919
3920 if $FALSEPRG; then
3921   HAVE_AIX_OS_TRUE=
3922   HAVE_AIX_OS_FALSE='#'
3923 else
3924   HAVE_AIX_OS_TRUE='#'
3925   HAVE_AIX_OS_FALSE=
3926 fi
3927 fi
3928
3929 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3930 then
3931
3932
3933 if $TRUEPRG; then
3934   HAVE_HPUX_OS_TRUE=
3935   HAVE_HPUX_OS_FALSE='#'
3936 else
3937   HAVE_HPUX_OS_TRUE='#'
3938   HAVE_HPUX_OS_FALSE=
3939 fi
3940         cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_HPUX_OS 1
3942 _ACEOF
3943
3944 else
3945
3946
3947 if $FALSEPRG; then
3948   HAVE_HPUX_OS_TRUE=
3949   HAVE_HPUX_OS_FALSE='#'
3950 else
3951   HAVE_HPUX_OS_TRUE='#'
3952   HAVE_HPUX_OS_FALSE=
3953 fi
3954 fi
3955
3956 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3957 then
3958
3959
3960 if $TRUEPRG; then
3961   HAVE_LINUX_OS_TRUE=
3962   HAVE_LINUX_OS_FALSE='#'
3963 else
3964   HAVE_LINUX_OS_TRUE='#'
3965   HAVE_LINUX_OS_FALSE=
3966 fi
3967         cat >>confdefs.h <<\_ACEOF
3968 #define HAVE_LINUX_OS 1
3969 _ACEOF
3970
3971 else
3972
3973
3974 if $FALSEPRG; then
3975   HAVE_LINUX_OS_TRUE=
3976   HAVE_LINUX_OS_FALSE='#'
3977 else
3978   HAVE_LINUX_OS_TRUE='#'
3979   HAVE_LINUX_OS_FALSE=
3980 fi
3981 fi
3982
3983 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3984 then
3985
3986
3987 if $TRUEPRG; then
3988   HAVE_FREEBSD_OS_TRUE=
3989   HAVE_FREEBSD_OS_FALSE='#'
3990 else
3991   HAVE_FREEBSD_OS_TRUE='#'
3992   HAVE_FREEBSD_OS_FALSE=
3993 fi
3994         cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_FREEBSD_OS 1
3996 _ACEOF
3997
3998 else
3999
4000
4001 if $FALSEPRG; then
4002   HAVE_FREEBSD_OS_TRUE=
4003   HAVE_FREEBSD_OS_FALSE='#'
4004 else
4005   HAVE_FREEBSD_OS_TRUE='#'
4006   HAVE_FREEBSD_OS_FALSE=
4007 fi
4008 fi
4009
4010 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4011 then
4012
4013
4014 if $TRUEPRG; then
4015   HAVE_NETBSD_OS_TRUE=
4016   HAVE_NETBSD_OS_FALSE='#'
4017 else
4018   HAVE_NETBSD_OS_TRUE='#'
4019   HAVE_NETBSD_OS_FALSE=
4020 fi
4021         cat >>confdefs.h <<\_ACEOF
4022 #define HAVE_NETBSD_OS 1
4023 _ACEOF
4024
4025 else
4026
4027
4028 if $FALSEPRG; then
4029   HAVE_NETBSD_OS_TRUE=
4030   HAVE_NETBSD_OS_FALSE='#'
4031 else
4032   HAVE_NETBSD_OS_TRUE='#'
4033   HAVE_NETBSD_OS_FALSE=
4034 fi
4035 fi
4036
4037 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4038 then
4039
4040
4041 if $TRUEPRG; then
4042   HAVE_OPENBSD_OS_TRUE=
4043   HAVE_OPENBSD_OS_FALSE='#'
4044 else
4045   HAVE_OPENBSD_OS_TRUE='#'
4046   HAVE_OPENBSD_OS_FALSE=
4047 fi
4048         cat >>confdefs.h <<\_ACEOF
4049 #define HAVE_OPENBSD_OS 1
4050 _ACEOF
4051
4052 else
4053
4054
4055 if $FALSEPRG; then
4056   HAVE_OPENBSD_OS_TRUE=
4057   HAVE_OPENBSD_OS_FALSE='#'
4058 else
4059   HAVE_OPENBSD_OS_TRUE='#'
4060   HAVE_OPENBSD_OS_FALSE=
4061 fi
4062 fi
4063
4064 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4065 then
4066
4067
4068 if $TRUEPRG; then
4069   HAVE_BSDI_OS_TRUE=
4070   HAVE_BSDI_OS_FALSE='#'
4071 else
4072   HAVE_BSDI_OS_TRUE='#'
4073   HAVE_BSDI_OS_FALSE=
4074 fi
4075         cat >>confdefs.h <<\_ACEOF
4076 #define HAVE_BSDI_OS 1
4077 _ACEOF
4078
4079 else
4080
4081
4082 if $FALSEPRG; then
4083   HAVE_BSDI_OS_TRUE=
4084   HAVE_BSDI_OS_FALSE='#'
4085 else
4086   HAVE_BSDI_OS_TRUE='#'
4087   HAVE_BSDI_OS_FALSE=
4088 fi
4089 fi
4090
4091 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4092 then
4093
4094
4095 if $TRUEPRG; then
4096   HAVE_SGI_OS_TRUE=
4097   HAVE_SGI_OS_FALSE='#'
4098 else
4099   HAVE_SGI_OS_TRUE='#'
4100   HAVE_SGI_OS_FALSE=
4101 fi
4102         cat >>confdefs.h <<\_ACEOF
4103 #define HAVE_SGI_OS 1
4104 _ACEOF
4105
4106 else
4107
4108
4109 if $FALSEPRG; then
4110   HAVE_SGI_OS_TRUE=
4111   HAVE_SGI_OS_FALSE='#'
4112 else
4113   HAVE_SGI_OS_TRUE='#'
4114   HAVE_SGI_OS_FALSE=
4115 fi
4116 fi
4117
4118 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4119 then
4120
4121
4122 if $TRUEPRG; then
4123   HAVE_IRIX_OS_TRUE=
4124   HAVE_IRIX_OS_FALSE='#'
4125 else
4126   HAVE_IRIX_OS_TRUE='#'
4127   HAVE_IRIX_OS_FALSE=
4128 fi
4129         cat >>confdefs.h <<\_ACEOF
4130 #define HAVE_IRIX_OS 1
4131 _ACEOF
4132
4133 else
4134
4135
4136 if $FALSEPRG; then
4137   HAVE_IRIX_OS_TRUE=
4138   HAVE_IRIX_OS_FALSE='#'
4139 else
4140   HAVE_IRIX_OS_TRUE='#'
4141   HAVE_IRIX_OS_FALSE=
4142 fi
4143 fi
4144
4145 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4146 then
4147
4148
4149 if $TRUEPRG; then
4150   HAVE_DARWIN_OS_TRUE=
4151   HAVE_DARWIN_OS_FALSE='#'
4152 else
4153   HAVE_DARWIN_OS_TRUE='#'
4154   HAVE_DARWIN_OS_FALSE=
4155 fi
4156     cat >>confdefs.h <<\_ACEOF
4157 #define HAVE_DARWIN_OS 1
4158 _ACEOF
4159
4160 else
4161
4162
4163 if $FALSEPRG; then
4164   HAVE_DARWIN_OS_TRUE=
4165   HAVE_DARWIN_OS_FALSE='#'
4166 else
4167   HAVE_DARWIN_OS_TRUE='#'
4168   HAVE_DARWIN_OS_FALSE=
4169 fi
4170 fi
4171
4172 echo "$as_me:$LINENO: result: \" \"" >&5
4173 echo "${ECHO_T}\" \"" >&6
4174
4175
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4181 then
4182         echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4184 then
4185         DISTNAME=alpha
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4187 then
4188         DISTNAME=aix
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4190 then
4191         DISTNAME=hpux
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4193 then
4194         DISTNAME=solaris
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4196 then
4197         DISTNAME=freebsd
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4199 then
4200         DISTNAME=netbsd
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4202 then
4203         DISTNAME=openbsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4205 then
4206         DISTNAME=irix
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4208 then
4209         DISTNAME=bsdi
4210 elif test -f /etc/SuSE-release
4211 then
4212         DISTNAME=suse
4213 elif test -d /etc/SuSEconfig
4214 then
4215         DISTNAME=suse5
4216 elif test -f /etc/mandrake-release
4217 then
4218         DISTNAME=mandrake
4219 elif test -f /etc/redhat-release
4220 then
4221         DISTNAME=redhat
4222 elif test -f /etc/gentoo-release
4223 then
4224         DISTNAME=gentoo
4225 elif test -f /etc/debian_version
4226 then
4227         DISTNAME=debian
4228 elif test -f /etc/slackware-version
4229 then
4230         DISTNAME=slackware
4231 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4232 then
4233     DISTNAME=darwin
4234 elif test -f /etc/engarde-version
4235 then
4236         DISTNAME=engarde
4237 elif test "$CYGWIN" = yes
4238 then
4239         DISTNAME=cygwin
4240         cat >>confdefs.h <<\_ACEOF
4241 #define HAVE_CYGWIN 1
4242 _ACEOF
4243
4244 else
4245         DISTNAME=unknown
4246 fi
4247 echo "$as_me:$LINENO: result: \" \"" >&5
4248 echo "${ECHO_T}\" \"" >&6
4249
4250
4251 # -----------------------------------------------------------
4252 # ----------------------------------------------------------
4253
4254
4255
4256 if false; then
4257   INSIDE_GNOME_COMMON_TRUE=
4258   INSIDE_GNOME_COMMON_FALSE='#'
4259 else
4260   INSIDE_GNOME_COMMON_TRUE='#'
4261   INSIDE_GNOME_COMMON_FALSE=
4262 fi
4263
4264         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4265
4266         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4267
4268
4269 # ------------------------------------------------------------------
4270 #  If the user has not set --prefix, we set our default to nothing.
4271 #  In this case, if the user has not set --sysconfdir, we set it
4272 #  to the package default of /etc/bacula.  If either --prefix or
4273 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4274 # ------------------------------------------------------------------
4275 if test x${prefix} = xNONE ; then
4276     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4277         sysconfdir=/etc/bacula
4278     fi
4279     prefix=
4280 fi
4281 sysconfdir=`eval echo ${sysconfdir}`
4282
4283 # -------------------------------------------------------------------------
4284 #  If the user has not set --exec-prefix, we default to ${prefix}
4285 # -------------------------------------------------------------------------
4286 if test x${exec_prefix} = xNONE ; then
4287     exec_prefix=${prefix}
4288 fi
4289
4290 # ------------------------------------------------------------------
4291 # If the user has not set --sbindir, we set our default as /sbin
4292 # ------------------------------------------------------------------
4293 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4294     sbindir=${exec_prefix}/sbin
4295 fi
4296 sbindir=`eval echo ${sbindir}`
4297
4298 # ------------------------------------------------------------------
4299 # All list of languages for which a translation exist. Each
4300 #  language is separated by a space.
4301 # ------------------------------------------------------------------
4302 ALL_LINGUAS=""
4303
4304 for ac_prog in msgfmt
4305 do
4306   # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310 if test "${ac_cv_path_MSGFMT+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   case $MSGFMT in
4314   [\\/]* | ?:[\\/]*)
4315   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4316   ;;
4317   *)
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_exec_ext in '' $ac_executable_extensions; do
4324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330 done
4331
4332   ;;
4333 esac
4334 fi
4335 MSGFMT=$ac_cv_path_MSGFMT
4336
4337 if test -n "$MSGFMT"; then
4338   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4339 echo "${ECHO_T}$MSGFMT" >&6
4340 else
4341   echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344
4345   test -n "$MSGFMT" && break
4346 done
4347 test -n "$MSGFMT" || MSGFMT="no"
4348
4349 if test "$MSGFMT" = "no"
4350 then
4351    echo 'msgfmt program not found, disabling NLS !'
4352    USE_NLS=no
4353    USE_INCLUDED_LIBINTL=no
4354 #else
4355 #   AM_GNU_GETTEXT
4356 fi
4357
4358
4359 support_mysql=no
4360 support_sqlite=no
4361 support_postgresql=no
4362 support_smartalloc=yes
4363 support_readline=yes
4364 support_conio=yes
4365 support_gnome=no
4366 support_wx_console=no
4367 gnome_version=
4368 support_static_tools=no
4369 support_static_fd=no
4370 support_static_sd=no
4371 support_static_dir=no
4372 support_static_cons=no
4373 build_client_only=no
4374 cats=
4375 db_name=Internal
4376 DB_NAME=bdb
4377
4378
4379 # -------------------------------------------
4380 # gnome (default off)
4381 # -------------------------------------------
4382 # Check whether --enable-gnome or --disable-gnome was given.
4383 if test "${enable_gnome+set}" = set; then
4384   enableval="$enable_gnome"
4385   if test x$enableval = xyes; then
4386     support_gnome=yes
4387   fi
4388 fi;
4389
4390 GNOME_DIR=
4391 if test x$support_gnome = xyes; then
4392   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4393   pkg=$?
4394   if test $pkg = 0; then
4395      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4396      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4397      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4398      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4399
4400
4401
4402
4403      GNOME_DIR=src/gnome2-console
4404      gnome_version="Version 2.x"
4405   else
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4418 if test "${with_gnome_includes+set}" = set; then
4419   withval="$with_gnome_includes"
4420
4421         CFLAGS="$CFLAGS -I$withval"
4422
4423 fi;
4424
4425
4426 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4427 if test "${with_gnome_libs+set}" = set; then
4428   withval="$with_gnome_libs"
4429
4430         LDFLAGS="$LDFLAGS -L$withval"
4431         gnome_prefix=$withval
4432
4433 fi;
4434
4435
4436 # Check whether --with-gnome or --without-gnome was given.
4437 if test "${with_gnome+set}" = set; then
4438   withval="$with_gnome"
4439   if test x$withval = xyes; then
4440                         want_gnome=yes
4441                                                                         :
4442                 else
4443                         if test "x$withval" = xno; then
4444                                 want_gnome=no
4445                         else
4446                                 want_gnome=yes
4447                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4448                                 CFLAGS="$CFLAGS -I$withval/include"
4449                                 gnome_prefix=$withval/lib
4450                         fi
4451                 fi
4452 else
4453   want_gnome=yes
4454 fi;
4455
4456         if test "x$want_gnome" = xyes; then
4457
4458             # Extract the first word of "gnome-config", so it can be a program name with args.
4459 set dummy gnome-config; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $GNOME_CONFIG in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483
4484   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4485   ;;
4486 esac
4487 fi
4488 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4489
4490 if test -n "$GNOME_CONFIG"; then
4491   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4492 echo "${ECHO_T}$GNOME_CONFIG" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4496 fi
4497
4498             if test "$GNOME_CONFIG" = "no"; then
4499               no_gnome_config="yes"
4500             else
4501               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4502 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4503               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4504                 echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4506
4507
4508         # Extract the first word of "orbit-config", so it can be a program name with args.
4509 set dummy orbit-config; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ORBIT_CONFIG in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4535   ;;
4536 esac
4537 fi
4538 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4539
4540 if test -n "$ORBIT_CONFIG"; then
4541   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4542 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548         # Extract the first word of "orbit-idl", so it can be a program name with args.
4549 set dummy orbit-idl; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $ORBIT_IDL in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573
4574   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4575   ;;
4576 esac
4577 fi
4578 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4579
4580 if test -n "$ORBIT_IDL"; then
4581   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4582 echo "${ECHO_T}$ORBIT_IDL" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4589 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4590 if test "${gnome_cv_orbit_found+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593
4594                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4595                         gnome_cv_orbit_found=no
4596                 else
4597                         gnome_cv_orbit_found=yes
4598                 fi
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4602 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4603
4604
4605 if test x$gnome_cv_orbit_found = xyes; then
4606   HAVE_ORBIT_TRUE=
4607   HAVE_ORBIT_FALSE='#'
4608 else
4609   HAVE_ORBIT_TRUE='#'
4610   HAVE_ORBIT_FALSE=
4611 fi
4612         if test x$gnome_cv_orbit_found = xyes; then
4613
4614                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4615                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4616
4617
4618         else
4619                 if test xfail = xfailure; then
4620                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4621 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4622    { (exit 1); exit 1; }; }
4623                 fi
4624         fi
4625
4626         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4627 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4628 if test "${gnome_cv_gnorba_found+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631
4632                 gnome_cv_gnorba_found=no
4633                 if test x$gnome_cv_orbit_found = xyes; then
4634                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4635                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4636                         if test -n "$GNORBA_LIBS"; then
4637                                 gnome_cv_gnorba_found=yes
4638                         fi
4639                 fi
4640
4641 fi
4642 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4643 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4644
4645
4646 if test x$gnome_cv_gnorba_found = xyes; then
4647   HAVE_GNORBA_TRUE=
4648   HAVE_GNORBA_FALSE='#'
4649 else
4650   HAVE_GNORBA_TRUE='#'
4651   HAVE_GNORBA_FALSE=
4652 fi
4653         if test x$gnome_cv_orbit_found = xyes; then
4654
4655                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4656                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4657
4658
4659         else
4660                 if test xfail = xfailure; then
4661                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4662 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4663    { (exit 1); exit 1; }; }
4664                 fi
4665         fi
4666
4667                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4668                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4669                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4670                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4671                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4672                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4673                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4674
4675               else
4676                 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678                 no_gnome_config="yes"
4679               fi
4680             fi
4681
4682             if test x$exec_prefix = xNONE; then
4683                 if test x$prefix = xNONE; then
4684                     gnome_prefix=$ac_default_prefix/lib
4685                 else
4686                     gnome_prefix=$prefix/lib
4687                 fi
4688             else
4689                 gnome_prefix=`eval echo \`echo $libdir\``
4690             fi
4691
4692             if test "$no_gnome_config" = "yes"; then
4693               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4694 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4695               if test -f $gnome_prefix/gnomeConf.sh; then
4696                 echo "$as_me:$LINENO: result: found" >&5
4697 echo "${ECHO_T}found" >&6
4698                 echo "loading gnome configuration from" \
4699                      "$gnome_prefix/gnomeConf.sh"
4700                 . $gnome_prefix/gnomeConf.sh
4701
4702               else
4703                 echo "$as_me:$LINENO: result: not found" >&5
4704 echo "${ECHO_T}not found" >&6
4705                 if test xfail = xfail; then
4706                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4707 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4708    { (exit 1); exit 1; }; }
4709                 fi
4710               fi
4711             fi
4712         fi
4713
4714         if test -n ""; then
4715           n=""
4716           for i in $n; do
4717             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4718 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4719             case $i in
4720               applets)
4721
4722                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4723                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4724 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4725               docklets)
4726
4727                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4728                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4729 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4730               capplet)
4731
4732                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4733                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4734 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4735               *)
4736                 echo "$as_me:$LINENO: result: unknown library" >&5
4737 echo "${ECHO_T}unknown library" >&6
4738             esac
4739             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4740             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4741           done
4742         fi
4743
4744
4745      GNOME_DIR=src/gnome-console
4746      gnome_version="Version 1.4"
4747   fi
4748 fi
4749
4750
4751
4752 # -------------------------------------------
4753 # wx-console (default off)
4754 # -------------------------------------------
4755 # Check whether --enable-wx-console or --disable-wx-console was given.
4756 if test "${enable_wx_console+set}" = set; then
4757   enableval="$enable_wx_console"
4758   if test x$enableval = xyes; then
4759     support_wx_console=yes
4760   fi
4761 fi;
4762
4763 WX_DIR=
4764 if test x$support_wx_console = xyes; then
4765   abc=`$WXCONFIG --cppflags`
4766   pkg=$?
4767   if test $pkg = 0; then
4768      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4769      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4770
4771
4772      WX_DIR=src/wx-console
4773   else
4774      echo " "
4775      echo "wx-config program not found. wx-console disabled."
4776      echo " "
4777      support_wx_console=no
4778   fi
4779 fi
4780
4781
4782
4783
4784 # -------------------------------------------
4785 # smartalloc (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4788 if test "${enable_smartalloc+set}" = set; then
4789   enableval="$enable_smartalloc"
4790   if test x$enableval = xno; then
4791     support_smartalloc=no
4792   fi
4793 fi;
4794
4795 if test x$support_smartalloc = xyes; then
4796    cat >>confdefs.h <<\_ACEOF
4797 #define SMARTALLOC 1
4798 _ACEOF
4799
4800 fi
4801
4802 # -------------------------------------------
4803 # static-tools (default off)
4804 # -------------------------------------------
4805 # Check whether --enable-static-tools or --disable-static-tools was given.
4806 if test "${enable_static_tools+set}" = set; then
4807   enableval="$enable_static_tools"
4808   if test x$enableval = xyes; then
4809      support_static_tools=yes
4810    fi
4811 fi;
4812
4813 TTOOL_LDFLAGS=
4814 if test x$support_static_tools = xyes; then
4815    TTOOL_LDFLAGS="-static"
4816 fi
4817
4818
4819 # -------------------------------------------
4820 # static-fd    (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-static-fd or --disable-static-fd was given.
4823 if test "${enable_static_fd+set}" = set; then
4824   enableval="$enable_static_fd"
4825   if test x$enableval = xyes; then
4826      support_static_fd=yes
4827    fi
4828 fi;
4829
4830 STATIC_FD=
4831 if test x$support_static_fd = xyes; then
4832    STATIC_FD="static-bacula-fd"
4833 fi
4834
4835
4836 # -------------------------------------------
4837 # static-sd    (default off)
4838 # -------------------------------------------
4839 # Check whether --enable-static-sd or --disable-static-sd was given.
4840 if test "${enable_static_sd+set}" = set; then
4841   enableval="$enable_static_sd"
4842   if test x$enableval = xyes; then
4843      support_static_sd=yes
4844    fi
4845 fi;
4846
4847 STATIC_SD=
4848 if test x$support_static_sd = xyes; then
4849    STATIC_SD="static-bacula-sd"
4850 fi
4851
4852
4853 # -------------------------------------------
4854 # static-dir   (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-static-dir or --disable-static-dir was given.
4857 if test "${enable_static_dir+set}" = set; then
4858   enableval="$enable_static_dir"
4859   if test x$enableval = xyes; then
4860      support_static_dir=yes
4861    fi
4862 fi;
4863
4864 STATIC_DIR=
4865 if test x$support_static_dir = xyes; then
4866    STATIC_DIR="static-bacula-dir"
4867 fi
4868
4869
4870 # -------------------------------------------
4871 # static-cons  (default off)
4872 # -------------------------------------------
4873 # Check whether --enable-static-cons or --disable-static-cons was given.
4874 if test "${enable_static_cons+set}" = set; then
4875   enableval="$enable_static_cons"
4876   if test x$enableval = xyes; then
4877      support_static_cons=yes
4878    fi
4879 fi;
4880
4881 STATIC_CONS=
4882 STATIC_GNOME_CONS=
4883 STATIC_WX_CONS=
4884 if test x$support_static_cons = xyes; then
4885    STATIC_CONS="static-bconsole"
4886    STATIC_GNOME_CONS="static-gnome-console"
4887    STATIC_WX_CONS="static-wx-console"
4888 fi
4889
4890
4891
4892
4893 # -------------------------------------------
4894 # client_only  (default off)
4895 # -------------------------------------------
4896 # Check whether --enable-client-only or --disable-client-only was given.
4897 if test "${enable_client_only+set}" = set; then
4898   enableval="$enable_client_only"
4899   if test x$enableval = xyes; then
4900      build_client_only=yes
4901    fi
4902 fi;
4903 if test x$build_client_only = xno; then
4904    ALL_DIRS="subdirs"
4905 else
4906    ALL_DIRS=""
4907 fi
4908
4909
4910 # ---------------------------------------------------
4911 # Check for conio (Bacula readline substitute)(
4912 # ---------------------------------------------------
4913 # this allows you to turn it completely off
4914 # Check whether --enable-conio or --disable-conio was given.
4915 if test "${enable_conio+set}" = set; then
4916   enableval="$enable_conio"
4917   if test x$enableval = xno; then
4918     support_conio=no
4919   fi
4920 fi;
4921
4922 got_conio="no"
4923 if test x$support_conio = xyes; then
4924    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4926 if test "${ac_cv_header_stdc+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <stdlib.h>
4937 #include <stdarg.h>
4938 #include <string.h>
4939 #include <float.h>
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951   (eval $ac_compile) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -s conftest.$ac_objext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_cv_header_stdc=yes
4962 else
4963   echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_cv_header_stdc=no
4967 fi
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4969
4970 if test $ac_cv_header_stdc = yes; then
4971   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #include <string.h>
4980
4981 _ACEOF
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983   $EGREP "memchr" >/dev/null 2>&1; then
4984   :
4985 else
4986   ac_cv_header_stdc=no
4987 fi
4988 rm -f conftest*
4989
4990 fi
4991
4992 if test $ac_cv_header_stdc = yes; then
4993   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4994   cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <stdlib.h>
5002
5003 _ACEOF
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005   $EGREP "free" >/dev/null 2>&1; then
5006   :
5007 else
5008   ac_cv_header_stdc=no
5009 fi
5010 rm -f conftest*
5011
5012 fi
5013
5014 if test $ac_cv_header_stdc = yes; then
5015   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016   if test "$cross_compiling" = yes; then
5017   :
5018 else
5019   cat >conftest.$ac_ext <<_ACEOF
5020 #line $LINENO "configure"
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <ctype.h>
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 #else
5031 # define ISLOWER(c) \
5032                    (('a' <= (c) && (c) <= 'i') \
5033                      || ('j' <= (c) && (c) <= 'r') \
5034                      || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #endif
5037
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 int
5040 main ()
5041 {
5042   int i;
5043   for (i = 0; i < 256; i++)
5044     if (XOR (islower (i), ISLOWER (i))
5045         || toupper (i) != TOUPPER (i))
5046       exit(2);
5047   exit (0);
5048 }
5049 _ACEOF
5050 rm -f conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052   (eval $ac_link) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   :
5062 else
5063   echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ( exit $ac_status )
5068 ac_cv_header_stdc=no
5069 fi
5070 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5071 fi
5072 fi
5073 fi
5074 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5075 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5076 if test $ac_cv_header_stdc = yes; then
5077
5078 cat >>confdefs.h <<\_ACEOF
5079 #define STDC_HEADERS 1
5080 _ACEOF
5081
5082 fi
5083
5084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5095                   inttypes.h stdint.h unistd.h
5096 do
5097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 echo "$as_me:$LINENO: checking for $ac_header" >&5
5099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 $ac_includes_default
5111
5112 #include <$ac_header>
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116   (eval $ac_compile) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } &&
5120          { ac_try='test -s conftest.$ac_objext'
5121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122   (eval $ac_try) 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; }; then
5126   eval "$as_ac_Header=yes"
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 eval "$as_ac_Header=no"
5132 fi
5133 rm -f conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5138   cat >>confdefs.h <<_ACEOF
5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140 _ACEOF
5141
5142 fi
5143
5144 done
5145
5146
5147 if test "${ac_cv_header_termcap_h+set}" = set; then
5148   echo "$as_me:$LINENO: checking for termcap.h" >&5
5149 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_termcap_h+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5155 else
5156   # Is the header compilable?
5157 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5158 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 $ac_includes_default
5167 #include <termcap.h>
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171   (eval $ac_compile) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } &&
5175          { ac_try='test -s conftest.$ac_objext'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; }; then
5181   ac_header_compiler=yes
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_compiler=no
5187 fi
5188 rm -f conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5190 echo "${ECHO_T}$ac_header_compiler" >&6
5191
5192 # Is the header present?
5193 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5194 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202 #include <termcap.h>
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } >/dev/null; then
5212   if test -s conftest.err; then
5213     ac_cpp_err=$ac_c_preproc_warn_flag
5214   else
5215     ac_cpp_err=
5216   fi
5217 else
5218   ac_cpp_err=yes
5219 fi
5220 if test -z "$ac_cpp_err"; then
5221   ac_header_preproc=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226   ac_header_preproc=no
5227 fi
5228 rm -f conftest.err conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5230 echo "${ECHO_T}$ac_header_preproc" >&6
5231
5232 # So?  What about this header?
5233 case $ac_header_compiler:$ac_header_preproc in
5234   yes:no )
5235     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5236 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5237     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5238 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5239     (
5240       cat <<\_ASBOX
5241 ## ------------------------------------ ##
5242 ## Report this to bug-autoconf@gnu.org. ##
5243 ## ------------------------------------ ##
5244 _ASBOX
5245     ) |
5246       sed "s/^/$as_me: WARNING:     /" >&2
5247     ;;
5248   no:yes )
5249     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5253     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5255     (
5256       cat <<\_ASBOX
5257 ## ------------------------------------ ##
5258 ## Report this to bug-autoconf@gnu.org. ##
5259 ## ------------------------------------ ##
5260 _ASBOX
5261     ) |
5262       sed "s/^/$as_me: WARNING:     /" >&2
5263     ;;
5264 esac
5265 echo "$as_me:$LINENO: checking for termcap.h" >&5
5266 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_termcap_h+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   ac_cv_header_termcap_h=$ac_header_preproc
5271 fi
5272 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5274
5275 fi
5276 if test $ac_cv_header_termcap_h = yes; then
5277    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5278 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5279 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-ltermcap  $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291
5292 /* Override any gcc2 internal prototype to avoid an error.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 /* We use char because int might match the return type of a gcc2
5297    builtin and then its argument prototype would still apply.  */
5298 char tgetent ();
5299 int
5300 main ()
5301 {
5302 tgetent ();
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_lib_termcap_tgetent=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_lib_termcap_tgetent=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5330 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5331 if test $ac_cv_lib_termcap_tgetent = yes; then
5332    CONS_LIBS="-ltermcap"
5333          CONS_OBJ="conio.o"
5334          CONS_SRC="conio.c"
5335          got_conio="yes"
5336          support_readline=no
5337
5338 cat >>confdefs.h <<\_ACEOF
5339 #define HAVE_CONIO 1
5340 _ACEOF
5341
5342
5343 else
5344    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5345 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5346 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lncurses  $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358
5359 /* Override any gcc2 internal prototype to avoid an error.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 /* We use char because int might match the return type of a gcc2
5364    builtin and then its argument prototype would still apply.  */
5365 char tgetent ();
5366 int
5367 main ()
5368 {
5369 tgetent ();
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376   (eval $ac_link) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -s conftest$ac_exeext'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; }; then
5386   ac_cv_lib_ncurses_tgetent=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_cv_lib_ncurses_tgetent=no
5392 fi
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5395 fi
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5397 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5398 if test $ac_cv_lib_ncurses_tgetent = yes; then
5399    CONS_LIBS="-lncurses"
5400            CONS_OBJ="conio.o"
5401            CONS_SRC="conio.c"
5402            got_conio="yes"
5403            support_readline=no
5404
5405 cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_CONIO 1
5407 _ACEOF
5408
5409
5410 else
5411    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5412 fi
5413
5414
5415 fi
5416
5417
5418 else
5419   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5420 fi
5421
5422
5423 fi
5424
5425
5426 # ---------------------------------------------------
5427 # Check for readline support/directory (default off)
5428 # ---------------------------------------------------
5429 # this allows you to turn it completely off
5430 # Check whether --enable-readline or --disable-readline was given.
5431 if test "${enable_readline+set}" = set; then
5432   enableval="$enable_readline"
5433   if test x$enableval = xno; then
5434     support_readline=no
5435   fi
5436 fi;
5437
5438 got_readline="no"
5439 READLINE_SRC=
5440 if test x$support_readline = xyes; then
5441
5442 # Check whether --with-readline or --without-readline was given.
5443 if test "${with_readline+set}" = set; then
5444   withval="$with_readline"
5445
5446         case "$with_readline" in
5447         no) : ;;
5448         yes|*)
5449           if test "$with_readline" != "yes"; then
5450             CONS_INC="-I${with_readline}"
5451             CONS_LDFLAGS="-L$with_readline"
5452           else
5453              with_readline="/usr/include/readline"
5454           fi
5455           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5458 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 fi
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 else
5465   # Is the header compilable?
5466 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5467 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476 #include <${with_readline}/readline.h>
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480   (eval $ac_compile) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -s conftest.$ac_objext'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; }; then
5490   ac_header_compiler=yes
5491 else
5492   echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 ac_header_compiler=no
5496 fi
5497 rm -f conftest.$ac_objext conftest.$ac_ext
5498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5499 echo "${ECHO_T}$ac_header_compiler" >&6
5500
5501 # Is the header present?
5502 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5503 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <${with_readline}/readline.h>
5512 _ACEOF
5513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515   ac_status=$?
5516   grep -v '^ *+' conftest.er1 >conftest.err
5517   rm -f conftest.er1
5518   cat conftest.err >&5
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } >/dev/null; then
5521   if test -s conftest.err; then
5522     ac_cpp_err=$ac_c_preproc_warn_flag
5523   else
5524     ac_cpp_err=
5525   fi
5526 else
5527   ac_cpp_err=yes
5528 fi
5529 if test -z "$ac_cpp_err"; then
5530   ac_header_preproc=yes
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535   ac_header_preproc=no
5536 fi
5537 rm -f conftest.err conftest.$ac_ext
5538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5539 echo "${ECHO_T}$ac_header_preproc" >&6
5540
5541 # So?  What about this header?
5542 case $ac_header_compiler:$ac_header_preproc in
5543   yes:no )
5544     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5546     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5547 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5548     (
5549       cat <<\_ASBOX
5550 ## ------------------------------------ ##
5551 ## Report this to bug-autoconf@gnu.org. ##
5552 ## ------------------------------------ ##
5553 _ASBOX
5554     ) |
5555       sed "s/^/$as_me: WARNING:     /" >&2
5556     ;;
5557   no:yes )
5558     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5562     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5563 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5564     (
5565       cat <<\_ASBOX
5566 ## ------------------------------------ ##
5567 ## Report this to bug-autoconf@gnu.org. ##
5568 ## ------------------------------------ ##
5569 _ASBOX
5570     ) |
5571       sed "s/^/$as_me: WARNING:     /" >&2
5572     ;;
5573 esac
5574 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5575 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   eval "$as_ac_Header=$ac_header_preproc"
5580 fi
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583
5584 fi
5585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586    cat >>confdefs.h <<\_ACEOF
5587 #define HAVE_READLINE 1
5588 _ACEOF
5589
5590                CONS_LIBS="-lreadline -ltermcap"
5591                got_readline="yes"
5592
5593 else
5594    echo " "
5595                echo "readline.h not found. readline turned off ..."
5596                echo " "
5597
5598
5599 fi
5600
5601
5602           ;;
5603         esac
5604
5605 else
5606
5607        # check for standard readline library
5608        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5609   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5610 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5611 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 fi
5614 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5615 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5616 else
5617   # Is the header compilable?
5618 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5619 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 /* confdefs.h.  */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h.  */
5627 $ac_includes_default
5628 #include </usr/include/readline/readline.h>
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632   (eval $ac_compile) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } &&
5636          { ac_try='test -s conftest.$ac_objext'
5637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638   (eval $ac_try) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }; }; then
5642   ac_header_compiler=yes
5643 else
5644   echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 ac_header_compiler=no
5648 fi
5649 rm -f conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5651 echo "${ECHO_T}$ac_header_compiler" >&6
5652
5653 # Is the header present?
5654 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5655 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 /* confdefs.h.  */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h.  */
5663 #include </usr/include/readline/readline.h>
5664 _ACEOF
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } >/dev/null; then
5673   if test -s conftest.err; then
5674     ac_cpp_err=$ac_c_preproc_warn_flag
5675   else
5676     ac_cpp_err=
5677   fi
5678 else
5679   ac_cpp_err=yes
5680 fi
5681 if test -z "$ac_cpp_err"; then
5682   ac_header_preproc=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687   ac_header_preproc=no
5688 fi
5689 rm -f conftest.err conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5691 echo "${ECHO_T}$ac_header_preproc" >&6
5692
5693 # So?  What about this header?
5694 case $ac_header_compiler:$ac_header_preproc in
5695   yes:no )
5696     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5700     (
5701       cat <<\_ASBOX
5702 ## ------------------------------------ ##
5703 ## Report this to bug-autoconf@gnu.org. ##
5704 ## ------------------------------------ ##
5705 _ASBOX
5706     ) |
5707       sed "s/^/$as_me: WARNING:     /" >&2
5708     ;;
5709   no:yes )
5710     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5716     (
5717       cat <<\_ASBOX
5718 ## ------------------------------------ ##
5719 ## Report this to bug-autoconf@gnu.org. ##
5720 ## ------------------------------------ ##
5721 _ASBOX
5722     ) |
5723       sed "s/^/$as_me: WARNING:     /" >&2
5724     ;;
5725 esac
5726 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5727 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5728 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5732 fi
5733 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5734 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5735
5736 fi
5737 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5738    cat >>confdefs.h <<\_ACEOF
5739 #define HAVE_READLINE 1
5740 _ACEOF
5741
5742            got_readline="yes"
5743            CONS_INC="-I/usr/include/readline"
5744            CONS_LIBS="-lreadline -ltermcap"
5745
5746 else
5747
5748            # Did not find standard library, so try Bacula's default
5749             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5752 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 fi
5756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758 else
5759   # Is the header compilable?
5760 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5761 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 $ac_includes_default
5770 #include <${TOP_DIR}/depkgs/readline/readline.h>
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774   (eval $ac_compile) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_header_compiler=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_header_compiler=no
5790 fi
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5793 echo "${ECHO_T}$ac_header_compiler" >&6
5794
5795 # Is the header present?
5796 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5797 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <${TOP_DIR}/depkgs/readline/readline.h>
5806 _ACEOF
5807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null; then
5815   if test -s conftest.err; then
5816     ac_cpp_err=$ac_c_preproc_warn_flag
5817   else
5818     ac_cpp_err=
5819   fi
5820 else
5821   ac_cpp_err=yes
5822 fi
5823 if test -z "$ac_cpp_err"; then
5824   ac_header_preproc=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829   ac_header_preproc=no
5830 fi
5831 rm -f conftest.err conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5833 echo "${ECHO_T}$ac_header_preproc" >&6
5834
5835 # So?  What about this header?
5836 case $ac_header_compiler:$ac_header_preproc in
5837   yes:no )
5838     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5840     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5841 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5842     (
5843       cat <<\_ASBOX
5844 ## ------------------------------------ ##
5845 ## Report this to bug-autoconf@gnu.org. ##
5846 ## ------------------------------------ ##
5847 _ASBOX
5848     ) |
5849       sed "s/^/$as_me: WARNING:     /" >&2
5850     ;;
5851   no:yes )
5852     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5857 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5858     (
5859       cat <<\_ASBOX
5860 ## ------------------------------------ ##
5861 ## Report this to bug-autoconf@gnu.org. ##
5862 ## ------------------------------------ ##
5863 _ASBOX
5864     ) |
5865       sed "s/^/$as_me: WARNING:     /" >&2
5866     ;;
5867 esac
5868 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5869 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   eval "$as_ac_Header=$ac_header_preproc"
5874 fi
5875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877
5878 fi
5879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5880    cat >>confdefs.h <<\_ACEOF
5881 #define HAVE_READLINE 1
5882 _ACEOF
5883
5884                  got_readline="yes"
5885                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5886                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5887                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5888                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5889
5890 else
5891    echo " "
5892                 echo "readline.h not found. readline turned off ..."
5893                 echo " "
5894
5895
5896 fi
5897
5898
5899
5900
5901 fi
5902
5903
5904
5905
5906 fi;
5907 fi
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 # Minimal stuff for readline Makefile configuration
5919 MAKE_SHELL=/bin/sh
5920
5921
5922 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5923 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5924 if test "${ac_cv_header_stat_broken+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 #include <sys/types.h>
5935 #include <sys/stat.h>
5936
5937 #if defined(S_ISBLK) && defined(S_IFDIR)
5938 # if S_ISBLK (S_IFDIR)
5939 You lose.
5940 # endif
5941 #endif
5942
5943 #if defined(S_ISBLK) && defined(S_IFCHR)
5944 # if S_ISBLK (S_IFCHR)
5945 You lose.
5946 # endif
5947 #endif
5948
5949 #if defined(S_ISLNK) && defined(S_IFREG)
5950 # if S_ISLNK (S_IFREG)
5951 You lose.
5952 # endif
5953 #endif
5954
5955 #if defined(S_ISSOCK) && defined(S_IFREG)
5956 # if S_ISSOCK (S_IFREG)
5957 You lose.
5958 # endif
5959 #endif
5960
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963   $EGREP "You lose" >/dev/null 2>&1; then
5964   ac_cv_header_stat_broken=yes
5965 else
5966   ac_cv_header_stat_broken=no
5967 fi
5968 rm -f conftest*
5969
5970 fi
5971 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5972 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5973 if test $ac_cv_header_stat_broken = yes; then
5974
5975 cat >>confdefs.h <<\_ACEOF
5976 #define STAT_MACROS_BROKEN 1
5977 _ACEOF
5978
5979 fi
5980
5981
5982
5983
5984
5985
5986 ac_header_dirent=no
5987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5988   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5989 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #include <sys/types.h>
6002 #include <$ac_hdr>
6003
6004 int
6005 main ()
6006 {
6007 if ((DIR *) 0)
6008 return 0;
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -s conftest.$ac_objext'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   eval "$as_ac_Header=yes"
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 eval "$as_ac_Header=no"
6031 fi
6032 rm -f conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037   cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6039 _ACEOF
6040
6041 ac_header_dirent=$ac_hdr; break
6042 fi
6043
6044 done
6045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6046 if test $ac_header_dirent = dirent.h; then
6047   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6049 if test "${ac_cv_search_opendir+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   ac_func_search_save_LIBS=$LIBS
6053 ac_cv_search_opendir=no
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char opendir ();
6069 int
6070 main ()
6071 {
6072 opendir ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -s conftest$ac_exeext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_cv_search_opendir="none required"
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 fi
6095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096 if test "$ac_cv_search_opendir" = no; then
6097   for ac_lib in dir; do
6098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6099     cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106
6107 /* Override any gcc2 internal prototype to avoid an error.  */
6108 #ifdef __cplusplus
6109 extern "C"
6110 #endif
6111 /* We use char because int might match the return type of a gcc2
6112    builtin and then its argument prototype would still apply.  */
6113 char opendir ();
6114 int
6115 main ()
6116 {
6117 opendir ();
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124   (eval $ac_link) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -s conftest$ac_exeext'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; }; then
6134   ac_cv_search_opendir="-l$ac_lib"
6135 break
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 fi
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142   done
6143 fi
6144 LIBS=$ac_func_search_save_LIBS
6145 fi
6146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6148 if test "$ac_cv_search_opendir" != no; then
6149   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6150
6151 fi
6152
6153 else
6154   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6156 if test "${ac_cv_search_opendir+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   ac_func_search_save_LIBS=$LIBS
6160 ac_cv_search_opendir=no
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 /* Override any gcc2 internal prototype to avoid an error.  */
6170 #ifdef __cplusplus
6171 extern "C"
6172 #endif
6173 /* We use char because int might match the return type of a gcc2
6174    builtin and then its argument prototype would still apply.  */
6175 char opendir ();
6176 int
6177 main ()
6178 {
6179 opendir ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_search_opendir="none required"
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 fi
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 if test "$ac_cv_search_opendir" = no; then
6204   for ac_lib in x; do
6205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6206     cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219    builtin and then its argument prototype would still apply.  */
6220 char opendir ();
6221 int
6222 main ()
6223 {
6224 opendir ();
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231   (eval $ac_link) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -s conftest$ac_exeext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_search_opendir="-l$ac_lib"
6242 break
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 fi
6248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6249   done
6250 fi
6251 LIBS=$ac_func_search_save_LIBS
6252 fi
6253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6255 if test "$ac_cv_search_opendir" != no; then
6256   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6257
6258 fi
6259
6260 fi
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6272 do
6273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6274 echo "$as_me:$LINENO: checking for $ac_func" >&5
6275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_var+set}\" = set"; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286 /* System header to define __stub macros and hopefully few prototypes,
6287     which can conflict with char $ac_func (); below.
6288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289     <limits.h> exists even on freestanding compilers.  */
6290 #ifdef __STDC__
6291 # include <limits.h>
6292 #else
6293 # include <assert.h>
6294 #endif
6295 /* Override any gcc2 internal prototype to avoid an error.  */
6296 #ifdef __cplusplus
6297 extern "C"
6298 {
6299 #endif
6300 /* We use char because int might match the return type of a gcc2
6301    builtin and then its argument prototype would still apply.  */
6302 char $ac_func ();
6303 /* The GNU C library defines this for functions which it implements
6304     to always fail with ENOSYS.  Some functions are actually named
6305     something starting with __ and the normal name is an alias.  */
6306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6307 choke me
6308 #else
6309 char (*f) () = $ac_func;
6310 #endif
6311 #ifdef __cplusplus
6312 }
6313 #endif
6314
6315 int
6316 main ()
6317 {
6318 return f != $ac_func;
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325   (eval $ac_link) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -s conftest$ac_exeext'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   eval "$as_ac_var=yes"
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 eval "$as_ac_var=no"
6341 fi
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343 fi
6344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6346 if test `eval echo '${'$as_ac_var'}'` = yes; then
6347   cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6349 _ACEOF
6350
6351 fi
6352 done
6353
6354
6355
6356 for ac_func in nanosleep nl_langinfo
6357 do
6358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6359 echo "$as_me:$LINENO: checking for $ac_func" >&5
6360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6361 if eval "test \"\${$as_ac_var+set}\" = set"; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371 /* System header to define __stub macros and hopefully few prototypes,
6372     which can conflict with char $ac_func (); below.
6373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374     <limits.h> exists even on freestanding compilers.  */
6375 #ifdef __STDC__
6376 # include <limits.h>
6377 #else
6378 # include <assert.h>
6379 #endif
6380 /* Override any gcc2 internal prototype to avoid an error.  */
6381 #ifdef __cplusplus
6382 extern "C"
6383 {
6384 #endif
6385 /* We use char because int might match the return type of a gcc2
6386    builtin and then its argument prototype would still apply.  */
6387 char $ac_func ();
6388 /* The GNU C library defines this for functions which it implements
6389     to always fail with ENOSYS.  Some functions are actually named
6390     something starting with __ and the normal name is an alias.  */
6391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6392 choke me
6393 #else
6394 char (*f) () = $ac_func;
6395 #endif
6396 #ifdef __cplusplus
6397 }
6398 #endif
6399
6400 int
6401 main ()
6402 {
6403 return f != $ac_func;
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -s conftest$ac_exeext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420   eval "$as_ac_var=yes"
6421 else
6422   echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 eval "$as_ac_var=no"
6426 fi
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428 fi
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6431 if test `eval echo '${'$as_ac_var'}'` = yes; then
6432   cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6434 _ACEOF
6435
6436 fi
6437 done
6438
6439
6440
6441 for ac_header in varargs.h
6442 do
6443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445   echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 else
6453   # Is the header compilable?
6454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 $ac_includes_default
6464 #include <$ac_header>
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468   (eval $ac_compile) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -s conftest.$ac_objext'
6473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474   (eval $ac_try) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); }; }; then
6478   ac_header_compiler=yes
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_header_compiler=no
6484 fi
6485 rm -f conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487 echo "${ECHO_T}$ac_header_compiler" >&6
6488
6489 # Is the header present?
6490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <$ac_header>
6500 _ACEOF
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } >/dev/null; then
6509   if test -s conftest.err; then
6510     ac_cpp_err=$ac_c_preproc_warn_flag
6511   else
6512     ac_cpp_err=
6513   fi
6514 else
6515   ac_cpp_err=yes
6516 fi
6517 if test -z "$ac_cpp_err"; then
6518   ac_header_preproc=yes
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523   ac_header_preproc=no
6524 fi
6525 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6527 echo "${ECHO_T}$ac_header_preproc" >&6
6528
6529 # So?  What about this header?
6530 case $ac_header_compiler:$ac_header_preproc in
6531   yes:no )
6532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6536     (
6537       cat <<\_ASBOX
6538 ## ------------------------------------ ##
6539 ## Report this to bug-autoconf@gnu.org. ##
6540 ## ------------------------------------ ##
6541 _ASBOX
6542     ) |
6543       sed "s/^/$as_me: WARNING:     /" >&2
6544     ;;
6545   no:yes )
6546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6552     (
6553       cat <<\_ASBOX
6554 ## ------------------------------------ ##
6555 ## Report this to bug-autoconf@gnu.org. ##
6556 ## ------------------------------------ ##
6557 _ASBOX
6558     ) |
6559       sed "s/^/$as_me: WARNING:     /" >&2
6560     ;;
6561 esac
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   eval "$as_ac_Header=$ac_header_preproc"
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571
6572 fi
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574   cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 _ACEOF
6577
6578 fi
6579
6580 done
6581
6582
6583 # End of readline/conio stuff
6584 # -----------------------------------------------------------------------
6585
6586
6587 # ---------------------------------------------------
6588 # Check for GMP support/directory
6589 # ---------------------------------------------------
6590 #GMP_SRC=
6591 #local_gmp="no"
6592 #AC_ARG_WITH(gmp,
6593 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6594 #  [
6595 #     case "$with_gmp" in
6596 #     no) : ;;
6597 #     yes|*)
6598 #       if test "$with_gmp" != "yes"; then
6599 #         GMP_INC="-I$with_gmp"
6600 #         GMP_LIBS="-lgmp"
6601 #         GMP_LDFLAGS="-L$with_gmp"
6602 #       else
6603 #          with_gmp="/usr/include"
6604 #       fi
6605 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6606 #          [ AC_MSG_RESULT(yes)
6607 #            AC_DEFINE(HAVE_GMP)
6608 #            GMP_LIBS="-lgmp"
6609 #            got_gmp="yes"
6610 #          ],
6611 #          [ AC_MSG_ERROR([*** gmp library missing])
6612 #          ]
6613 #       )
6614 #       ;;
6615 #     esac
6616 #  ],[
6617 #    # check for standard gmp library
6618 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6619 #    [ AC_MSG_RESULT(yes)
6620 #      AC_DEFINE(HAVE_GMP)
6621 #      got_gmp="yes"
6622 #      GMP_INC=
6623 #      GMP_LIBS="-lgmp"
6624 #    ], [
6625 #      # Did not find standard library, so use our own
6626 #      AC_MSG_RESULT(yes)
6627 #      AC_DEFINE(HAVE_GMP)
6628 #      got_gmp="yes"
6629 #      local_gmp="yes"
6630 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6631 #      GMP_LIBS="-lgmp"
6632 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6633 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6634 #    ])
6635 #  ]
6636 #)
6637 #AC_SUBST(GMP_INC)
6638 #AC_SUBST(GMP_LIBS)
6639 #AC_SUBST(GMP_LDFLAGS)
6640 #AC_SUBST(GMP_SRC)
6641
6642 # End of GMP stuff
6643 # -----------------------------------------------------------------------
6644
6645
6646 # ---------------------------------------------------
6647 # Check for CWEB support/directory
6648 # ---------------------------------------------------
6649 #CWEB_SRC=
6650 #CWEB=/bin
6651 #local_cweb="no"
6652 #AC_ARG_WITH(cweb,
6653 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6654 #  [
6655 #     case "$with_cweb" in
6656 #     no) : ;;
6657 #     yes|*)
6658 #       if test "$with_cweb" != "yes"; then
6659 #         CWEB_INC="-I$with_cweb"
6660 #         CWEB_LIBS="-lcweb"
6661 #         CWEB_LDFLAGS="-L$with_cweb"
6662 #       else
6663 #          with_cweb="/usr/include"
6664 #       fi
6665 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6666 #          [ AC_MSG_RESULT(yes)
6667 #            AC_DEFINE(HAVE_CWEB)
6668 #            CWEB_LIBS="-lcweb"
6669 #            got_cweb="yes"
6670 #          ],
6671 #          [ AC_MSG_ERROR([*** cweb library missing])
6672 #          ]
6673 #       )
6674 #       ;;
6675 #     esac
6676 #  ],[
6677 #    # check for standard cweb library
6678 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6679 #    [ AC_MSG_RESULT(yes)
6680 #      AC_DEFINE(HAVE_CWEB)
6681 #      got_cweb="yes"
6682 #      CWEB_INC=
6683 #      CWEB_LIBS="-lcweb"
6684 #    ], [
6685 #      # Did not find starndard library, so use our own
6686 #      AC_MSG_RESULT(yes)
6687 #      AC_DEFINE(HAVE_CWEB)
6688 #      got_cweb="yes"
6689 #      local_cweb="yes"
6690 #      CWEB=${TOP_DIR}/depkgs/cweb
6691 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6692 #      CWEB_LIBS="-lcweb"
6693 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6694 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6695 #    ])
6696 #  ]
6697 #)
6698 #AC_SUBST(CWEB)
6699 #AC_SUBST(CWEB_INC)
6700 #AC_SUBST(CWEB_LIBS)
6701 #AC_SUBST(CWEB_LDFLAGS)
6702 #AC_SUBST(CWEB_SRC)
6703
6704 # End of CWEB stuff
6705 # -----------------------------------------------------------------------
6706
6707
6708
6709 # -----------------------------------------------------------
6710 # Check whether user wants TCP wrappers support (default off)
6711 # -----------------------------------------------------------
6712 TCPW_MSG="no"
6713
6714 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6715 if test "${with_tcp_wrappers+set}" = set; then
6716   withval="$with_tcp_wrappers"
6717
6718     if test "x$withval" != "xno" ; then
6719        saved_LIBS="$LIBS"
6720        LIBS="$saved_LIBS -lwrap"
6721        echo "$as_me:$LINENO: checking for libwrap" >&5
6722 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6723        cat >conftest.$ac_ext <<_ACEOF
6724 #line $LINENO "configure"
6725 /* confdefs.h.  */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h.  */
6730  #include <tcpd.h>
6731              int deny_severity = 0;
6732              int allow_severity = 0;
6733              struct request_info *req;
6734 int
6735 main ()
6736 {
6737  hosts_access(req);
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744   (eval $ac_link) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); } &&
6748          { ac_try='test -s conftest$ac_exeext'
6749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750   (eval $ac_try) 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); }; }; then
6754
6755             echo "$as_me:$LINENO: result: yes" >&5
6756 echo "${ECHO_T}yes" >&6
6757             cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_LIBWRAP 1
6759 _ACEOF
6760
6761             TCPW_MSG="yes"
6762
6763 else
6764   echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6766
6767
6768             LIBS="$saved_LIBS -lwrap -lnsl"
6769             cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776  #include <tcpd.h>
6777                  int deny_severity = 0;
6778                  int allow_severity = 0;
6779                  struct request_info *req;
6780 int
6781 main ()
6782 {
6783  hosts_access(req);
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790   (eval $ac_link) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); } &&
6794          { ac_try='test -s conftest$ac_exeext'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800
6801                  echo "$as_me:$LINENO: result: yes" >&5
6802 echo "${ECHO_T}yes" >&6
6803                  cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_LIBWRAP 1
6805 _ACEOF
6806
6807                  TCPW_MSG="yes"
6808
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6814 echo "$as_me: error: *** libwrap missing" >&2;}
6815    { (exit 1); exit 1; }; }
6816
6817 fi
6818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6819
6820 fi
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822     fi
6823
6824
6825 fi;
6826
6827 # ------------------------------------------
6828 # Where to place working dir
6829 # ------------------------------------------
6830 working_dir=`eval echo ${prefix}/var/bacula/working`
6831
6832 # Check whether --with-working-dir or --without-working-dir was given.
6833 if test "${with_working_dir+set}" = set; then
6834   withval="$with_working_dir"
6835
6836        if test "x$withval" != "xno" ; then
6837               working_dir=$withval
6838        fi
6839
6840
6841 fi;
6842
6843
6844
6845
6846 # ------------------------------------------
6847 # Where to place scriptdir (script files)
6848 # ------------------------------------------
6849 scriptdir=`eval echo ${sysconfdir}`
6850
6851 # Check whether --with-scriptdir or --without-scriptdir was given.
6852 if test "${with_scriptdir+set}" = set; then
6853   withval="$with_scriptdir"
6854
6855        if test "x$withval" != "xno" ; then
6856               scriptdir=$withval
6857        fi
6858
6859
6860 fi;
6861
6862
6863
6864
6865 # ------------------------------------------
6866 # Where to send dump email
6867 # ------------------------------------------
6868 dump_email=root@localhost
6869
6870 # Check whether --with-dump-email or --without-dump-email was given.
6871 if test "${with_dump_email+set}" = set; then
6872   withval="$with_dump_email"
6873
6874        if test "x$withval" != "xno" ; then
6875               dump_email=$withval
6876        fi
6877
6878
6879 fi;
6880
6881
6882
6883 # ------------------------------------------
6884 # Where to send job email
6885 # ------------------------------------------
6886 job_email=root@localhost
6887
6888 # Check whether --with-job-email or --without-job-email was given.
6889 if test "${with_job_email+set}" = set; then
6890   withval="$with_job_email"
6891
6892        if test "x$withval" != "xno" ; then
6893               job_email=$withval
6894        fi
6895
6896
6897 fi;
6898
6899
6900
6901 # ------------------------------------------
6902 # Where to find smtp host
6903 # ------------------------------------------
6904 smtp_host=localhost
6905
6906 # Check whether --with-smtp_host or --without-smtp_host was given.
6907 if test "${with_smtp_host+set}" = set; then
6908   withval="$with_smtp_host"
6909
6910        if test "x$withval" != "xno" ; then
6911               smtp_host=$withval
6912        fi
6913
6914
6915 fi;
6916
6917
6918
6919
6920 # ------------------------------------
6921 # Where to place pid files
6922 # ------------------------------------
6923 piddir=/var/run
6924
6925 # Check whether --with-pid-dir or --without-pid-dir was given.
6926 if test "${with_pid_dir+set}" = set; then
6927   withval="$with_pid_dir"
6928
6929         if test "x$withval" != "xno" ; then
6930             piddir=$withval
6931         fi
6932
6933
6934 fi;
6935
6936 cat >>confdefs.h <<_ACEOF
6937 #define _PATH_BACULA_PIDDIR "$piddir"
6938 _ACEOF
6939
6940
6941
6942
6943 # ------------------------------------
6944 # Where to place subsys "lock file"
6945 # ------------------------------------
6946 subsysdir=/var/run/subsys
6947
6948 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6949 if test "${with_subsys_dir+set}" = set; then
6950   withval="$with_subsys_dir"
6951
6952         if test "x$withval" != "xno" ; then
6953             subsysdir=$withval
6954         fi
6955
6956
6957 fi;
6958
6959
6960
6961
6962
6963 # ------------------------------------
6964 # Where to start assigning ports
6965 # ------------------------------------
6966 baseport=9101
6967
6968 # Check whether --with-baseport or --without-baseport was given.
6969 if test "${with_baseport+set}" = set; then
6970   withval="$with_baseport"
6971
6972         if test "x$withval" != "xno" ; then
6973              baseport=$withval
6974         fi
6975
6976
6977 fi;
6978
6979
6980 dir_port=`expr $baseport`
6981 fd_port=`expr $baseport + 1`
6982 sd_port=`expr $fd_port + 1`
6983
6984
6985
6986
6987
6988
6989 # ------------------------------------------
6990 # Generate passwords
6991 # ------------------------------------------
6992 dir_password=
6993
6994 # Check whether --with-dir-password or --without-dir-password was given.
6995 if test "${with_dir_password+set}" = set; then
6996   withval="$with_dir_password"
6997
6998        if test "x$withval" != "xno" ; then
6999            dir_password=$withval
7000        fi
7001
7002
7003 fi;
7004
7005 if test "x$dir_password" = "x" ; then
7006    if test "x$OPENSSL" = "xnone" ; then
7007 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7008       key=`autoconf/randpass 33`
7009    else
7010       key=`openssl rand -base64 33`
7011    fi
7012    dir_password=$key
7013 fi
7014
7015 fd_password=
7016
7017 # Check whether --with-fd-password or --without-fd-password was given.
7018 if test "${with_fd_password+set}" = set; then
7019   withval="$with_fd_password"
7020
7021        if test "x$withval" != "xno" ; then
7022            fd_password=$withval
7023        fi
7024
7025
7026 fi;
7027
7028 if test "x$fd_password" = "x" ; then
7029    if test "x$OPENSSL" = "xnone" ; then
7030 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7031       key=`autoconf/randpass 37`
7032    else
7033       key=`openssl rand -base64 33`
7034    fi
7035    fd_password=$key
7036 fi
7037
7038 sd_password=
7039
7040 # Check whether --with-sd-password or --without-sd-password was given.
7041 if test "${with_sd_password+set}" = set; then
7042   withval="$with_sd_password"
7043
7044        if test "x$withval" != "xno" ; then
7045            sd_password=$withval
7046        fi
7047
7048
7049 fi;
7050
7051 if test "x$sd_password" = "x" ; then
7052    if test "x$OPENSSL" = "xnone" ; then
7053 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7054       key=`autoconf/randpass 41`
7055    else
7056       key=`openssl rand -base64 33`
7057    fi
7058    sd_password=$key
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067 #
7068 # Handle users and groups for each daemon
7069 #
7070 dir_user=
7071
7072 # Check whether --with-dir_user or --without-dir_user was given.
7073 if test "${with_dir_user+set}" = set; then
7074   withval="$with_dir_user"
7075
7076         if test "x$withval" != "x" ; then
7077              dir_user=$withval
7078         fi
7079
7080
7081 fi;
7082
7083 dir_group=
7084
7085 # Check whether --with-dir_group or --without-dir_group was given.
7086 if test "${with_dir_group+set}" = set; then
7087   withval="$with_dir_group"
7088
7089         if test "x$withval" != "x" ; then
7090              dir_group=$withval
7091         fi
7092
7093
7094 fi;
7095
7096 sd_user=
7097
7098 # Check whether --with-sd_user or --without-sd_user was given.
7099 if test "${with_sd_user+set}" = set; then
7100   withval="$with_sd_user"
7101
7102         if test "x$withval" != "x" ; then
7103              sd_user=$withval
7104         fi
7105
7106
7107 fi;
7108
7109 sd_group=
7110
7111 # Check whether --with-sd_group or --without-sd_group was given.
7112 if test "${with_sd_group+set}" = set; then
7113   withval="$with_sd_group"
7114
7115         if test "x$withval" != "x" ; then
7116              sd_group=$withval
7117         fi
7118
7119
7120 fi;
7121
7122 fd_user=
7123
7124 # Check whether --with-fd_user or --without-fd_user was given.
7125 if test "${with_fd_user+set}" = set; then
7126   withval="$with_fd_user"
7127
7128         if test "x$withval" != "x" ; then
7129              fd_user=$withval
7130         fi
7131
7132
7133 fi;
7134
7135 fd_group=
7136
7137 # Check whether --with-fd_group or --without-fd_group was given.
7138 if test "${with_fd_group+set}" = set; then
7139   withval="$with_fd_group"
7140
7141         if test "x$withval" != "x" ; then
7142              fd_group=$withval
7143         fi
7144
7145
7146 fi;
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 # ------------------------------------------------
7159 # Bacula check for various SQL database engines
7160 # ------------------------------------------------
7161
7162 db_found=no
7163 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7164 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7165
7166 # Check whether --with-postgresql or --without-postgresql was given.
7167 if test "${with_postgresql+set}" = set; then
7168   withval="$with_postgresql"
7169
7170   if test "$withval" != "no"; then
7171       if test "$db_found" = "yes"; then
7172           echo "$as_me:$LINENO: result: error" >&5
7173 echo "${ECHO_T}error" >&6
7174           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7175 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7176    { (exit 1); exit 1; }; };
7177       fi
7178       if test "$withval" = "yes"; then
7179           if test -f /usr/local/include/libpq-fe.h; then
7180               POSTGRESQL_INCDIR=/usr/local/include
7181               POSTGRESQL_LIBDIR=/usr/local/lib
7182               POSTGRESQL_BINDIR=/usr/local/bin
7183           elif test -f /usr/include/libpq-fe.h; then
7184               POSTGRESQL_INCDIR=/usr/include
7185               POSTGRESQL_LIBDIR=/usr/lib
7186               POSTGRESQL_BINDIR=/usr/bin
7187           elif test -f /usr/include/pgsql/libpq-fe.h; then
7188               POSTGRESQL_INCDIR=/usr/include/pgsql
7189               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7190               POSTGRESQL_BINDIR=/usr/bin
7191           elif test -f /usr/include/postgresql/libpq-fe.h; then
7192               POSTGRESQL_INCDIR=/usr/include/postgresql
7193               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7194               POSTGRESQL_BINDIR=/usr/bin
7195           else
7196               echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7199 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7200    { (exit 1); exit 1; }; }
7201           fi
7202       elif test -f $withval/libpq-fe.h; then
7203           POSTGRESQL_INCDIR=$withval
7204           POSTGRESQL_LIBDIR=$withval
7205           POSTGRESQL_BINDIR=$withval
7206       else
7207           echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6
7209           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7210 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7211    { (exit 1); exit 1; }; }
7212       fi
7213       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7214       echo "$as_me:$LINENO: checking for crypt" >&5
7215 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7216 if test "${ac_cv_func_crypt+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 /* System header to define __stub macros and hopefully few prototypes,
7227     which can conflict with char crypt (); below.
7228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7229     <limits.h> exists even on freestanding compilers.  */
7230 #ifdef __STDC__
7231 # include <limits.h>
7232 #else
7233 # include <assert.h>
7234 #endif
7235 /* Override any gcc2 internal prototype to avoid an error.  */
7236 #ifdef __cplusplus
7237 extern "C"
7238 {
7239 #endif
7240 /* We use char because int might match the return type of a gcc2
7241    builtin and then its argument prototype would still apply.  */
7242 char crypt ();
7243 /* The GNU C library defines this for functions which it implements
7244     to always fail with ENOSYS.  Some functions are actually named
7245     something starting with __ and the normal name is an alias.  */
7246 #if defined (__stub_crypt) || defined (__stub___crypt)
7247 choke me
7248 #else
7249 char (*f) () = crypt;
7250 #endif
7251 #ifdef __cplusplus
7252 }
7253 #endif
7254
7255 int
7256 main ()
7257 {
7258 return f != crypt;
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265   (eval $ac_link) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -s conftest$ac_exeext'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; }; then
7275   ac_cv_func_crypt=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_cv_func_crypt=no
7281 fi
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 fi
7284 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7285 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7286 if test $ac_cv_func_crypt = yes; then
7287   :
7288 else
7289   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7290 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7291 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   ac_check_lib_save_LIBS=$LIBS
7295 LIBS="-lcrypt  $LIBS"
7296 cat >conftest.$ac_ext <<_ACEOF
7297 #line $LINENO "configure"
7298 /* confdefs.h.  */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h.  */
7303
7304 /* Override any gcc2 internal prototype to avoid an error.  */
7305 #ifdef __cplusplus
7306 extern "C"
7307 #endif
7308 /* We use char because int might match the return type of a gcc2
7309    builtin and then its argument prototype would still apply.  */
7310 char crypt ();
7311 int
7312 main ()
7313 {
7314 crypt ();
7315   ;
7316   return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7321   (eval $ac_link) 2>&5
7322   ac_status=$?
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } &&
7325          { ac_try='test -s conftest$ac_exeext'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; }; then
7331   ac_cv_lib_crypt_crypt=yes
7332 else
7333   echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336 ac_cv_lib_crypt_crypt=no
7337 fi
7338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7340 fi
7341 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7342 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7343 if test $ac_cv_lib_crypt_crypt = yes; then
7344   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7345 fi
7346
7347 fi
7348
7349       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7350       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7351       SQL_BINDIR=$POSTGRESQL_BINDIR
7352       cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_POSTGRESQL 1
7354 _ACEOF
7355
7356       echo "$as_me:$LINENO: result: yes" >&5
7357 echo "${ECHO_T}yes" >&6
7358       db_found=yes
7359       support_postgresql=yes
7360       db_name=PostgreSQL
7361       DB_NAME=postgresql
7362   else
7363       echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7365   fi
7366
7367 else
7368
7369   echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6
7371
7372 fi;
7373
7374
7375
7376
7377
7378
7379
7380 db_found=no
7381 echo "$as_me:$LINENO: checking for MySQL support" >&5
7382 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7383
7384 # Check whether --with-mysql or --without-mysql was given.
7385 if test "${with_mysql+set}" = set; then
7386   withval="$with_mysql"
7387
7388   if test "$withval" != "no"; then
7389         if test "$withval" = "yes"; then
7390                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7391                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7392                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7393                         MYSQL_BINDIR=/usr/local/mysql/bin
7394                 elif test -f /usr/include/mysql/mysql.h; then
7395                         MYSQL_INCDIR=/usr/include/mysql
7396                         MYSQL_LIBDIR=/usr/lib/mysql
7397                         MYSQL_BINDIR=/usr/bin
7398                 elif test -f /usr/include/mysql.h; then
7399                         MYSQL_INCDIR=/usr/include
7400                         MYSQL_LIBDIR=/usr/lib
7401                         MYSQL_BINDIR=/usr/bin
7402                 elif test -f /usr/local/include/mysql/mysql.h; then
7403                         MYSQL_INCDIR=/usr/local/include/mysql
7404                         MYSQL_LIBDIR=/usr/local/lib/mysql
7405                         MYSQL_BINDIR=/usr/local/bin
7406                 elif test -f /usr/local/include/mysql.h; then
7407                         MYSQL_INCDIR=/usr/local/include
7408                         MYSQL_LIBDIR=/usr/local/lib
7409                         MYSQL_BINDIR=/usr/local/bin
7410                 else
7411                    echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7414 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7415    { (exit 1); exit 1; }; }
7416                 fi
7417         else
7418                 if test -f $withval/include/mysql/mysql.h; then
7419                         MYSQL_INCDIR=$withval/include/mysql
7420                         MYSQL_LIBDIR=$withval/lib/mysql
7421                         MYSQL_BINDIR=$withval/bin
7422                 elif test -f $withval/include/mysql.h; then
7423                         MYSQL_INCDIR=$withval/include
7424                         MYSQL_LIBDIR=$withval/lib
7425                         MYSQL_BINDIR=$withval/bin
7426                 else
7427                    echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7429                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7430 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7431    { (exit 1); exit 1; }; }
7432                 fi
7433         fi
7434     SQL_INCLUDE=-I$MYSQL_INCDIR
7435     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7436        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7437        cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_THREAD_SAFE_MYSQL 1
7439 _ACEOF
7440
7441     else
7442        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7443     fi
7444     SQL_BINDIR=$MYSQL_BINDIR
7445
7446     cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_MYSQL 1
7448 _ACEOF
7449
7450     echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7452     db_found=yes
7453     support_mysql=yes
7454     db_name=MySQL
7455     DB_NAME=mysql
7456
7457   else
7458         echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460   fi
7461
7462 else
7463
7464     echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466
7467 fi;
7468
7469
7470 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7471 if test "${with_embedded_mysql+set}" = set; then
7472   withval="$with_embedded_mysql"
7473
7474   if test "$withval" != "no"; then
7475         if test "$withval" = "yes"; then
7476                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7477                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7478                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7479                         MYSQL_BINDIR=/usr/local/mysql/bin
7480                 elif test -f /usr/include/mysql/mysql.h; then
7481                         MYSQL_INCDIR=/usr/include/mysql
7482                         MYSQL_LIBDIR=/usr/lib/mysql
7483                         MYSQL_BINDIR=/usr/bin
7484                 elif test -f /usr/include/mysql.h; then
7485                         MYSQL_INCDIR=/usr/include
7486                         MYSQL_LIBDIR=/usr/lib
7487                         MYSQL_BINDIR=/usr/bin
7488                 elif test -f /usr/local/include/mysql/mysql.h; then
7489                         MYSQL_INCDIR=/usr/local/include/mysql
7490                         MYSQL_LIBDIR=/usr/local/lib/mysql
7491                         MYSQL_BINDIR=/usr/local/bin
7492                 elif test -f /usr/local/include/mysql.h; then
7493                         MYSQL_INCDIR=/usr/local/include
7494                         MYSQL_LIBDIR=/usr/local/lib
7495                         MYSQL_BINDIR=/usr/local/bin
7496                 else
7497                    echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7500 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7501    { (exit 1); exit 1; }; }
7502                 fi
7503         else
7504                 if test -f $withval/include/mysql/mysql.h; then
7505                         MYSQL_INCDIR=$withval/include/mysql
7506                         MYSQL_LIBDIR=$withval/lib/mysql
7507                         MYSQL_BINDIR=$withval/bin
7508                 elif test -f $withval/include/mysql.h; then
7509                         MYSQL_INCDIR=$withval/include
7510                         MYSQL_LIBDIR=$withval/lib
7511                         MYSQL_BINDIR=$withval/bin
7512                 else
7513                    echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7516 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7517    { (exit 1); exit 1; }; }
7518                 fi
7519         fi
7520     SQL_INCLUDE=-I$MYSQL_INCDIR
7521     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7522     SQL_BINDIR=$MYSQL_BINDIR
7523
7524     cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_MYSQL 1
7526 _ACEOF
7527
7528     cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_EMBEDDED_MYSQL 1
7530 _ACEOF
7531
7532     echo "$as_me:$LINENO: result: yes" >&5
7533 echo "${ECHO_T}yes" >&6
7534     db_found=yes
7535     support_mysql=yes
7536     db_name=MySQL
7537     DB_NAME=mysql
7538
7539   else
7540         echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7542   fi
7543
7544 else
7545
7546   echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548
7549 fi;
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 db_found=no
7560 echo "$as_me:$LINENO: checking for SQLite support" >&5
7561 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7562
7563 # Check whether --with-sqlite or --without-sqlite was given.
7564 if test "${with_sqlite+set}" = set; then
7565   withval="$with_sqlite"
7566
7567   if test "$withval" != "no"; then
7568         if test "$withval" = "yes"; then
7569                 if test -f /usr/local/include/sqlite.h; then
7570                         SQLITE_INCDIR=/usr/local/include
7571                         SQLITE_LIBDIR=/usr/local/lib
7572                         SQLITE_BINDIR=/usr/local/bin
7573                 elif test -f /usr/include/sqlite.h; then
7574                         SQLITE_INCDIR=/usr/include
7575                         SQLITE_LIBDIR=/usr/lib
7576                         SQLITE_BINDIR=/usr/bin
7577                 else
7578                    echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7581 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7582    { (exit 1); exit 1; }; }
7583                 fi
7584         else
7585                 if test -f $withval/sqlite.h; then
7586                         SQLITE_INCDIR=$withval
7587                         SQLITE_LIBDIR=$withval
7588                         SQLITE_BINDIR=$withval
7589                 else
7590                    echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7592                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7593 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7594    { (exit 1); exit 1; }; }
7595                 fi
7596         fi
7597     SQL_INCLUDE=-I$SQLITE_INCDIR
7598     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7599     SQL_BINDIR=$SQLITE_BINDIR
7600
7601     cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_SQLITE 1
7603 _ACEOF
7604
7605     echo "$as_me:$LINENO: result: yes" >&5
7606 echo "${ECHO_T}yes" >&6
7607     db_found=yes
7608     support_sqlite=yes
7609     db_name=SQLite
7610     DB_NAME=sqlite
7611
7612   else
7613         echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615   fi
7616
7617 else
7618
7619   echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7621
7622 fi;
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 cat >>confdefs.h <<\_ACEOF
7633 #define PROTOTYPES 1
7634 _ACEOF
7635
7636
7637 if test -z "$CFLAGS"; then
7638     if test -z "$CCOPTS"; then
7639         CCOPTS='-g -O2'
7640     fi
7641     CFLAGS="$CCOPTS"
7642 fi
7643
7644
7645
7646
7647 largefile_support="no"
7648
7649    # Check whether --enable-largefile or --disable-largefile was given.
7650 if test "${enable_largefile+set}" = set; then
7651   enableval="$enable_largefile"
7652
7653 fi;
7654    if test "$enable_largefile" != no; then
7655      if test -n "$ac_tool_prefix"; then
7656   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_prog_GETCONF+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   if test -n "$GETCONF"; then
7664   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679
7680 fi
7681 fi
7682 GETCONF=$ac_cv_prog_GETCONF
7683 if test -n "$GETCONF"; then
7684   echo "$as_me:$LINENO: result: $GETCONF" >&5
7685 echo "${ECHO_T}$GETCONF" >&6
7686 else
7687   echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7689 fi
7690
7691 fi
7692 if test -z "$ac_cv_prog_GETCONF"; then
7693   ac_ct_GETCONF=$GETCONF
7694   # Extract the first word of "getconf", so it can be a program name with args.
7695 set dummy getconf; ac_word=$2
7696 echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   if test -n "$ac_ct_GETCONF"; then
7702   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709   for ac_exec_ext in '' $ac_executable_extensions; do
7710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_prog_ac_ct_GETCONF="getconf"
7712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716 done
7717
7718 fi
7719 fi
7720 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7721 if test -n "$ac_ct_GETCONF"; then
7722   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7723 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7724 else
7725   echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727 fi
7728
7729   GETCONF=$ac_ct_GETCONF
7730 else
7731   GETCONF="$ac_cv_prog_GETCONF"
7732 fi
7733
7734      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7735 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7736 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7740         ac_cv_sys_largefile_CFLAGS=no
7741         case "$host_os" in
7742            # IRIX 6.2 and later require cc -n32.
7743            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7744              if test "$GCC" != yes; then
7745                ac_cv_sys_largefile_CFLAGS=-n32
7746              fi
7747              ac_save_CC="$CC"
7748              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7749              cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756
7757 int
7758 main ()
7759 {
7760
7761   ;
7762   return 0;
7763 }
7764 _ACEOF
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767   (eval $ac_link) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } &&
7771          { ac_try='test -s conftest$ac_exeext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   :
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_sys_largefile_CFLAGS=no
7783 fi
7784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7785              CC="$ac_save_CC"
7786            esac
7787       }
7788 fi
7789 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7790 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7791      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7792 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7793 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7797         ac_cv_sys_largefile_LDFLAGS=no
7798
7799       }
7800 fi
7801 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7802 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7803      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7804 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7805 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7809         ac_cv_sys_largefile_LIBS=no
7810
7811       }
7812 fi
7813 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7814 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7815
7816      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7817        case "$ac_flag" in
7818        no) ;;
7819        -D_FILE_OFFSET_BITS=*) ;;
7820        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7821        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7822        -D?* | -I?*)
7823          case "$ac_flag" in
7824    no) ;;
7825    ?*)
7826      case "$CPPFLAGS" in
7827      '') CPPFLAGS="$ac_flag" ;;
7828      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7829      esac ;;
7830    esac ;;
7831        *)
7832          case "$ac_flag" in
7833    no) ;;
7834    ?*)
7835      case "$CFLAGS" in
7836      '') CFLAGS="$ac_flag" ;;
7837      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7838      esac ;;
7839    esac ;;
7840        esac
7841      done
7842      case "$ac_cv_sys_largefile_LDFLAGS" in
7843    no) ;;
7844    ?*)
7845      case "$LDFLAGS" in
7846      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7847      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7848      esac ;;
7849    esac
7850      case "$ac_cv_sys_largefile_LIBS" in
7851    no) ;;
7852    ?*)
7853      case "$LIBS" in
7854      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7855      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7856      esac ;;
7857    esac
7858      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7859 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   ac_cv_sys_file_offset_bits=no
7864       case "$host_os" in
7865         # HP-UX 10.20 and later
7866         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7867           ac_cv_sys_file_offset_bits=64 ;;
7868         esac
7869       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7870         case "$ac_flag" in
7871         -D_FILE_OFFSET_BITS)
7872           ac_cv_sys_file_offset_bits=1 ;;
7873         -D_FILE_OFFSET_BITS=*)
7874           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7875         esac
7876       done
7877
7878 fi
7879 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7880 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7881    if test "$ac_cv_sys_file_offset_bits" != no; then
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7885 _ACEOF
7886
7887    fi
7888      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7889 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7890 if test "${ac_cv_sys_largefile_source+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   ac_cv_sys_largefile_source=no
7894       case "$host_os" in
7895         # HP-UX 10.20 and later
7896         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7897           ac_cv_sys_largefile_source=1 ;;
7898         esac
7899       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7900         case "$ac_flag" in
7901         -D_LARGEFILE_SOURCE)
7902           ac_cv_sys_largefile_source=1 ;;
7903         -D_LARGEFILE_SOURCE=*)
7904           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7905         esac
7906       done
7907
7908 fi
7909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7910 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7911    if test "$ac_cv_sys_largefile_source" != no; then
7912
7913 cat >>confdefs.h <<_ACEOF
7914 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7915 _ACEOF
7916
7917    fi
7918      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7919 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7920 if test "${ac_cv_sys_large_files+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   ac_cv_sys_large_files=no
7924       case "$host_os" in
7925         # AIX 4.2 and later
7926         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7927           ac_cv_sys_large_files=1 ;;
7928         esac
7929       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7930         case "$ac_flag" in
7931         -D_LARGE_FILES)
7932           ac_cv_sys_large_files=1 ;;
7933         -D_LARGE_FILES=*)
7934           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7935         esac
7936       done
7937
7938 fi
7939 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7940 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7941    if test "$ac_cv_sys_large_files" != no; then
7942
7943 cat >>confdefs.h <<_ACEOF
7944 #define _LARGE_FILES $ac_cv_sys_large_files
7945 _ACEOF
7946
7947    fi
7948    fi
7949
7950
7951
7952 echo "$as_me:$LINENO: checking for X" >&5
7953 echo $ECHO_N "checking for X... $ECHO_C" >&6
7954
7955
7956 # Check whether --with-x or --without-x was given.
7957 if test "${with_x+set}" = set; then
7958   withval="$with_x"
7959
7960 fi;
7961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7962 if test "x$with_x" = xno; then
7963   # The user explicitly disabled X.
7964   have_x=disabled
7965 else
7966   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7967     # Both variables are already set.
7968     have_x=yes
7969   else
7970     if test "${ac_cv_have_x+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   # One or both of the vars are not set, and there is no cached value.
7974 ac_x_includes=no ac_x_libraries=no
7975 rm -fr conftest.dir
7976 if mkdir conftest.dir; then
7977   cd conftest.dir
7978   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7979   cat >Imakefile <<'_ACEOF'
7980 acfindx:
7981         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7982 _ACEOF
7983   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7984     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7985     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7986     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7987     for ac_extension in a so sl; do
7988       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7989          test -f $ac_im_libdir/libX11.$ac_extension; then
7990         ac_im_usrlibdir=$ac_im_libdir; break
7991       fi
7992     done
7993     # Screen out bogus values from the imake configuration.  They are
7994     # bogus both because they are the default anyway, and because
7995     # using them would break gcc on systems where it needs fixed includes.
7996     case $ac_im_incroot in
7997         /usr/include) ;;
7998         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7999     esac
8000     case $ac_im_usrlibdir in
8001         /usr/lib | /lib) ;;
8002         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8003     esac
8004   fi
8005   cd ..
8006   rm -fr conftest.dir
8007 fi
8008
8009 # Standard set of common directories for X headers.
8010 # Check X11 before X11Rn because it is often a symlink to the current release.
8011 ac_x_header_dirs='
8012 /usr/X11/include
8013 /usr/X11R6/include
8014 /usr/X11R5/include
8015 /usr/X11R4/include
8016
8017 /usr/include/X11
8018 /usr/include/X11R6
8019 /usr/include/X11R5
8020 /usr/include/X11R4
8021
8022 /usr/local/X11/include
8023 /usr/local/X11R6/include
8024 /usr/local/X11R5/include
8025 /usr/local/X11R4/include
8026
8027 /usr/local/include/X11
8028 /usr/local/include/X11R6
8029 /usr/local/include/X11R5
8030 /usr/local/include/X11R4
8031
8032 /usr/X386/include
8033 /usr/x386/include
8034 /usr/XFree86/include/X11
8035
8036 /usr/include
8037 /usr/local/include
8038 /usr/unsupported/include
8039 /usr/athena/include
8040 /usr/local/x11r5/include
8041 /usr/lpp/Xamples/include
8042
8043 /usr/openwin/include
8044 /usr/openwin/share/include'
8045
8046 if test "$ac_x_includes" = no; then
8047   # Guess where to find include files, by looking for Intrinsic.h.
8048   # First, try using that file with no special directory specified.
8049   cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 #include <X11/Intrinsic.h>
8057 _ACEOF
8058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8060   ac_status=$?
8061   grep -v '^ *+' conftest.er1 >conftest.err
8062   rm -f conftest.er1
8063   cat conftest.err >&5
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } >/dev/null; then
8066   if test -s conftest.err; then
8067     ac_cpp_err=$ac_c_preproc_warn_flag
8068   else
8069     ac_cpp_err=
8070   fi
8071 else
8072   ac_cpp_err=yes
8073 fi
8074 if test -z "$ac_cpp_err"; then
8075   # We can compile using X headers with no special include directory.
8076 ac_x_includes=
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081   for ac_dir in $ac_x_header_dirs; do
8082   if test -r "$ac_dir/X11/Intrinsic.h"; then
8083     ac_x_includes=$ac_dir
8084     break
8085   fi
8086 done
8087 fi
8088 rm -f conftest.err conftest.$ac_ext
8089 fi # $ac_x_includes = no
8090
8091 if test "$ac_x_libraries" = no; then
8092   # Check for the libraries.
8093   # See if we find them without any special options.
8094   # Don't add to $LIBS permanently.
8095   ac_save_LIBS=$LIBS
8096   LIBS="-lXt $LIBS"
8097   cat >conftest.$ac_ext <<_ACEOF
8098 #line $LINENO "configure"
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <X11/Intrinsic.h>
8105 int
8106 main ()
8107 {
8108 XtMalloc (0)
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115   (eval $ac_link) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } &&
8119          { ac_try='test -s conftest$ac_exeext'
8120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121   (eval $ac_try) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; }; then
8125   LIBS=$ac_save_LIBS
8126 # We can link X programs with no special library path.
8127 ac_x_libraries=
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 LIBS=$ac_save_LIBS
8133 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8134 do
8135   # Don't even attempt the hair of trying to link an X program!
8136   for ac_extension in a so sl; do
8137     if test -r $ac_dir/libXt.$ac_extension; then
8138       ac_x_libraries=$ac_dir
8139       break 2
8140     fi
8141   done
8142 done
8143 fi
8144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145 fi # $ac_x_libraries = no
8146
8147 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8148   # Didn't find X anywhere.  Cache the known absence of X.
8149   ac_cv_have_x="have_x=no"
8150 else
8151   # Record where we found X for the cache.
8152   ac_cv_have_x="have_x=yes \
8153                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8154 fi
8155 fi
8156
8157   fi
8158   eval "$ac_cv_have_x"
8159 fi # $with_x != no
8160
8161 if test "$have_x" != yes; then
8162   echo "$as_me:$LINENO: result: $have_x" >&5
8163 echo "${ECHO_T}$have_x" >&6
8164   no_x=yes
8165 else
8166   # If each of the values was on the command line, it overrides each guess.
8167   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8168   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8169   # Update the cache value to reflect the command line values.
8170   ac_cv_have_x="have_x=yes \
8171                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8172   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8173 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8174 fi
8175
8176 if test "$no_x" = yes; then
8177   # Not all programs may use this symbol, but it does not hurt to define it.
8178
8179 cat >>confdefs.h <<\_ACEOF
8180 #define X_DISPLAY_MISSING 1
8181 _ACEOF
8182
8183   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8184 else
8185   if test -n "$x_includes"; then
8186     X_CFLAGS="$X_CFLAGS -I$x_includes"
8187   fi
8188
8189   # It would also be nice to do this for all -L options, not just this one.
8190   if test -n "$x_libraries"; then
8191     X_LIBS="$X_LIBS -L$x_libraries"
8192     # For Solaris; some versions of Sun CC require a space after -R and
8193     # others require no space.  Words are not sufficient . . . .
8194     case `(uname -sr) 2>/dev/null` in
8195     "SunOS 5"*)
8196       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8197 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8198       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8199       cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8206
8207 int
8208 main ()
8209 {
8210
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } &&
8221          { ac_try='test -s conftest$ac_exeext'
8222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223   (eval $ac_try) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; }; then
8227   ac_R_nospace=yes
8228 else
8229   echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ac_R_nospace=no
8233 fi
8234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8235       if test $ac_R_nospace = yes; then
8236         echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6
8238         X_LIBS="$X_LIBS -R$x_libraries"
8239       else
8240         LIBS="$ac_xsave_LIBS -R $x_libraries"
8241         cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248
8249 int
8250 main ()
8251 {
8252
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259   (eval $ac_link) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -s conftest$ac_exeext'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; }; then
8269   ac_R_space=yes
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_R_space=no
8275 fi
8276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277         if test $ac_R_space = yes; then
8278           echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6
8280           X_LIBS="$X_LIBS -R $x_libraries"
8281         else
8282           echo "$as_me:$LINENO: result: neither works" >&5
8283 echo "${ECHO_T}neither works" >&6
8284         fi
8285       fi
8286       LIBS=$ac_xsave_LIBS
8287     esac
8288   fi
8289
8290   # Check for system-dependent libraries X programs must link with.
8291   # Do this before checking for the system-independent R6 libraries
8292   # (-lICE), since we may need -lsocket or whatever for X linking.
8293
8294   if test "$ISC" = yes; then
8295     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8296   else
8297     # Martyn Johnson says this is needed for Ultrix, if the X
8298     # libraries were built with DECnet support.  And Karl Berry says
8299     # the Alpha needs dnet_stub (dnet does not exist).
8300     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8301     cat >conftest.$ac_ext <<_ACEOF
8302 #line $LINENO "configure"
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308
8309 /* Override any gcc2 internal prototype to avoid an error.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 /* We use char because int might match the return type of a gcc2
8314    builtin and then its argument prototype would still apply.  */
8315 char XOpenDisplay ();
8316 int
8317 main ()
8318 {
8319 XOpenDisplay ();
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326   (eval $ac_link) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -s conftest$ac_exeext'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; }; then
8336   :
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8342 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8343 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   ac_check_lib_save_LIBS=$LIBS
8347 LIBS="-ldnet  $LIBS"
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 /* Override any gcc2 internal prototype to avoid an error.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 #endif
8360 /* We use char because int might match the return type of a gcc2
8361    builtin and then its argument prototype would still apply.  */
8362 char dnet_ntoa ();
8363 int
8364 main ()
8365 {
8366 dnet_ntoa ();
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373   (eval $ac_link) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -s conftest$ac_exeext'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   ac_cv_lib_dnet_dnet_ntoa=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_cv_lib_dnet_dnet_ntoa=no
8389 fi
8390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8394 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8395 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8396   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8397 fi
8398
8399     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8400       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8401 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8402 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   ac_check_lib_save_LIBS=$LIBS
8406 LIBS="-ldnet_stub  $LIBS"
8407 cat >conftest.$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414
8415 /* Override any gcc2 internal prototype to avoid an error.  */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 /* We use char because int might match the return type of a gcc2
8420    builtin and then its argument prototype would still apply.  */
8421 char dnet_ntoa ();
8422 int
8423 main ()
8424 {
8425 dnet_ntoa ();
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432   (eval $ac_link) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -s conftest$ac_exeext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 ac_cv_lib_dnet_stub_dnet_ntoa=no
8448 fi
8449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8451 fi
8452 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8453 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8454 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8455   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8456 fi
8457
8458     fi
8459 fi
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461     LIBS="$ac_xsave_LIBS"
8462
8463     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8464     # to get the SysV transport functions.
8465     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8466     # needs -lnsl.
8467     # The nsl library prevents programs from opening the X display
8468     # on Irix 5.2, according to T.E. Dickey.
8469     # The functions gethostbyname, getservbyname, and inet_addr are
8470     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8471     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8472 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8473 if test "${ac_cv_func_gethostbyname+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476   cat >conftest.$ac_ext <<_ACEOF
8477 #line $LINENO "configure"
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483 /* System header to define __stub macros and hopefully few prototypes,
8484     which can conflict with char gethostbyname (); below.
8485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486     <limits.h> exists even on freestanding compilers.  */
8487 #ifdef __STDC__
8488 # include <limits.h>
8489 #else
8490 # include <assert.h>
8491 #endif
8492 /* Override any gcc2 internal prototype to avoid an error.  */
8493 #ifdef __cplusplus
8494 extern "C"
8495 {
8496 #endif
8497 /* We use char because int might match the return type of a gcc2
8498    builtin and then its argument prototype would still apply.  */
8499 char gethostbyname ();
8500 /* The GNU C library defines this for functions which it implements
8501     to always fail with ENOSYS.  Some functions are actually named
8502     something starting with __ and the normal name is an alias.  */
8503 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8504 choke me
8505 #else
8506 char (*f) () = gethostbyname;
8507 #endif
8508 #ifdef __cplusplus
8509 }
8510 #endif
8511
8512 int
8513 main ()
8514 {
8515 return f != gethostbyname;
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522   (eval $ac_link) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -s conftest$ac_exeext'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; }; then
8532   ac_cv_func_gethostbyname=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537 ac_cv_func_gethostbyname=no
8538 fi
8539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8540 fi
8541 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8542 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8543
8544     if test $ac_cv_func_gethostbyname = no; then
8545       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8546 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8547 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   ac_check_lib_save_LIBS=$LIBS
8551 LIBS="-lnsl  $LIBS"
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 /* Override any gcc2 internal prototype to avoid an error.  */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 /* We use char because int might match the return type of a gcc2
8565    builtin and then its argument prototype would still apply.  */
8566 char gethostbyname ();
8567 int
8568 main ()
8569 {
8570 gethostbyname ();
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577   (eval $ac_link) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -s conftest$ac_exeext'
8582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583   (eval $ac_try) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); }; }; then
8587   ac_cv_lib_nsl_gethostbyname=yes
8588 else
8589   echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ac_cv_lib_nsl_gethostbyname=no
8593 fi
8594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8595 LIBS=$ac_check_lib_save_LIBS
8596 fi
8597 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8598 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8599 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8600   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8601 fi
8602
8603       if test $ac_cv_lib_nsl_gethostbyname = no; then
8604         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8605 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8606 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lbsd  $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624    builtin and then its argument prototype would still apply.  */
8625 char gethostbyname ();
8626 int
8627 main ()
8628 {
8629 gethostbyname ();
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -s conftest$ac_exeext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_cv_lib_bsd_gethostbyname=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_lib_bsd_gethostbyname=no
8652 fi
8653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8657 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8658 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8659   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8660 fi
8661
8662       fi
8663     fi
8664
8665     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8666     # socket/setsockopt and other routines are undefined under SCO ODT
8667     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8668     # on later versions), says Simon Leinen: it contains gethostby*
8669     # variants that don't use the name server (or something).  -lsocket
8670     # must be given before -lnsl if both are needed.  We assume that
8671     # if connect needs -lnsl, so does gethostbyname.
8672     echo "$as_me:$LINENO: checking for connect" >&5
8673 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8674 if test "${ac_cv_func_connect+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677   cat >conftest.$ac_ext <<_ACEOF
8678 #line $LINENO "configure"
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 /* System header to define __stub macros and hopefully few prototypes,
8685     which can conflict with char connect (); below.
8686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8687     <limits.h> exists even on freestanding compilers.  */
8688 #ifdef __STDC__
8689 # include <limits.h>
8690 #else
8691 # include <assert.h>
8692 #endif
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 {
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 connect ();
8701 /* The GNU C library defines this for functions which it implements
8702     to always fail with ENOSYS.  Some functions are actually named
8703     something starting with __ and the normal name is an alias.  */
8704 #if defined (__stub_connect) || defined (__stub___connect)
8705 choke me
8706 #else
8707 char (*f) () = connect;
8708 #endif
8709 #ifdef __cplusplus
8710 }
8711 #endif
8712
8713 int
8714 main ()
8715 {
8716 return f != connect;
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723   (eval $ac_link) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_func_connect=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_func_connect=no
8739 fi
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8743 echo "${ECHO_T}$ac_cv_func_connect" >&6
8744
8745     if test $ac_cv_func_connect = no; then
8746       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8747 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8748 if test "${ac_cv_lib_socket_connect+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751   ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760
8761 /* Override any gcc2 internal prototype to avoid an error.  */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 /* We use char because int might match the return type of a gcc2
8766    builtin and then its argument prototype would still apply.  */
8767 char connect ();
8768 int
8769 main ()
8770 {
8771 connect ();
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778   (eval $ac_link) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   ac_cv_lib_socket_connect=yes
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 ac_cv_lib_socket_connect=no
8794 fi
8795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8799 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8800 if test $ac_cv_lib_socket_connect = yes; then
8801   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8802 fi
8803
8804     fi
8805
8806     # Guillermo Gomez says -lposix is necessary on A/UX.
8807     echo "$as_me:$LINENO: checking for remove" >&5
8808 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8809 if test "${ac_cv_func_remove+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812   cat >conftest.$ac_ext <<_ACEOF
8813 #line $LINENO "configure"
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819 /* System header to define __stub macros and hopefully few prototypes,
8820     which can conflict with char remove (); below.
8821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822     <limits.h> exists even on freestanding compilers.  */
8823 #ifdef __STDC__
8824 # include <limits.h>
8825 #else
8826 # include <assert.h>
8827 #endif
8828 /* Override any gcc2 internal prototype to avoid an error.  */
8829 #ifdef __cplusplus
8830 extern "C"
8831 {
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834    builtin and then its argument prototype would still apply.  */
8835 char remove ();
8836 /* The GNU C library defines this for functions which it implements
8837     to always fail with ENOSYS.  Some functions are actually named
8838     something starting with __ and the normal name is an alias.  */
8839 #if defined (__stub_remove) || defined (__stub___remove)
8840 choke me
8841 #else
8842 char (*f) () = remove;
8843 #endif
8844 #ifdef __cplusplus
8845 }
8846 #endif
8847
8848 int
8849 main ()
8850 {
8851 return f != remove;
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858   (eval $ac_link) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_cv_func_remove=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_cv_func_remove=no
8874 fi
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876 fi
8877 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8878 echo "${ECHO_T}$ac_cv_func_remove" >&6
8879
8880     if test $ac_cv_func_remove = no; then
8881       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8882 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8883 if test "${ac_cv_lib_posix_remove+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-lposix  $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895
8896 /* Override any gcc2 internal prototype to avoid an error.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 /* We use char because int might match the return type of a gcc2
8901    builtin and then its argument prototype would still apply.  */
8902 char remove ();
8903 int
8904 main ()
8905 {
8906 remove ();
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913   (eval $ac_link) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -s conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   ac_cv_lib_posix_remove=yes
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 ac_cv_lib_posix_remove=no
8929 fi
8930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8932 fi
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8934 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8935 if test $ac_cv_lib_posix_remove = yes; then
8936   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8937 fi
8938
8939     fi
8940
8941     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8942     echo "$as_me:$LINENO: checking for shmat" >&5
8943 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8944 if test "${ac_cv_func_shmat+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 /* System header to define __stub macros and hopefully few prototypes,
8955     which can conflict with char shmat (); below.
8956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957     <limits.h> exists even on freestanding compilers.  */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963 /* Override any gcc2 internal prototype to avoid an error.  */
8964 #ifdef __cplusplus
8965 extern "C"
8966 {
8967 #endif
8968 /* We use char because int might match the return type of a gcc2
8969    builtin and then its argument prototype would still apply.  */
8970 char shmat ();
8971 /* The GNU C library defines this for functions which it implements
8972     to always fail with ENOSYS.  Some functions are actually named
8973     something starting with __ and the normal name is an alias.  */
8974 #if defined (__stub_shmat) || defined (__stub___shmat)
8975 choke me
8976 #else
8977 char (*f) () = shmat;
8978 #endif
8979 #ifdef __cplusplus
8980 }
8981 #endif
8982
8983 int
8984 main ()
8985 {
8986 return f != shmat;
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993   (eval $ac_link) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -s conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_func_shmat=yes
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 ac_cv_func_shmat=no
9009 fi
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9013 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9014
9015     if test $ac_cv_func_shmat = no; then
9016       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9017 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9018 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lipc  $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 #line $LINENO "configure"
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 /* Override any gcc2 internal prototype to avoid an error.  */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 /* We use char because int might match the return type of a gcc2
9036    builtin and then its argument prototype would still apply.  */
9037 char shmat ();
9038 int
9039 main ()
9040 {
9041 shmat ();
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048   (eval $ac_link) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -s conftest$ac_exeext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_lib_ipc_shmat=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_lib_ipc_shmat=no
9064 fi
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9069 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9070 if test $ac_cv_lib_ipc_shmat = yes; then
9071   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9072 fi
9073
9074     fi
9075   fi
9076
9077   # Check for libraries that X11R6 Xt/Xaw programs need.
9078   ac_save_LDFLAGS=$LDFLAGS
9079   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9080   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9081   # check for ICE first), but we must link in the order -lSM -lICE or
9082   # we get undefined symbols.  So assume we have SM if we have ICE.
9083   # These have to be linked with before -lX11, unlike the other
9084   # libraries we check for below, so use a different variable.
9085   # John Interrante, Karl Berry
9086   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9087 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9088 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line $LINENO "configure"
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100
9101 /* Override any gcc2 internal prototype to avoid an error.  */
9102 #ifdef __cplusplus
9103 extern "C"
9104 #endif
9105 /* We use char because int might match the return type of a gcc2
9106    builtin and then its argument prototype would still apply.  */
9107 char IceConnectionNumber ();
9108 int
9109 main ()
9110 {
9111 IceConnectionNumber ();
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118   (eval $ac_link) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -s conftest$ac_exeext'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; }; then
9128   ac_cv_lib_ICE_IceConnectionNumber=yes
9129 else
9130   echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133 ac_cv_lib_ICE_IceConnectionNumber=no
9134 fi
9135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9137 fi
9138 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9139 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9140 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9141   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9142 fi
9143
9144   LDFLAGS=$ac_save_LDFLAGS
9145
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171 for ac_header in \
9172         assert.h \
9173         fcntl.h \
9174         grp.h \
9175         pwd.h \
9176         libc.h \
9177         limits.h \
9178         stdarg.h \
9179         stdlib.h \
9180         stdint.h \
9181         string.h \
9182         termios.h \
9183         unistd.h \
9184         sys/byteorder.h \
9185         sys/ioctl.h \
9186         sys/select.h \
9187         sys/sockio.h \
9188         sys/time.h \
9189         sys/socket.h \
9190         arpa/nameser.h \
9191         resolv.h \
9192         mtio.h \
9193         sys/mtio.h \
9194
9195 do
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198   echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 fi
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 else
9206   # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 $ac_includes_default
9217 #include <$ac_header>
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -s conftest.$ac_objext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_header_compiler=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_header_compiler=no
9237 fi
9238 rm -f conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9241
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 #include <$ac_header>
9253 _ACEOF
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } >/dev/null; then
9262   if test -s conftest.err; then
9263     ac_cpp_err=$ac_c_preproc_warn_flag
9264   else
9265     ac_cpp_err=
9266   fi
9267 else
9268   ac_cpp_err=yes
9269 fi
9270 if test -z "$ac_cpp_err"; then
9271   ac_header_preproc=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276   ac_header_preproc=no
9277 fi
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9281
9282 # So?  What about this header?
9283 case $ac_header_compiler:$ac_header_preproc in
9284   yes:no )
9285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9289     (
9290       cat <<\_ASBOX
9291 ## ------------------------------------ ##
9292 ## Report this to bug-autoconf@gnu.org. ##
9293 ## ------------------------------------ ##
9294 _ASBOX
9295     ) |
9296       sed "s/^/$as_me: WARNING:     /" >&2
9297     ;;
9298   no:yes )
9299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9305     (
9306       cat <<\_ASBOX
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9310 _ASBOX
9311     ) |
9312       sed "s/^/$as_me: WARNING:     /" >&2
9313     ;;
9314 esac
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   eval "$as_ac_Header=$ac_header_preproc"
9321 fi
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9324
9325 fi
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327   cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9329 _ACEOF
9330
9331 fi
9332
9333 done
9334
9335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 #include <stdlib.h>
9348 #include <stdarg.h>
9349 #include <string.h>
9350 #include <float.h>
9351
9352 int
9353 main ()
9354 {
9355
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362   (eval $ac_compile) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); } &&
9366          { ac_try='test -s conftest.$ac_objext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_cv_header_stdc=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ac_cv_header_stdc=no
9378 fi
9379 rm -f conftest.$ac_objext conftest.$ac_ext
9380
9381 if test $ac_cv_header_stdc = yes; then
9382   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9383   cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9385 /* confdefs.h.  */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h.  */
9390 #include <string.h>
9391
9392 _ACEOF
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394   $EGREP "memchr" >/dev/null 2>&1; then
9395   :
9396 else
9397   ac_cv_header_stdc=no
9398 fi
9399 rm -f conftest*
9400
9401 fi
9402
9403 if test $ac_cv_header_stdc = yes; then
9404   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9405   cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <stdlib.h>
9413
9414 _ACEOF
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416   $EGREP "free" >/dev/null 2>&1; then
9417   :
9418 else
9419   ac_cv_header_stdc=no
9420 fi
9421 rm -f conftest*
9422
9423 fi
9424
9425 if test $ac_cv_header_stdc = yes; then
9426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9427   if test "$cross_compiling" = yes; then
9428   :
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437 #include <ctype.h>
9438 #if ((' ' & 0x0FF) == 0x020)
9439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9441 #else
9442 # define ISLOWER(c) \
9443                    (('a' <= (c) && (c) <= 'i') \
9444                      || ('j' <= (c) && (c) <= 'r') \
9445                      || ('s' <= (c) && (c) <= 'z'))
9446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9447 #endif
9448
9449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9450 int
9451 main ()
9452 {
9453   int i;
9454   for (i = 0; i < 256; i++)
9455     if (XOR (islower (i), ISLOWER (i))
9456         || toupper (i) != TOUPPER (i))
9457       exit(2);
9458   exit (0);
9459 }
9460 _ACEOF
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   :
9473 else
9474   echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ( exit $ac_status )
9479 ac_cv_header_stdc=no
9480 fi
9481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 fi
9483 fi
9484 fi
9485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9487 if test $ac_cv_header_stdc = yes; then
9488
9489 cat >>confdefs.h <<\_ACEOF
9490 #define STDC_HEADERS 1
9491 _ACEOF
9492
9493 fi
9494
9495 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9496 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9497 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <sys/types.h>
9508 int
9509 main ()
9510 {
9511 return makedev(0, 0);
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518   (eval $ac_link) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -s conftest$ac_exeext'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; }; then
9528   ac_cv_header_sys_types_h_makedev=yes
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_header_sys_types_h_makedev=no
9534 fi
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9540
9541 if test $ac_cv_header_sys_types_h_makedev = no; then
9542 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9543   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9544 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9545 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 fi
9548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9550 else
9551   # Is the header compilable?
9552 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9553 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 $ac_includes_default
9562 #include <sys/mkdev.h>
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566   (eval $ac_compile) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -s conftest.$ac_objext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_header_compiler=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_header_compiler=no
9582 fi
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9585 echo "${ECHO_T}$ac_header_compiler" >&6
9586
9587 # Is the header present?
9588 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9589 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 #include <sys/mkdev.h>
9598 _ACEOF
9599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9601   ac_status=$?
9602   grep -v '^ *+' conftest.er1 >conftest.err
9603   rm -f conftest.er1
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } >/dev/null; then
9607   if test -s conftest.err; then
9608     ac_cpp_err=$ac_c_preproc_warn_flag
9609   else
9610     ac_cpp_err=
9611   fi
9612 else
9613   ac_cpp_err=yes
9614 fi
9615 if test -z "$ac_cpp_err"; then
9616   ac_header_preproc=yes
9617 else
9618   echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621   ac_header_preproc=no
9622 fi
9623 rm -f conftest.err conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9625 echo "${ECHO_T}$ac_header_preproc" >&6
9626
9627 # So?  What about this header?
9628 case $ac_header_compiler:$ac_header_preproc in
9629   yes:no )
9630     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9634     (
9635       cat <<\_ASBOX
9636 ## ------------------------------------ ##
9637 ## Report this to bug-autoconf@gnu.org. ##
9638 ## ------------------------------------ ##
9639 _ASBOX
9640     ) |
9641       sed "s/^/$as_me: WARNING:     /" >&2
9642     ;;
9643   no:yes )
9644     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9648     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9650     (
9651       cat <<\_ASBOX
9652 ## ------------------------------------ ##
9653 ## Report this to bug-autoconf@gnu.org. ##
9654 ## ------------------------------------ ##
9655 _ASBOX
9656     ) |
9657       sed "s/^/$as_me: WARNING:     /" >&2
9658     ;;
9659 esac
9660 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9661 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9666 fi
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9669
9670 fi
9671 if test $ac_cv_header_sys_mkdev_h = yes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define MAJOR_IN_MKDEV 1
9675 _ACEOF
9676
9677 fi
9678
9679
9680
9681   if test $ac_cv_header_sys_mkdev_h = no; then
9682     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9683   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9684 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9685 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 fi
9688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9690 else
9691   # Is the header compilable?
9692 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9693 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 $ac_includes_default
9702 #include <sys/sysmacros.h>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706   (eval $ac_compile) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } &&
9710          { ac_try='test -s conftest.$ac_objext'
9711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712   (eval $ac_try) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; }; then
9716   ac_header_compiler=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_compiler=no
9722 fi
9723 rm -f conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9725 echo "${ECHO_T}$ac_header_compiler" >&6
9726
9727 # Is the header present?
9728 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9729 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 #include <sys/sysmacros.h>
9738 _ACEOF
9739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } >/dev/null; then
9747   if test -s conftest.err; then
9748     ac_cpp_err=$ac_c_preproc_warn_flag
9749   else
9750     ac_cpp_err=
9751   fi
9752 else
9753   ac_cpp_err=yes
9754 fi
9755 if test -z "$ac_cpp_err"; then
9756   ac_header_preproc=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761   ac_header_preproc=no
9762 fi
9763 rm -f conftest.err conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9765 echo "${ECHO_T}$ac_header_preproc" >&6
9766
9767 # So?  What about this header?
9768 case $ac_header_compiler:$ac_header_preproc in
9769   yes:no )
9770     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9772     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9774     (
9775       cat <<\_ASBOX
9776 ## ------------------------------------ ##
9777 ## Report this to bug-autoconf@gnu.org. ##
9778 ## ------------------------------------ ##
9779 _ASBOX
9780     ) |
9781       sed "s/^/$as_me: WARNING:     /" >&2
9782     ;;
9783   no:yes )
9784     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9785 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9786     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9788     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9790     (
9791       cat <<\_ASBOX
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9795 _ASBOX
9796     ) |
9797       sed "s/^/$as_me: WARNING:     /" >&2
9798     ;;
9799 esac
9800 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9801 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9808 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9809
9810 fi
9811 if test $ac_cv_header_sys_sysmacros_h = yes; then
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define MAJOR_IN_SYSMACROS 1
9815 _ACEOF
9816
9817 fi
9818
9819
9820   fi
9821 fi
9822
9823
9824
9825
9826
9827
9828 ac_header_dirent=no
9829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9830   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9832 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843 #include <sys/types.h>
9844 #include <$ac_hdr>
9845
9846 int
9847 main ()
9848 {
9849 if ((DIR *) 0)
9850 return 0;
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857   (eval $ac_compile) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -s conftest.$ac_objext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   eval "$as_ac_Header=yes"
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 eval "$as_ac_Header=no"
9873 fi
9874 rm -f conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879   cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9881 _ACEOF
9882
9883 ac_header_dirent=$ac_hdr; break
9884 fi
9885
9886 done
9887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9888 if test $ac_header_dirent = dirent.h; then
9889   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9891 if test "${ac_cv_search_opendir+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   ac_func_search_save_LIBS=$LIBS
9895 ac_cv_search_opendir=no
9896 cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903
9904 /* Override any gcc2 internal prototype to avoid an error.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909    builtin and then its argument prototype would still apply.  */
9910 char opendir ();
9911 int
9912 main ()
9913 {
9914 opendir ();
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } &&
9925          { ac_try='test -s conftest$ac_exeext'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; }; then
9931   ac_cv_search_opendir="none required"
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 fi
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938 if test "$ac_cv_search_opendir" = no; then
9939   for ac_lib in dir; do
9940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9941     cat >conftest.$ac_ext <<_ACEOF
9942 #line $LINENO "configure"
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any gcc2 internal prototype to avoid an error.  */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954    builtin and then its argument prototype would still apply.  */
9955 char opendir ();
9956 int
9957 main ()
9958 {
9959 opendir ();
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966   (eval $ac_link) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_search_opendir="-l$ac_lib"
9977 break
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 fi
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9984   done
9985 fi
9986 LIBS=$ac_func_search_save_LIBS
9987 fi
9988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9990 if test "$ac_cv_search_opendir" != no; then
9991   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9992
9993 fi
9994
9995 else
9996   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9998 if test "${ac_cv_search_opendir+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   ac_func_search_save_LIBS=$LIBS
10002 ac_cv_search_opendir=no
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010
10011 /* Override any gcc2 internal prototype to avoid an error.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 /* We use char because int might match the return type of a gcc2
10016    builtin and then its argument prototype would still apply.  */
10017 char opendir ();
10018 int
10019 main ()
10020 {
10021 opendir ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028   (eval $ac_link) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_search_opendir="none required"
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 fi
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 if test "$ac_cv_search_opendir" = no; then
10046   for ac_lib in x; do
10047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10048     cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055
10056 /* Override any gcc2 internal prototype to avoid an error.  */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061    builtin and then its argument prototype would still apply.  */
10062 char opendir ();
10063 int
10064 main ()
10065 {
10066 opendir ();
10067   ;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073   (eval $ac_link) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_search_opendir="-l$ac_lib"
10084 break
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 fi
10090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10091   done
10092 fi
10093 LIBS=$ac_func_search_save_LIBS
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10097 if test "$ac_cv_search_opendir" != no; then
10098   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10099
10100 fi
10101
10102 fi
10103
10104 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10105 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10106 if test "${ac_cv_header_stat_broken+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 #include <sys/types.h>
10117 #include <sys/stat.h>
10118
10119 #if defined(S_ISBLK) && defined(S_IFDIR)
10120 # if S_ISBLK (S_IFDIR)
10121 You lose.
10122 # endif
10123 #endif
10124
10125 #if defined(S_ISBLK) && defined(S_IFCHR)
10126 # if S_ISBLK (S_IFCHR)
10127 You lose.
10128 # endif
10129 #endif
10130
10131 #if defined(S_ISLNK) && defined(S_IFREG)
10132 # if S_ISLNK (S_IFREG)
10133 You lose.
10134 # endif
10135 #endif
10136
10137 #if defined(S_ISSOCK) && defined(S_IFREG)
10138 # if S_ISSOCK (S_IFREG)
10139 You lose.
10140 # endif
10141 #endif
10142
10143 _ACEOF
10144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10145   $EGREP "You lose" >/dev/null 2>&1; then
10146   ac_cv_header_stat_broken=yes
10147 else
10148   ac_cv_header_stat_broken=no
10149 fi
10150 rm -f conftest*
10151
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10154 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10155 if test $ac_cv_header_stat_broken = yes; then
10156
10157 cat >>confdefs.h <<\_ACEOF
10158 #define STAT_MACROS_BROKEN 1
10159 _ACEOF
10160
10161 fi
10162
10163 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10166   echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168   cat >conftest.$ac_ext <<_ACEOF
10169 #line $LINENO "configure"
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175 #include <sys/types.h>
10176 #include <sys/wait.h>
10177 #ifndef WEXITSTATUS
10178 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10179 #endif
10180 #ifndef WIFEXITED
10181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10182 #endif
10183
10184 int
10185 main ()
10186 {
10187   int s;
10188   wait (&s);
10189   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -s conftest.$ac_objext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_header_sys_wait_h=yes
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_cv_header_sys_wait_h=no
10212 fi
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10216 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10217 if test $ac_cv_header_sys_wait_h = yes; then
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_SYS_WAIT_H 1
10221 _ACEOF
10222
10223 fi
10224
10225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10227 if test "${ac_cv_header_time+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 #line $LINENO "configure"
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237 #include <sys/types.h>
10238 #include <sys/time.h>
10239 #include <time.h>
10240
10241 int
10242 main ()
10243 {
10244 if ((struct tm *) 0)
10245 return 0;
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_header_time=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_header_time=no
10268 fi
10269 rm -f conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10272 echo "${ECHO_T}$ac_cv_header_time" >&6
10273 if test $ac_cv_header_time = yes; then
10274
10275 cat >>confdefs.h <<\_ACEOF
10276 #define TIME_WITH_SYS_TIME 1
10277 _ACEOF
10278
10279 fi
10280
10281
10282 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10283 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10284 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10285   echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287   cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 static struct stat ac_aggr;
10299 if (ac_aggr.st_blksize)
10300 return 0;
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307   (eval $ac_compile) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_member_struct_stat_st_blksize=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 $ac_includes_default
10330 int
10331 main ()
10332 {
10333 static struct stat ac_aggr;
10334 if (sizeof ac_aggr.st_blksize)
10335 return 0;
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342   (eval $ac_compile) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -s conftest.$ac_objext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_cv_member_struct_stat_st_blksize=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_member_struct_stat_st_blksize=no
10358 fi
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10365 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10369 _ACEOF
10370
10371
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_ST_BLKSIZE 1
10374 _ACEOF
10375
10376 fi
10377
10378
10379 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10380 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 /* confdefs.h.  */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h.  */
10391 $ac_includes_default
10392 int
10393 main ()
10394 {
10395 static struct stat ac_aggr;
10396 if (ac_aggr.st_blocks)
10397 return 0;
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404   (eval $ac_compile) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); } &&
10408          { ac_try='test -s conftest.$ac_objext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_member_struct_stat_st_blocks=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 int
10428 main ()
10429 {
10430 static struct stat ac_aggr;
10431 if (sizeof ac_aggr.st_blocks)
10432 return 0;
10433   ;
10434   return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439   (eval $ac_compile) 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -s conftest.$ac_objext'
10444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445   (eval $ac_try) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; }; then
10449   ac_cv_member_struct_stat_st_blocks=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_member_struct_stat_st_blocks=no
10455 fi
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10457 fi
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10459 fi
10460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10466 _ACEOF
10467
10468
10469 cat >>confdefs.h <<\_ACEOF
10470 #define HAVE_ST_BLOCKS 1
10471 _ACEOF
10472
10473 else
10474   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10475 fi
10476
10477
10478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10480 if test "${ac_cv_struct_tm+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 /* confdefs.h.  */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h.  */
10490 #include <sys/types.h>
10491 #include <time.h>
10492
10493 int
10494 main ()
10495 {
10496 struct tm *tp; tp->tm_sec;
10497   ;
10498   return 0;
10499 }
10500 _ACEOF
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503   (eval $ac_compile) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_struct_tm=time.h
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518 ac_cv_struct_tm=sys/time.h
10519 fi
10520 rm -f conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10524 if test $ac_cv_struct_tm = sys/time.h; then
10525
10526 cat >>confdefs.h <<\_ACEOF
10527 #define TM_IN_SYS_TIME 1
10528 _ACEOF
10529
10530 fi
10531
10532 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537   cat >conftest.$ac_ext <<_ACEOF
10538 #line $LINENO "configure"
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 #include <sys/types.h>
10545 #include <$ac_cv_struct_tm>
10546
10547
10548 int
10549 main ()
10550 {
10551 static struct tm ac_aggr;
10552 if (ac_aggr.tm_zone)
10553 return 0;
10554   ;
10555   return 0;
10556 }
10557 _ACEOF
10558 rm -f conftest.$ac_objext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560   (eval $ac_compile) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } &&
10564          { ac_try='test -s conftest.$ac_objext'
10565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566   (eval $ac_try) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_cv_member_struct_tm_tm_zone=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <sys/types.h>
10583 #include <$ac_cv_struct_tm>
10584
10585
10586 int
10587 main ()
10588 {
10589 static struct tm ac_aggr;
10590 if (sizeof ac_aggr.tm_zone)
10591 return 0;
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598   (eval $ac_compile) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -s conftest.$ac_objext'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_cv_member_struct_tm_tm_zone=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 ac_cv_member_struct_tm_tm_zone=no
10614 fi
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10616 fi
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10620 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10621 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10622
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_STRUCT_TM_TM_ZONE 1
10625 _ACEOF
10626
10627
10628 fi
10629
10630 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_TM_ZONE 1
10634 _ACEOF
10635
10636 else
10637   echo "$as_me:$LINENO: checking for tzname" >&5
10638 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10639 if test "${ac_cv_var_tzname+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   cat >conftest.$ac_ext <<_ACEOF
10643 #line $LINENO "configure"
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 #include <time.h>
10650 #ifndef tzname /* For SGI.  */
10651 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10652 #endif
10653
10654 int
10655 main ()
10656 {
10657 atoi(*tzname);
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -s conftest$ac_exeext'
10669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670   (eval $ac_try) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   ac_cv_var_tzname=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_var_tzname=no
10680 fi
10681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10684 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10685   if test $ac_cv_var_tzname = yes; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_TZNAME 1
10689 _ACEOF
10690
10691   fi
10692 fi
10693
10694
10695 echo "$as_me:$LINENO: checking for utime.h" >&5
10696 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10697 if test "${ba_cv_header_utime_h+set}" = set; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707
10708 #include <sys/types.h>
10709 #include <utime.h>
10710 int
10711 main ()
10712 {
10713 struct utimbuf foo
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720   (eval $ac_compile) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -s conftest.$ac_objext'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; }; then
10730   ba_cv_header_utime_h=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 ba_cv_header_utime_h=no
10736 fi
10737 rm -f conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10740 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10741 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_UTIME_H 1
10743 _ACEOF
10744
10745
10746 echo "$as_me:$LINENO: checking for socklen_t" >&5
10747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10748 if test "${ba_cv_header_socklen_t+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 #line $LINENO "configure"
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758
10759 #include <sys/types.h>
10760 #include <sys/socket.h>
10761 int
10762 main ()
10763 {
10764 socklen_t x
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771   (eval $ac_compile) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -s conftest.$ac_objext'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; }; then
10781   ba_cv_header_socklen_t=yes
10782 else
10783   echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ba_cv_header_socklen_t=no
10787 fi
10788 rm -f conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10791 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10792 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_SOCKLEN_T 1
10794 _ACEOF
10795
10796
10797 echo "$as_me:$LINENO: checking for bigendian" >&5
10798 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10799 if test "${ba_cv_bigendian+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   if test "$cross_compiling" = yes; then
10803   ba_cv_bigendian=no
10804 else
10805   cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10813 _ACEOF
10814 rm -f conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ba_cv_bigendian=yes
10826 else
10827   echo "$as_me: program exited with status $ac_status" >&5
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ( exit $ac_status )
10832 ba_cv_bigendian=no
10833 fi
10834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 fi
10837 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10838 echo "${ECHO_T}$ba_cv_bigendian" >&6
10839 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_BIGENDIAN 1
10841 _ACEOF
10842
10843
10844
10845 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10846 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10847 if test "${ac_cv_c_const+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857
10858 int
10859 main ()
10860 {
10861 /* FIXME: Include the comments suggested by Paul. */
10862 #ifndef __cplusplus
10863   /* Ultrix mips cc rejects this.  */
10864   typedef int charset[2];
10865   const charset x;
10866   /* SunOS 4.1.1 cc rejects this.  */
10867   char const *const *ccp;
10868   char **p;
10869   /* NEC SVR4.0.2 mips cc rejects this.  */
10870   struct point {int x, y;};
10871   static struct point const zero = {0,0};
10872   /* AIX XL C 1.02.0.0 rejects this.
10873      It does not let you subtract one const X* pointer from another in
10874      an arm of an if-expression whose if-part is not a constant
10875      expression */
10876   const char *g = "string";
10877   ccp = &g + (g ? g-g : 0);
10878   /* HPUX 7.0 cc rejects these. */
10879   ++ccp;
10880   p = (char**) ccp;
10881   ccp = (char const *const *) p;
10882   { /* SCO 3.2v4 cc rejects this.  */
10883     char *t;
10884     char const *s = 0 ? (char *) 0 : (char const *) 0;
10885
10886     *t++ = 0;
10887   }
10888   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10889     int x[] = {25, 17};
10890     const int *foo = &x[0];
10891     ++foo;
10892   }
10893   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10894     typedef const int *iptr;
10895     iptr p = 0;
10896     ++p;
10897   }
10898   { /* AIX XL C 1.02.0.0 rejects this saying
10899        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10900     struct s { int j; const int *ap[3]; };
10901     struct s *b; b->j = 5;
10902   }
10903   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10904     const int foo = 10;
10905   }
10906 #endif
10907
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914   (eval $ac_compile) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } &&
10918          { ac_try='test -s conftest.$ac_objext'
10919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920   (eval $ac_try) 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_c_const=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ac_cv_c_const=no
10930 fi
10931 rm -f conftest.$ac_objext conftest.$ac_ext
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10934 echo "${ECHO_T}$ac_cv_c_const" >&6
10935 if test $ac_cv_c_const = no; then
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define const
10939 _ACEOF
10940
10941 fi
10942
10943
10944
10945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10947 fstype=no
10948 # The order of these tests is important.
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #include <sys/statvfs.h>
10957 #include <sys/fstyp.h>
10958 _ACEOF
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10961   ac_status=$?
10962   grep -v '^ *+' conftest.er1 >conftest.err
10963   rm -f conftest.er1
10964   cat conftest.err >&5
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); } >/dev/null; then
10967   if test -s conftest.err; then
10968     ac_cpp_err=$ac_c_preproc_warn_flag
10969   else
10970     ac_cpp_err=
10971   fi
10972 else
10973   ac_cpp_err=yes
10974 fi
10975 if test -z "$ac_cpp_err"; then
10976   cat >>confdefs.h <<\_ACEOF
10977 #define FSTYPE_STATVFS 1
10978 _ACEOF
10979  fstype=SVR4
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984
10985 fi
10986 rm -f conftest.err conftest.$ac_ext
10987 if test $fstype = no; then
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10990 /* confdefs.h.  */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h.  */
10995 #include <sys/statfs.h>
10996 #include <sys/fstyp.h>
10997 _ACEOF
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } >/dev/null; then
11006   if test -s conftest.err; then
11007     ac_cpp_err=$ac_c_preproc_warn_flag
11008   else
11009     ac_cpp_err=
11010   fi
11011 else
11012   ac_cpp_err=yes
11013 fi
11014 if test -z "$ac_cpp_err"; then
11015   cat >>confdefs.h <<\_ACEOF
11016 #define FSTYPE_USG_STATFS 1
11017 _ACEOF
11018  fstype=SVR3
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023
11024 fi
11025 rm -f conftest.err conftest.$ac_ext
11026 fi
11027 if test $fstype = no; then
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035 #include <sys/statfs.h>
11036 #include <sys/vmount.h>
11037 _ACEOF
11038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } >/dev/null; then
11046   if test -s conftest.err; then
11047     ac_cpp_err=$ac_c_preproc_warn_flag
11048   else
11049     ac_cpp_err=
11050   fi
11051 else
11052   ac_cpp_err=yes
11053 fi
11054 if test -z "$ac_cpp_err"; then
11055   cat >>confdefs.h <<\_ACEOF
11056 #define FSTYPE_AIX_STATFS 1
11057 _ACEOF
11058  fstype=AIX
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063
11064 fi
11065 rm -f conftest.err conftest.$ac_ext
11066 fi
11067 if test $fstype = no; then
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <mntent.h>
11076 _ACEOF
11077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } >/dev/null; then
11085   if test -s conftest.err; then
11086     ac_cpp_err=$ac_c_preproc_warn_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_MNTENT 1
11096 _ACEOF
11097  fstype=4.3BSD
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102
11103 fi
11104 rm -f conftest.err conftest.$ac_ext
11105 fi
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <sys/mount.h>
11115
11116 _ACEOF
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118   $EGREP "f_type;" >/dev/null 2>&1; then
11119   cat >>confdefs.h <<\_ACEOF
11120 #define FSTYPE_STATFS 1
11121 _ACEOF
11122  fstype=4.4BSD/OSF1
11123 fi
11124 rm -f conftest*
11125
11126 fi
11127 if test $fstype = no; then
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <sys/mount.h>
11136 #include <sys/fs_types.h>
11137 _ACEOF
11138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } >/dev/null; then
11146   if test -s conftest.err; then
11147     ac_cpp_err=$ac_c_preproc_warn_flag
11148   else
11149     ac_cpp_err=
11150   fi
11151 else
11152   ac_cpp_err=yes
11153 fi
11154 if test -z "$ac_cpp_err"; then
11155   cat >>confdefs.h <<\_ACEOF
11156 #define FSTYPE_GETMNT 1
11157 _ACEOF
11158  fstype=Ultrix
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163
11164 fi
11165 rm -f conftest.err conftest.$ac_ext
11166 fi
11167 echo "$as_me:$LINENO: result: $fstype" >&5
11168 echo "${ECHO_T}$fstype" >&6
11169
11170 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11171 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11172 if test "${ac_cv_type_signal+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <sys/types.h>
11183 #include <signal.h>
11184 #ifdef signal
11185 # undef signal
11186 #endif
11187 #ifdef __cplusplus
11188 extern "C" void (*signal (int, void (*)(int)))(int);
11189 #else
11190 void (*signal ()) ();
11191 #endif
11192
11193 int
11194 main ()
11195 {
11196 int i;
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203   (eval $ac_compile) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } &&
11207          { ac_try='test -s conftest.$ac_objext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   ac_cv_type_signal=void
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_cv_type_signal=int
11219 fi
11220 rm -f conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11223 echo "${ECHO_T}$ac_cv_type_signal" >&6
11224
11225 cat >>confdefs.h <<_ACEOF
11226 #define RETSIGTYPE $ac_cv_type_signal
11227 _ACEOF
11228
11229
11230
11231 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11232 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11233 if test "${bash_cv_signal_vintage+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 #include <signal.h>
11245 int
11246 main ()
11247 {
11248
11249     sigset_t ss;
11250     struct sigaction sa;
11251     sigemptyset(&ss); sigsuspend(&ss);
11252     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11253     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261   (eval $ac_link) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   bash_cv_signal_vintage=posix
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276
11277     cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <signal.h>
11285 int
11286 main ()
11287 {
11288
11289         int mask = sigmask(SIGINT);
11290         sigsetmask(mask); sigblock(mask); sigpause(mask);
11291
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298   (eval $ac_link) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -s conftest$ac_exeext'
11303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304   (eval $ac_try) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   bash_cv_signal_vintage=4.2bsd
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313
11314       cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321
11322         #include <signal.h>
11323         RETSIGTYPE foo() { }
11324 int
11325 main ()
11326 {
11327
11328                 int mask = sigmask(SIGINT);
11329                 sigset(SIGINT, foo); sigrelse(SIGINT);
11330                 sighold(SIGINT); sigpause(SIGINT);
11331
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338   (eval $ac_link) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -s conftest$ac_exeext'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   bash_cv_signal_vintage=svr3
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 bash_cv_signal_vintage=v7
11354
11355 fi
11356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357
11358 fi
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11360
11361 fi
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11363
11364 fi
11365
11366 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11367 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11368 if test "$bash_cv_signal_vintage" = posix; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_POSIX_SIGNALS 1
11371 _ACEOF
11372
11373 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_BSD_SIGNALS 1
11376 _ACEOF
11377
11378 elif test "$bash_cv_signal_vintage" = svr3; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_USG_SIGHOLD 1
11381 _ACEOF
11382
11383 fi
11384
11385 echo "$as_me:$LINENO: checking for mode_t" >&5
11386 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_mode_t+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 int
11399 main ()
11400 {
11401 if ((mode_t *) 0)
11402   return 0;
11403 if (sizeof (mode_t))
11404   return 0;
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411   (eval $ac_compile) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_cv_type_mode_t=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_type_mode_t=no
11427 fi
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11432 if test $ac_cv_type_mode_t = yes; then
11433   :
11434 else
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define mode_t int
11438 _ACEOF
11439
11440 fi
11441
11442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11444 if test "${ac_cv_type_uid_t+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454 #include <sys/types.h>
11455
11456 _ACEOF
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458   $EGREP "uid_t" >/dev/null 2>&1; then
11459   ac_cv_type_uid_t=yes
11460 else
11461   ac_cv_type_uid_t=no
11462 fi
11463 rm -f conftest*
11464
11465 fi
11466 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11468 if test $ac_cv_type_uid_t = no; then
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define uid_t int
11472 _ACEOF
11473
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define gid_t int
11477 _ACEOF
11478
11479 fi
11480
11481 echo "$as_me:$LINENO: checking for size_t" >&5
11482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11483 if test "${ac_cv_type_size_t+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 $ac_includes_default
11494 int
11495 main ()
11496 {
11497 if ((size_t *) 0)
11498   return 0;
11499 if (sizeof (size_t))
11500   return 0;
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507   (eval $ac_compile) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_type_size_t=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_cv_type_size_t=no
11523 fi
11524 rm -f conftest.$ac_objext conftest.$ac_ext
11525 fi
11526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11528 if test $ac_cv_type_size_t = yes; then
11529   :
11530 else
11531
11532 cat >>confdefs.h <<_ACEOF
11533 #define size_t unsigned
11534 _ACEOF
11535
11536 fi
11537
11538 echo "$as_me:$LINENO: checking for pid_t" >&5
11539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11540 if test "${ac_cv_type_pid_t+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 $ac_includes_default
11551 int
11552 main ()
11553 {
11554 if ((pid_t *) 0)
11555   return 0;
11556 if (sizeof (pid_t))
11557   return 0;
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564   (eval $ac_compile) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } &&
11568          { ac_try='test -s conftest.$ac_objext'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   ac_cv_type_pid_t=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 ac_cv_type_pid_t=no
11580 fi
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11582 fi
11583 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11585 if test $ac_cv_type_pid_t = yes; then
11586   :
11587 else
11588
11589 cat >>confdefs.h <<_ACEOF
11590 #define pid_t int
11591 _ACEOF
11592
11593 fi
11594
11595 echo "$as_me:$LINENO: checking for off_t" >&5
11596 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11597 if test "${ac_cv_type_off_t+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 $ac_includes_default
11608 int
11609 main ()
11610 {
11611 if ((off_t *) 0)
11612   return 0;
11613 if (sizeof (off_t))
11614   return 0;
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -s conftest.$ac_objext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_cv_type_off_t=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_cv_type_off_t=no
11637 fi
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11639 fi
11640 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11641 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11642 if test $ac_cv_type_off_t = yes; then
11643   :
11644 else
11645
11646 cat >>confdefs.h <<_ACEOF
11647 #define off_t long
11648 _ACEOF
11649
11650 fi
11651
11652 echo "$as_me:$LINENO: checking for ino_t" >&5
11653 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11654 if test "${ac_cv_type_ino_t+set}" = set; then
11655   echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657   cat >conftest.$ac_ext <<_ACEOF
11658 #line $LINENO "configure"
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 $ac_includes_default
11665 int
11666 main ()
11667 {
11668 if ((ino_t *) 0)
11669   return 0;
11670 if (sizeof (ino_t))
11671   return 0;
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678   (eval $ac_compile) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest.$ac_objext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   ac_cv_type_ino_t=yes
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_cv_type_ino_t=no
11694 fi
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11698 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11699 if test $ac_cv_type_ino_t = yes; then
11700   :
11701 else
11702
11703 cat >>confdefs.h <<_ACEOF
11704 #define ino_t unsigned long
11705 _ACEOF
11706
11707 fi
11708
11709 echo "$as_me:$LINENO: checking for dev_t" >&5
11710 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11711 if test "${ac_cv_type_dev_t+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 $ac_includes_default
11722 int
11723 main ()
11724 {
11725 if ((dev_t *) 0)
11726   return 0;
11727 if (sizeof (dev_t))
11728   return 0;
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735   (eval $ac_compile) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -s conftest.$ac_objext'
11740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741   (eval $ac_try) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; }; then
11745   ac_cv_type_dev_t=yes
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_cv_type_dev_t=no
11751 fi
11752 rm -f conftest.$ac_objext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11756 if test $ac_cv_type_dev_t = yes; then
11757   :
11758 else
11759
11760 cat >>confdefs.h <<_ACEOF
11761 #define dev_t unsigned long
11762 _ACEOF
11763
11764 fi
11765
11766 echo "$as_me:$LINENO: checking for daddr_t" >&5
11767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11768 if test "${ac_cv_type_daddr_t+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 $ac_includes_default
11779 int
11780 main ()
11781 {
11782 if ((daddr_t *) 0)
11783   return 0;
11784 if (sizeof (daddr_t))
11785   return 0;
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792   (eval $ac_compile) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest.$ac_objext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_type_daddr_t=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_type_daddr_t=no
11808 fi
11809 rm -f conftest.$ac_objext conftest.$ac_ext
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11813 if test $ac_cv_type_daddr_t = yes; then
11814   :
11815 else
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define daddr_t long
11819 _ACEOF
11820
11821 fi
11822
11823 echo "$as_me:$LINENO: checking for major_t" >&5
11824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11825 if test "${ac_cv_type_major_t+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 $ac_includes_default
11836 int
11837 main ()
11838 {
11839 if ((major_t *) 0)
11840   return 0;
11841 if (sizeof (major_t))
11842   return 0;
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849   (eval $ac_compile) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -s conftest.$ac_objext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   ac_cv_type_major_t=yes
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_cv_type_major_t=no
11865 fi
11866 rm -f conftest.$ac_objext conftest.$ac_ext
11867 fi
11868 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11869 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11870 if test $ac_cv_type_major_t = yes; then
11871   :
11872 else
11873
11874 cat >>confdefs.h <<_ACEOF
11875 #define major_t int
11876 _ACEOF
11877
11878 fi
11879
11880 echo "$as_me:$LINENO: checking for minor_t" >&5
11881 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11882 if test "${ac_cv_type_minor_t+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 $ac_includes_default
11893 int
11894 main ()
11895 {
11896 if ((minor_t *) 0)
11897   return 0;
11898 if (sizeof (minor_t))
11899   return 0;
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906   (eval $ac_compile) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -s conftest.$ac_objext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_cv_type_minor_t=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 ac_cv_type_minor_t=no
11922 fi
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11926 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11927 if test $ac_cv_type_minor_t = yes; then
11928   :
11929 else
11930
11931 cat >>confdefs.h <<_ACEOF
11932 #define minor_t int
11933 _ACEOF
11934
11935 fi
11936
11937 echo "$as_me:$LINENO: checking for ssize_t" >&5
11938 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11939 if test "${ac_cv_type_ssize_t+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 $ac_includes_default
11950 int
11951 main ()
11952 {
11953 if ((ssize_t *) 0)
11954   return 0;
11955 if (sizeof (ssize_t))
11956   return 0;
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963   (eval $ac_compile) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   ac_cv_type_ssize_t=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_cv_type_ssize_t=no
11979 fi
11980 rm -f conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11983 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11984 if test $ac_cv_type_ssize_t = yes; then
11985   :
11986 else
11987
11988 cat >>confdefs.h <<_ACEOF
11989 #define ssize_t int
11990 _ACEOF
11991
11992 fi
11993
11994 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11995 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999   cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006 $ac_includes_default
12007 int
12008 main ()
12009 {
12010 static struct stat ac_aggr;
12011 if (ac_aggr.st_blocks)
12012 return 0;
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019   (eval $ac_compile) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_member_struct_stat_st_blocks=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 $ac_includes_default
12042 int
12043 main ()
12044 {
12045 static struct stat ac_aggr;
12046 if (sizeof ac_aggr.st_blocks)
12047 return 0;
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054   (eval $ac_compile) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -s conftest.$ac_objext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_member_struct_stat_st_blocks=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_member_struct_stat_st_blocks=no
12070 fi
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12074 fi
12075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12077 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12081 _ACEOF
12082
12083
12084 cat >>confdefs.h <<\_ACEOF
12085 #define HAVE_ST_BLOCKS 1
12086 _ACEOF
12087
12088 else
12089   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12090 fi
12091
12092
12093
12094 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12095 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12096 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106 $ac_includes_default
12107 int
12108 main ()
12109 {
12110 static struct stat ac_aggr;
12111 if (ac_aggr.st_rdev)
12112 return 0;
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119   (eval $ac_compile) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest.$ac_objext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_cv_member_struct_stat_st_rdev=yes
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 $ac_includes_default
12142 int
12143 main ()
12144 {
12145 static struct stat ac_aggr;
12146 if (sizeof ac_aggr.st_rdev)
12147 return 0;
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154   (eval $ac_compile) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } &&
12158          { ac_try='test -s conftest.$ac_objext'
12159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160   (eval $ac_try) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; }; then
12164   ac_cv_member_struct_stat_st_rdev=yes
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 ac_cv_member_struct_stat_st_rdev=no
12170 fi
12171 rm -f conftest.$ac_objext conftest.$ac_ext
12172 fi
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12177 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12178
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_STRUCT_STAT_ST_RDEV 1
12181 _ACEOF
12182
12183
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_ST_RDEV 1
12186 _ACEOF
12187
12188 fi
12189
12190
12191 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12192 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12193 if test "${ac_cv_struct_tm+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 #include <sys/types.h>
12204 #include <time.h>
12205
12206 int
12207 main ()
12208 {
12209 struct tm *tp; tp->tm_sec;
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216   (eval $ac_compile) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_cv_struct_tm=time.h
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_struct_tm=sys/time.h
12232 fi
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12236 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12237 if test $ac_cv_struct_tm = sys/time.h; then
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define TM_IN_SYS_TIME 1
12241 _ACEOF
12242
12243 fi
12244
12245 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12247 if test "${ac_cv_c_const+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 int
12259 main ()
12260 {
12261 /* FIXME: Include the comments suggested by Paul. */
12262 #ifndef __cplusplus
12263   /* Ultrix mips cc rejects this.  */
12264   typedef int charset[2];
12265   const charset x;
12266   /* SunOS 4.1.1 cc rejects this.  */
12267   char const *const *ccp;
12268   char **p;
12269   /* NEC SVR4.0.2 mips cc rejects this.  */
12270   struct point {int x, y;};
12271   static struct point const zero = {0,0};
12272   /* AIX XL C 1.02.0.0 rejects this.
12273      It does not let you subtract one const X* pointer from another in
12274      an arm of an if-expression whose if-part is not a constant
12275      expression */
12276   const char *g = "string";
12277   ccp = &g + (g ? g-g : 0);
12278   /* HPUX 7.0 cc rejects these. */
12279   ++ccp;
12280   p = (char**) ccp;
12281   ccp = (char const *const *) p;
12282   { /* SCO 3.2v4 cc rejects this.  */
12283     char *t;
12284     char const *s = 0 ? (char *) 0 : (char const *) 0;
12285
12286     *t++ = 0;
12287   }
12288   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12289     int x[] = {25, 17};
12290     const int *foo = &x[0];
12291     ++foo;
12292   }
12293   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12294     typedef const int *iptr;
12295     iptr p = 0;
12296     ++p;
12297   }
12298   { /* AIX XL C 1.02.0.0 rejects this saying
12299        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12300     struct s { int j; const int *ap[3]; };
12301     struct s *b; b->j = 5;
12302   }
12303   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12304     const int foo = 10;
12305   }
12306 #endif
12307
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314   (eval $ac_compile) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -s conftest.$ac_objext'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; }; then
12324   ac_cv_c_const=yes
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_cv_c_const=no
12330 fi
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12332 fi
12333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12334 echo "${ECHO_T}$ac_cv_c_const" >&6
12335 if test $ac_cv_c_const = no; then
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define const
12339 _ACEOF
12340
12341 fi
12342
12343
12344
12345 echo "$as_me:$LINENO: checking for char" >&5
12346 echo $ECHO_N "checking for char... $ECHO_C" >&6
12347 if test "${ac_cv_type_char+set}" = set; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357 $ac_includes_default
12358 int
12359 main ()
12360 {
12361 if ((char *) 0)
12362   return 0;
12363 if (sizeof (char))
12364   return 0;
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371   (eval $ac_compile) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -s conftest.$ac_objext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_type_char=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386 ac_cv_type_char=no
12387 fi
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12391 echo "${ECHO_T}$ac_cv_type_char" >&6
12392
12393 echo "$as_me:$LINENO: checking size of char" >&5
12394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12395 if test "${ac_cv_sizeof_char+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   if test "$ac_cv_type_char" = yes; then
12399   # The cast to unsigned long works around a bug in the HP C Compiler
12400   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12401   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12402   # This bug is HP SR number 8606223364.
12403   if test "$cross_compiling" = yes; then
12404   # Depending upon the size, compute the lo and hi bounds.
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 $ac_includes_default
12413 int
12414 main ()
12415 {
12416 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12417 test_array [0] = 0
12418
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425   (eval $ac_compile) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -s conftest.$ac_objext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_lo=0 ac_mid=0
12436   while :; do
12437     cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 $ac_includes_default
12445 int
12446 main ()
12447 {
12448 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12449 test_array [0] = 0
12450
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457   (eval $ac_compile) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } &&
12461          { ac_try='test -s conftest.$ac_objext'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_hi=$ac_mid; break
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_lo=`expr $ac_mid + 1`
12473                     if test $ac_lo -le $ac_mid; then
12474                       ac_lo= ac_hi=
12475                       break
12476                     fi
12477                     ac_mid=`expr 2 '*' $ac_mid + 1`
12478 fi
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12480   done
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 /* confdefs.h.  */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h.  */
12492 $ac_includes_default
12493 int
12494 main ()
12495 {
12496 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12497 test_array [0] = 0
12498
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -s conftest.$ac_objext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_hi=-1 ac_mid=-1
12516   while :; do
12517     cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524 $ac_includes_default
12525 int
12526 main ()
12527 {
12528 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12529 test_array [0] = 0
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } &&
12541          { ac_try='test -s conftest.$ac_objext'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   ac_lo=$ac_mid; break
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552 ac_hi=`expr '(' $ac_mid ')' - 1`
12553                        if test $ac_mid -le $ac_hi; then
12554                          ac_lo= ac_hi=
12555                          break
12556                        fi
12557                        ac_mid=`expr 2 '*' $ac_mid`
12558 fi
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12560   done
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_lo= ac_hi=
12566 fi
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 # Binary search between lo and hi bounds.
12571 while test "x$ac_lo" != "x$ac_hi"; do
12572   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12573   cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580 $ac_includes_default
12581 int
12582 main ()
12583 {
12584 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12585 test_array [0] = 0
12586
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593   (eval $ac_compile) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_hi=$ac_mid
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 ac_lo=`expr '(' $ac_mid ')' + 1`
12609 fi
12610 rm -f conftest.$ac_objext conftest.$ac_ext
12611 done
12612 case $ac_lo in
12613 ?*) ac_cv_sizeof_char=$ac_lo;;
12614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12615 See \`config.log' for more details." >&5
12616 echo "$as_me: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&2;}
12618    { (exit 1); exit 1; }; } ;;
12619 esac
12620 else
12621   if test "$cross_compiling" = yes; then
12622   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&5
12624 echo "$as_me: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&2;}
12626    { (exit 1); exit 1; }; }
12627 else
12628   cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 $ac_includes_default
12636 long longval () { return (long) (sizeof (char)); }
12637 unsigned long ulongval () { return (long) (sizeof (char)); }
12638 #include <stdio.h>
12639 #include <stdlib.h>
12640 int
12641 main ()
12642 {
12643
12644   FILE *f = fopen ("conftest.val", "w");
12645   if (! f)
12646     exit (1);
12647   if (((long) (sizeof (char))) < 0)
12648     {
12649       long i = longval ();
12650       if (i != ((long) (sizeof (char))))
12651         exit (1);
12652       fprintf (f, "%ld\n", i);
12653     }
12654   else
12655     {
12656       unsigned long i = ulongval ();
12657       if (i != ((long) (sizeof (char))))
12658         exit (1);
12659       fprintf (f, "%lu\n", i);
12660     }
12661   exit (ferror (f) || fclose (f) != 0);
12662
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669   (eval $ac_link) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   ac_cv_sizeof_char=`cat conftest.val`
12679 else
12680   echo "$as_me: program exited with status $ac_status" >&5
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ( exit $ac_status )
12685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12686 See \`config.log' for more details." >&5
12687 echo "$as_me: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&2;}
12689    { (exit 1); exit 1; }; }
12690 fi
12691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 fi
12694 rm -f conftest.val
12695 else
12696   ac_cv_sizeof_char=0
12697 fi
12698 fi
12699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12700 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12701 cat >>confdefs.h <<_ACEOF
12702 #define SIZEOF_CHAR $ac_cv_sizeof_char
12703 _ACEOF
12704
12705
12706 echo "$as_me:$LINENO: checking for short int" >&5
12707 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12708 if test "${ac_cv_type_short_int+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
12720 main ()
12721 {
12722 if ((short int *) 0)
12723   return 0;
12724 if (sizeof (short int))
12725   return 0;
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732   (eval $ac_compile) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -s conftest.$ac_objext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   ac_cv_type_short_int=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 ac_cv_type_short_int=no
12748 fi
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12752 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12753
12754 echo "$as_me:$LINENO: checking size of short int" >&5
12755 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12756 if test "${ac_cv_sizeof_short_int+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   if test "$ac_cv_type_short_int" = yes; then
12760   # The cast to unsigned long works around a bug in the HP C Compiler
12761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12763   # This bug is HP SR number 8606223364.
12764   if test "$cross_compiling" = yes; then
12765   # Depending upon the size, compute the lo and hi bounds.
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 $ac_includes_default
12774 int
12775 main ()
12776 {
12777 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12778 test_array [0] = 0
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786   (eval $ac_compile) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -s conftest.$ac_objext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_lo=0 ac_mid=0
12797   while :; do
12798     cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 $ac_includes_default
12806 int
12807 main ()
12808 {
12809 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12810 test_array [0] = 0
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818   (eval $ac_compile) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); } &&
12822          { ac_try='test -s conftest.$ac_objext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_hi=$ac_mid; break
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_lo=`expr $ac_mid + 1`
12834                     if test $ac_lo -le $ac_mid; then
12835                       ac_lo= ac_hi=
12836                       break
12837                     fi
12838                     ac_mid=`expr 2 '*' $ac_mid + 1`
12839 fi
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841   done
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853 $ac_includes_default
12854 int
12855 main ()
12856 {
12857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12858 test_array [0] = 0
12859
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866   (eval $ac_compile) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } &&
12870          { ac_try='test -s conftest.$ac_objext'
12871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872   (eval $ac_try) 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   ac_hi=-1 ac_mid=-1
12877   while :; do
12878     cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885 $ac_includes_default
12886 int
12887 main ()
12888 {
12889 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12890 test_array [0] = 0
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 rm -f conftest.$ac_objext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898   (eval $ac_compile) 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } &&
12902          { ac_try='test -s conftest.$ac_objext'
12903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904   (eval $ac_try) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; }; then
12908   ac_lo=$ac_mid; break
12909 else
12910   echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913 ac_hi=`expr '(' $ac_mid ')' - 1`
12914                        if test $ac_mid -le $ac_hi; then
12915                          ac_lo= ac_hi=
12916                          break
12917                        fi
12918                        ac_mid=`expr 2 '*' $ac_mid`
12919 fi
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12921   done
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_lo= ac_hi=
12927 fi
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12931 # Binary search between lo and hi bounds.
12932 while test "x$ac_lo" != "x$ac_hi"; do
12933   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12934   cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941 $ac_includes_default
12942 int
12943 main ()
12944 {
12945 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12946 test_array [0] = 0
12947
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954   (eval $ac_compile) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -s conftest.$ac_objext'
12959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960   (eval $ac_try) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964   ac_hi=$ac_mid
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 ac_lo=`expr '(' $ac_mid ')' + 1`
12970 fi
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12972 done
12973 case $ac_lo in
12974 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12976 See \`config.log' for more details." >&5
12977 echo "$as_me: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&2;}
12979    { (exit 1); exit 1; }; } ;;
12980 esac
12981 else
12982   if test "$cross_compiling" = yes; then
12983   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&5
12985 echo "$as_me: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&2;}
12987    { (exit 1); exit 1; }; }
12988 else
12989   cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996 $ac_includes_default
12997 long longval () { return (long) (sizeof (short int)); }
12998 unsigned long ulongval () { return (long) (sizeof (short int)); }
12999 #include <stdio.h>
13000 #include <stdlib.h>
13001 int
13002 main ()
13003 {
13004
13005   FILE *f = fopen ("conftest.val", "w");
13006   if (! f)
13007     exit (1);
13008   if (((long) (sizeof (short int))) < 0)
13009     {
13010       long i = longval ();
13011       if (i != ((long) (sizeof (short int))))
13012         exit (1);
13013       fprintf (f, "%ld\n", i);
13014     }
13015   else
13016     {
13017       unsigned long i = ulongval ();
13018       if (i != ((long) (sizeof (short int))))
13019         exit (1);
13020       fprintf (f, "%lu\n", i);
13021     }
13022   exit (ferror (f) || fclose (f) != 0);
13023
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030   (eval $ac_link) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_cv_sizeof_short_int=`cat conftest.val`
13040 else
13041   echo "$as_me: program exited with status $ac_status" >&5
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ( exit $ac_status )
13046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&2;}
13050    { (exit 1); exit 1; }; }
13051 fi
13052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13053 fi
13054 fi
13055 rm -f conftest.val
13056 else
13057   ac_cv_sizeof_short_int=0
13058 fi
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13061 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13062 cat >>confdefs.h <<_ACEOF
13063 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13064 _ACEOF
13065
13066
13067 echo "$as_me:$LINENO: checking for int" >&5
13068 echo $ECHO_N "checking for int... $ECHO_C" >&6
13069 if test "${ac_cv_type_int+set}" = set; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
13081 main ()
13082 {
13083 if ((int *) 0)
13084   return 0;
13085 if (sizeof (int))
13086   return 0;
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093   (eval $ac_compile) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -s conftest.$ac_objext'
13098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099   (eval $ac_try) 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_cv_type_int=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_cv_type_int=no
13109 fi
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13111 fi
13112 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13113 echo "${ECHO_T}$ac_cv_type_int" >&6
13114
13115 echo "$as_me:$LINENO: checking size of int" >&5
13116 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13117 if test "${ac_cv_sizeof_int+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   if test "$ac_cv_type_int" = yes; then
13121   # The cast to unsigned long works around a bug in the HP C Compiler
13122   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13123   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13124   # This bug is HP SR number 8606223364.
13125   if test "$cross_compiling" = yes; then
13126   # Depending upon the size, compute the lo and hi bounds.
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 $ac_includes_default
13135 int
13136 main ()
13137 {
13138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13139 test_array [0] = 0
13140
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147   (eval $ac_compile) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } &&
13151          { ac_try='test -s conftest.$ac_objext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_lo=0 ac_mid=0
13158   while :; do
13159     cat >conftest.$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166 $ac_includes_default
13167 int
13168 main ()
13169 {
13170 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13171 test_array [0] = 0
13172
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } &&
13183          { ac_try='test -s conftest.$ac_objext'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_hi=$ac_mid; break
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_lo=`expr $ac_mid + 1`
13195                     if test $ac_lo -le $ac_mid; then
13196                       ac_lo= ac_hi=
13197                       break
13198                     fi
13199                     ac_mid=`expr 2 '*' $ac_mid + 1`
13200 fi
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202   done
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 $ac_includes_default
13215 int
13216 main ()
13217 {
13218 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13219 test_array [0] = 0
13220
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227   (eval $ac_compile) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -s conftest.$ac_objext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   ac_hi=-1 ac_mid=-1
13238   while :; do
13239     cat >conftest.$ac_ext <<_ACEOF
13240 #line $LINENO "configure"
13241 /* confdefs.h.  */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h.  */
13246 $ac_includes_default
13247 int
13248 main ()
13249 {
13250 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13251 test_array [0] = 0
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259   (eval $ac_compile) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -s conftest.$ac_objext'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_lo=$ac_mid; break
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_hi=`expr '(' $ac_mid ')' - 1`
13275                        if test $ac_mid -le $ac_hi; then
13276                          ac_lo= ac_hi=
13277                          break
13278                        fi
13279                        ac_mid=`expr 2 '*' $ac_mid`
13280 fi
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282   done
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_lo= ac_hi=
13288 fi
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13292 # Binary search between lo and hi bounds.
13293 while test "x$ac_lo" != "x$ac_hi"; do
13294   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13295   cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 int
13304 main ()
13305 {
13306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13307 test_array [0] = 0
13308
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315   (eval $ac_compile) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -s conftest.$ac_objext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_hi=$ac_mid
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_lo=`expr '(' $ac_mid ')' + 1`
13331 fi
13332 rm -f conftest.$ac_objext conftest.$ac_ext
13333 done
13334 case $ac_lo in
13335 ?*) ac_cv_sizeof_int=$ac_lo;;
13336 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13337 See \`config.log' for more details." >&5
13338 echo "$as_me: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&2;}
13340    { (exit 1); exit 1; }; } ;;
13341 esac
13342 else
13343   if test "$cross_compiling" = yes; then
13344   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&5
13346 echo "$as_me: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&2;}
13348    { (exit 1); exit 1; }; }
13349 else
13350   cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358 long longval () { return (long) (sizeof (int)); }
13359 unsigned long ulongval () { return (long) (sizeof (int)); }
13360 #include <stdio.h>
13361 #include <stdlib.h>
13362 int
13363 main ()
13364 {
13365
13366   FILE *f = fopen ("conftest.val", "w");
13367   if (! f)
13368     exit (1);
13369   if (((long) (sizeof (int))) < 0)
13370     {
13371       long i = longval ();
13372       if (i != ((long) (sizeof (int))))
13373         exit (1);
13374       fprintf (f, "%ld\n", i);
13375     }
13376   else
13377     {
13378       unsigned long i = ulongval ();
13379       if (i != ((long) (sizeof (int))))
13380         exit (1);
13381       fprintf (f, "%lu\n", i);
13382     }
13383   exit (ferror (f) || fclose (f) != 0);
13384
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391   (eval $ac_link) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_sizeof_int=`cat conftest.val`
13401 else
13402   echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ( exit $ac_status )
13407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13408 See \`config.log' for more details." >&5
13409 echo "$as_me: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&2;}
13411    { (exit 1); exit 1; }; }
13412 fi
13413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13414 fi
13415 fi
13416 rm -f conftest.val
13417 else
13418   ac_cv_sizeof_int=0
13419 fi
13420 fi
13421 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_INT $ac_cv_sizeof_int
13425 _ACEOF
13426
13427
13428 echo "$as_me:$LINENO: checking for long int" >&5
13429 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13430 if test "${ac_cv_type_long_int+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
13442 main ()
13443 {
13444 if ((long int *) 0)
13445   return 0;
13446 if (sizeof (long int))
13447   return 0;
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13454   (eval $ac_compile) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } &&
13458          { ac_try='test -s conftest.$ac_objext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_type_long_int=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ac_cv_type_long_int=no
13470 fi
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13474 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13475
13476 echo "$as_me:$LINENO: checking size of long int" >&5
13477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13478 if test "${ac_cv_sizeof_long_int+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   if test "$ac_cv_type_long_int" = yes; then
13482   # The cast to unsigned long works around a bug in the HP C Compiler
13483   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485   # This bug is HP SR number 8606223364.
13486   if test "$cross_compiling" = yes; then
13487   # Depending upon the size, compute the lo and hi bounds.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 $ac_includes_default
13496 int
13497 main ()
13498 {
13499 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13500 test_array [0] = 0
13501
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_lo=0 ac_mid=0
13519   while :; do
13520     cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 $ac_includes_default
13528 int
13529 main ()
13530 {
13531 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13532 test_array [0] = 0
13533
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -s conftest.$ac_objext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_hi=$ac_mid; break
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_lo=`expr $ac_mid + 1`
13556                     if test $ac_lo -le $ac_mid; then
13557                       ac_lo= ac_hi=
13558                       break
13559                     fi
13560                     ac_mid=`expr 2 '*' $ac_mid + 1`
13561 fi
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13563   done
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line $LINENO "configure"
13570 /* confdefs.h.  */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h.  */
13575 $ac_includes_default
13576 int
13577 main ()
13578 {
13579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13580 test_array [0] = 0
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588   (eval $ac_compile) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -s conftest.$ac_objext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_hi=-1 ac_mid=-1
13599   while :; do
13600     cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 $ac_includes_default
13608 int
13609 main ()
13610 {
13611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13612 test_array [0] = 0
13613
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620   (eval $ac_compile) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } &&
13624          { ac_try='test -s conftest.$ac_objext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_lo=$ac_mid; break
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636                        if test $ac_mid -le $ac_hi; then
13637                          ac_lo= ac_hi=
13638                          break
13639                        fi
13640                        ac_mid=`expr 2 '*' $ac_mid`
13641 fi
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13643   done
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 ac_lo= ac_hi=
13649 fi
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13651 fi
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13653 # Binary search between lo and hi bounds.
13654 while test "x$ac_lo" != "x$ac_hi"; do
13655   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13656   cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664 int
13665 main ()
13666 {
13667 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13668 test_array [0] = 0
13669
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676   (eval $ac_compile) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_hi=$ac_mid
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_lo=`expr '(' $ac_mid ')' + 1`
13692 fi
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13694 done
13695 case $ac_lo in
13696 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&2;}
13701    { (exit 1); exit 1; }; } ;;
13702 esac
13703 else
13704   if test "$cross_compiling" = yes; then
13705   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&2;}
13709    { (exit 1); exit 1; }; }
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 $ac_includes_default
13719 long longval () { return (long) (sizeof (long int)); }
13720 unsigned long ulongval () { return (long) (sizeof (long int)); }
13721 #include <stdio.h>
13722 #include <stdlib.h>
13723 int
13724 main ()
13725 {
13726
13727   FILE *f = fopen ("conftest.val", "w");
13728   if (! f)
13729     exit (1);
13730   if (((long) (sizeof (long int))) < 0)
13731     {
13732       long i = longval ();
13733       if (i != ((long) (sizeof (long int))))
13734         exit (1);
13735       fprintf (f, "%ld\n", i);
13736     }
13737   else
13738     {
13739       unsigned long i = ulongval ();
13740       if (i != ((long) (sizeof (long int))))
13741         exit (1);
13742       fprintf (f, "%lu\n", i);
13743     }
13744   exit (ferror (f) || fclose (f) != 0);
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752   (eval $ac_link) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_cv_sizeof_long_int=`cat conftest.val`
13762 else
13763   echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 ( exit $ac_status )
13768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13769 See \`config.log' for more details." >&5
13770 echo "$as_me: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&2;}
13772    { (exit 1); exit 1; }; }
13773 fi
13774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 fi
13777 rm -f conftest.val
13778 else
13779   ac_cv_sizeof_long_int=0
13780 fi
13781 fi
13782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13783 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13784 cat >>confdefs.h <<_ACEOF
13785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13786 _ACEOF
13787
13788
13789 echo "$as_me:$LINENO: checking for long long int" >&5
13790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13791 if test "${ac_cv_type_long_long_int+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
13803 main ()
13804 {
13805 if ((long long int *) 0)
13806   return 0;
13807 if (sizeof (long long int))
13808   return 0;
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815   (eval $ac_compile) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_cv_type_long_long_int=yes
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_cv_type_long_long_int=no
13831 fi
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13833 fi
13834 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13835 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13836
13837 echo "$as_me:$LINENO: checking size of long long int" >&5
13838 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13839 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   if test "$ac_cv_type_long_long_int" = yes; then
13843   # The cast to unsigned long works around a bug in the HP C Compiler
13844   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846   # This bug is HP SR number 8606223364.
13847   if test "$cross_compiling" = yes; then
13848   # Depending upon the size, compute the lo and hi bounds.
13849 cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 $ac_includes_default
13857 int
13858 main ()
13859 {
13860 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13861 test_array [0] = 0
13862
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext
13868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13869   (eval $ac_compile) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); } &&
13873          { ac_try='test -s conftest.$ac_objext'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; }; then
13879   ac_lo=0 ac_mid=0
13880   while :; do
13881     cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 /* confdefs.h.  */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h.  */
13888 $ac_includes_default
13889 int
13890 main ()
13891 {
13892 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13893 test_array [0] = 0
13894
13895   ;
13896   return 0;
13897 }
13898 _ACEOF
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901   (eval $ac_compile) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -s conftest.$ac_objext'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_hi=$ac_mid; break
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_lo=`expr $ac_mid + 1`
13917                     if test $ac_lo -le $ac_mid; then
13918                       ac_lo= ac_hi=
13919                       break
13920                     fi
13921                     ac_mid=`expr 2 '*' $ac_mid + 1`
13922 fi
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13924   done
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 cat >conftest.$ac_ext <<_ACEOF
13930 #line $LINENO "configure"
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936 $ac_includes_default
13937 int
13938 main ()
13939 {
13940 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13941 test_array [0] = 0
13942
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949   (eval $ac_compile) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_hi=-1 ac_mid=-1
13960   while :; do
13961     cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 $ac_includes_default
13969 int
13970 main ()
13971 {
13972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13973 test_array [0] = 0
13974
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981   (eval $ac_compile) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } &&
13985          { ac_try='test -s conftest.$ac_objext'
13986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987   (eval $ac_try) 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); }; }; then
13991   ac_lo=$ac_mid; break
13992 else
13993   echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_hi=`expr '(' $ac_mid ')' - 1`
13997                        if test $ac_mid -le $ac_hi; then
13998                          ac_lo= ac_hi=
13999                          break
14000                        fi
14001                        ac_mid=`expr 2 '*' $ac_mid`
14002 fi
14003 rm -f conftest.$ac_objext conftest.$ac_ext
14004   done
14005 else
14006   echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_lo= ac_hi=
14010 fi
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 # Binary search between lo and hi bounds.
14015 while test "x$ac_lo" != "x$ac_hi"; do
14016   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14017   cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 $ac_includes_default
14025 int
14026 main ()
14027 {
14028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14029 test_array [0] = 0
14030
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -s conftest.$ac_objext'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_hi=$ac_mid
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_lo=`expr '(' $ac_mid ')' + 1`
14053 fi
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14055 done
14056 case $ac_lo in
14057 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14059 See \`config.log' for more details." >&5
14060 echo "$as_me: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&2;}
14062    { (exit 1); exit 1; }; } ;;
14063 esac
14064 else
14065   if test "$cross_compiling" = yes; then
14066   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&5
14068 echo "$as_me: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&2;}
14070    { (exit 1); exit 1; }; }
14071 else
14072   cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079 $ac_includes_default
14080 long longval () { return (long) (sizeof (long long int)); }
14081 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14082 #include <stdio.h>
14083 #include <stdlib.h>
14084 int
14085 main ()
14086 {
14087
14088   FILE *f = fopen ("conftest.val", "w");
14089   if (! f)
14090     exit (1);
14091   if (((long) (sizeof (long long int))) < 0)
14092     {
14093       long i = longval ();
14094       if (i != ((long) (sizeof (long long int))))
14095         exit (1);
14096       fprintf (f, "%ld\n", i);
14097     }
14098   else
14099     {
14100       unsigned long i = ulongval ();
14101       if (i != ((long) (sizeof (long long int))))
14102         exit (1);
14103       fprintf (f, "%lu\n", i);
14104     }
14105   exit (ferror (f) || fclose (f) != 0);
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113   (eval $ac_link) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_cv_sizeof_long_long_int=`cat conftest.val`
14123 else
14124   echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ( exit $ac_status )
14129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14130 See \`config.log' for more details." >&5
14131 echo "$as_me: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&2;}
14133    { (exit 1); exit 1; }; }
14134 fi
14135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 fi
14138 rm -f conftest.val
14139 else
14140   ac_cv_sizeof_long_long_int=0
14141 fi
14142 fi
14143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14144 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14147 _ACEOF
14148
14149
14150 echo "$as_me:$LINENO: checking for int *" >&5
14151 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14152 if test "${ac_cv_type_int_p+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
14164 main ()
14165 {
14166 if ((int * *) 0)
14167   return 0;
14168 if (sizeof (int *))
14169   return 0;
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -s conftest.$ac_objext'
14181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182   (eval $ac_try) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; }; then
14186   ac_cv_type_int_p=yes
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ac_cv_type_int_p=no
14192 fi
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14194 fi
14195 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14196 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14197
14198 echo "$as_me:$LINENO: checking size of int *" >&5
14199 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14200 if test "${ac_cv_sizeof_int_p+set}" = set; then
14201   echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203   if test "$ac_cv_type_int_p" = yes; then
14204   # The cast to unsigned long works around a bug in the HP C Compiler
14205   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14206   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14207   # This bug is HP SR number 8606223364.
14208   if test "$cross_compiling" = yes; then
14209   # Depending upon the size, compute the lo and hi bounds.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line $LINENO "configure"
14212 /* confdefs.h.  */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h.  */
14217 $ac_includes_default
14218 int
14219 main ()
14220 {
14221 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14222 test_array [0] = 0
14223
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230   (eval $ac_compile) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); } &&
14234          { ac_try='test -s conftest.$ac_objext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_lo=0 ac_mid=0
14241   while :; do
14242     cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249 $ac_includes_default
14250 int
14251 main ()
14252 {
14253 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14254 test_array [0] = 0
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262   (eval $ac_compile) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   ac_hi=$ac_mid; break
14273 else
14274   echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_lo=`expr $ac_mid + 1`
14278                     if test $ac_lo -le $ac_mid; then
14279                       ac_lo= ac_hi=
14280                       break
14281                     fi
14282                     ac_mid=`expr 2 '*' $ac_mid + 1`
14283 fi
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14285   done
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 cat >conftest.$ac_ext <<_ACEOF
14291 #line $LINENO "configure"
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 $ac_includes_default
14298 int
14299 main ()
14300 {
14301 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14302 test_array [0] = 0
14303
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14310   (eval $ac_compile) 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -s conftest.$ac_objext'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; }; then
14320   ac_hi=-1 ac_mid=-1
14321   while :; do
14322     cat >conftest.$ac_ext <<_ACEOF
14323 #line $LINENO "configure"
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 $ac_includes_default
14330 int
14331 main ()
14332 {
14333 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14334 test_array [0] = 0
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342   (eval $ac_compile) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -s conftest.$ac_objext'
14347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348   (eval $ac_try) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; }; then
14352   ac_lo=$ac_mid; break
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 ac_hi=`expr '(' $ac_mid ')' - 1`
14358                        if test $ac_mid -le $ac_hi; then
14359                          ac_lo= ac_hi=
14360                          break
14361                        fi
14362                        ac_mid=`expr 2 '*' $ac_mid`
14363 fi
14364 rm -f conftest.$ac_objext conftest.$ac_ext
14365   done
14366 else
14367   echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 ac_lo= ac_hi=
14371 fi
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14375 # Binary search between lo and hi bounds.
14376 while test "x$ac_lo" != "x$ac_hi"; do
14377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14378   cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 $ac_includes_default
14386 int
14387 main ()
14388 {
14389 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14390 test_array [0] = 0
14391
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398   (eval $ac_compile) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -s conftest.$ac_objext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_hi=$ac_mid
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_lo=`expr '(' $ac_mid ')' + 1`
14414 fi
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14416 done
14417 case $ac_lo in
14418 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14420 See \`config.log' for more details." >&5
14421 echo "$as_me: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&2;}
14423    { (exit 1); exit 1; }; } ;;
14424 esac
14425 else
14426   if test "$cross_compiling" = yes; then
14427   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14428 See \`config.log' for more details." >&5
14429 echo "$as_me: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&2;}
14431    { (exit 1); exit 1; }; }
14432 else
14433   cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 $ac_includes_default
14441 long longval () { return (long) (sizeof (int *)); }
14442 unsigned long ulongval () { return (long) (sizeof (int *)); }
14443 #include <stdio.h>
14444 #include <stdlib.h>
14445 int
14446 main ()
14447 {
14448
14449   FILE *f = fopen ("conftest.val", "w");
14450   if (! f)
14451     exit (1);
14452   if (((long) (sizeof (int *))) < 0)
14453     {
14454       long i = longval ();
14455       if (i != ((long) (sizeof (int *))))
14456         exit (1);
14457       fprintf (f, "%ld\n", i);
14458     }
14459   else
14460     {
14461       unsigned long i = ulongval ();
14462       if (i != ((long) (sizeof (int *))))
14463         exit (1);
14464       fprintf (f, "%lu\n", i);
14465     }
14466   exit (ferror (f) || fclose (f) != 0);
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474   (eval $ac_link) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   ac_cv_sizeof_int_p=`cat conftest.val`
14484 else
14485   echo "$as_me: program exited with status $ac_status" >&5
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 ( exit $ac_status )
14490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14491 See \`config.log' for more details." >&5
14492 echo "$as_me: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&2;}
14494    { (exit 1); exit 1; }; }
14495 fi
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 fi
14499 rm -f conftest.val
14500 else
14501   ac_cv_sizeof_int_p=0
14502 fi
14503 fi
14504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14505 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14506 cat >>confdefs.h <<_ACEOF
14507 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14508 _ACEOF
14509
14510
14511
14512 # Check for sys/types.h types
14513 echo "$as_me:$LINENO: checking for u_int type" >&5
14514 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_int+set}" = set; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518
14519     cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526  #include <sys/types.h>
14527 int
14528 main ()
14529 {
14530  u_int a; a = 1;
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537   (eval $ac_compile) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -s conftest.$ac_objext'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547    ac_cv_have_u_int="yes"
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552  ac_cv_have_u_int="no"
14553
14554 fi
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14556
14557 fi
14558 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14559 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14560 if test "x$ac_cv_have_u_int" = "xyes" ; then
14561    cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_U_INT 1
14563 _ACEOF
14564
14565    have_u_int=1
14566 fi
14567
14568 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14569 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14570 if test "${ac_cv_have_intmax_t+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573
14574    cat >conftest.$ac_ext <<_ACEOF
14575 #line $LINENO "configure"
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581  #include <sys/types.h>
14582 int
14583 main ()
14584 {
14585  intmax_t a; a = 1;
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602    ac_cv_have_intmax_t="yes"
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607
14608          cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615  #include <stdint.h>
14616 int
14617 main ()
14618 {
14619  intmax_t a; a = 1;
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 rm -f conftest.$ac_objext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626   (eval $ac_compile) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -s conftest.$ac_objext'
14631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636    ac_cv_have_intmax_t="yes"
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641  ac_cv_have_intmax_t="no"
14642
14643 fi
14644 rm -f conftest.$ac_objext conftest.$ac_ext
14645
14646
14647 fi
14648 rm -f conftest.$ac_objext conftest.$ac_ext
14649
14650
14651 fi
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14654 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14655    cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTMAX_T 1
14657 _ACEOF
14658
14659    have_intmax_t=1
14660 fi
14661
14662
14663 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14664 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668
14669    cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676  #include <sys/types.h>
14677 int
14678 main ()
14679 {
14680  u_intmax_t a; a = 1;
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687   (eval $ac_compile) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -s conftest.$ac_objext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697    ac_cv_have_u_intmax_t="yes"
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702
14703          cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710  #include <stdint.h>
14711 int
14712 main ()
14713 {
14714  u_intmax_t a; a = 1;
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721   (eval $ac_compile) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731    ac_cv_have_u_intmax_t="yes"
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736  ac_cv_have_u_intmax_t="no"
14737
14738 fi
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14740
14741
14742 fi
14743 rm -f conftest.$ac_objext conftest.$ac_ext
14744
14745 fi
14746 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14747 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14748 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14749    cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_U_INTMAX_T 1
14751 _ACEOF
14752
14753    have_u_intmax_t=1
14754 fi
14755
14756
14757 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14758 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14759 if test "${ac_cv_have_intxx_t+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762
14763    cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770  #include <sys/types.h>
14771 int
14772 main ()
14773 {
14774  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781   (eval $ac_compile) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -s conftest.$ac_objext'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; }; then
14791    ac_cv_have_intxx_t="yes"
14792 else
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796  ac_cv_have_intxx_t="no"
14797
14798 fi
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14800
14801 fi
14802 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14803 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14804 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14805    cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_INTXX_T 1
14807 _ACEOF
14808
14809    have_intxx_t=1
14810 fi
14811
14812 echo "$as_me:$LINENO: checking for int64_t type" >&5
14813 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14814 if test "${ac_cv_have_int64_t+set}" = set; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817
14818    cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825  #include <sys/types.h>
14826 int
14827 main ()
14828 {
14829  int64_t a; a = 1;
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846    ac_cv_have_int64_t="yes"
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851  ac_cv_have_int64_t="no"
14852
14853 fi
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14855
14856 fi
14857 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14858 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14859 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14860    cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_INT64_T 1
14862 _ACEOF
14863
14864    have_int64_t=1
14865 fi
14866
14867 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14868 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14869 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14870   echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872
14873    cat >conftest.$ac_ext <<_ACEOF
14874 #line $LINENO "configure"
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880  #include <sys/types.h>
14881 int
14882 main ()
14883 {
14884  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891   (eval $ac_compile) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -s conftest.$ac_objext'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; }; then
14901    ac_cv_have_u_intxx_t="yes"
14902 else
14903   echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14905
14906  ac_cv_have_u_intxx_t="no"
14907
14908 fi
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910
14911 fi
14912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14913 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14914 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14915    cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_U_INTXX_T 1
14917 _ACEOF
14918
14919    have_u_intxx_t=1
14920 fi
14921
14922 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14923 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14924 if test "${ac_cv_have_u_int64_t+set}" = set; then
14925   echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927
14928    cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935  #include <sys/types.h>
14936 int
14937 main ()
14938 {
14939  u_int64_t a; a = 1;
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946   (eval $ac_compile) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956    ac_cv_have_u_int64_t="yes"
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961  ac_cv_have_u_int64_t="no"
14962
14963 fi
14964 rm -f conftest.$ac_objext conftest.$ac_ext
14965
14966 fi
14967 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14968 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14969 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14970    cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_U_INT64_T 1
14972 _ACEOF
14973
14974    have_u_int64_t=1
14975 fi
14976
14977 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14978            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14979 then
14980    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14981 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14982    cat >conftest.$ac_ext <<_ACEOF
14983 #line $LINENO "configure"
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989  #include <sys/bitypes.h>
14990 int
14991 main ()
14992 {
14993  int8_t a; int16_t b; int32_t c;
14994         u_int8_t e; u_int16_t f; u_int32_t g;
14995         a = b = c = e = f = g = 1;
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002   (eval $ac_compile) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012    cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_U_INTXX_T 1
15014 _ACEOF
15015
15016         cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_INTXX_T 1
15018 _ACEOF
15019
15020         cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_SYS_BITYPES_H 1
15022 _ACEOF
15023
15024         echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030  echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15032
15033 fi
15034 rm -f conftest.$ac_objext conftest.$ac_ext
15035 fi
15036
15037 if test -z "$have_u_intxx_t" ; then
15038    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15039 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15040 if test "${ac_cv_have_uintxx_t+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043
15044       cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051  #include <sys/types.h>
15052 int
15053 main ()
15054 {
15055  uint8_t a; uint16_t b;
15056            uint32_t c; a = b = c = 1;
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063   (eval $ac_compile) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } &&
15067          { ac_try='test -s conftest.$ac_objext'
15068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069   (eval $ac_try) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073    ac_cv_have_uintxx_t="yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078  ac_cv_have_uintxx_t="no"
15079
15080 fi
15081 rm -f conftest.$ac_objext conftest.$ac_ext
15082
15083 fi
15084 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15085 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15086    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15087       cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_UINTXX_T 1
15089 _ACEOF
15090
15091    fi
15092 fi
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108 for ac_func in \
15109         fork \
15110         getcwd \
15111         gethostname \
15112         getpid \
15113         gettimeofday \
15114         setpgid \
15115         setpgrp \
15116         setsid \
15117         signal \
15118         strerror \
15119         strncmp \
15120         strncpy \
15121         vfprintf \
15122
15123 do
15124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 echo "$as_me:$LINENO: checking for $ac_func" >&5
15126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_var+set}\" = set"; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   cat >conftest.$ac_ext <<_ACEOF
15131 #line $LINENO "configure"
15132 /* confdefs.h.  */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h.  */
15137 /* System header to define __stub macros and hopefully few prototypes,
15138     which can conflict with char $ac_func (); below.
15139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15140     <limits.h> exists even on freestanding compilers.  */
15141 #ifdef __STDC__
15142 # include <limits.h>
15143 #else
15144 # include <assert.h>
15145 #endif
15146 /* Override any gcc2 internal prototype to avoid an error.  */
15147 #ifdef __cplusplus
15148 extern "C"
15149 {
15150 #endif
15151 /* We use char because int might match the return type of a gcc2
15152    builtin and then its argument prototype would still apply.  */
15153 char $ac_func ();
15154 /* The GNU C library defines this for functions which it implements
15155     to always fail with ENOSYS.  Some functions are actually named
15156     something starting with __ and the normal name is an alias.  */
15157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15158 choke me
15159 #else
15160 char (*f) () = $ac_func;
15161 #endif
15162 #ifdef __cplusplus
15163 }
15164 #endif
15165
15166 int
15167 main ()
15168 {
15169 return f != $ac_func;
15170   ;
15171   return 0;
15172 }
15173 _ACEOF
15174 rm -f conftest.$ac_objext conftest$ac_exeext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176   (eval $ac_link) 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); } &&
15180          { ac_try='test -s conftest$ac_exeext'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; }; then
15186   eval "$as_ac_var=yes"
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 eval "$as_ac_var=no"
15192 fi
15193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15194 fi
15195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15197 if test `eval echo '${'$as_ac_var'}'` = yes; then
15198   cat >>confdefs.h <<_ACEOF
15199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15200 _ACEOF
15201
15202 else
15203   echo 'configure: cannot find needed function.'; exit 1
15204
15205 fi
15206 done
15207
15208
15209
15210 for ac_func in fchdir
15211 do
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 /* System header to define __stub macros and hopefully few prototypes,
15226     which can conflict with char $ac_func (); below.
15227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15228     <limits.h> exists even on freestanding compilers.  */
15229 #ifdef __STDC__
15230 # include <limits.h>
15231 #else
15232 # include <assert.h>
15233 #endif
15234 /* Override any gcc2 internal prototype to avoid an error.  */
15235 #ifdef __cplusplus
15236 extern "C"
15237 {
15238 #endif
15239 /* We use char because int might match the return type of a gcc2
15240    builtin and then its argument prototype would still apply.  */
15241 char $ac_func ();
15242 /* The GNU C library defines this for functions which it implements
15243     to always fail with ENOSYS.  Some functions are actually named
15244     something starting with __ and the normal name is an alias.  */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15246 choke me
15247 #else
15248 char (*f) () = $ac_func;
15249 #endif
15250 #ifdef __cplusplus
15251 }
15252 #endif
15253
15254 int
15255 main ()
15256 {
15257 return f != $ac_func;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15264   (eval $ac_link) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -s conftest$ac_exeext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   eval "$as_ac_var=yes"
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 eval "$as_ac_var=no"
15280 fi
15281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15282 fi
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286   cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15288 _ACEOF
15289  cat >>confdefs.h <<\_ACEOF
15290 #define HAVE_FCHDIR 1
15291 _ACEOF
15292
15293 fi
15294 done
15295
15296
15297 for ac_func in strtoll
15298 do
15299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15300 echo "$as_me:$LINENO: checking for $ac_func" >&5
15301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15302 if eval "test \"\${$as_ac_var+set}\" = set"; then
15303   echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305   cat >conftest.$ac_ext <<_ACEOF
15306 #line $LINENO "configure"
15307 /* confdefs.h.  */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h.  */
15312 /* System header to define __stub macros and hopefully few prototypes,
15313     which can conflict with char $ac_func (); below.
15314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15315     <limits.h> exists even on freestanding compilers.  */
15316 #ifdef __STDC__
15317 # include <limits.h>
15318 #else
15319 # include <assert.h>
15320 #endif
15321 /* Override any gcc2 internal prototype to avoid an error.  */
15322 #ifdef __cplusplus
15323 extern "C"
15324 {
15325 #endif
15326 /* We use char because int might match the return type of a gcc2
15327    builtin and then its argument prototype would still apply.  */
15328 char $ac_func ();
15329 /* The GNU C library defines this for functions which it implements
15330     to always fail with ENOSYS.  Some functions are actually named
15331     something starting with __ and the normal name is an alias.  */
15332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15333 choke me
15334 #else
15335 char (*f) () = $ac_func;
15336 #endif
15337 #ifdef __cplusplus
15338 }
15339 #endif
15340
15341 int
15342 main ()
15343 {
15344 return f != $ac_func;
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351   (eval $ac_link) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -s conftest$ac_exeext'
15356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357   (eval $ac_try) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; }; then
15361   eval "$as_ac_var=yes"
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 eval "$as_ac_var=no"
15367 fi
15368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15369 fi
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15372 if test `eval echo '${'$as_ac_var'}'` = yes; then
15373   cat >>confdefs.h <<_ACEOF
15374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15375 _ACEOF
15376  cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_STRTOLL 1
15378 _ACEOF
15379
15380 fi
15381 done
15382
15383
15384
15385 for ac_func in chflags
15386 do
15387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15388 echo "$as_me:$LINENO: checking for $ac_func" >&5
15389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15390 if eval "test \"\${$as_ac_var+set}\" = set"; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 #line $LINENO "configure"
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 /* System header to define __stub macros and hopefully few prototypes,
15401     which can conflict with char $ac_func (); below.
15402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15403     <limits.h> exists even on freestanding compilers.  */
15404 #ifdef __STDC__
15405 # include <limits.h>
15406 #else
15407 # include <assert.h>
15408 #endif
15409 /* Override any gcc2 internal prototype to avoid an error.  */
15410 #ifdef __cplusplus
15411 extern "C"
15412 {
15413 #endif
15414 /* We use char because int might match the return type of a gcc2
15415    builtin and then its argument prototype would still apply.  */
15416 char $ac_func ();
15417 /* The GNU C library defines this for functions which it implements
15418     to always fail with ENOSYS.  Some functions are actually named
15419     something starting with __ and the normal name is an alias.  */
15420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15421 choke me
15422 #else
15423 char (*f) () = $ac_func;
15424 #endif
15425 #ifdef __cplusplus
15426 }
15427 #endif
15428
15429 int
15430 main ()
15431 {
15432 return f != $ac_func;
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439   (eval $ac_link) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } &&
15443          { ac_try='test -s conftest$ac_exeext'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449   eval "$as_ac_var=yes"
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 eval "$as_ac_var=no"
15455 fi
15456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15457 fi
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15460 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461   cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15463 _ACEOF
15464
15465 fi
15466 done
15467
15468
15469
15470
15471
15472
15473 for ac_func in snprintf vsnprintf gethostid getdomainname
15474 do
15475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15476 echo "$as_me:$LINENO: checking for $ac_func" >&5
15477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_var+set}\" = set"; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481   cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 /* System header to define __stub macros and hopefully few prototypes,
15489     which can conflict with char $ac_func (); below.
15490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15491     <limits.h> exists even on freestanding compilers.  */
15492 #ifdef __STDC__
15493 # include <limits.h>
15494 #else
15495 # include <assert.h>
15496 #endif
15497 /* Override any gcc2 internal prototype to avoid an error.  */
15498 #ifdef __cplusplus
15499 extern "C"
15500 {
15501 #endif
15502 /* We use char because int might match the return type of a gcc2
15503    builtin and then its argument prototype would still apply.  */
15504 char $ac_func ();
15505 /* The GNU C library defines this for functions which it implements
15506     to always fail with ENOSYS.  Some functions are actually named
15507     something starting with __ and the normal name is an alias.  */
15508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15509 choke me
15510 #else
15511 char (*f) () = $ac_func;
15512 #endif
15513 #ifdef __cplusplus
15514 }
15515 #endif
15516
15517 int
15518 main ()
15519 {
15520 return f != $ac_func;
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527   (eval $ac_link) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -s conftest$ac_exeext'
15532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533   (eval $ac_try) 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; }; then
15537   eval "$as_ac_var=yes"
15538 else
15539   echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 eval "$as_ac_var=no"
15543 fi
15544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15545 fi
15546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15548 if test `eval echo '${'$as_ac_var'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554 done
15555
15556
15557
15558
15559
15560
15561 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15562 do
15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 echo "$as_me:$LINENO: checking for $ac_func" >&5
15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_var+set}\" = set"; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569   cat >conftest.$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576 /* System header to define __stub macros and hopefully few prototypes,
15577     which can conflict with char $ac_func (); below.
15578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15579     <limits.h> exists even on freestanding compilers.  */
15580 #ifdef __STDC__
15581 # include <limits.h>
15582 #else
15583 # include <assert.h>
15584 #endif
15585 /* Override any gcc2 internal prototype to avoid an error.  */
15586 #ifdef __cplusplus
15587 extern "C"
15588 {
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char $ac_func ();
15593 /* The GNU C library defines this for functions which it implements
15594     to always fail with ENOSYS.  Some functions are actually named
15595     something starting with __ and the normal name is an alias.  */
15596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15597 choke me
15598 #else
15599 char (*f) () = $ac_func;
15600 #endif
15601 #ifdef __cplusplus
15602 }
15603 #endif
15604
15605 int
15606 main ()
15607 {
15608 return f != $ac_func;
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615   (eval $ac_link) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } &&
15619          { ac_try='test -s conftest$ac_exeext'
15620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621   (eval $ac_try) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; }; then
15625   eval "$as_ac_var=yes"
15626 else
15627   echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15629
15630 eval "$as_ac_var=no"
15631 fi
15632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15633 fi
15634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15636 if test `eval echo '${'$as_ac_var'}'` = yes; then
15637   cat >>confdefs.h <<_ACEOF
15638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15639 _ACEOF
15640
15641 fi
15642 done
15643
15644
15645 # If resolver functions are not in libc check for -lnsl or -lresolv.
15646 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15647 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15648 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651   cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 /* System header to define __stub macros and hopefully few prototypes,
15659     which can conflict with char gethostbyname_r (); below.
15660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661     <limits.h> exists even on freestanding compilers.  */
15662 #ifdef __STDC__
15663 # include <limits.h>
15664 #else
15665 # include <assert.h>
15666 #endif
15667 /* Override any gcc2 internal prototype to avoid an error.  */
15668 #ifdef __cplusplus
15669 extern "C"
15670 {
15671 #endif
15672 /* We use char because int might match the return type of a gcc2
15673    builtin and then its argument prototype would still apply.  */
15674 char gethostbyname_r ();
15675 /* The GNU C library defines this for functions which it implements
15676     to always fail with ENOSYS.  Some functions are actually named
15677     something starting with __ and the normal name is an alias.  */
15678 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15679 choke me
15680 #else
15681 char (*f) () = gethostbyname_r;
15682 #endif
15683 #ifdef __cplusplus
15684 }
15685 #endif
15686
15687 int
15688 main ()
15689 {
15690 return f != gethostbyname_r;
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697   (eval $ac_link) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_cv_func_gethostbyname_r=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ac_cv_func_gethostbyname_r=no
15713 fi
15714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15717 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15718 if test $ac_cv_func_gethostbyname_r = yes; then
15719   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15720 echo "${ECHO_T}using libc's resolver" >&6
15721 else
15722
15723 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15724 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15725 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728   ac_check_lib_save_LIBS=$LIBS
15729 LIBS="-lnsl  $LIBS"
15730 cat >conftest.$ac_ext <<_ACEOF
15731 #line $LINENO "configure"
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737
15738 /* Override any gcc2 internal prototype to avoid an error.  */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 /* We use char because int might match the return type of a gcc2
15743    builtin and then its argument prototype would still apply.  */
15744 char gethostbyname_r ();
15745 int
15746 main ()
15747 {
15748 gethostbyname_r ();
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755   (eval $ac_link) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } &&
15759          { ac_try='test -s conftest$ac_exeext'
15760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761   (eval $ac_try) 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765   ac_cv_lib_nsl_gethostbyname_r=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 ac_cv_lib_nsl_gethostbyname_r=no
15771 fi
15772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15774 fi
15775 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15776 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15777 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15778   cat >>confdefs.h <<_ACEOF
15779 #define HAVE_LIBNSL 1
15780 _ACEOF
15781
15782   LIBS="-lnsl $LIBS"
15783
15784 fi
15785
15786
15787 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15788 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15789 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-lresolv  $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15795 #line $LINENO "configure"
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801
15802 /* Override any gcc2 internal prototype to avoid an error.  */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 /* We use char because int might match the return type of a gcc2
15807    builtin and then its argument prototype would still apply.  */
15808 char gethostbyname_r ();
15809 int
15810 main ()
15811 {
15812 gethostbyname_r ();
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819   (eval $ac_link) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } &&
15823          { ac_try='test -s conftest$ac_exeext'
15824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825   (eval $ac_try) 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; }; then
15829   ac_cv_lib_resolv_gethostbyname_r=yes
15830 else
15831   echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 ac_cv_lib_resolv_gethostbyname_r=no
15835 fi
15836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_check_lib_save_LIBS
15838 fi
15839 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15840 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15841 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15842   cat >>confdefs.h <<_ACEOF
15843 #define HAVE_LIBRESOLV 1
15844 _ACEOF
15845
15846   LIBS="-lresolv $LIBS"
15847
15848 fi
15849
15850 fi
15851
15852
15853
15854 # Find where sockets are (especially for Solaris)
15855 echo "$as_me:$LINENO: checking for socket" >&5
15856 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15857 if test "${ac_cv_func_socket+set}" = set; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868     which can conflict with char socket (); below.
15869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870     <limits.h> exists even on freestanding compilers.  */
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876 /* Override any gcc2 internal prototype to avoid an error.  */
15877 #ifdef __cplusplus
15878 extern "C"
15879 {
15880 #endif
15881 /* We use char because int might match the return type of a gcc2
15882    builtin and then its argument prototype would still apply.  */
15883 char socket ();
15884 /* The GNU C library defines this for functions which it implements
15885     to always fail with ENOSYS.  Some functions are actually named
15886     something starting with __ and the normal name is an alias.  */
15887 #if defined (__stub_socket) || defined (__stub___socket)
15888 choke me
15889 #else
15890 char (*f) () = socket;
15891 #endif
15892 #ifdef __cplusplus
15893 }
15894 #endif
15895
15896 int
15897 main ()
15898 {
15899 return f != socket;
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906   (eval $ac_link) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -s conftest$ac_exeext'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }; then
15916   ac_cv_func_socket=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_cv_func_socket=no
15922 fi
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15924 fi
15925 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15926 echo "${ECHO_T}$ac_cv_func_socket" >&6
15927 if test $ac_cv_func_socket = yes; then
15928   echo "$as_me:$LINENO: result: using libc's socket" >&5
15929 echo "${ECHO_T}using libc's socket" >&6
15930 else
15931
15932 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15933 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15934 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   ac_check_lib_save_LIBS=$LIBS
15938 LIBS="-lxnet  $LIBS"
15939 cat >conftest.$ac_ext <<_ACEOF
15940 #line $LINENO "configure"
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946
15947 /* Override any gcc2 internal prototype to avoid an error.  */
15948 #ifdef __cplusplus
15949 extern "C"
15950 #endif
15951 /* We use char because int might match the return type of a gcc2
15952    builtin and then its argument prototype would still apply.  */
15953 char socket ();
15954 int
15955 main ()
15956 {
15957 socket ();
15958   ;
15959   return 0;
15960 }
15961 _ACEOF
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964   (eval $ac_link) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -s conftest$ac_exeext'
15969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970   (eval $ac_try) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); }; }; then
15974   ac_cv_lib_xnet_socket=yes
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 ac_cv_lib_xnet_socket=no
15980 fi
15981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15983 fi
15984 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15985 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15986 if test $ac_cv_lib_xnet_socket = yes; then
15987   cat >>confdefs.h <<_ACEOF
15988 #define HAVE_LIBXNET 1
15989 _ACEOF
15990
15991   LIBS="-lxnet $LIBS"
15992
15993 fi
15994
15995
15996 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15997 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15998 if test "${ac_cv_lib_socket_socket+set}" = set; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   ac_check_lib_save_LIBS=$LIBS
16002 LIBS="-lsocket  $LIBS"
16003 cat >conftest.$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16005 /* confdefs.h.  */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h.  */
16010
16011 /* Override any gcc2 internal prototype to avoid an error.  */
16012 #ifdef __cplusplus
16013 extern "C"
16014 #endif
16015 /* We use char because int might match the return type of a gcc2
16016    builtin and then its argument prototype would still apply.  */
16017 char socket ();
16018 int
16019 main ()
16020 {
16021 socket ();
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028   (eval $ac_link) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } &&
16032          { ac_try='test -s conftest$ac_exeext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   ac_cv_lib_socket_socket=yes
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_cv_lib_socket_socket=no
16044 fi
16045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16046 LIBS=$ac_check_lib_save_LIBS
16047 fi
16048 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16049 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16050 if test $ac_cv_lib_socket_socket = yes; then
16051   cat >>confdefs.h <<_ACEOF
16052 #define HAVE_LIBSOCKET 1
16053 _ACEOF
16054
16055   LIBS="-lsocket $LIBS"
16056
16057 fi
16058
16059
16060 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16061 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16062 if test "${ac_cv_lib_inet_socket+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   ac_check_lib_save_LIBS=$LIBS
16066 LIBS="-linet  $LIBS"
16067 cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16069 /* confdefs.h.  */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h.  */
16074
16075 /* Override any gcc2 internal prototype to avoid an error.  */
16076 #ifdef __cplusplus
16077 extern "C"
16078 #endif
16079 /* We use char because int might match the return type of a gcc2
16080    builtin and then its argument prototype would still apply.  */
16081 char socket ();
16082 int
16083 main ()
16084 {
16085 socket ();
16086   ;
16087   return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092   (eval $ac_link) 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -s conftest$ac_exeext'
16097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098   (eval $ac_try) 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); }; }; then
16102   ac_cv_lib_inet_socket=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107 ac_cv_lib_inet_socket=no
16108 fi
16109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16111 fi
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16113 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16114 if test $ac_cv_lib_inet_socket = yes; then
16115   cat >>confdefs.h <<_ACEOF
16116 #define HAVE_LIBINET 1
16117 _ACEOF
16118
16119   LIBS="-linet $LIBS"
16120
16121 fi
16122
16123 fi
16124
16125
16126
16127 for ac_func in inet_pton
16128 do
16129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   cat >conftest.$ac_ext <<_ACEOF
16136 #line $LINENO "configure"
16137 /* confdefs.h.  */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h.  */
16142 /* System header to define __stub macros and hopefully few prototypes,
16143     which can conflict with char $ac_func (); below.
16144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16145     <limits.h> exists even on freestanding compilers.  */
16146 #ifdef __STDC__
16147 # include <limits.h>
16148 #else
16149 # include <assert.h>
16150 #endif
16151 /* Override any gcc2 internal prototype to avoid an error.  */
16152 #ifdef __cplusplus
16153 extern "C"
16154 {
16155 #endif
16156 /* We use char because int might match the return type of a gcc2
16157    builtin and then its argument prototype would still apply.  */
16158 char $ac_func ();
16159 /* The GNU C library defines this for functions which it implements
16160     to always fail with ENOSYS.  Some functions are actually named
16161     something starting with __ and the normal name is an alias.  */
16162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16163 choke me
16164 #else
16165 char (*f) () = $ac_func;
16166 #endif
16167 #ifdef __cplusplus
16168 }
16169 #endif
16170
16171 int
16172 main ()
16173 {
16174 return f != $ac_func;
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181   (eval $ac_link) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } &&
16185          { ac_try='test -s conftest$ac_exeext'
16186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187   (eval $ac_try) 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; }; then
16191   eval "$as_ac_var=yes"
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 eval "$as_ac_var=no"
16197 fi
16198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16199 fi
16200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16202 if test `eval echo '${'$as_ac_var'}'` = yes; then
16203   cat >>confdefs.h <<_ACEOF
16204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16205 _ACEOF
16206  cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_INET_PTON 1
16208 _ACEOF
16209
16210 fi
16211 done
16212
16213
16214
16215 for ac_func in strftime
16216 do
16217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16218 echo "$as_me:$LINENO: checking for $ac_func" >&5
16219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16220 if eval "test \"\${$as_ac_var+set}\" = set"; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230 /* System header to define __stub macros and hopefully few prototypes,
16231     which can conflict with char $ac_func (); below.
16232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233     <limits.h> exists even on freestanding compilers.  */
16234 #ifdef __STDC__
16235 # include <limits.h>
16236 #else
16237 # include <assert.h>
16238 #endif
16239 /* Override any gcc2 internal prototype to avoid an error.  */
16240 #ifdef __cplusplus
16241 extern "C"
16242 {
16243 #endif
16244 /* We use char because int might match the return type of a gcc2
16245    builtin and then its argument prototype would still apply.  */
16246 char $ac_func ();
16247 /* The GNU C library defines this for functions which it implements
16248     to always fail with ENOSYS.  Some functions are actually named
16249     something starting with __ and the normal name is an alias.  */
16250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16251 choke me
16252 #else
16253 char (*f) () = $ac_func;
16254 #endif
16255 #ifdef __cplusplus
16256 }
16257 #endif
16258
16259 int
16260 main ()
16261 {
16262 return f != $ac_func;
16263   ;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16269   (eval $ac_link) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } &&
16273          { ac_try='test -s conftest$ac_exeext'
16274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275   (eval $ac_try) 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); }; }; then
16279   eval "$as_ac_var=yes"
16280 else
16281   echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284 eval "$as_ac_var=no"
16285 fi
16286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16287 fi
16288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16290 if test `eval echo '${'$as_ac_var'}'` = yes; then
16291   cat >>confdefs.h <<_ACEOF
16292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16293 _ACEOF
16294
16295 else
16296   # strftime is in -lintl on SCO UNIX.
16297 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16298 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16299 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16300   echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302   ac_check_lib_save_LIBS=$LIBS
16303 LIBS="-lintl  $LIBS"
16304 cat >conftest.$ac_ext <<_ACEOF
16305 #line $LINENO "configure"
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311
16312 /* Override any gcc2 internal prototype to avoid an error.  */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317    builtin and then its argument prototype would still apply.  */
16318 char strftime ();
16319 int
16320 main ()
16321 {
16322 strftime ();
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext conftest$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329   (eval $ac_link) 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } &&
16333          { ac_try='test -s conftest$ac_exeext'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339   ac_cv_lib_intl_strftime=yes
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 ac_cv_lib_intl_strftime=no
16345 fi
16346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16348 fi
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16350 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16351 if test $ac_cv_lib_intl_strftime = yes; then
16352   cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STRFTIME 1
16354 _ACEOF
16355
16356 LIBS="-lintl $LIBS"
16357 fi
16358
16359 fi
16360 done
16361
16362
16363 for ac_func in vprintf
16364 do
16365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16366 echo "$as_me:$LINENO: checking for $ac_func" >&5
16367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_var+set}\" = set"; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371   cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 /* System header to define __stub macros and hopefully few prototypes,
16379     which can conflict with char $ac_func (); below.
16380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16381     <limits.h> exists even on freestanding compilers.  */
16382 #ifdef __STDC__
16383 # include <limits.h>
16384 #else
16385 # include <assert.h>
16386 #endif
16387 /* Override any gcc2 internal prototype to avoid an error.  */
16388 #ifdef __cplusplus
16389 extern "C"
16390 {
16391 #endif
16392 /* We use char because int might match the return type of a gcc2
16393    builtin and then its argument prototype would still apply.  */
16394 char $ac_func ();
16395 /* The GNU C library defines this for functions which it implements
16396     to always fail with ENOSYS.  Some functions are actually named
16397     something starting with __ and the normal name is an alias.  */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399 choke me
16400 #else
16401 char (*f) () = $ac_func;
16402 #endif
16403 #ifdef __cplusplus
16404 }
16405 #endif
16406
16407 int
16408 main ()
16409 {
16410 return f != $ac_func;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417   (eval $ac_link) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -s conftest$ac_exeext'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; }; then
16427   eval "$as_ac_var=yes"
16428 else
16429   echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432 eval "$as_ac_var=no"
16433 fi
16434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16435 fi
16436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16438 if test `eval echo '${'$as_ac_var'}'` = yes; then
16439   cat >>confdefs.h <<_ACEOF
16440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16441 _ACEOF
16442
16443 echo "$as_me:$LINENO: checking for _doprnt" >&5
16444 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16445 if test "${ac_cv_func__doprnt+set}" = set; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455 /* System header to define __stub macros and hopefully few prototypes,
16456     which can conflict with char _doprnt (); below.
16457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16458     <limits.h> exists even on freestanding compilers.  */
16459 #ifdef __STDC__
16460 # include <limits.h>
16461 #else
16462 # include <assert.h>
16463 #endif
16464 /* Override any gcc2 internal prototype to avoid an error.  */
16465 #ifdef __cplusplus
16466 extern "C"
16467 {
16468 #endif
16469 /* We use char because int might match the return type of a gcc2
16470    builtin and then its argument prototype would still apply.  */
16471 char _doprnt ();
16472 /* The GNU C library defines this for functions which it implements
16473     to always fail with ENOSYS.  Some functions are actually named
16474     something starting with __ and the normal name is an alias.  */
16475 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16476 choke me
16477 #else
16478 char (*f) () = _doprnt;
16479 #endif
16480 #ifdef __cplusplus
16481 }
16482 #endif
16483
16484 int
16485 main ()
16486 {
16487 return f != _doprnt;
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494   (eval $ac_link) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } &&
16498          { ac_try='test -s conftest$ac_exeext'
16499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500   (eval $ac_try) 2>&5
16501   ac_status=$?
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; }; then
16504   ac_cv_func__doprnt=yes
16505 else
16506   echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_cv_func__doprnt=no
16510 fi
16511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16512 fi
16513 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16514 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16515 if test $ac_cv_func__doprnt = yes; then
16516
16517 cat >>confdefs.h <<\_ACEOF
16518 #define HAVE_DOPRNT 1
16519 _ACEOF
16520
16521 fi
16522
16523 fi
16524 done
16525
16526
16527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16528 # for constant arguments.  Useless!
16529 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16531 if test "${ac_cv_working_alloca_h+set}" = set; then
16532   echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534   cat >conftest.$ac_ext <<_ACEOF
16535 #line $LINENO "configure"
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541 #include <alloca.h>
16542 int
16543 main ()
16544 {
16545 char *p = (char *) alloca (2 * sizeof (int));
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552   (eval $ac_link) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } &&
16556          { ac_try='test -s conftest$ac_exeext'
16557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558   (eval $ac_try) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   ac_cv_working_alloca_h=yes
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ac_cv_working_alloca_h=no
16568 fi
16569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16572 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16573 if test $ac_cv_working_alloca_h = yes; then
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_ALLOCA_H 1
16577 _ACEOF
16578
16579 fi
16580
16581 echo "$as_me:$LINENO: checking for alloca" >&5
16582 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16583 if test "${ac_cv_func_alloca_works+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   cat >conftest.$ac_ext <<_ACEOF
16587 #line $LINENO "configure"
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 #ifdef __GNUC__
16594 # define alloca __builtin_alloca
16595 #else
16596 # ifdef _MSC_VER
16597 #  include <malloc.h>
16598 #  define alloca _alloca
16599 # else
16600 #  if HAVE_ALLOCA_H
16601 #   include <alloca.h>
16602 #  else
16603 #   ifdef _AIX
16604  #pragma alloca
16605 #   else
16606 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16607 char *alloca ();
16608 #    endif
16609 #   endif
16610 #  endif
16611 # endif
16612 #endif
16613
16614 int
16615 main ()
16616 {
16617 char *p = (char *) alloca (1);
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624   (eval $ac_link) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -s conftest$ac_exeext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_func_alloca_works=yes
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 ac_cv_func_alloca_works=no
16640 fi
16641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16645
16646 if test $ac_cv_func_alloca_works = yes; then
16647
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_ALLOCA 1
16650 _ACEOF
16651
16652 else
16653   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16654 # that cause trouble.  Some versions do not even contain alloca or
16655 # contain a buggy version.  If you still want to use their alloca,
16656 # use ar to extract alloca.o from them instead of compiling alloca.c.
16657
16658 ALLOCA=alloca.$ac_objext
16659
16660 cat >>confdefs.h <<\_ACEOF
16661 #define C_ALLOCA 1
16662 _ACEOF
16663
16664
16665 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16667 if test "${ac_cv_os_cray+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677 #if defined(CRAY) && ! defined(CRAY2)
16678 webecray
16679 #else
16680 wenotbecray
16681 #endif
16682
16683 _ACEOF
16684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16685   $EGREP "webecray" >/dev/null 2>&1; then
16686   ac_cv_os_cray=yes
16687 else
16688   ac_cv_os_cray=no
16689 fi
16690 rm -f conftest*
16691
16692 fi
16693 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16694 echo "${ECHO_T}$ac_cv_os_cray" >&6
16695 if test $ac_cv_os_cray = yes; then
16696   for ac_func in _getb67 GETB67 getb67; do
16697     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698 echo "$as_me:$LINENO: checking for $ac_func" >&5
16699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_var+set}\" = set"; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703   cat >conftest.$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 /* System header to define __stub macros and hopefully few prototypes,
16711     which can conflict with char $ac_func (); below.
16712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713     <limits.h> exists even on freestanding compilers.  */
16714 #ifdef __STDC__
16715 # include <limits.h>
16716 #else
16717 # include <assert.h>
16718 #endif
16719 /* Override any gcc2 internal prototype to avoid an error.  */
16720 #ifdef __cplusplus
16721 extern "C"
16722 {
16723 #endif
16724 /* We use char because int might match the return type of a gcc2
16725    builtin and then its argument prototype would still apply.  */
16726 char $ac_func ();
16727 /* The GNU C library defines this for functions which it implements
16728     to always fail with ENOSYS.  Some functions are actually named
16729     something starting with __ and the normal name is an alias.  */
16730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16731 choke me
16732 #else
16733 char (*f) () = $ac_func;
16734 #endif
16735 #ifdef __cplusplus
16736 }
16737 #endif
16738
16739 int
16740 main ()
16741 {
16742 return f != $ac_func;
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749   (eval $ac_link) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } &&
16753          { ac_try='test -s conftest$ac_exeext'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759   eval "$as_ac_var=yes"
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 eval "$as_ac_var=no"
16765 fi
16766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16767 fi
16768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16770 if test `eval echo '${'$as_ac_var'}'` = yes; then
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define CRAY_STACKSEG_END $ac_func
16774 _ACEOF
16775
16776     break
16777 fi
16778
16779   done
16780 fi
16781
16782 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16783 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16784 if test "${ac_cv_c_stack_direction+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   if test "$cross_compiling" = yes; then
16788   ac_cv_c_stack_direction=0
16789 else
16790   cat >conftest.$ac_ext <<_ACEOF
16791 #line $LINENO "configure"
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797 int
16798 find_stack_direction ()
16799 {
16800   static char *addr = 0;
16801   auto char dummy;
16802   if (addr == 0)
16803     {
16804       addr = &dummy;
16805       return find_stack_direction ();
16806     }
16807   else
16808     return (&dummy > addr) ? 1 : -1;
16809 }
16810
16811 int
16812 main ()
16813 {
16814   exit (find_stack_direction () < 0);
16815 }
16816 _ACEOF
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819   (eval $ac_link) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_cv_c_stack_direction=1
16829 else
16830   echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ( exit $ac_status )
16835 ac_cv_c_stack_direction=-1
16836 fi
16837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16838 fi
16839 fi
16840 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16841 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16842
16843 cat >>confdefs.h <<_ACEOF
16844 #define STACK_DIRECTION $ac_cv_c_stack_direction
16845 _ACEOF
16846
16847
16848 fi
16849
16850 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16851 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16852 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16853 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lsun  $LIBS"
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865
16866 /* Override any gcc2 internal prototype to avoid an error.  */
16867 #ifdef __cplusplus
16868 extern "C"
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 getmntent ();
16873 int
16874 main ()
16875 {
16876 getmntent ();
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883   (eval $ac_link) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -s conftest$ac_exeext'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_cv_lib_sun_getmntent=yes
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_cv_lib_sun_getmntent=no
16899 fi
16900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16901 LIBS=$ac_check_lib_save_LIBS
16902 fi
16903 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16904 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16905 if test $ac_cv_lib_sun_getmntent = yes; then
16906   LIBS="-lsun $LIBS"
16907 else
16908   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16909 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16910 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   ac_check_lib_save_LIBS=$LIBS
16914 LIBS="-lseq  $LIBS"
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922
16923 /* Override any gcc2 internal prototype to avoid an error.  */
16924 #ifdef __cplusplus
16925 extern "C"
16926 #endif
16927 /* We use char because int might match the return type of a gcc2
16928    builtin and then its argument prototype would still apply.  */
16929 char getmntent ();
16930 int
16931 main ()
16932 {
16933 getmntent ();
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940   (eval $ac_link) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -s conftest$ac_exeext'
16945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946   (eval $ac_try) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; }; then
16950   ac_cv_lib_seq_getmntent=yes
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_lib_seq_getmntent=no
16956 fi
16957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16959 fi
16960 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16961 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16962 if test $ac_cv_lib_seq_getmntent = yes; then
16963   LIBS="-lseq $LIBS"
16964 else
16965   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16966 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16967 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16968   echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970   ac_check_lib_save_LIBS=$LIBS
16971 LIBS="-lgen  $LIBS"
16972 cat >conftest.$ac_ext <<_ACEOF
16973 #line $LINENO "configure"
16974 /* confdefs.h.  */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h.  */
16979
16980 /* Override any gcc2 internal prototype to avoid an error.  */
16981 #ifdef __cplusplus
16982 extern "C"
16983 #endif
16984 /* We use char because int might match the return type of a gcc2
16985    builtin and then its argument prototype would still apply.  */
16986 char getmntent ();
16987 int
16988 main ()
16989 {
16990 getmntent ();
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997   (eval $ac_link) 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } &&
17001          { ac_try='test -s conftest$ac_exeext'
17002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003   (eval $ac_try) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; }; then
17007   ac_cv_lib_gen_getmntent=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 ac_cv_lib_gen_getmntent=no
17013 fi
17014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17015 LIBS=$ac_check_lib_save_LIBS
17016 fi
17017 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17018 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17019 if test $ac_cv_lib_gen_getmntent = yes; then
17020   LIBS="-lgen $LIBS"
17021 fi
17022
17023 fi
17024
17025 fi
17026
17027
17028 for ac_func in getmntent
17029 do
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17033 if eval "test \"\${$as_ac_var+set}\" = set"; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   cat >conftest.$ac_ext <<_ACEOF
17037 #line $LINENO "configure"
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 /* System header to define __stub macros and hopefully few prototypes,
17044     which can conflict with char $ac_func (); below.
17045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046     <limits.h> exists even on freestanding compilers.  */
17047 #ifdef __STDC__
17048 # include <limits.h>
17049 #else
17050 # include <assert.h>
17051 #endif
17052 /* Override any gcc2 internal prototype to avoid an error.  */
17053 #ifdef __cplusplus
17054 extern "C"
17055 {
17056 #endif
17057 /* We use char because int might match the return type of a gcc2
17058    builtin and then its argument prototype would still apply.  */
17059 char $ac_func ();
17060 /* The GNU C library defines this for functions which it implements
17061     to always fail with ENOSYS.  Some functions are actually named
17062     something starting with __ and the normal name is an alias.  */
17063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17064 choke me
17065 #else
17066 char (*f) () = $ac_func;
17067 #endif
17068 #ifdef __cplusplus
17069 }
17070 #endif
17071
17072 int
17073 main ()
17074 {
17075 return f != $ac_func;
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082   (eval $ac_link) 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } &&
17086          { ac_try='test -s conftest$ac_exeext'
17087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088   (eval $ac_try) 2>&5
17089   ac_status=$?
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); }; }; then
17092   eval "$as_ac_var=yes"
17093 else
17094   echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 eval "$as_ac_var=no"
17098 fi
17099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17100 fi
17101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17103 if test `eval echo '${'$as_ac_var'}'` = yes; then
17104   cat >>confdefs.h <<_ACEOF
17105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17106 _ACEOF
17107
17108 fi
17109 done
17110
17111
17112 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17113 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17114 if test "${ac_cv_func_closedir_void+set}" = set; then
17115   echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117   if test "$cross_compiling" = yes; then
17118   ac_cv_func_closedir_void=yes
17119 else
17120   cat >conftest.$ac_ext <<_ACEOF
17121 #line $LINENO "configure"
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 $ac_includes_default
17128 #include <$ac_header_dirent>
17129 #ifndef __cplusplus
17130 int closedir ();
17131 #endif
17132
17133 int
17134 main ()
17135 {
17136 exit (closedir (opendir (".")) != 0);
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143   (eval $ac_link) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148   (eval $ac_try) 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; }; then
17152   ac_cv_func_closedir_void=no
17153 else
17154   echo "$as_me: program exited with status $ac_status" >&5
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ( exit $ac_status )
17159 ac_cv_func_closedir_void=yes
17160 fi
17161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17162 fi
17163 fi
17164 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17165 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17166 if test $ac_cv_func_closedir_void = yes; then
17167
17168 cat >>confdefs.h <<\_ACEOF
17169 #define CLOSEDIR_VOID 1
17170 _ACEOF
17171
17172 fi
17173
17174 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17175 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17176 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179   if test "$cross_compiling" = yes; then
17180   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17181 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17182    { (exit 1); exit 1; }; }
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 #line $LINENO "configure"
17186 /* confdefs.h.  */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h.  */
17191 #if HAVE_UNISTD_H
17192 # include <unistd.h>
17193 #endif
17194
17195 int
17196 main ()
17197 {
17198 /* If this system has a BSD-style setpgrp which takes arguments,
17199   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17200   exit successfully. */
17201   exit (setpgrp (1,1) == -1 ? 0 : 1);
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208   (eval $ac_link) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   ac_cv_func_setpgrp_void=no
17218 else
17219   echo "$as_me: program exited with status $ac_status" >&5
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 ( exit $ac_status )
17224 ac_cv_func_setpgrp_void=yes
17225 fi
17226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17227 fi
17228 fi
17229 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17230 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17231 if test $ac_cv_func_setpgrp_void = yes; then
17232
17233 cat >>confdefs.h <<\_ACEOF
17234 #define SETPGRP_VOID 1
17235 _ACEOF
17236
17237 fi
17238                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17239 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17240 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17241   echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243   # Some versions of Solaris, SCO, and the GNU C Library
17244    # have a broken or incompatible fnmatch.
17245    # So we run a test program.  If we are cross-compiling, take no chance.
17246    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17247    if test "$cross_compiling" = yes; then
17248   ac_cv_func_fnmatch_works=cross
17249 else
17250   cat >conftest.$ac_ext <<_ACEOF
17251 #line $LINENO "configure"
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257 #include <fnmatch.h>
17258 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17259 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17260
17261 int
17262 main ()
17263 {
17264 exit
17265            (!(y ("a*", "abc", 0)
17266               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17267               && y ("a\\\\bc", "abc", 0)
17268               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17269               && y ("*x", ".x", 0)
17270               && n ("*x", ".x", FNM_PERIOD)
17271               && 1));
17272   ;
17273   return 0;
17274 }
17275 _ACEOF
17276 rm -f conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278   (eval $ac_link) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283   (eval $ac_try) 2>&5
17284   ac_status=$?
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); }; }; then
17287   ac_cv_func_fnmatch_works=yes
17288 else
17289   echo "$as_me: program exited with status $ac_status" >&5
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ( exit $ac_status )
17294 ac_cv_func_fnmatch_works=no
17295 fi
17296 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17297 fi
17298 fi
17299 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17300 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17301 if test $ac_cv_func_fnmatch_works = yes; then
17302
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_FNMATCH 1
17305 _ACEOF
17306
17307 fi
17308
17309
17310
17311
17312
17313 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17314 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17315 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17316   echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318   ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-lxpg4  $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17321 #line $LINENO "configure"
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327
17328 /* Override any gcc2 internal prototype to avoid an error.  */
17329 #ifdef __cplusplus
17330 extern "C"
17331 #endif
17332 /* We use char because int might match the return type of a gcc2
17333    builtin and then its argument prototype would still apply.  */
17334 char setlocale ();
17335 int
17336 main ()
17337 {
17338 setlocale ();
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345   (eval $ac_link) 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } &&
17349          { ac_try='test -s conftest$ac_exeext'
17350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351   (eval $ac_try) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; }; then
17355   ac_cv_lib_xpg4_setlocale=yes
17356 else
17357   echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_cv_lib_xpg4_setlocale=no
17361 fi
17362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17364 fi
17365 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17366 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17367 if test $ac_cv_lib_xpg4_setlocale = yes; then
17368   LIBS="$LIBS -lxpg4"
17369 fi
17370
17371
17372
17373
17374 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17375 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17376 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379   ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-lsun  $LIBS"
17381 cat >conftest.$ac_ext <<_ACEOF
17382 #line $LINENO "configure"
17383 /* confdefs.h.  */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h.  */
17388
17389 /* Override any gcc2 internal prototype to avoid an error.  */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 /* We use char because int might match the return type of a gcc2
17394    builtin and then its argument prototype would still apply.  */
17395 char getpwnam ();
17396 int
17397 main ()
17398 {
17399 getpwnam ();
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406   (eval $ac_link) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } &&
17410          { ac_try='test -s conftest$ac_exeext'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   ac_cv_lib_sun_getpwnam=yes
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_cv_lib_sun_getpwnam=no
17422 fi
17423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17425 fi
17426 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17427 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17428 if test $ac_cv_lib_sun_getpwnam = yes; then
17429   cat >>confdefs.h <<_ACEOF
17430 #define HAVE_LIBSUN 1
17431 _ACEOF
17432
17433   LIBS="-lsun $LIBS"
17434
17435 fi
17436
17437
17438
17439 for ac_header in zlib.h
17440 do
17441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17443   echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 fi
17448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17450 else
17451   # Is the header compilable?
17452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17455 #line $LINENO "configure"
17456 /* confdefs.h.  */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h.  */
17461 $ac_includes_default
17462 #include <$ac_header>
17463 _ACEOF
17464 rm -f conftest.$ac_objext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17466   (eval $ac_compile) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   ac_header_compiler=yes
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_header_compiler=no
17482 fi
17483 rm -f conftest.$ac_objext conftest.$ac_ext
17484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17485 echo "${ECHO_T}$ac_header_compiler" >&6
17486
17487 # Is the header present?
17488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17491 #line $LINENO "configure"
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 #include <$ac_header>
17498 _ACEOF
17499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } >/dev/null; then
17507   if test -s conftest.err; then
17508     ac_cpp_err=$ac_c_preproc_warn_flag
17509   else
17510     ac_cpp_err=
17511   fi
17512 else
17513   ac_cpp_err=yes
17514 fi
17515 if test -z "$ac_cpp_err"; then
17516   ac_header_preproc=yes
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521   ac_header_preproc=no
17522 fi
17523 rm -f conftest.err conftest.$ac_ext
17524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17525 echo "${ECHO_T}$ac_header_preproc" >&6
17526
17527 # So?  What about this header?
17528 case $ac_header_compiler:$ac_header_preproc in
17529   yes:no )
17530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17534     (
17535       cat <<\_ASBOX
17536 ## ------------------------------------ ##
17537 ## Report this to bug-autoconf@gnu.org. ##
17538 ## ------------------------------------ ##
17539 _ASBOX
17540     ) |
17541       sed "s/^/$as_me: WARNING:     /" >&2
17542     ;;
17543   no:yes )
17544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17546     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17550     (
17551       cat <<\_ASBOX
17552 ## ------------------------------------ ##
17553 ## Report this to bug-autoconf@gnu.org. ##
17554 ## ------------------------------------ ##
17555 _ASBOX
17556     ) |
17557       sed "s/^/$as_me: WARNING:     /" >&2
17558     ;;
17559 esac
17560 echo "$as_me:$LINENO: checking for $ac_header" >&5
17561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   eval "$as_ac_Header=$ac_header_preproc"
17566 fi
17567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17569
17570 fi
17571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17572   cat >>confdefs.h <<_ACEOF
17573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17574 _ACEOF
17575
17576 fi
17577
17578 done
17579
17580 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17581 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17582 if test "${ac_cv_lib_z_deflate+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585   ac_check_lib_save_LIBS=$LIBS
17586 LIBS="-lz  $LIBS"
17587 cat >conftest.$ac_ext <<_ACEOF
17588 #line $LINENO "configure"
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594
17595 /* Override any gcc2 internal prototype to avoid an error.  */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 /* We use char because int might match the return type of a gcc2
17600    builtin and then its argument prototype would still apply.  */
17601 char deflate ();
17602 int
17603 main ()
17604 {
17605 deflate ();
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612   (eval $ac_link) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } &&
17616          { ac_try='test -s conftest$ac_exeext'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622   ac_cv_lib_z_deflate=yes
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 ac_cv_lib_z_deflate=no
17628 fi
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17631 fi
17632 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17633 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17634 if test $ac_cv_lib_z_deflate = yes; then
17635   FDLIBS="-lz"
17636 fi
17637
17638 have_zlib=no
17639 if test x$FDLIBS = x-lz; then
17640   cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_LIBZ 1
17642 _ACEOF
17643
17644   have_zlib=yes
17645 fi
17646
17647 PTHREAD_LIB=""
17648 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17649 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17650 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653   ac_check_lib_save_LIBS=$LIBS
17654 LIBS="-lpthread  $LIBS"
17655 cat >conftest.$ac_ext <<_ACEOF
17656 #line $LINENO "configure"
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662
17663 /* Override any gcc2 internal prototype to avoid an error.  */
17664 #ifdef __cplusplus
17665 extern "C"
17666 #endif
17667 /* We use char because int might match the return type of a gcc2
17668    builtin and then its argument prototype would still apply.  */
17669 char pthread_create ();
17670 int
17671 main ()
17672 {
17673 pthread_create ();
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680   (eval $ac_link) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } &&
17684          { ac_try='test -s conftest$ac_exeext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_lib_pthread_pthread_create=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_lib_pthread_pthread_create=no
17696 fi
17697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17699 fi
17700 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17701 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17702 if test $ac_cv_lib_pthread_pthread_create = yes; then
17703   PTHREAD_LIB="-lpthread"
17704 else
17705   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17706 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17707 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-lpthreads  $LIBS"
17712 cat >conftest.$ac_ext <<_ACEOF
17713 #line $LINENO "configure"
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719
17720 /* Override any gcc2 internal prototype to avoid an error.  */
17721 #ifdef __cplusplus
17722 extern "C"
17723 #endif
17724 /* We use char because int might match the return type of a gcc2
17725    builtin and then its argument prototype would still apply.  */
17726 char pthread_create ();
17727 int
17728 main ()
17729 {
17730 pthread_create ();
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737   (eval $ac_link) 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } &&
17741          { ac_try='test -s conftest$ac_exeext'
17742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743   (eval $ac_try) 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; }; then
17747   ac_cv_lib_pthreads_pthread_create=yes
17748 else
17749   echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 ac_cv_lib_pthreads_pthread_create=no
17753 fi
17754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17756 fi
17757 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17758 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17759 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17760   PTHREAD_LIB="-lpthreads"
17761 else
17762   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17763 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17764 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-lc_r  $LIBS"
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17771 /* confdefs.h.  */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h.  */
17776
17777 /* Override any gcc2 internal prototype to avoid an error.  */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 /* We use char because int might match the return type of a gcc2
17782    builtin and then its argument prototype would still apply.  */
17783 char pthread_create ();
17784 int
17785 main ()
17786 {
17787 pthread_create ();
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794   (eval $ac_link) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   ac_cv_lib_c_r_pthread_create=yes
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_c_r_pthread_create=no
17810 fi
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17813 fi
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17815 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17816 if test $ac_cv_lib_c_r_pthread_create = yes; then
17817   PTHREAD_LIB="-lc_r"
17818 else
17819   echo "$as_me:$LINENO: checking for pthread_create" >&5
17820 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17821 if test "${ac_cv_func_pthread_create+set}" = set; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 /* System header to define __stub macros and hopefully few prototypes,
17832     which can conflict with char pthread_create (); below.
17833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834     <limits.h> exists even on freestanding compilers.  */
17835 #ifdef __STDC__
17836 # include <limits.h>
17837 #else
17838 # include <assert.h>
17839 #endif
17840 /* Override any gcc2 internal prototype to avoid an error.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 {
17844 #endif
17845 /* We use char because int might match the return type of a gcc2
17846    builtin and then its argument prototype would still apply.  */
17847 char pthread_create ();
17848 /* The GNU C library defines this for functions which it implements
17849     to always fail with ENOSYS.  Some functions are actually named
17850     something starting with __ and the normal name is an alias.  */
17851 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17852 choke me
17853 #else
17854 char (*f) () = pthread_create;
17855 #endif
17856 #ifdef __cplusplus
17857 }
17858 #endif
17859
17860 int
17861 main ()
17862 {
17863 return f != pthread_create;
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870   (eval $ac_link) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -s conftest$ac_exeext'
17875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876   (eval $ac_try) 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; }; then
17880   ac_cv_func_pthread_create=yes
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 ac_cv_func_pthread_create=no
17886 fi
17887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17888 fi
17889 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17890 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17891
17892
17893 fi
17894
17895
17896 fi
17897
17898
17899 fi
17900
17901
17902
17903 cat >>confdefs.h <<\_ACEOF
17904 #define FDLIBS 1
17905 _ACEOF
17906
17907
17908
17909 CFLAGS=${CFLAGS--O}
17910 LDFLAGS=${LDFLAGS--O}
17911 DB_LIBS="${SQL_LFLAGS}"
17912
17913 CPPFLAGS="$CPPFLAGS"
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928 OBJLIST=
17929
17930
17931 lld="lld"
17932 llu="llu"
17933
17934 WCFLAGS=
17935 WLDFLAGS=
17936
17937 #
17938 # Finally we set appropriate distribution specific
17939 #  variables and defaults
17940 #
17941 # PFILES are platform specific files
17942 PFILES="platforms/Makefile"
17943 PSCMD="ps -e"
17944 WIN32=
17945 hostname=`uname -n | cut -d '.' -f 1`
17946 case "$DISTNAME" in
17947 aix)
17948         DISTVER=`uname -r`
17949         PSCMD="ps -e -o pid,comm"
17950         PFILES="${PFILES} \
17951            platforms/aix/Makefile"
17952         TAPEDRIVE="/dev/rmt0.1"
17953   ;;
17954 alpha)
17955         DISTVER=`uname -r`
17956         PTHREAD_LIB="-lpthread -lexc"
17957         if test "${CC}" = "gcc" ; then
17958            lld="lld"
17959            llu="llu"
17960         else
17961            lld="ld"
17962            llu="lu"
17963         fi
17964         TAPEDRIVE="/dev/nrmt0"
17965   ;;
17966 bsdi)
17967         DISTVER=`uname -a |awk '{print $3}'`
17968         TAPEDRIVE="/dev/nrmt0"
17969         PTHREAD_LIB="-pthread"
17970         CFLAGS="${CFLAGS} -pthread"
17971         PSCMD="ps -x -o pid,command"
17972         lld="qd"
17973         llu="qu"
17974         PFILES="${PFILES} \
17975             platforms/bsdi/Makefile \
17976             platforms/bsdi/bacula-fd \
17977             platforms/bsdi/bacula-sd \
17978             platforms/bsdi/bacula-dir"
17979         largefile_support="yes"
17980   ;;
17981 cygwin)
17982         DISTVER=`uname -a |awk '{print $3}'`
17983         TAPEDRIVE="/dev/nrst0"
17984         WIN32=win32
17985         WCFLAGS="-mwindows"
17986         WLDFLAGS="-mwindows"
17987   ;;
17988 darwin)
17989         DISTVER=`uname -r`
17990         TAPEDRIVE="/dev/nst0"
17991         PSCMD="ps -e -o pid,command"
17992         PFILES="${PFILES} \
17993            platforms/darwin/Makefile"
17994   ;;
17995 debian)
17996         DISTVER=`cat /etc/debian_version`
17997         TAPEDRIVE="/dev/nrst0"
17998         PSCMD="ps -e -o pid,command"
17999   ;;
18000 freebsd)
18001         DISTVER=`uname -a |awk '{print $3}'`
18002         VER=`echo $DISTVER | cut -c 1`
18003         if test x$VER = x4 ; then
18004            PTHREAD_LIB="-pthread"
18005            CFLAGS="${CFLAGS} -pthread"
18006         fi
18007         lld="qd"
18008         llu="qu"
18009         TAPEDRIVE="/dev/nrsa0"
18010         PSCMD="ps -x -o pid,command"
18011         PFILES="${PFILES} \
18012             platforms/freebsd/Makefile \
18013             platforms/freebsd/bacula-fd \
18014             platforms/freebsd/bacula-sd \
18015             platforms/freebsd/bacula-dir"
18016         largefile_support="yes"
18017   ;;
18018 hpux)
18019         PSCMD="UNIX95=1 ps -e -o pid,comm"
18020         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18021         DISTVER=`uname -r`
18022         TAPEDRIVE="/dev/rmt/0hnb"
18023   ;;
18024 irix)
18025         DISTVER=`uname -r`
18026         TAPEDRIVE="/dev/rmt/0cbn"
18027         PSCMD="ps -e -o pid,comm"
18028         PFILES="${PFILES} \
18029             platforms/irix/Makefile \
18030             platforms/irix/bacula-fd \
18031             platforms/irix/bacula-sd \
18032             platforms/irix/bacula-dir"
18033   ;;
18034 netbsd)
18035         DISTVER=`uname -a |awk '{print $3}'`
18036         lld="qd"
18037         llu="qu"
18038         TAPEDRIVE="/dev/nrst0"
18039         PSCMD="ps -a -o pid,command"
18040         PTHREAD_LIB="-pthread"
18041         CFLAGS="${CFLAGS} -pthread"
18042   ;;
18043 openbsd)
18044         DISTVER=`uname -a |awk '{print $3}'`
18045         lld="qd"
18046         llu="qu"
18047         TAPEDRIVE="/dev/nrst0"
18048         PSCMD="ps -a -o pid,command"
18049         PTHREAD_LIB="-pthread"
18050         CFLAGS="${CFLAGS} -pthread"
18051         PFILES="${PFILES} \
18052             platforms/openbsd/Makefile \
18053             platforms/openbsd/bacula-fd \
18054             platforms/openbsd/bacula-sd \
18055             platforms/openbsd/bacula-dir"
18056   ;;
18057 redhat)
18058         if test `cat /etc/redhat-release | grep release |\
18059                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18060            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18061                     cut -f 6 -d ' '`
18062         else
18063             DISTVER=`cat /etc/redhat-release | grep release |\
18064                      cut -f 5 -d ' '`
18065         fi
18066         TAPEDRIVE="/dev/nst0"
18067         PSCMD="ps -e -o pid,command"
18068         PFILES="${PFILES} \
18069             platforms/redhat/Makefile \
18070             platforms/redhat/bacula-fd \
18071             platforms/redhat/bacula-sd \
18072             platforms/redhat/bacula-dir \
18073             platforms/redhat/bacula.spec \
18074             "
18075         hostname=`hostname -s`
18076   ;;
18077 mandrake)
18078         DISTVER=`cat /etc/mandrake-release | grep release |\
18079            cut -f 5 -d ' '`
18080         TAPEDRIVE="/dev/nst0"
18081         PSCMD="ps -e -o pid,command"
18082         PFILES="${PFILES} \
18083             platforms/mandrake/Makefile \
18084             platforms/mandrake/bacula-fd \
18085             platforms/mandrake/bacula-sd \
18086             platforms/mandrake/bacula-dir \
18087             platforms/mandrake/bacula.spec \
18088             "
18089   ;;
18090 gentoo)
18091         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18092         TAPEDRIVE="/dev/nst0"
18093         PSCMD="ps -e -o pid,command"
18094         PFILES="${PFILES} \
18095             platforms/gentoo/Makefile \
18096             platforms/gentoo/bacula-fd \
18097             platforms/gentoo/bacula-sd \
18098             platforms/gentoo/bacula-dir"
18099   ;;
18100 slackware)
18101         DISTVER=`cat /etc/slackware-version`
18102         TAPEDRIVE="/dev/nst0"
18103         PSCMD="ps -e -o pid,command"
18104         PFILES="${PFILES} \
18105             platforms/slackware/Makefile \
18106             platforms/slackware/rc.bacula-fd \
18107             platforms/slackware/rc.bacula-sd \
18108             platforms/slackware/rc.bacula-dir\
18109             platforms/slackware/functions.bacula"
18110   ;;
18111 solaris)
18112         DISTVER=`uname -r`
18113         TAPEDRIVE="/dev/rmt/0cbn"
18114         PSCMD="ps -e -o pid,comm"
18115         PFILES="${PFILES} \
18116             platforms/solaris/Makefile \
18117             platforms/solaris/bacula-fd \
18118             platforms/solaris/bacula-sd \
18119             platforms/solaris/bacula-dir"
18120         if test x$DISTVER = x5.6 ; then
18121             cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_OLD_SOCKOPT 1
18123 _ACEOF
18124
18125         fi
18126   ;;
18127 suse)
18128         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18129             cut -f 3 -d ' '`
18130         TAPEDRIVE="/dev/nst0"
18131         PSCMD="ps -e -o pid,command"
18132         PFILES="${PFILES} \
18133             platforms/suse/Makefile \
18134             platforms/suse/bacula-fd \
18135             platforms/suse/bacula-sd \
18136             platforms/suse/bacula-dir \
18137             platforms/suse/bacula \
18138             platforms/suse/bacula.spec"
18139   ;;
18140 suse5)
18141         DISTNAME=suse
18142         DISTVER=5.x
18143         TAPEDRIVE="/dev/nst0"
18144         PSCMD="ps -e -o pid,command"
18145         PFILES="${PFILES} \
18146             platforms/suse/Makefile \
18147             platforms/suse/bacula-fd \
18148             platforms/suse/bacula-sd \
18149             platforms/suse/bacula-dir"
18150   ;;
18151 unknown)
18152         DISTVER=unknown
18153         TAPEDRIVE="/dev/nst0"
18154   ;;
18155 *)
18156   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18157   ;;
18158 esac
18159
18160
18161
18162 LIBS="$PTHREAD_LIB $LIBS"
18163
18164 cat >>confdefs.h <<_ACEOF
18165 #define lld "$lld"
18166 _ACEOF
18167
18168 cat >>confdefs.h <<_ACEOF
18169 #define llu "$llu"
18170 _ACEOF
18171
18172
18173
18174
18175
18176
18177
18178 MCOMMON=./autoconf/Make.common
18179
18180
18181 if test "x${subsysdir}" = "x${sbindir}" ; then
18182    echo " "
18183    echo " "
18184    echo "You have set both --sbindir and --with-subsys-dir"
18185    echo "  equal to: ${subsysdir} "
18186    echo "This is not permitted. Please reconfigure."
18187    echo " "
18188    echo "Aborting configuration ..."
18189    echo " "
18190    echo " "
18191    exit 1
18192 fi
18193
18194                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/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/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"
18195           ac_config_commands="$ac_config_commands default"
18196 cat >confcache <<\_ACEOF
18197 # This file is a shell script that caches the results of configure
18198 # tests run on this system so they can be shared between configure
18199 # scripts and configure runs, see configure's option --config-cache.
18200 # It is not useful on other systems.  If it contains results you don't
18201 # want to keep, you may remove or edit it.
18202 #
18203 # config.status only pays attention to the cache file if you give it
18204 # the --recheck option to rerun configure.
18205 #
18206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18208 # following values.
18209
18210 _ACEOF
18211
18212 # The following way of writing the cache mishandles newlines in values,
18213 # but we know of no workaround that is simple, portable, and efficient.
18214 # So, don't put newlines in cache variables' values.
18215 # Ultrix sh set writes to stderr and can't be redirected directly,
18216 # and sets the high bit in the cache file unless we assign to the vars.
18217 {
18218   (set) 2>&1 |
18219     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18220     *ac_space=\ *)
18221       # `set' does not quote correctly, so add quotes (double-quote
18222       # substitution turns \\\\ into \\, and sed turns \\ into \).
18223       sed -n \
18224         "s/'/'\\\\''/g;
18225           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18226       ;;
18227     *)
18228       # `set' quotes correctly as required by POSIX, so do not add quotes.
18229       sed -n \
18230         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18231       ;;
18232     esac;
18233 } |
18234   sed '
18235      t clear
18236      : clear
18237      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18238      t end
18239      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18240      : end' >>confcache
18241 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18242   if test -w $cache_file; then
18243     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18244     cat confcache >$cache_file
18245   else
18246     echo "not updating unwritable cache $cache_file"
18247   fi
18248 fi
18249 rm -f confcache
18250
18251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18252 # Let make expand exec_prefix.
18253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18254
18255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18257 # trailing colons and then remove the whole line if VPATH becomes empty
18258 # (actually we leave an empty line to preserve line numbers).
18259 if test "x$srcdir" = x.; then
18260   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18261 s/:*\$(srcdir):*/:/;
18262 s/:*\${srcdir}:*/:/;
18263 s/:*@srcdir@:*/:/;
18264 s/^\([^=]*=[    ]*\):*/\1/;
18265 s/:*$//;
18266 s/^[^=]*=[      ]*$//;
18267 }'
18268 fi
18269
18270 DEFS=-DHAVE_CONFIG_H
18271
18272 ac_libobjs=
18273 ac_ltlibobjs=
18274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18275   # 1. Remove the extension, and $U if already installed.
18276   ac_i=`echo "$ac_i" |
18277          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18278   # 2. Add them.
18279   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18280   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18281 done
18282 LIBOBJS=$ac_libobjs
18283
18284 LTLIBOBJS=$ac_ltlibobjs
18285
18286
18287
18288 : ${CONFIG_STATUS=./config.status}
18289 ac_clean_files_save=$ac_clean_files
18290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18293 cat >$CONFIG_STATUS <<_ACEOF
18294 #! $SHELL
18295 # Generated by $as_me.
18296 # Run this file to recreate the current configuration.
18297 # Compiler output produced by configure, useful for debugging
18298 # configure, is in config.log if it exists.
18299
18300 debug=false
18301 ac_cs_recheck=false
18302 ac_cs_silent=false
18303 SHELL=\${CONFIG_SHELL-$SHELL}
18304 _ACEOF
18305
18306 cat >>$CONFIG_STATUS <<\_ACEOF
18307 ## --------------------- ##
18308 ## M4sh Initialization.  ##
18309 ## --------------------- ##
18310
18311 # Be Bourne compatible
18312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18313   emulate sh
18314   NULLCMD=:
18315   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18316   # is contrary to our usage.  Disable this feature.
18317   alias -g '${1+"$@"}'='"$@"'
18318 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18319   set -o posix
18320 fi
18321
18322 # Support unset when possible.
18323 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18324   as_unset=unset
18325 else
18326   as_unset=false
18327 fi
18328
18329
18330 # Work around bugs in pre-3.0 UWIN ksh.
18331 $as_unset ENV MAIL MAILPATH
18332 PS1='$ '
18333 PS2='> '
18334 PS4='+ '
18335
18336 # NLS nuisances.
18337 for as_var in \
18338   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18339   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18340   LC_TELEPHONE LC_TIME
18341 do
18342   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18343     eval $as_var=C; export $as_var
18344   else
18345     $as_unset $as_var
18346   fi
18347 done
18348
18349 # Required to use basename.
18350 if expr a : '\(a\)' >/dev/null 2>&1; then
18351   as_expr=expr
18352 else
18353   as_expr=false
18354 fi
18355
18356 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18357   as_basename=basename
18358 else
18359   as_basename=false
18360 fi
18361
18362
18363 # Name of the executable.
18364 as_me=`$as_basename "$0" ||
18365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18366          X"$0" : 'X\(//\)$' \| \
18367          X"$0" : 'X\(/\)$' \| \
18368          .     : '\(.\)' 2>/dev/null ||
18369 echo X/"$0" |
18370     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18371           /^X\/\(\/\/\)$/{ s//\1/; q; }
18372           /^X\/\(\/\).*/{ s//\1/; q; }
18373           s/.*/./; q'`
18374
18375
18376 # PATH needs CR, and LINENO needs CR and PATH.
18377 # Avoid depending upon Character Ranges.
18378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18381 as_cr_digits='0123456789'
18382 as_cr_alnum=$as_cr_Letters$as_cr_digits
18383
18384 # The user is always right.
18385 if test "${PATH_SEPARATOR+set}" != set; then
18386   echo "#! /bin/sh" >conf$$.sh
18387   echo  "exit 0"   >>conf$$.sh
18388   chmod +x conf$$.sh
18389   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18390     PATH_SEPARATOR=';'
18391   else
18392     PATH_SEPARATOR=:
18393   fi
18394   rm -f conf$$.sh
18395 fi
18396
18397
18398   as_lineno_1=$LINENO
18399   as_lineno_2=$LINENO
18400   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18401   test "x$as_lineno_1" != "x$as_lineno_2" &&
18402   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18403   # Find who we are.  Look in the path if we contain no path at all
18404   # relative or not.
18405   case $0 in
18406     *[\\/]* ) as_myself=$0 ;;
18407     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18409 do
18410   IFS=$as_save_IFS
18411   test -z "$as_dir" && as_dir=.
18412   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18413 done
18414
18415        ;;
18416   esac
18417   # We did not find ourselves, most probably we were run as `sh COMMAND'
18418   # in which case we are not to be found in the path.
18419   if test "x$as_myself" = x; then
18420     as_myself=$0
18421   fi
18422   if test ! -f "$as_myself"; then
18423     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18424 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18425    { (exit 1); exit 1; }; }
18426   fi
18427   case $CONFIG_SHELL in
18428   '')
18429     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18431 do
18432   IFS=$as_save_IFS
18433   test -z "$as_dir" && as_dir=.
18434   for as_base in sh bash ksh sh5; do
18435          case $as_dir in
18436          /*)
18437            if ("$as_dir/$as_base" -c '
18438   as_lineno_1=$LINENO
18439   as_lineno_2=$LINENO
18440   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18441   test "x$as_lineno_1" != "x$as_lineno_2" &&
18442   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18443              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18444              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18445              CONFIG_SHELL=$as_dir/$as_base
18446              export CONFIG_SHELL
18447              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18448            fi;;
18449          esac
18450        done
18451 done
18452 ;;
18453   esac
18454
18455   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18456   # uniformly replaced by the line number.  The first 'sed' inserts a
18457   # line-number line before each line; the second 'sed' does the real
18458   # work.  The second script uses 'N' to pair each line-number line
18459   # with the numbered line, and appends trailing '-' during
18460   # substitution so that $LINENO is not a special case at line end.
18461   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18462   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18463   sed '=' <$as_myself |
18464     sed '
18465       N
18466       s,$,-,
18467       : loop
18468       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18469       t loop
18470       s,-$,,
18471       s,^['$as_cr_digits']*\n,,
18472     ' >$as_me.lineno &&
18473   chmod +x $as_me.lineno ||
18474     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18475 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18476    { (exit 1); exit 1; }; }
18477
18478   # Don't try to exec as it changes $[0], causing all sort of problems
18479   # (the dirname of $[0] is not the place where we might find the
18480   # original and so on.  Autoconf is especially sensible to this).
18481   . ./$as_me.lineno
18482   # Exit status is that of the last command.
18483   exit
18484 }
18485
18486
18487 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18488   *c*,-n*) ECHO_N= ECHO_C='
18489 ' ECHO_T='      ' ;;
18490   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18491   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18492 esac
18493
18494 if expr a : '\(a\)' >/dev/null 2>&1; then
18495   as_expr=expr
18496 else
18497   as_expr=false
18498 fi
18499
18500 rm -f conf$$ conf$$.exe conf$$.file
18501 echo >conf$$.file
18502 if ln -s conf$$.file conf$$ 2>/dev/null; then
18503   # We could just check for DJGPP; but this test a) works b) is more generic
18504   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18505   if test -f conf$$.exe; then
18506     # Don't use ln at all; we don't have any links
18507     as_ln_s='cp -p'
18508   else
18509     as_ln_s='ln -s'
18510   fi
18511 elif ln conf$$.file conf$$ 2>/dev/null; then
18512   as_ln_s=ln
18513 else
18514   as_ln_s='cp -p'
18515 fi
18516 rm -f conf$$ conf$$.exe conf$$.file
18517
18518 if mkdir -p . 2>/dev/null; then
18519   as_mkdir_p=:
18520 else
18521   as_mkdir_p=false
18522 fi
18523
18524 as_executable_p="test -f"
18525
18526 # Sed expression to map a string onto a valid CPP name.
18527 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18528
18529 # Sed expression to map a string onto a valid variable name.
18530 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18531
18532
18533 # IFS
18534 # We need space, tab and new line, in precisely that order.
18535 as_nl='
18536 '
18537 IFS="   $as_nl"
18538
18539 # CDPATH.
18540 $as_unset CDPATH
18541
18542 exec 6>&1
18543
18544 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18545 # report actual input values of CONFIG_FILES etc. instead of their
18546 # values after options handling.  Logging --version etc. is OK.
18547 exec 5>>config.log
18548 {
18549   echo
18550   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18551 ## Running $as_me. ##
18552 _ASBOX
18553 } >&5
18554 cat >&5 <<_CSEOF
18555
18556 This file was extended by $as_me, which was
18557 generated by GNU Autoconf 2.57.  Invocation command line was
18558
18559   CONFIG_FILES    = $CONFIG_FILES
18560   CONFIG_HEADERS  = $CONFIG_HEADERS
18561   CONFIG_LINKS    = $CONFIG_LINKS
18562   CONFIG_COMMANDS = $CONFIG_COMMANDS
18563   $ $0 $@
18564
18565 _CSEOF
18566 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18567 echo >&5
18568 _ACEOF
18569
18570 # Files that config.status was made for.
18571 if test -n "$ac_config_files"; then
18572   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18573 fi
18574
18575 if test -n "$ac_config_headers"; then
18576   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18577 fi
18578
18579 if test -n "$ac_config_links"; then
18580   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18581 fi
18582
18583 if test -n "$ac_config_commands"; then
18584   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18585 fi
18586
18587 cat >>$CONFIG_STATUS <<\_ACEOF
18588
18589 ac_cs_usage="\
18590 \`$as_me' instantiates files from templates according to the
18591 current configuration.
18592
18593 Usage: $0 [OPTIONS] [FILE]...
18594
18595   -h, --help       print this help, then exit
18596   -V, --version    print version number, then exit
18597   -q, --quiet      do not print progress messages
18598   -d, --debug      don't remove temporary files
18599       --recheck    update $as_me by reconfiguring in the same conditions
18600   --file=FILE[:TEMPLATE]
18601                    instantiate the configuration file FILE
18602   --header=FILE[:TEMPLATE]
18603                    instantiate the configuration header FILE
18604
18605 Configuration files:
18606 $config_files
18607
18608 Configuration headers:
18609 $config_headers
18610
18611 Configuration commands:
18612 $config_commands
18613
18614 Report bugs to <bug-autoconf@gnu.org>."
18615 _ACEOF
18616
18617 cat >>$CONFIG_STATUS <<_ACEOF
18618 ac_cs_version="\\
18619 config.status
18620 configured by $0, generated by GNU Autoconf 2.57,
18621   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18622
18623 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18624 Free Software Foundation, Inc.
18625 This config.status script is free software; the Free Software Foundation
18626 gives unlimited permission to copy, distribute and modify it."
18627 srcdir=$srcdir
18628 INSTALL="$INSTALL"
18629 _ACEOF
18630
18631 cat >>$CONFIG_STATUS <<\_ACEOF
18632 # If no file are specified by the user, then we need to provide default
18633 # value.  By we need to know if files were specified by the user.
18634 ac_need_defaults=:
18635 while test $# != 0
18636 do
18637   case $1 in
18638   --*=*)
18639     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18640     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18641     ac_shift=:
18642     ;;
18643   -*)
18644     ac_option=$1
18645     ac_optarg=$2
18646     ac_shift=shift
18647     ;;
18648   *) # This is not an option, so the user has probably given explicit
18649      # arguments.
18650      ac_option=$1
18651      ac_need_defaults=false;;
18652   esac
18653
18654   case $ac_option in
18655   # Handling of the options.
18656 _ACEOF
18657 cat >>$CONFIG_STATUS <<\_ACEOF
18658   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18659     ac_cs_recheck=: ;;
18660   --version | --vers* | -V )
18661     echo "$ac_cs_version"; exit 0 ;;
18662   --he | --h)
18663     # Conflict between --help and --header
18664     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18665 Try \`$0 --help' for more information." >&5
18666 echo "$as_me: error: ambiguous option: $1
18667 Try \`$0 --help' for more information." >&2;}
18668    { (exit 1); exit 1; }; };;
18669   --help | --hel | -h )
18670     echo "$ac_cs_usage"; exit 0 ;;
18671   --debug | --d* | -d )
18672     debug=: ;;
18673   --file | --fil | --fi | --f )
18674     $ac_shift
18675     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18676     ac_need_defaults=false;;
18677   --header | --heade | --head | --hea )
18678     $ac_shift
18679     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18680     ac_need_defaults=false;;
18681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18682   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18683     ac_cs_silent=: ;;
18684
18685   # This is an error.
18686   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18687 Try \`$0 --help' for more information." >&5
18688 echo "$as_me: error: unrecognized option: $1
18689 Try \`$0 --help' for more information." >&2;}
18690    { (exit 1); exit 1; }; } ;;
18691
18692   *) ac_config_targets="$ac_config_targets $1" ;;
18693
18694   esac
18695   shift
18696 done
18697
18698 ac_configure_extra_args=
18699
18700 if $ac_cs_silent; then
18701   exec 6>/dev/null
18702   ac_configure_extra_args="$ac_configure_extra_args --silent"
18703 fi
18704
18705 _ACEOF
18706 cat >>$CONFIG_STATUS <<_ACEOF
18707 if \$ac_cs_recheck; then
18708   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18709   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18710 fi
18711
18712 _ACEOF
18713
18714
18715
18716
18717
18718 cat >>$CONFIG_STATUS <<\_ACEOF
18719 for ac_config_target in $ac_config_targets
18720 do
18721   case "$ac_config_target" in
18722   # Handling of arguments.
18723   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18724   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18725   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18726   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18727   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18728   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18729   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18730   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18731   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18732   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18733   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18734   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18735   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18736   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18737   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18738   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18739   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18740   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18741   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18742   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18743   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18744   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18745   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18746   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18747   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18748   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18749   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18750   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18751   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18752   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18753   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18754   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18755   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18756   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18757   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18758   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18759   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18760   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18761   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18762   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18763   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18764   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18765   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18766   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18767   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18768   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18769   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18770   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18771   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18772   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18773   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18774   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18775   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18776   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18777   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18778   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18779   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18780   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18781   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18782   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18783   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18784   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18785   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18786   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18787   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18788   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18789   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18790   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18791   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18792   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18793   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18794   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18795   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18796   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18797   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18798   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18799   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18800   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18801   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18802   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18803   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18804   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18805   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18806   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18807   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18808   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18809   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18810   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18811   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18812   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18813   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18815    { (exit 1); exit 1; }; };;
18816   esac
18817 done
18818
18819 # If the user did not use the arguments to specify the items to instantiate,
18820 # then the envvar interface is used.  Set only those that are not.
18821 # We use the long form for the default assignment because of an extremely
18822 # bizarre bug on SunOS 4.1.3.
18823 if $ac_need_defaults; then
18824   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18825   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18826   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18827 fi
18828
18829 # Have a temporary directory for convenience.  Make it in the build tree
18830 # simply because there is no reason to put it here, and in addition,
18831 # creating and moving files from /tmp can sometimes cause problems.
18832 # Create a temporary directory, and hook for its removal unless debugging.
18833 $debug ||
18834 {
18835   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18836   trap '{ (exit 1); exit 1; }' 1 2 13 15
18837 }
18838
18839 # Create a (secure) tmp directory for tmp files.
18840
18841 {
18842   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18843   test -n "$tmp" && test -d "$tmp"
18844 }  ||
18845 {
18846   tmp=./confstat$$-$RANDOM
18847   (umask 077 && mkdir $tmp)
18848 } ||
18849 {
18850    echo "$me: cannot create a temporary directory in ." >&2
18851    { (exit 1); exit 1; }
18852 }
18853
18854 _ACEOF
18855
18856 cat >>$CONFIG_STATUS <<_ACEOF
18857
18858 #
18859 # CONFIG_FILES section.
18860 #
18861
18862 # No need to generate the scripts if there are no CONFIG_FILES.
18863 # This happens for instance when ./config.status config.h
18864 if test -n "\$CONFIG_FILES"; then
18865   # Protect against being on the right side of a sed subst in config.status.
18866   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18867    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18868 s,@SHELL@,$SHELL,;t t
18869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18875 s,@exec_prefix@,$exec_prefix,;t t
18876 s,@prefix@,$prefix,;t t
18877 s,@program_transform_name@,$program_transform_name,;t t
18878 s,@bindir@,$bindir,;t t
18879 s,@sbindir@,$sbindir,;t t
18880 s,@libexecdir@,$libexecdir,;t t
18881 s,@datadir@,$datadir,;t t
18882 s,@sysconfdir@,$sysconfdir,;t t
18883 s,@sharedstatedir@,$sharedstatedir,;t t
18884 s,@localstatedir@,$localstatedir,;t t
18885 s,@libdir@,$libdir,;t t
18886 s,@includedir@,$includedir,;t t
18887 s,@oldincludedir@,$oldincludedir,;t t
18888 s,@infodir@,$infodir,;t t
18889 s,@mandir@,$mandir,;t t
18890 s,@build_alias@,$build_alias,;t t
18891 s,@host_alias@,$host_alias,;t t
18892 s,@target_alias@,$target_alias,;t t
18893 s,@DEFS@,$DEFS,;t t
18894 s,@ECHO_C@,$ECHO_C,;t t
18895 s,@ECHO_N@,$ECHO_N,;t t
18896 s,@ECHO_T@,$ECHO_T,;t t
18897 s,@LIBS@,$LIBS,;t t
18898 s,@BUILD_DIR@,$BUILD_DIR,;t t
18899 s,@TRUEPRG@,$TRUEPRG,;t t
18900 s,@FALSEPRG@,$FALSEPRG,;t t
18901 s,@VERSION@,$VERSION,;t t
18902 s,@DATE@,$DATE,;t t
18903 s,@LSMDATE@,$LSMDATE,;t t
18904 s,@CC@,$CC,;t t
18905 s,@CFLAGS@,$CFLAGS,;t t
18906 s,@LDFLAGS@,$LDFLAGS,;t t
18907 s,@CPPFLAGS@,$CPPFLAGS,;t t
18908 s,@ac_ct_CC@,$ac_ct_CC,;t t
18909 s,@EXEEXT@,$EXEEXT,;t t
18910 s,@OBJEXT@,$OBJEXT,;t t
18911 s,@CXX@,$CXX,;t t
18912 s,@CXXFLAGS@,$CXXFLAGS,;t t
18913 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18914 s,@CPP@,$CPP,;t t
18915 s,@EGREP@,$EGREP,;t t
18916 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18917 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18918 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18919 s,@RANLIB@,$RANLIB,;t t
18920 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18921 s,@MV@,$MV,;t t
18922 s,@RM@,$RM,;t t
18923 s,@CP@,$CP,;t t
18924 s,@SED@,$SED,;t t
18925 s,@AWK@,$AWK,;t t
18926 s,@ECHO@,$ECHO,;t t
18927 s,@CMP@,$CMP,;t t
18928 s,@TBL@,$TBL,;t t
18929 s,@AR@,$AR,;t t
18930 s,@OPENSSL@,$OPENSSL,;t t
18931 s,@MTX@,$MTX,;t t
18932 s,@PKGCONFIG@,$PKGCONFIG,;t t
18933 s,@WXCONFIG@,$WXCONFIG,;t t
18934 s,@ARFLAGS@,$ARFLAGS,;t t
18935 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18936 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18937 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18938 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18939 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18940 s,@build@,$build,;t t
18941 s,@build_cpu@,$build_cpu,;t t
18942 s,@build_vendor@,$build_vendor,;t t
18943 s,@build_os@,$build_os,;t t
18944 s,@host@,$host,;t t
18945 s,@host_cpu@,$host_cpu,;t t
18946 s,@host_vendor@,$host_vendor,;t t
18947 s,@host_os@,$host_os,;t t
18948 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18949 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18950 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18951 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18952 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18953 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18954 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18955 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18956 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18957 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18958 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18959 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18960 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18961 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18962 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18963 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18964 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18965 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18966 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18967 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18968 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18969 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18970 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18971 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18972 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18973 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18974 s,@MSGFMT@,$MSGFMT,;t t
18975 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18976 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18977 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18978 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18979 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18980 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18981 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18982 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18983 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18984 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18985 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18986 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18987 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18988 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18989 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18990 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18991 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18992 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18993 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18994 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18995 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18996 s,@GNOME_DIR@,$GNOME_DIR,;t t
18997 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
18998 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
18999 s,@WX_DIR@,$WX_DIR,;t t
19000 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19001 s,@STATIC_FD@,$STATIC_FD,;t t
19002 s,@STATIC_SD@,$STATIC_SD,;t t
19003 s,@STATIC_DIR@,$STATIC_DIR,;t t
19004 s,@STATIC_CONS@,$STATIC_CONS,;t t
19005 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19006 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19007 s,@ALL_DIRS@,$ALL_DIRS,;t t
19008 s,@CONS_INC@,$CONS_INC,;t t
19009 s,@CONS_OBJ@,$CONS_OBJ,;t t
19010 s,@CONS_SRC@,$CONS_SRC,;t t
19011 s,@CONS_LIBS@,$CONS_LIBS,;t t
19012 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19013 s,@READLINE_SRC@,$READLINE_SRC,;t t
19014 s,@working_dir@,$working_dir,;t t
19015 s,@scriptdir@,$scriptdir,;t t
19016 s,@dump_email@,$dump_email,;t t
19017 s,@job_email@,$job_email,;t t
19018 s,@smtp_host@,$smtp_host,;t t
19019 s,@piddir@,$piddir,;t t
19020 s,@subsysdir@,$subsysdir,;t t
19021 s,@baseport@,$baseport,;t t
19022 s,@dir_port@,$dir_port,;t t
19023 s,@fd_port@,$fd_port,;t t
19024 s,@sd_port@,$sd_port,;t t
19025 s,@dir_password@,$dir_password,;t t
19026 s,@fd_password@,$fd_password,;t t
19027 s,@sd_password@,$sd_password,;t t
19028 s,@dir_user@,$dir_user,;t t
19029 s,@dir_group@,$dir_group,;t t
19030 s,@sd_user@,$sd_user,;t t
19031 s,@sd_group@,$sd_group,;t t
19032 s,@fd_user@,$fd_user,;t t
19033 s,@fd_group@,$fd_group,;t t
19034 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19035 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19036 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19037 s,@cats@,$cats,;t t
19038 s,@DB_NAME@,$DB_NAME,;t t
19039 s,@GETCONF@,$GETCONF,;t t
19040 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19041 s,@X_CFLAGS@,$X_CFLAGS,;t t
19042 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19043 s,@X_LIBS@,$X_LIBS,;t t
19044 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19045 s,@LIBOBJS@,$LIBOBJS,;t t
19046 s,@ALLOCA@,$ALLOCA,;t t
19047 s,@FDLIBS@,$FDLIBS,;t t
19048 s,@DEBUG@,$DEBUG,;t t
19049 s,@DINCLUDE@,$DINCLUDE,;t t
19050 s,@DLIB@,$DLIB,;t t
19051 s,@DB_LIBS@,$DB_LIBS,;t t
19052 s,@WCFLAGS@,$WCFLAGS,;t t
19053 s,@WLDFLAGS@,$WLDFLAGS,;t t
19054 s,@OBJLIST@,$OBJLIST,;t t
19055 s,@hostname@,$hostname,;t t
19056 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19057 s,@PSCMD@,$PSCMD,;t t
19058 s,@WIN32@,$WIN32,;t t
19059 s,@DISTNAME@,$DISTNAME,;t t
19060 s,@DISTVER@,$DISTVER,;t t
19061 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19062 /@MCOMMON@/r $MCOMMON
19063 s,@MCOMMON@,,;t t
19064 CEOF
19065
19066 _ACEOF
19067
19068   cat >>$CONFIG_STATUS <<\_ACEOF
19069   # Split the substitutions into bite-sized pieces for seds with
19070   # small command number limits, like on Digital OSF/1 and HP-UX.
19071   ac_max_sed_lines=48
19072   ac_sed_frag=1 # Number of current file.
19073   ac_beg=1 # First line for current file.
19074   ac_end=$ac_max_sed_lines # Line after last line for current file.
19075   ac_more_lines=:
19076   ac_sed_cmds=
19077   while $ac_more_lines; do
19078     if test $ac_beg -gt 1; then
19079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19080     else
19081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19082     fi
19083     if test ! -s $tmp/subs.frag; then
19084       ac_more_lines=false
19085     else
19086       # The purpose of the label and of the branching condition is to
19087       # speed up the sed processing (if there are no `@' at all, there
19088       # is no need to browse any of the substitutions).
19089       # These are the two extra sed commands mentioned above.
19090       (echo ':t
19091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19092       if test -z "$ac_sed_cmds"; then
19093         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19094       else
19095         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19096       fi
19097       ac_sed_frag=`expr $ac_sed_frag + 1`
19098       ac_beg=$ac_end
19099       ac_end=`expr $ac_end + $ac_max_sed_lines`
19100     fi
19101   done
19102   if test -z "$ac_sed_cmds"; then
19103     ac_sed_cmds=cat
19104   fi
19105 fi # test -n "$CONFIG_FILES"
19106
19107 _ACEOF
19108 cat >>$CONFIG_STATUS <<\_ACEOF
19109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19111   case $ac_file in
19112   - | *:- | *:-:* ) # input from stdin
19113         cat >$tmp/stdin
19114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19118   * )   ac_file_in=$ac_file.in ;;
19119   esac
19120
19121   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19122   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19124          X"$ac_file" : 'X\(//\)[^/]' \| \
19125          X"$ac_file" : 'X\(//\)$' \| \
19126          X"$ac_file" : 'X\(/\)' \| \
19127          .     : '\(.\)' 2>/dev/null ||
19128 echo X"$ac_file" |
19129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19131           /^X\(\/\/\)$/{ s//\1/; q; }
19132           /^X\(\/\).*/{ s//\1/; q; }
19133           s/.*/./; q'`
19134   { if $as_mkdir_p; then
19135     mkdir -p "$ac_dir"
19136   else
19137     as_dir="$ac_dir"
19138     as_dirs=
19139     while test ! -d "$as_dir"; do
19140       as_dirs="$as_dir $as_dirs"
19141       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19143          X"$as_dir" : 'X\(//\)[^/]' \| \
19144          X"$as_dir" : 'X\(//\)$' \| \
19145          X"$as_dir" : 'X\(/\)' \| \
19146          .     : '\(.\)' 2>/dev/null ||
19147 echo X"$as_dir" |
19148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19150           /^X\(\/\/\)$/{ s//\1/; q; }
19151           /^X\(\/\).*/{ s//\1/; q; }
19152           s/.*/./; q'`
19153     done
19154     test ! -n "$as_dirs" || mkdir $as_dirs
19155   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19157    { (exit 1); exit 1; }; }; }
19158
19159   ac_builddir=.
19160
19161 if test "$ac_dir" != .; then
19162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19163   # A "../" for each directory in $ac_dir_suffix.
19164   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19165 else
19166   ac_dir_suffix= ac_top_builddir=
19167 fi
19168
19169 case $srcdir in
19170   .)  # No --srcdir option.  We are building in place.
19171     ac_srcdir=.
19172     if test -z "$ac_top_builddir"; then
19173        ac_top_srcdir=.
19174     else
19175        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19176     fi ;;
19177   [\\/]* | ?:[\\/]* )  # Absolute path.
19178     ac_srcdir=$srcdir$ac_dir_suffix;
19179     ac_top_srcdir=$srcdir ;;
19180   *) # Relative path.
19181     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19182     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19183 esac
19184 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19185 # absolute.
19186 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19187 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19188 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19189 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19190
19191
19192   case $INSTALL in
19193   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19194   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19195   esac
19196
19197   if test x"$ac_file" != x-; then
19198     { echo "$as_me:$LINENO: creating $ac_file" >&5
19199 echo "$as_me: creating $ac_file" >&6;}
19200     rm -f "$ac_file"
19201   fi
19202   # Let's still pretend it is `configure' which instantiates (i.e., don't
19203   # use $as_me), people would be surprised to read:
19204   #    /* config.h.  Generated by config.status.  */
19205   if test x"$ac_file" = x-; then
19206     configure_input=
19207   else
19208     configure_input="$ac_file.  "
19209   fi
19210   configure_input=$configure_input"Generated from `echo $ac_file_in |
19211                                      sed 's,.*/,,'` by configure."
19212
19213   # First look for the input files in the build tree, otherwise in the
19214   # src tree.
19215   ac_file_inputs=`IFS=:
19216     for f in $ac_file_in; do
19217       case $f in
19218       -) echo $tmp/stdin ;;
19219       [\\/$]*)
19220          # Absolute (can't be DOS-style, as IFS=:)
19221          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19222 echo "$as_me: error: cannot find input file: $f" >&2;}
19223    { (exit 1); exit 1; }; }
19224          echo $f;;
19225       *) # Relative
19226          if test -f "$f"; then
19227            # Build tree
19228            echo $f
19229          elif test -f "$srcdir/$f"; then
19230            # Source tree
19231            echo $srcdir/$f
19232          else
19233            # /dev/null tree
19234            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19235 echo "$as_me: error: cannot find input file: $f" >&2;}
19236    { (exit 1); exit 1; }; }
19237          fi;;
19238       esac
19239     done` || { (exit 1); exit 1; }
19240 _ACEOF
19241 cat >>$CONFIG_STATUS <<_ACEOF
19242   sed "$ac_vpsub
19243 $extrasub
19244 _ACEOF
19245 cat >>$CONFIG_STATUS <<\_ACEOF
19246 :t
19247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19248 s,@configure_input@,$configure_input,;t t
19249 s,@srcdir@,$ac_srcdir,;t t
19250 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19251 s,@top_srcdir@,$ac_top_srcdir,;t t
19252 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19253 s,@builddir@,$ac_builddir,;t t
19254 s,@abs_builddir@,$ac_abs_builddir,;t t
19255 s,@top_builddir@,$ac_top_builddir,;t t
19256 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19257 s,@INSTALL@,$ac_INSTALL,;t t
19258 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19259   rm -f $tmp/stdin
19260   if test x"$ac_file" != x-; then
19261     mv $tmp/out $ac_file
19262   else
19263     cat $tmp/out
19264     rm -f $tmp/out
19265   fi
19266
19267 done
19268 _ACEOF
19269 cat >>$CONFIG_STATUS <<\_ACEOF
19270
19271 #
19272 # CONFIG_HEADER section.
19273 #
19274
19275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19277 #
19278 # ac_d sets the value in "#define NAME VALUE" lines.
19279 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19280 ac_dB='[        ].*$,\1#\2'
19281 ac_dC=' '
19282 ac_dD=',;t'
19283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19284 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19285 ac_uB='$,\1#\2define\3'
19286 ac_uC=' '
19287 ac_uD=',;t'
19288
19289 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19290   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19291   case $ac_file in
19292   - | *:- | *:-:* ) # input from stdin
19293         cat >$tmp/stdin
19294         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19295         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19296   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19298   * )   ac_file_in=$ac_file.in ;;
19299   esac
19300
19301   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19302 echo "$as_me: creating $ac_file" >&6;}
19303
19304   # First look for the input files in the build tree, otherwise in the
19305   # src tree.
19306   ac_file_inputs=`IFS=:
19307     for f in $ac_file_in; do
19308       case $f in
19309       -) echo $tmp/stdin ;;
19310       [\\/$]*)
19311          # Absolute (can't be DOS-style, as IFS=:)
19312          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19313 echo "$as_me: error: cannot find input file: $f" >&2;}
19314    { (exit 1); exit 1; }; }
19315          echo $f;;
19316       *) # Relative
19317          if test -f "$f"; then
19318            # Build tree
19319            echo $f
19320          elif test -f "$srcdir/$f"; then
19321            # Source tree
19322            echo $srcdir/$f
19323          else
19324            # /dev/null tree
19325            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19326 echo "$as_me: error: cannot find input file: $f" >&2;}
19327    { (exit 1); exit 1; }; }
19328          fi;;
19329       esac
19330     done` || { (exit 1); exit 1; }
19331   # Remove the trailing spaces.
19332   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19333
19334 _ACEOF
19335
19336 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19337 # `conftest.undefs', that substitutes the proper values into
19338 # config.h.in to produce config.h.  The first handles `#define'
19339 # templates, and the second `#undef' templates.
19340 # And first: Protect against being on the right side of a sed subst in
19341 # config.status.  Protect against being in an unquoted here document
19342 # in config.status.
19343 rm -f conftest.defines conftest.undefs
19344 # Using a here document instead of a string reduces the quoting nightmare.
19345 # Putting comments in sed scripts is not portable.
19346 #
19347 # `end' is used to avoid that the second main sed command (meant for
19348 # 0-ary CPP macros) applies to n-ary macro definitions.
19349 # See the Autoconf documentation for `clear'.
19350 cat >confdef2sed.sed <<\_ACEOF
19351 s/[\\&,]/\\&/g
19352 s,[\\$`],\\&,g
19353 t clear
19354 : clear
19355 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19356 t end
19357 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19358 : end
19359 _ACEOF
19360 # If some macros were called several times there might be several times
19361 # the same #defines, which is useless.  Nevertheless, we may not want to
19362 # sort them, since we want the *last* AC-DEFINE to be honored.
19363 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19364 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19365 rm -f confdef2sed.sed
19366
19367 # This sed command replaces #undef with comments.  This is necessary, for
19368 # example, in the case of _POSIX_SOURCE, which is predefined and required
19369 # on some systems where configure will not decide to define it.
19370 cat >>conftest.undefs <<\_ACEOF
19371 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19372 _ACEOF
19373
19374 # Break up conftest.defines because some shells have a limit on the size
19375 # of here documents, and old seds have small limits too (100 cmds).
19376 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19377 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19378 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19379 echo '  :' >>$CONFIG_STATUS
19380 rm -f conftest.tail
19381 while grep . conftest.defines >/dev/null
19382 do
19383   # Write a limited-size here document to $tmp/defines.sed.
19384   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19385   # Speed up: don't consider the non `#define' lines.
19386   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19387   # Work around the forget-to-reset-the-flag bug.
19388   echo 't clr' >>$CONFIG_STATUS
19389   echo ': clr' >>$CONFIG_STATUS
19390   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19391   echo 'CEOF
19392   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19393   rm -f $tmp/in
19394   mv $tmp/out $tmp/in
19395 ' >>$CONFIG_STATUS
19396   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19397   rm -f conftest.defines
19398   mv conftest.tail conftest.defines
19399 done
19400 rm -f conftest.defines
19401 echo '  fi # grep' >>$CONFIG_STATUS
19402 echo >>$CONFIG_STATUS
19403
19404 # Break up conftest.undefs because some shells have a limit on the size
19405 # of here documents, and old seds have small limits too (100 cmds).
19406 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19407 rm -f conftest.tail
19408 while grep . conftest.undefs >/dev/null
19409 do
19410   # Write a limited-size here document to $tmp/undefs.sed.
19411   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19412   # Speed up: don't consider the non `#undef'
19413   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19414   # Work around the forget-to-reset-the-flag bug.
19415   echo 't clr' >>$CONFIG_STATUS
19416   echo ': clr' >>$CONFIG_STATUS
19417   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19418   echo 'CEOF
19419   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19420   rm -f $tmp/in
19421   mv $tmp/out $tmp/in
19422 ' >>$CONFIG_STATUS
19423   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19424   rm -f conftest.undefs
19425   mv conftest.tail conftest.undefs
19426 done
19427 rm -f conftest.undefs
19428
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19430   # Let's still pretend it is `configure' which instantiates (i.e., don't
19431   # use $as_me), people would be surprised to read:
19432   #    /* config.h.  Generated by config.status.  */
19433   if test x"$ac_file" = x-; then
19434     echo "/* Generated by configure.  */" >$tmp/config.h
19435   else
19436     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19437   fi
19438   cat $tmp/in >>$tmp/config.h
19439   rm -f $tmp/in
19440   if test x"$ac_file" != x-; then
19441     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19442       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19443 echo "$as_me: $ac_file is unchanged" >&6;}
19444     else
19445       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19447          X"$ac_file" : 'X\(//\)[^/]' \| \
19448          X"$ac_file" : 'X\(//\)$' \| \
19449          X"$ac_file" : 'X\(/\)' \| \
19450          .     : '\(.\)' 2>/dev/null ||
19451 echo X"$ac_file" |
19452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19454           /^X\(\/\/\)$/{ s//\1/; q; }
19455           /^X\(\/\).*/{ s//\1/; q; }
19456           s/.*/./; q'`
19457       { if $as_mkdir_p; then
19458     mkdir -p "$ac_dir"
19459   else
19460     as_dir="$ac_dir"
19461     as_dirs=
19462     while test ! -d "$as_dir"; do
19463       as_dirs="$as_dir $as_dirs"
19464       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19466          X"$as_dir" : 'X\(//\)[^/]' \| \
19467          X"$as_dir" : 'X\(//\)$' \| \
19468          X"$as_dir" : 'X\(/\)' \| \
19469          .     : '\(.\)' 2>/dev/null ||
19470 echo X"$as_dir" |
19471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19473           /^X\(\/\/\)$/{ s//\1/; q; }
19474           /^X\(\/\).*/{ s//\1/; q; }
19475           s/.*/./; q'`
19476     done
19477     test ! -n "$as_dirs" || mkdir $as_dirs
19478   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19480    { (exit 1); exit 1; }; }; }
19481
19482       rm -f $ac_file
19483       mv $tmp/config.h $ac_file
19484     fi
19485   else
19486     cat $tmp/config.h
19487     rm -f $tmp/config.h
19488   fi
19489 done
19490 _ACEOF
19491 cat >>$CONFIG_STATUS <<\_ACEOF
19492
19493 #
19494 # CONFIG_COMMANDS section.
19495 #
19496 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19497   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19498   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19499   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19500 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19501          X"$ac_dest" : 'X\(//\)[^/]' \| \
19502          X"$ac_dest" : 'X\(//\)$' \| \
19503          X"$ac_dest" : 'X\(/\)' \| \
19504          .     : '\(.\)' 2>/dev/null ||
19505 echo X"$ac_dest" |
19506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19508           /^X\(\/\/\)$/{ s//\1/; q; }
19509           /^X\(\/\).*/{ s//\1/; q; }
19510           s/.*/./; q'`
19511   ac_builddir=.
19512
19513 if test "$ac_dir" != .; then
19514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19515   # A "../" for each directory in $ac_dir_suffix.
19516   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19517 else
19518   ac_dir_suffix= ac_top_builddir=
19519 fi
19520
19521 case $srcdir in
19522   .)  # No --srcdir option.  We are building in place.
19523     ac_srcdir=.
19524     if test -z "$ac_top_builddir"; then
19525        ac_top_srcdir=.
19526     else
19527        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19528     fi ;;
19529   [\\/]* | ?:[\\/]* )  # Absolute path.
19530     ac_srcdir=$srcdir$ac_dir_suffix;
19531     ac_top_srcdir=$srcdir ;;
19532   *) # Relative path.
19533     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19534     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19535 esac
19536 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19537 # absolute.
19538 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19539 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19540 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19541 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19542
19543
19544   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19545 echo "$as_me: executing $ac_dest commands" >&6;}
19546   case $ac_dest in
19547     default ) (echo "Doing make of dependencies"; make depend;)
19548  ;;
19549   esac
19550 done
19551 _ACEOF
19552
19553 cat >>$CONFIG_STATUS <<\_ACEOF
19554
19555 { (exit 0); exit 0; }
19556 _ACEOF
19557 chmod +x $CONFIG_STATUS
19558 ac_clean_files=$ac_clean_files_save
19559
19560
19561 # configure is writing to config.log, and then calls config.status.
19562 # config.status does its own redirection, appending to config.log.
19563 # Unfortunately, on DOS this fails, as config.log is still kept open
19564 # by configure, so config.status won't be able to write to it; its
19565 # output is simply discarded.  So we exec the FD to /dev/null,
19566 # effectively closing config.log, so it can be properly (re)opened and
19567 # appended to by config.status.  When coming back to configure, we
19568 # need to make the FD available again.
19569 if test "$no_create" != yes; then
19570   ac_cs_success=:
19571   ac_config_status_args=
19572   test "$silent" = yes &&
19573     ac_config_status_args="$ac_config_status_args --quiet"
19574   exec 5>/dev/null
19575   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19576   exec 5>>config.log
19577   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19578   # would make configure fail if this is the last instruction.
19579   $ac_cs_success || { (exit 1); exit 1; }
19580 fi
19581
19582
19583 cd scripts
19584 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19585 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19586 cd ..
19587
19588 c=src/cats
19589
19590 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19591 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19592
19593 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19594 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19595
19596 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19597 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19598
19599 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19600 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19601
19602 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19603 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19604
19605 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19606 chmod 755 $c/sqlite
19607 chmod 755 $c/mysql
19608
19609 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19610    largefile_support="yes"
19611 fi
19612
19613 #
19614 # A whole lot of hand springs to get the compiler version.
19615 #  This is because gcc changed the output in version 3.0
19616 #
19617 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19618 if test "x${CCVERSION}" = "x" ; then
19619   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19620 fi
19621 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19622 if test x"${CXXVERSION}" = x ; then
19623   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19624 fi
19625
19626 if test "x${subsysdir}" = "x${sbindir}" ; then
19627    echo " "
19628    echo " "
19629    echo "You have set --sbindir and --with-subsys-dir"
19630    echo "  both equal to: ${subsysdir} "
19631    echo "  This is not permitted. Please reconfigure."
19632    echo "Aborting configuration ..."
19633    echo " "
19634    echo " "
19635    exit 1
19636 fi
19637
19638 echo "
19639 Configuration on `date`:
19640
19641   Host:                       $host -- ${DISTNAME} ${DISTVER}
19642   Bacula version:             ${VERSION} (${DATE})
19643   Source code location:       ${srcdir}
19644   Install binaries:           ${sbindir}
19645   Install config files:       ${sysconfdir}
19646   Scripts directory:          ${scriptdir}
19647   Working directory:          ${working_dir}
19648   PID directory:              ${piddir}
19649   Subsys directory:           ${subsysdir}
19650   C Compiler:                 ${CC} ${CCVERSION}
19651   C++ Compiler:               ${CXX} ${CXXVERSION}
19652   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19653   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19654   Libraries:                  ${LIBS}
19655   Statically Linked Tools:    ${support_static_tools}
19656   Statically Linked FD:       ${support_static_fd}
19657   Statically Linked SD:       ${support_static_sd}
19658   Statically Linked DIR:      ${support_static_dir}
19659   Statically Linked CONS:     ${support_static_cons}
19660   Database type:              ${db_name}
19661   Database lib:               ${DB_LIBS}
19662
19663   Job Output Email:           ${job_email}
19664   Traceback Email:            ${dump_email}
19665   SMTP Host Address:          ${smtp_host}
19666
19667   Director Port:              ${dir_port}
19668   File daemon Port:           ${fd_port}
19669   Storage daemon Port:        ${sd_port}
19670
19671   Director User:              ${dir_user}
19672   Director Group:             ${dir_group}
19673   Storage Daemon User:        ${sd_user}
19674   Storage DaemonGroup:        ${sd_group}
19675   File Daemon User:           ${fd_user}
19676   File Daemon Group:          ${fd_group}
19677
19678   SQL binaries Directory      ${SQL_BINDIR}
19679
19680   Large file support:         $largefile_support
19681   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19682   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19683   TCP Wrappers support:       ${TCPW_MSG}
19684   ZLIB support:               ${have_zlib}
19685   enable-smartalloc:          ${support_smartalloc}
19686   enable-gnome:               ${support_gnome} ${gnome_version}
19687   enable-wx-console:          ${support_wx_console}
19688   client-only:                ${build_client_only}
19689
19690   " > config.out
19691
19692 cat config.out
19693
19694 # old stuff
19695 # cweb support:               ${got_cweb} ${CWEB_SRC}
19696 # gmp support:                ${got_gmp} ${GMP_SRC}