]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
First cut of Python Events for Bacula. Director only.
[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 CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881
882   --with-python=DIR       Include Python support.  DIR is the Python base
883                           install directory, default is to search through
884                           a number of common places for the Python files.
885   --with-tcp-wrappers=DIR        enable tcpwrappers support
886   --with-working-dir=PATH        specify path of Bacula working directory
887   --with-scriptdir=PATH    specify path of Bacula scripts directory
888   --with-dump-email=EMAIL        dump email address
889   --with-job-email=EMAIL         job output email address
890   --with-smtp-host=HOST          SMTP mail host address
891   --with-pid-dir=PATH            specify location of Bacula pid files
892   --with-subsys-dir=PATH         specify location of Bacula subsys file
893   --with-baseport=PORT           specify base port address for daemons
894   --with-dir-password=PASSWORD   specify Director's password
895   --with-fd-password=PASSWORD    specify Client's password
896   --with-sd-password=PASSWORD    specify Storage daemon's password
897   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
898   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
899   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
900   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
901   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
902   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
903   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
904   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
905   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
906   --with-dir-user=USER           specify user for Director daemon
907   --with-dir-group=GROUP                 specify group for Director daemon
908   --with-sd-user=USER            specify user for Storage daemon
909   --with-sd-group=GROUP          specify group for Storage daemon
910   --with-fd-user=USER            specify user for File daemon
911   --with-fd-group=GROUP          specify group for File daemon
912   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
913   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
914                           base install directory, defaults to /usr/local/pgsql
915
916   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
917                           install directory, default is to search through
918                           a number of common places for the MySQL files.
919
920   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
921                           install directory, default is to search through
922                           a number of common places for the MySQL files.
923
924   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
925                           install directory, default is to search through
926                           a number of common places for the SQLite files.
927   --with-x                use the X Window System
928
929 Some influential environment variables:
930   CC          C compiler command
931   CFLAGS      C compiler flags
932   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
933               nonstandard directory <lib dir>
934   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
935               headers in a nonstandard directory <include dir>
936   CXX         C++ compiler command
937   CXXFLAGS    C++ compiler flags
938   CPP         C preprocessor
939
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
942
943 _ACEOF
944 fi
945
946 if test "$ac_init_help" = "recursive"; then
947   # If there are subdirs, report their specific --help.
948   ac_popdir=`pwd`
949   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950     test -d $ac_dir || continue
951     ac_builddir=.
952
953 if test "$ac_dir" != .; then
954   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955   # A "../" for each directory in $ac_dir_suffix.
956   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957 else
958   ac_dir_suffix= ac_top_builddir=
959 fi
960
961 case $srcdir in
962   .)  # No --srcdir option.  We are building in place.
963     ac_srcdir=.
964     if test -z "$ac_top_builddir"; then
965        ac_top_srcdir=.
966     else
967        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968     fi ;;
969   [\\/]* | ?:[\\/]* )  # Absolute path.
970     ac_srcdir=$srcdir$ac_dir_suffix;
971     ac_top_srcdir=$srcdir ;;
972   *) # Relative path.
973     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974     ac_top_srcdir=$ac_top_builddir$srcdir ;;
975 esac
976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
977 # absolute.
978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
982
983     cd $ac_dir
984     # Check for guested configure; otherwise get Cygnus style configure.
985     if test -f $ac_srcdir/configure.gnu; then
986       echo
987       $SHELL $ac_srcdir/configure.gnu  --help=recursive
988     elif test -f $ac_srcdir/configure; then
989       echo
990       $SHELL $ac_srcdir/configure  --help=recursive
991     elif test -f $ac_srcdir/configure.ac ||
992            test -f $ac_srcdir/configure.in; then
993       echo
994       $ac_configure --help
995     else
996       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997     fi
998     cd $ac_popdir
999   done
1000 fi
1001
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1004   cat <<\_ACEOF
1005
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1010 _ACEOF
1011   exit 0
1012 fi
1013 exec 5>config.log
1014 cat >&5 <<_ACEOF
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1017
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.57.  Invocation command line was
1020
1021   $ $0 $@
1022
1023 _ACEOF
1024 {
1025 cat <<_ASUNAME
1026 ## --------- ##
1027 ## Platform. ##
1028 ## --------- ##
1029
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047 _ASUNAME
1048
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 for as_dir in $PATH
1051 do
1052   IFS=$as_save_IFS
1053   test -z "$as_dir" && as_dir=.
1054   echo "PATH: $as_dir"
1055 done
1056
1057 } >&5
1058
1059 cat >&5 <<_ACEOF
1060
1061
1062 ## ----------- ##
1063 ## Core tests. ##
1064 ## ----------- ##
1065
1066 _ACEOF
1067
1068
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_configure_args=
1075 ac_configure_args0=
1076 ac_configure_args1=
1077 ac_sep=
1078 ac_must_keep_next=false
1079 for ac_pass in 1 2
1080 do
1081   for ac_arg
1082   do
1083     case $ac_arg in
1084     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086     | -silent | --silent | --silen | --sile | --sil)
1087       continue ;;
1088     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090     esac
1091     case $ac_pass in
1092     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093     2)
1094       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095       if test $ac_must_keep_next = true; then
1096         ac_must_keep_next=false # Got value, back to normal.
1097       else
1098         case $ac_arg in
1099           *=* | --config-cache | -C | -disable-* | --disable-* \
1100           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102           | -with-* | --with-* | -without-* | --without-* | --x)
1103             case "$ac_configure_args0 " in
1104               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105             esac
1106             ;;
1107           -* ) ac_must_keep_next=true ;;
1108         esac
1109       fi
1110       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111       # Get rid of the leading space.
1112       ac_sep=" "
1113       ;;
1114     esac
1115   done
1116 done
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log.  We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126   # Save into config.log some information that might help in debugging.
1127   {
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1134 _ASBOX
1135     echo
1136     # The following way of writing the cache mishandles newlines in values,
1137 {
1138   (set) 2>&1 |
1139     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140     *ac_space=\ *)
1141       sed -n \
1142         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144       ;;
1145     *)
1146       sed -n \
1147         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148       ;;
1149     esac;
1150 }
1151     echo
1152
1153     cat <<\_ASBOX
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1157 _ASBOX
1158     echo
1159     for ac_var in $ac_subst_vars
1160     do
1161       eval ac_val=$`echo $ac_var`
1162       echo "$ac_var='"'"'$ac_val'"'"'"
1163     done | sort
1164     echo
1165
1166     if test -n "$ac_subst_files"; then
1167       cat <<\_ASBOX
1168 ## ------------- ##
1169 ## Output files. ##
1170 ## ------------- ##
1171 _ASBOX
1172       echo
1173       for ac_var in $ac_subst_files
1174       do
1175         eval ac_val=$`echo $ac_var`
1176         echo "$ac_var='"'"'$ac_val'"'"'"
1177       done | sort
1178       echo
1179     fi
1180
1181     if test -s confdefs.h; then
1182       cat <<\_ASBOX
1183 ## ----------- ##
1184 ## confdefs.h. ##
1185 ## ----------- ##
1186 _ASBOX
1187       echo
1188       sed "/^$/d" confdefs.h | sort
1189       echo
1190     fi
1191     test "$ac_signal" != 0 &&
1192       echo "$as_me: caught signal $ac_signal"
1193     echo "$as_me: exit $exit_status"
1194   } >&5
1195   rm -f core core.* *.core &&
1196   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197     exit $exit_status
1198      ' 0
1199 for ac_signal in 1 2 13 15; do
1200   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 done
1202 ac_signal=0
1203
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 echo >confdefs.h
1208
1209 # Predefined preprocessor variables.
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 _ACEOF
1234
1235
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239   if test "x$prefix" != xNONE; then
1240     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241   else
1242     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243   fi
1244 fi
1245 for ac_site_file in $CONFIG_SITE; do
1246   if test -r "$ac_site_file"; then
1247     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249     sed 's/^/| /' "$ac_site_file" >&5
1250     . "$ac_site_file"
1251   fi
1252 done
1253
1254 if test -r "$cache_file"; then
1255   # Some versions of bash will fail to source /dev/null (special
1256   # files actually), so we avoid doing that.
1257   if test -f "$cache_file"; then
1258     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1260     case $cache_file in
1261       [\\/]* | ?:[\\/]* ) . $cache_file;;
1262       *)                      . ./$cache_file;;
1263     esac
1264   fi
1265 else
1266   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1268   >$cache_file
1269 fi
1270
1271 # Check that the precious variables saved in the cache have kept the same
1272 # value.
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277   eval ac_new_set=\$ac_env_${ac_var}_set
1278   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279   eval ac_new_val="\$ac_env_${ac_var}_value"
1280   case $ac_old_set,$ac_new_set in
1281     set,)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,set)
1286       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288       ac_cache_corrupted=: ;;
1289     ,);;
1290     *)
1291       if test "x$ac_old_val" != "x$ac_new_val"; then
1292         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295 echo "$as_me:   former value:  $ac_old_val" >&2;}
1296         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297 echo "$as_me:   current value: $ac_new_val" >&2;}
1298         ac_cache_corrupted=:
1299       fi;;
1300   esac
1301   # Pass precious variables to config.status.
1302   if test "$ac_new_set" = set; then
1303     case $ac_new_val in
1304     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306     *) ac_arg=$ac_var=$ac_new_val ;;
1307     esac
1308     case " $ac_configure_args " in
1309       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311     esac
1312   fi
1313 done
1314 if $ac_cache_corrupted; then
1315   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319    { (exit 1); exit 1; }; }
1320 fi
1321
1322 ac_ext=c
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 BUILD_DIR=`pwd`
1347 cd ..
1348 TOP_DIR=`pwd`
1349 cd ${BUILD_DIR}
1350
1351 ac_aux_dir=
1352 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1353   if test -f $ac_dir/install-sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install-sh -c"
1356     break
1357   elif test -f $ac_dir/install.sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install.sh -c"
1360     break
1361   elif test -f $ac_dir/shtool; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/shtool install -c"
1364     break
1365   fi
1366 done
1367 if test -z "$ac_aux_dir"; then
1368   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375
1376           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1377
1378
1379
1380
1381
1382 for ac_prog in true
1383 do
1384   # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1389   echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391   case $TRUEPRG in
1392   [\\/]* | ?:[\\/]*)
1393   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1394   ;;
1395   *)
1396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399   IFS=$as_save_IFS
1400   test -z "$as_dir" && as_dir=.
1401   for ac_exec_ext in '' $ac_executable_extensions; do
1402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405     break 2
1406   fi
1407 done
1408 done
1409
1410   ;;
1411 esac
1412 fi
1413 TRUEPRG=$ac_cv_path_TRUEPRG
1414
1415 if test -n "$TRUEPRG"; then
1416   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1417 echo "${ECHO_T}$TRUEPRG" >&6
1418 else
1419   echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1421 fi
1422
1423   test -n "$TRUEPRG" && break
1424 done
1425 test -n "$TRUEPRG" || TRUEPRG=":"
1426
1427 for ac_prog in false
1428 do
1429   # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   case $FALSEPRG in
1437   [\\/]* | ?:[\\/]*)
1438   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1439   ;;
1440   *)
1441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444   IFS=$as_save_IFS
1445   test -z "$as_dir" && as_dir=.
1446   for ac_exec_ext in '' $ac_executable_extensions; do
1447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450     break 2
1451   fi
1452 done
1453 done
1454
1455   ;;
1456 esac
1457 fi
1458 FALSEPRG=$ac_cv_path_FALSEPRG
1459
1460 if test -n "$FALSEPRG"; then
1461   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1462 echo "${ECHO_T}$FALSEPRG" >&6
1463 else
1464   echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 fi
1467
1468   test -n "$FALSEPRG" && break
1469 done
1470 test -n "$FALSEPRG" || FALSEPRG=":"
1471
1472
1473 #AC_CANONICAL_HOST
1474
1475 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1476 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1477 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1478 echo "configuring for bacula $VERSION ($DATE)"
1479
1480
1481
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   if test -n "$CC"; then
1496   ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1500 do
1501   IFS=$as_save_IFS
1502   test -z "$as_dir" && as_dir=.
1503   for ac_exec_ext in '' $ac_executable_extensions; do
1504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507     break 2
1508   fi
1509 done
1510 done
1511
1512 fi
1513 fi
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516   echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519   echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 fi
1522
1523 fi
1524 if test -z "$ac_cv_prog_CC"; then
1525   ac_ct_CC=$CC
1526   # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$ac_ct_CC"; then
1534   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_ac_ct_CC="gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561   CC=$ac_ct_CC
1562 else
1563   CC="$ac_cv_prog_CC"
1564 fi
1565
1566 if test -z "$CC"; then
1567   if test -n "$ac_tool_prefix"; then
1568   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   if test -n "$CC"; then
1576   ac_cv_prog_CC="$CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1580 do
1581   IFS=$as_save_IFS
1582   test -z "$as_dir" && as_dir=.
1583   for ac_exec_ext in '' $ac_executable_extensions; do
1584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585     ac_cv_prog_CC="${ac_tool_prefix}cc"
1586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587     break 2
1588   fi
1589 done
1590 done
1591
1592 fi
1593 fi
1594 CC=$ac_cv_prog_CC
1595 if test -n "$CC"; then
1596   echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1598 else
1599   echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 fi
1602
1603 fi
1604 if test -z "$ac_cv_prog_CC"; then
1605   ac_ct_CC=$CC
1606   # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$ac_ct_CC"; then
1614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_ac_ct_CC="cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641   CC=$ac_ct_CC
1642 else
1643   CC="$ac_cv_prog_CC"
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648   # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$CC"; then
1656   ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658   ac_prog_rejected=no
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   for ac_exec_ext in '' $ac_executable_extensions; do
1665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667        ac_prog_rejected=yes
1668        continue
1669      fi
1670     ac_cv_prog_CC="cc"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 if test $ac_prog_rejected = yes; then
1678   # We found a bogon in the path, so make sure we never use it.
1679   set dummy $ac_cv_prog_CC
1680   shift
1681   if test $# != 0; then
1682     # We chose a different compiler from the bogus one.
1683     # However, it has the same basename, so the bogon will be chosen
1684     # first if we set CC to just the basename; use the full file name.
1685     shift
1686     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1687   fi
1688 fi
1689 fi
1690 fi
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693   echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700 fi
1701 if test -z "$CC"; then
1702   if test -n "$ac_tool_prefix"; then
1703   for ac_prog in cl
1704   do
1705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   if test -n "$CC"; then
1713   ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733   echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740     test -n "$CC" && break
1741   done
1742 fi
1743 if test -z "$CC"; then
1744   ac_ct_CC=$CC
1745   for ac_prog in cl
1746 do
1747   # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$ac_ct_CC"; then
1755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   for ac_exec_ext in '' $ac_executable_extensions; do
1763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764     ac_cv_prog_ac_ct_CC="$ac_prog"
1765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766     break 2
1767   fi
1768 done
1769 done
1770
1771 fi
1772 fi
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1777 else
1778   echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782   test -n "$ac_ct_CC" && break
1783 done
1784
1785   CC=$ac_ct_CC
1786 fi
1787
1788 fi
1789
1790
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795    { (exit 1); exit 1; }; }
1796
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799      "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802   (eval $ac_compiler --version </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807   (eval $ac_compiler -v </dev/null >&5) 2>&5
1808   ac_status=$?
1809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810   (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812   (eval $ac_compiler -V </dev/null >&5) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }
1816
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1819 /* confdefs.h.  */
1820 _ACEOF
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h.  */
1824
1825 int
1826 main ()
1827 {
1828
1829   ;
1830   return 0;
1831 }
1832 _ACEOF
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1837 # of exeext.
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842   (eval $ac_link_default) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }; then
1846   # Find the output, starting from the most likely.  This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1848 # resort.
1849
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1852 ac_cv_exeext=
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1855 do
1856   test -f "$ac_file" || continue
1857   case $ac_file in
1858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1859         ;;
1860     conftest.$ac_ext )
1861         # This is the source file.
1862         ;;
1863     [ab].out )
1864         # We found the default executable, but exeext='' is most
1865         # certainly right.
1866         break;;
1867     *.* )
1868         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869         # FIXME: I believe we export ac_cv_exeext for Libtool,
1870         # but it would be cool to find out if it's true.  Does anybody
1871         # maintain Libtool? --akim.
1872         export ac_cv_exeext
1873         break;;
1874     * )
1875         break;;
1876   esac
1877 done
1878 else
1879   echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886    { (exit 77); exit 77; }; }
1887 fi
1888
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1892
1893 # Check the compiler produces executables we can run.  If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900   if { ac_try='./$ac_file'
1901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902   (eval $ac_try) 2>&5
1903   ac_status=$?
1904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905   (exit $ac_status); }; }; then
1906     cross_compiling=no
1907   else
1908     if test "$cross_compiling" = maybe; then
1909         cross_compiling=yes
1910     else
1911         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917    { (exit 1); exit 1; }; }
1918     fi
1919   fi
1920 fi
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1923
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run.  If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1932
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936   (eval $ac_link) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }; then
1940   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1943 # `rm'.
1944 for ac_file in conftest.exe conftest conftest.*; do
1945   test -f "$ac_file" || continue
1946   case $ac_file in
1947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1949           export ac_cv_exeext
1950           break;;
1951     * ) break;;
1952   esac
1953 done
1954 else
1955   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1965
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1968 ac_exeext=$EXEEXT
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }; then
1996   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000        break;;
2001   esac
2002 done
2003 else
2004   echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$OBJEXT
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2027 /* confdefs.h.  */
2028 _ACEOF
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h.  */
2032
2033 int
2034 main ()
2035 {
2036 #ifndef __GNUC__
2037        choke me
2038 #endif
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046   (eval $ac_compile) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); } &&
2050          { ac_try='test -s conftest.$ac_objext'
2051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052   (eval $ac_try) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }; }; then
2056   ac_compiler_gnu=yes
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 ac_compiler_gnu=no
2062 fi
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2065
2066 fi
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2072 CFLAGS="-g"
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 /* confdefs.h.  */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h.  */
2085
2086 int
2087 main ()
2088 {
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -s conftest.$ac_objext'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; }; then
2106   ac_cv_prog_cc_g=yes
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_cv_prog_cc_g=no
2112 fi
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118   CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120   if test "$GCC" = yes; then
2121     CFLAGS="-g -O2"
2122   else
2123     CFLAGS="-g"
2124   fi
2125 else
2126   if test "$GCC" = yes; then
2127     CFLAGS="-O2"
2128   else
2129     CFLAGS=
2130   fi
2131 fi
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_cv_prog_cc_stdc=no
2138 ac_save_CC=$CC
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2141 /* confdefs.h.  */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h.  */
2146 #include <stdarg.h>
2147 #include <stdio.h>
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2154      char **p;
2155      int i;
2156 {
2157   return p[i];
2158 }
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2160 {
2161   char *s;
2162   va_list v;
2163   va_start (v,p);
2164   s = g (p, va_arg (v,int));
2165   va_end (v);
2166   return s;
2167 }
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2172 int argc;
2173 char **argv;
2174 int
2175 main ()
2176 {
2177 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX                   -qlanglvl=ansi
2185 # Ultrix and OSF/1      -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2188 # SVR4                  -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 do
2191   CC="$ac_save_CC $ac_arg"
2192   rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 fi
2211 rm -f conftest.$ac_objext
2212 done
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2214 CC=$ac_save_CC
2215
2216 fi
2217
2218 case "x$ac_cv_prog_cc_stdc" in
2219   x|xno)
2220     echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2222   *)
2223     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225     CC="$CC $ac_cv_prog_cc_stdc" ;;
2226 esac
2227
2228 # Some people use a C++ compiler to compile C.  Since we use `exit',
2229 # in C++ we need to declare it.  In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #ifndef __cplusplus
2234   choke me
2235 #endif
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); } &&
2243          { ac_try='test -s conftest.$ac_objext'
2244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245   (eval $ac_try) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249   for ac_declaration in \
2250    ''\
2251    '#include <stdlib.h>' \
2252    'extern "C" void std::exit (int) throw (); using std::exit;' \
2253    'extern "C" void std::exit (int); using std::exit;' \
2254    'extern "C" void exit (int) throw ();' \
2255    'extern "C" void exit (int);' \
2256    'void exit (int);'
2257 do
2258   cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2260 /* confdefs.h.  */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h.  */
2265 #include <stdlib.h>
2266 $ac_declaration
2267 int
2268 main ()
2269 {
2270 exit (42);
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   break
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 done
2331 rm -f conftest*
2332 if test -n "$ac_declaration"; then
2333   echo '#ifdef __cplusplus' >>confdefs.h
2334   echo $ac_declaration      >>confdefs.h
2335   echo '#endif'             >>confdefs.h
2336 fi
2337
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 fi
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350 ac_ext=cc
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2357   do
2358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CXX+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CXX"; then
2366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 CXX=$ac_cv_prog_CXX
2385 if test -n "$CXX"; then
2386   echo "$as_me:$LINENO: result: $CXX" >&5
2387 echo "${ECHO_T}$CXX" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393     test -n "$CXX" && break
2394   done
2395 fi
2396 if test -z "$CXX"; then
2397   ac_ct_CXX=$CXX
2398   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2399 do
2400   # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CXX"; then
2408   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_CXX="$ac_prog"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2427 if test -n "$ac_ct_CXX"; then
2428   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2429 echo "${ECHO_T}$ac_ct_CXX" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   test -n "$ac_ct_CXX" && break
2436 done
2437 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2438
2439   CXX=$ac_ct_CXX
2440 fi
2441
2442
2443 # Provide some information about the compiler.
2444 echo "$as_me:$LINENO:" \
2445      "checking for C++ compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2448   (eval $ac_compiler --version </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2453   (eval $ac_compiler -v </dev/null >&5) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2458   (eval $ac_compiler -V </dev/null >&5) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }
2462
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479 #ifndef __GNUC__
2480        choke me
2481 #endif
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489   (eval $ac_compile) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } &&
2493          { ac_try='test -s conftest.$ac_objext'
2494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495   (eval $ac_try) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; }; then
2499   ac_compiler_gnu=yes
2500 else
2501   echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 ac_compiler_gnu=no
2505 fi
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2508
2509 fi
2510 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512 GXX=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CXXFLAGS=${CXXFLAGS+set}
2514 ac_save_CXXFLAGS=$CXXFLAGS
2515 CXXFLAGS="-g"
2516 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cxx_g+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -s conftest.$ac_objext'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   ac_cv_prog_cxx_g=yes
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_cv_prog_cxx_g=no
2555 fi
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2560 if test "$ac_test_CXXFLAGS" = set; then
2561   CXXFLAGS=$ac_save_CXXFLAGS
2562 elif test $ac_cv_prog_cxx_g = yes; then
2563   if test "$GXX" = yes; then
2564     CXXFLAGS="-g -O2"
2565   else
2566     CXXFLAGS="-g"
2567   fi
2568 else
2569   if test "$GXX" = yes; then
2570     CXXFLAGS="-O2"
2571   else
2572     CXXFLAGS=
2573   fi
2574 fi
2575 for ac_declaration in \
2576    ''\
2577    '#include <stdlib.h>' \
2578    'extern "C" void std::exit (int) throw (); using std::exit;' \
2579    'extern "C" void std::exit (int); using std::exit;' \
2580    'extern "C" void exit (int) throw ();' \
2581    'extern "C" void exit (int);' \
2582    'void exit (int);'
2583 do
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591 #include <stdlib.h>
2592 $ac_declaration
2593 int
2594 main ()
2595 {
2596 exit (42);
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -s conftest.$ac_objext'
2608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609   (eval $ac_try) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613   :
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 continue
2619 fi
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 $ac_declaration
2629 int
2630 main ()
2631 {
2632 exit (42);
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   break
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2656 done
2657 rm -f conftest*
2658 if test -n "$ac_declaration"; then
2659   echo '#ifdef __cplusplus' >>confdefs.h
2660   echo $ac_declaration      >>confdefs.h
2661   echo '#endif'             >>confdefs.h
2662 fi
2663
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
2670 if test "x$CC" != xcc; then
2671   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2673 else
2674   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2676 fi
2677 set dummy $CC; ac_cc=`echo $2 |
2678                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2679 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 # Make sure it works both with $CC and with simple cc.
2699 # We do the test twice because some compilers refuse to overwrite an
2700 # existing .o file with -o, though they will create one.
2701 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2702 if { (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); } &&
2707    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); };
2712 then
2713   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2714   if test "x$CC" != xcc; then
2715     # Test first that cc exists at all.
2716     if { ac_try='cc -c conftest.$ac_ext >&5'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2723       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); };
2733       then
2734         # cc works too.
2735         :
2736       else
2737         # cc exists but doesn't like -o.
2738         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2739       fi
2740     fi
2741   fi
2742 else
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2744 fi
2745 rm -f conftest*
2746
2747 fi
2748 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2749   echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2751 else
2752   echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2754
2755 cat >>confdefs.h <<\_ACEOF
2756 #define NO_MINUS_C_MINUS_O 1
2757 _ACEOF
2758
2759 fi
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2770   CPP=
2771 fi
2772 if test -z "$CPP"; then
2773   if test "${ac_cv_prog_CPP+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776       # Double quotes because CPP needs to be expanded
2777     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2778     do
2779       ac_preproc_ok=false
2780 for ac_c_preproc_warn_flag in '' yes
2781 do
2782   # Use a header file that comes with gcc, so configuring glibc
2783   # with a fresh cross-compiler works.
2784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785   # <limits.h> exists even on freestanding compilers.
2786   # On the NeXT, cc -E runs the code through the compiler's parser,
2787   # not just through cpp. "Syntax error" is here to catch this case.
2788   cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2800                      Syntax error
2801 _ACEOF
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804   ac_status=$?
2805   grep -v '^ *+' conftest.er1 >conftest.err
2806   rm -f conftest.er1
2807   cat conftest.err >&5
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); } >/dev/null; then
2810   if test -s conftest.err; then
2811     ac_cpp_err=$ac_c_preproc_warn_flag
2812   else
2813     ac_cpp_err=
2814   fi
2815 else
2816   ac_cpp_err=yes
2817 fi
2818 if test -z "$ac_cpp_err"; then
2819   :
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824   # Broken: fails on valid input.
2825 continue
2826 fi
2827 rm -f conftest.err conftest.$ac_ext
2828
2829   # OK, works on sane cases.  Now check whether non-existent headers
2830   # can be detected and how.
2831   cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } >/dev/null; then
2848   if test -s conftest.err; then
2849     ac_cpp_err=$ac_c_preproc_warn_flag
2850   else
2851     ac_cpp_err=
2852   fi
2853 else
2854   ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857   # Broken: success on invalid input.
2858 continue
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863   # Passes both tests.
2864 ac_preproc_ok=:
2865 break
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869 done
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2873   break
2874 fi
2875
2876     done
2877     ac_cv_prog_CPP=$CPP
2878
2879 fi
2880   CPP=$ac_cv_prog_CPP
2881 else
2882   ac_cv_prog_CPP=$CPP
2883 fi
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2886 ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2888 do
2889   # Use a header file that comes with gcc, so configuring glibc
2890   # with a fresh cross-compiler works.
2891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892   # <limits.h> exists even on freestanding compilers.
2893   # On the NeXT, cc -E runs the code through the compiler's parser,
2894   # not just through cpp. "Syntax error" is here to catch this case.
2895   cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907                      Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911   ac_status=$?
2912   grep -v '^ *+' conftest.er1 >conftest.err
2913   rm -f conftest.er1
2914   cat conftest.err >&5
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); } >/dev/null; then
2917   if test -s conftest.err; then
2918     ac_cpp_err=$ac_c_preproc_warn_flag
2919   else
2920     ac_cpp_err=
2921   fi
2922 else
2923   ac_cpp_err=yes
2924 fi
2925 if test -z "$ac_cpp_err"; then
2926   :
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931   # Broken: fails on valid input.
2932 continue
2933 fi
2934 rm -f conftest.err conftest.$ac_ext
2935
2936   # OK, works on sane cases.  Now check whether non-existent headers
2937   # can be detected and how.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957   else
2958     ac_cpp_err=
2959   fi
2960 else
2961   ac_cpp_err=yes
2962 fi
2963 if test -z "$ac_cpp_err"; then
2964   # Broken: success on invalid input.
2965 continue
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980   :
2981 else
2982   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986    { (exit 1); exit 1; }; }
2987 fi
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002     then ac_cv_prog_egrep='grep -E'
3003     else ac_cv_prog_egrep='egrep'
3004     fi
3005 fi
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008  EGREP=$ac_cv_prog_egrep
3009
3010
3011 if test $ac_cv_c_compiler_gnu = yes; then
3012     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3013 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3014 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017     ac_pattern="Autoconf.*'x'"
3018   cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #include <sgtty.h>
3026 Autoconf TIOCGETP
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030   ac_cv_prog_gcc_traditional=yes
3031 else
3032   ac_cv_prog_gcc_traditional=no
3033 fi
3034 rm -f conftest*
3035
3036
3037   if test $ac_cv_prog_gcc_traditional = no; then
3038     cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #include <termio.h>
3046 Autoconf TCGETA
3047 _ACEOF
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050   ac_cv_prog_gcc_traditional=yes
3051 fi
3052 rm -f conftest*
3053
3054   fi
3055 fi
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058   if test $ac_cv_prog_gcc_traditional = yes; then
3059     CC="$CC -traditional"
3060   fi
3061 fi
3062
3063 if test "x$CC" = xgcc
3064 then
3065    cat >>confdefs.h <<\_ACEOF
3066 #define HAVE_GCC 1
3067 _ACEOF
3068
3069 fi
3070
3071 # Find a good install program.  We prefer a C program (faster),
3072 # so one script is as good as another.  But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3077 # AIX /bin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3084 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3085 if test -z "$INSTALL"; then
3086 if test "${ac_cv_path_install+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   # Account for people who put trailing slashes in PATH elements.
3095 case $as_dir/ in
3096   ./ | .// | /cC/* | \
3097   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3098   /usr/ucb/* ) ;;
3099   *)
3100     # OSF1 and SCO ODT 3.0 have their own names for install.
3101     # Don't use installbsd from OSF since it installs stuff as root
3102     # by default.
3103     for ac_prog in ginstall scoinst install; do
3104       for ac_exec_ext in '' $ac_executable_extensions; do
3105         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106           if test $ac_prog = install &&
3107             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108             # AIX install.  It has an incompatible calling convention.
3109             :
3110           elif test $ac_prog = install &&
3111             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112             # program-specific install script used by HP pwplus--don't use.
3113             :
3114           else
3115             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3116             break 3
3117           fi
3118         fi
3119       done
3120     done
3121     ;;
3122 esac
3123 done
3124
3125
3126 fi
3127   if test "${ac_cv_path_install+set}" = set; then
3128     INSTALL=$ac_cv_path_install
3129   else
3130     # As a last resort, use the slow shell script.  We don't cache a
3131     # path for INSTALL within a source directory, because that will
3132     # break other packages using the cache if that directory is
3133     # removed, or if the path is relative.
3134     INSTALL=$ac_install_sh
3135   fi
3136 fi
3137 echo "$as_me:$LINENO: result: $INSTALL" >&5
3138 echo "${ECHO_T}$INSTALL" >&6
3139
3140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3141 # It thinks the first close brace ends the variable substitution.
3142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3143
3144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3145
3146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3147
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if test -n "$RANLIB"; then
3157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164   for ac_exec_ext in '' $ac_executable_extensions; do
3165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171 done
3172
3173 fi
3174 fi
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177   echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3179 else
3180   echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3182 fi
3183
3184 fi
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186   ac_ct_RANLIB=$RANLIB
3187   # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$ac_ct_RANLIB"; then
3195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_ac_ct_RANLIB="ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3212 fi
3213 fi
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3218 else
3219   echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222
3223   RANLIB=$ac_ct_RANLIB
3224 else
3225   RANLIB="$ac_cv_prog_RANLIB"
3226 fi
3227
3228 # Extract the first word of "mv", so it can be a program name with args.
3229 set dummy mv; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_path_MV+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   case $MV in
3236   [\\/]* | ?:[\\/]*)
3237   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3238   ;;
3239   *)
3240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245   for ac_exec_ext in '' $ac_executable_extensions; do
3246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252 done
3253
3254   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3255   ;;
3256 esac
3257 fi
3258 MV=$ac_cv_path_MV
3259
3260 if test -n "$MV"; then
3261   echo "$as_me:$LINENO: result: $MV" >&5
3262 echo "${ECHO_T}$MV" >&6
3263 else
3264   echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 fi
3267
3268 # Extract the first word of "rm", so it can be a program name with args.
3269 set dummy rm; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_RM+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   case $RM in
3276   [\\/]* | ?:[\\/]*)
3277   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3278   ;;
3279   *)
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293
3294   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3295   ;;
3296 esac
3297 fi
3298 RM=$ac_cv_path_RM
3299
3300 if test -n "$RM"; then
3301   echo "$as_me:$LINENO: result: $RM" >&5
3302 echo "${ECHO_T}$RM" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 # Extract the first word of "cp", so it can be a program name with args.
3309 set dummy cp; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_CP+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   case $CP in
3316   [\\/]* | ?:[\\/]*)
3317   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3318   ;;
3319   *)
3320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333
3334   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3335   ;;
3336 esac
3337 fi
3338 CP=$ac_cv_path_CP
3339
3340 if test -n "$CP"; then
3341   echo "$as_me:$LINENO: result: $CP" >&5
3342 echo "${ECHO_T}$CP" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 # Extract the first word of "sed", so it can be a program name with args.
3349 set dummy sed; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_SED+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   case $SED in
3356   [\\/]* | ?:[\\/]*)
3357   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3358   ;;
3359   *)
3360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3375   ;;
3376 esac
3377 fi
3378 SED=$ac_cv_path_SED
3379
3380 if test -n "$SED"; then
3381   echo "$as_me:$LINENO: result: $SED" >&5
3382 echo "${ECHO_T}$SED" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 # Extract the first word of "awk", so it can be a program name with args.
3389 set dummy awk; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_AWK+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   case $AWK in
3396   [\\/]* | ?:[\\/]*)
3397   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3398   ;;
3399   *)
3400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405   for ac_exec_ext in '' $ac_executable_extensions; do
3406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412 done
3413
3414   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3415   ;;
3416 esac
3417 fi
3418 AWK=$ac_cv_path_AWK
3419
3420 if test -n "$AWK"; then
3421   echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3423 else
3424   echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 # Extract the first word of "echo", so it can be a program name with args.
3429 set dummy echo; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_ECHO+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   case $ECHO in
3436   [\\/]* | ?:[\\/]*)
3437   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3438   ;;
3439   *)
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3455   ;;
3456 esac
3457 fi
3458 ECHO=$ac_cv_path_ECHO
3459
3460 if test -n "$ECHO"; then
3461   echo "$as_me:$LINENO: result: $ECHO" >&5
3462 echo "${ECHO_T}$ECHO" >&6
3463 else
3464   echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "cmp", so it can be a program name with args.
3469 set dummy cmp; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_CMP+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   case $CMP in
3476   [\\/]* | ?:[\\/]*)
3477   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3478   ;;
3479   *)
3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3495   ;;
3496 esac
3497 fi
3498 CMP=$ac_cv_path_CMP
3499
3500 if test -n "$CMP"; then
3501   echo "$as_me:$LINENO: result: $CMP" >&5
3502 echo "${ECHO_T}$CMP" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508 # Extract the first word of "tbl", so it can be a program name with args.
3509 set dummy tbl; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_TBL+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $TBL in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3535   ;;
3536 esac
3537 fi
3538 TBL=$ac_cv_path_TBL
3539
3540 if test -n "$TBL"; then
3541   echo "$as_me:$LINENO: result: $TBL" >&5
3542 echo "${ECHO_T}$TBL" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 # Extract the first word of "ar", so it can be a program name with args.
3549 set dummy ar; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_AR+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   case $AR in
3556   [\\/]* | ?:[\\/]*)
3557   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3558   ;;
3559   *)
3560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3575   ;;
3576 esac
3577 fi
3578 AR=$ac_cv_path_AR
3579
3580 if test -n "$AR"; then
3581   echo "$as_me:$LINENO: result: $AR" >&5
3582 echo "${ECHO_T}$AR" >&6
3583 else
3584   echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588 # Extract the first word of "openssl", so it can be a program name with args.
3589 set dummy openssl; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_OPENSSL+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   case $OPENSSL in
3596   [\\/]* | ?:[\\/]*)
3597   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3598   ;;
3599   *)
3600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605   for ac_exec_ext in '' $ac_executable_extensions; do
3606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613
3614   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3615   ;;
3616 esac
3617 fi
3618 OPENSSL=$ac_cv_path_OPENSSL
3619
3620 if test -n "$OPENSSL"; then
3621   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3622 echo "${ECHO_T}$OPENSSL" >&6
3623 else
3624   echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3626 fi
3627
3628 # Extract the first word of "mtx", so it can be a program name with args.
3629 set dummy mtx; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_MTX+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   case $MTX in
3636   [\\/]* | ?:[\\/]*)
3637   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3638   ;;
3639   *)
3640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645   for ac_exec_ext in '' $ac_executable_extensions; do
3646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649     break 2
3650   fi
3651 done
3652 done
3653
3654   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3655   ;;
3656 esac
3657 fi
3658 MTX=$ac_cv_path_MTX
3659
3660 if test -n "$MTX"; then
3661   echo "$as_me:$LINENO: result: $MTX" >&5
3662 echo "${ECHO_T}$MTX" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 # Extract the first word of "pkg-config", so it can be a program name with args.
3669 set dummy pkg-config; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $PKGCONFIG in
3676   [\\/]* | ?:[\\/]*)
3677   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3678   ;;
3679   *)
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3695   ;;
3696 esac
3697 fi
3698 PKGCONFIG=$ac_cv_path_PKGCONFIG
3699
3700 if test -n "$PKGCONFIG"; then
3701   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3702 echo "${ECHO_T}$PKGCONFIG" >&6
3703 else
3704   echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706 fi
3707
3708 # Extract the first word of "wx-config", so it can be a program name with args.
3709 set dummy wx-config; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   case $WXCONFIG in
3716   [\\/]* | ?:[\\/]*)
3717   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3718   ;;
3719   *)
3720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3735   ;;
3736 esac
3737 fi
3738 WXCONFIG=$ac_cv_path_WXCONFIG
3739
3740 if test -n "$WXCONFIG"; then
3741   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3742 echo "${ECHO_T}$WXCONFIG" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 # Extract the first word of "cdrecord", so it can be a program name with args.
3749 set dummy cdrecord; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_CDRECORD+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   case $CDRECORD in
3756   [\\/]* | ?:[\\/]*)
3757   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3758   ;;
3759   *)
3760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_exec_ext in '' $ac_executable_extensions; do
3766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772 done
3773
3774   ;;
3775 esac
3776 fi
3777 CDRECORD=$ac_cv_path_CDRECORD
3778
3779 if test -n "$CDRECORD"; then
3780   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3781 echo "${ECHO_T}$CDRECORD" >&6
3782 else
3783   echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786
3787
3788 test -n "$ARFLAG" || ARFLAGS="cr"
3789
3790
3791 MAKE_SHELL=/bin/sh
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801 # Make sure we can run config.sub.
3802 $ac_config_sub sun4 >/dev/null 2>&1 ||
3803   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3804 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3805    { (exit 1); exit 1; }; }
3806
3807 echo "$as_me:$LINENO: checking build system type" >&5
3808 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3809 if test "${ac_cv_build+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   ac_cv_build_alias=$build_alias
3813 test -z "$ac_cv_build_alias" &&
3814   ac_cv_build_alias=`$ac_config_guess`
3815 test -z "$ac_cv_build_alias" &&
3816   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3817 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3818    { (exit 1); exit 1; }; }
3819 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3820   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3821 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3822    { (exit 1); exit 1; }; }
3823
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3826 echo "${ECHO_T}$ac_cv_build" >&6
3827 build=$ac_cv_build
3828 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3829 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3830 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3831
3832
3833
3834 echo "$as_me:$LINENO: checking host system type" >&5
3835 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3836 if test "${ac_cv_host+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_cv_host_alias=$host_alias
3840 test -z "$ac_cv_host_alias" &&
3841   ac_cv_host_alias=$ac_cv_build_alias
3842 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3843   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3844 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3845    { (exit 1); exit 1; }; }
3846
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3849 echo "${ECHO_T}$ac_cv_host" >&6
3850 host=$ac_cv_host
3851 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3852 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3853 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3854
3855
3856 case $host_os in
3857   *cygwin* ) CYGWIN=yes;;
3858          * ) CYGWIN=no;;
3859 esac
3860
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3862 then
3863
3864
3865 if $TRUEPRG; then
3866   HAVE_SUN_OS_TRUE=
3867   HAVE_SUN_OS_FALSE='#'
3868 else
3869   HAVE_SUN_OS_TRUE='#'
3870   HAVE_SUN_OS_FALSE=
3871 fi
3872         cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_SUN_OS 1
3874 _ACEOF
3875
3876 else
3877
3878
3879 if $FALSEPRG; then
3880   HAVE_SUN_OS_TRUE=
3881   HAVE_SUN_OS_FALSE='#'
3882 else
3883   HAVE_SUN_OS_TRUE='#'
3884   HAVE_SUN_OS_FALSE=
3885 fi
3886 fi
3887
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3889 then
3890
3891
3892 if $TRUEPRG; then
3893   HAVE_OSF1_OS_TRUE=
3894   HAVE_OSF1_OS_FALSE='#'
3895 else
3896   HAVE_OSF1_OS_TRUE='#'
3897   HAVE_OSF1_OS_FALSE=
3898 fi
3899         cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_OSF1_OS 1
3901 _ACEOF
3902
3903 else
3904
3905
3906 if $FALSEPRG; then
3907   HAVE_OSF1_OS_TRUE=
3908   HAVE_OSF1_OS_FALSE='#'
3909 else
3910   HAVE_OSF1_OS_TRUE='#'
3911   HAVE_OSF1_OS_FALSE=
3912 fi
3913 fi
3914
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3916 then
3917
3918
3919 if $TRUEPRG; then
3920   HAVE_AIX_OS_TRUE=
3921   HAVE_AIX_OS_FALSE='#'
3922 else
3923   HAVE_AIX_OS_TRUE='#'
3924   HAVE_AIX_OS_FALSE=
3925 fi
3926         cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_AIX_OS 1
3928 _ACEOF
3929
3930 else
3931
3932
3933 if $FALSEPRG; then
3934   HAVE_AIX_OS_TRUE=
3935   HAVE_AIX_OS_FALSE='#'
3936 else
3937   HAVE_AIX_OS_TRUE='#'
3938   HAVE_AIX_OS_FALSE=
3939 fi
3940 fi
3941
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3943 then
3944
3945
3946 if $TRUEPRG; then
3947   HAVE_HPUX_OS_TRUE=
3948   HAVE_HPUX_OS_FALSE='#'
3949 else
3950   HAVE_HPUX_OS_TRUE='#'
3951   HAVE_HPUX_OS_FALSE=
3952 fi
3953         cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_HPUX_OS 1
3955 _ACEOF
3956
3957 else
3958
3959
3960 if $FALSEPRG; then
3961   HAVE_HPUX_OS_TRUE=
3962   HAVE_HPUX_OS_FALSE='#'
3963 else
3964   HAVE_HPUX_OS_TRUE='#'
3965   HAVE_HPUX_OS_FALSE=
3966 fi
3967 fi
3968
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3970 then
3971
3972
3973 if $TRUEPRG; then
3974   HAVE_LINUX_OS_TRUE=
3975   HAVE_LINUX_OS_FALSE='#'
3976 else
3977   HAVE_LINUX_OS_TRUE='#'
3978   HAVE_LINUX_OS_FALSE=
3979 fi
3980         cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_LINUX_OS 1
3982 _ACEOF
3983
3984 else
3985
3986
3987 if $FALSEPRG; then
3988   HAVE_LINUX_OS_TRUE=
3989   HAVE_LINUX_OS_FALSE='#'
3990 else
3991   HAVE_LINUX_OS_TRUE='#'
3992   HAVE_LINUX_OS_FALSE=
3993 fi
3994 fi
3995
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3997 then
3998
3999
4000 if $TRUEPRG; then
4001   HAVE_FREEBSD_OS_TRUE=
4002   HAVE_FREEBSD_OS_FALSE='#'
4003 else
4004   HAVE_FREEBSD_OS_TRUE='#'
4005   HAVE_FREEBSD_OS_FALSE=
4006 fi
4007         cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_FREEBSD_OS 1
4009 _ACEOF
4010
4011 else
4012
4013
4014 if $FALSEPRG; then
4015   HAVE_FREEBSD_OS_TRUE=
4016   HAVE_FREEBSD_OS_FALSE='#'
4017 else
4018   HAVE_FREEBSD_OS_TRUE='#'
4019   HAVE_FREEBSD_OS_FALSE=
4020 fi
4021 fi
4022
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4024 then
4025
4026
4027 if $TRUEPRG; then
4028   HAVE_NETBSD_OS_TRUE=
4029   HAVE_NETBSD_OS_FALSE='#'
4030 else
4031   HAVE_NETBSD_OS_TRUE='#'
4032   HAVE_NETBSD_OS_FALSE=
4033 fi
4034         cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_NETBSD_OS 1
4036 _ACEOF
4037
4038 else
4039
4040
4041 if $FALSEPRG; then
4042   HAVE_NETBSD_OS_TRUE=
4043   HAVE_NETBSD_OS_FALSE='#'
4044 else
4045   HAVE_NETBSD_OS_TRUE='#'
4046   HAVE_NETBSD_OS_FALSE=
4047 fi
4048 fi
4049
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4051 then
4052
4053
4054 if $TRUEPRG; then
4055   HAVE_OPENBSD_OS_TRUE=
4056   HAVE_OPENBSD_OS_FALSE='#'
4057 else
4058   HAVE_OPENBSD_OS_TRUE='#'
4059   HAVE_OPENBSD_OS_FALSE=
4060 fi
4061         cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_OPENBSD_OS 1
4063 _ACEOF
4064
4065 else
4066
4067
4068 if $FALSEPRG; then
4069   HAVE_OPENBSD_OS_TRUE=
4070   HAVE_OPENBSD_OS_FALSE='#'
4071 else
4072   HAVE_OPENBSD_OS_TRUE='#'
4073   HAVE_OPENBSD_OS_FALSE=
4074 fi
4075 fi
4076
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4078 then
4079
4080
4081 if $TRUEPRG; then
4082   HAVE_BSDI_OS_TRUE=
4083   HAVE_BSDI_OS_FALSE='#'
4084 else
4085   HAVE_BSDI_OS_TRUE='#'
4086   HAVE_BSDI_OS_FALSE=
4087 fi
4088         cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_BSDI_OS 1
4090 _ACEOF
4091
4092 else
4093
4094
4095 if $FALSEPRG; then
4096   HAVE_BSDI_OS_TRUE=
4097   HAVE_BSDI_OS_FALSE='#'
4098 else
4099   HAVE_BSDI_OS_TRUE='#'
4100   HAVE_BSDI_OS_FALSE=
4101 fi
4102 fi
4103
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4105 then
4106
4107
4108 if $TRUEPRG; then
4109   HAVE_SGI_OS_TRUE=
4110   HAVE_SGI_OS_FALSE='#'
4111 else
4112   HAVE_SGI_OS_TRUE='#'
4113   HAVE_SGI_OS_FALSE=
4114 fi
4115         cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_SGI_OS 1
4117 _ACEOF
4118
4119 else
4120
4121
4122 if $FALSEPRG; then
4123   HAVE_SGI_OS_TRUE=
4124   HAVE_SGI_OS_FALSE='#'
4125 else
4126   HAVE_SGI_OS_TRUE='#'
4127   HAVE_SGI_OS_FALSE=
4128 fi
4129 fi
4130
4131 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4132 then
4133
4134
4135 if $TRUEPRG; then
4136   HAVE_IRIX_OS_TRUE=
4137   HAVE_IRIX_OS_FALSE='#'
4138 else
4139   HAVE_IRIX_OS_TRUE='#'
4140   HAVE_IRIX_OS_FALSE=
4141 fi
4142         cat >>confdefs.h <<\_ACEOF
4143 #define HAVE_IRIX_OS 1
4144 _ACEOF
4145
4146 else
4147
4148
4149 if $FALSEPRG; then
4150   HAVE_IRIX_OS_TRUE=
4151   HAVE_IRIX_OS_FALSE='#'
4152 else
4153   HAVE_IRIX_OS_TRUE='#'
4154   HAVE_IRIX_OS_FALSE=
4155 fi
4156 fi
4157
4158 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4159 then
4160
4161
4162 if $TRUEPRG; then
4163   HAVE_DARWIN_OS_TRUE=
4164   HAVE_DARWIN_OS_FALSE='#'
4165 else
4166   HAVE_DARWIN_OS_TRUE='#'
4167   HAVE_DARWIN_OS_FALSE=
4168 fi
4169     cat >>confdefs.h <<\_ACEOF
4170 #define HAVE_DARWIN_OS 1
4171 _ACEOF
4172
4173 else
4174
4175
4176 if $FALSEPRG; then
4177   HAVE_DARWIN_OS_TRUE=
4178   HAVE_DARWIN_OS_FALSE='#'
4179 else
4180   HAVE_DARWIN_OS_TRUE='#'
4181   HAVE_DARWIN_OS_FALSE=
4182 fi
4183 fi
4184
4185
4186 # -----------------------------------------------------------
4187 # ----------------------------------------------------------
4188 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4189 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4190 if test "x$DISTNAME" != "x"
4191 then
4192         echo "distname set to $DISTNAME"
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4194 then
4195         DISTNAME=alpha
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4197 then
4198         DISTNAME=aix
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4200 then
4201         DISTNAME=hpux
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4203 then
4204         DISTNAME=solaris
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4206 then
4207         DISTNAME=freebsd
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4209 then
4210         DISTNAME=netbsd
4211 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4212 then
4213         DISTNAME=openbsd
4214 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4215 then
4216         DISTNAME=irix
4217 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4218 then
4219         DISTNAME=bsdi
4220 elif test -f /etc/SuSE-release
4221 then
4222         DISTNAME=suse
4223 elif test -d /etc/SuSEconfig
4224 then
4225         DISTNAME=suse5
4226 elif test -f /etc/mandrake-release
4227 then
4228         DISTNAME=mandrake
4229 elif test -f /etc/whitebox-release
4230 then
4231        DISTNAME=redhat
4232 elif test -f /etc/redhat-release
4233 then
4234         DISTNAME=redhat
4235 elif test -f /etc/gentoo-release
4236 then
4237         DISTNAME=gentoo
4238 elif test -f /etc/debian_version
4239 then
4240         DISTNAME=debian
4241 elif test -f /etc/slackware-version
4242 then
4243         DISTNAME=slackware
4244 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4245 then
4246     DISTNAME=darwin
4247 elif test -f /etc/engarde-version
4248 then
4249         DISTNAME=engarde
4250 elif test "$CYGWIN" = yes
4251 then
4252         DISTNAME=cygwin
4253         cat >>confdefs.h <<\_ACEOF
4254 #define HAVE_CYGWIN 1
4255 _ACEOF
4256
4257 else
4258         DISTNAME=unknown
4259 fi
4260 echo "$as_me:$LINENO: result: done" >&5
4261 echo "${ECHO_T}done" >&6
4262
4263
4264 # -----------------------------------------------------------
4265 # ----------------------------------------------------------
4266
4267
4268
4269 if false; then
4270   INSIDE_GNOME_COMMON_TRUE=
4271   INSIDE_GNOME_COMMON_FALSE='#'
4272 else
4273   INSIDE_GNOME_COMMON_TRUE='#'
4274   INSIDE_GNOME_COMMON_FALSE=
4275 fi
4276
4277         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4278
4279         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4280
4281
4282 # ------------------------------------------------------------------
4283 #  If the user has not set --prefix, we set our default to nothing.
4284 #  In this case, if the user has not set --sysconfdir, we set it
4285 #  to the package default of /etc/bacula.  If either --prefix or
4286 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4287 # ------------------------------------------------------------------
4288 if test x${prefix} = xNONE ; then
4289     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4290         sysconfdir=/etc/bacula
4291     fi
4292     prefix=
4293 fi
4294 sysconfdir=`eval echo ${sysconfdir}`
4295
4296 # -------------------------------------------------------------------------
4297 #  If the user has not set --exec-prefix, we default to ${prefix}
4298 # -------------------------------------------------------------------------
4299 if test x${exec_prefix} = xNONE ; then
4300     exec_prefix=${prefix}
4301 fi
4302
4303 # ------------------------------------------------------------------
4304 # If the user has not set --sbindir, we set our default as /sbin
4305 # ------------------------------------------------------------------
4306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4307     sbindir=${exec_prefix}/sbin
4308 fi
4309 sbindir=`eval echo ${sbindir}`
4310
4311 # ------------------------------------------------------------------
4312 # All list of languages for which a translation exist. Each
4313 #  language is separated by a space.
4314 # ------------------------------------------------------------------
4315 ALL_LINGUAS=""
4316
4317 for ac_prog in msgfmt
4318 do
4319   # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_MSGFMT+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   case $MSGFMT in
4327   [\\/]* | ?:[\\/]*)
4328   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4329   ;;
4330   *)
4331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345   ;;
4346 esac
4347 fi
4348 MSGFMT=$ac_cv_path_MSGFMT
4349
4350 if test -n "$MSGFMT"; then
4351   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4352 echo "${ECHO_T}$MSGFMT" >&6
4353 else
4354   echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4356 fi
4357
4358   test -n "$MSGFMT" && break
4359 done
4360 test -n "$MSGFMT" || MSGFMT="no"
4361
4362 if test "$MSGFMT" = "no"
4363 then
4364    echo 'msgfmt program not found, disabling NLS !'
4365    USE_NLS=no
4366    USE_INCLUDED_LIBINTL=no
4367 #else
4368 #   AM_GNU_GETTEXT
4369 fi
4370
4371
4372 support_mysql=no
4373 support_sqlite=no
4374 support_postgresql=no
4375 support_smartalloc=yes
4376 support_readline=yes
4377 support_conio=yes
4378 support_gnome=no
4379 support_wx_console=no
4380 gnome_version=
4381 support_static_tools=no
4382 support_static_fd=no
4383 support_static_sd=no
4384 support_static_dir=no
4385 support_static_cons=no
4386 support_python=no
4387 build_client_only=no
4388 cats=
4389 db_name=Internal
4390 DB_NAME=bdb
4391
4392
4393 # -------------------------------------------
4394 # gnome (default off)
4395 # -------------------------------------------
4396 # Check whether --enable-gnome or --disable-gnome was given.
4397 if test "${enable_gnome+set}" = set; then
4398   enableval="$enable_gnome"
4399   if test x$enableval = xyes; then
4400     support_gnome=yes
4401   fi
4402 fi;
4403
4404 GNOME_DIR=
4405 if test x$support_gnome = xyes; then
4406   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4407   pkg=$?
4408   if test $pkg = 0; then
4409      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4410      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4411      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4412      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4413
4414
4415
4416
4417      GNOME_DIR=src/gnome2-console
4418      gnome_version="Version 2.x"
4419   else
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4432 if test "${with_gnome_includes+set}" = set; then
4433   withval="$with_gnome_includes"
4434
4435         CFLAGS="$CFLAGS -I$withval"
4436
4437 fi;
4438
4439
4440 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4441 if test "${with_gnome_libs+set}" = set; then
4442   withval="$with_gnome_libs"
4443
4444         LDFLAGS="$LDFLAGS -L$withval"
4445         gnome_prefix=$withval
4446
4447 fi;
4448
4449
4450 # Check whether --with-gnome or --without-gnome was given.
4451 if test "${with_gnome+set}" = set; then
4452   withval="$with_gnome"
4453   if test x$withval = xyes; then
4454                         want_gnome=yes
4455                                                                         :
4456                 else
4457                         if test "x$withval" = xno; then
4458                                 want_gnome=no
4459                         else
4460                                 want_gnome=yes
4461                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4462                                 CFLAGS="$CFLAGS -I$withval/include"
4463                                 gnome_prefix=$withval/lib
4464                         fi
4465                 fi
4466 else
4467   want_gnome=yes
4468 fi;
4469
4470         if test "x$want_gnome" = xyes; then
4471
4472             # Extract the first word of "gnome-config", so it can be a program name with args.
4473 set dummy gnome-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $GNOME_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4503
4504 if test -n "$GNOME_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4506 echo "${ECHO_T}$GNOME_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512             if test "$GNOME_CONFIG" = "no"; then
4513               no_gnome_config="yes"
4514             else
4515               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4516 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4517               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4518                 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4520
4521
4522         # Extract the first word of "orbit-config", so it can be a program name with args.
4523 set dummy orbit-config; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   case $ORBIT_CONFIG in
4530   [\\/]* | ?:[\\/]*)
4531   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4532   ;;
4533   *)
4534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547
4548   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4549   ;;
4550 esac
4551 fi
4552 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4553
4554 if test -n "$ORBIT_CONFIG"; then
4555   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4556 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562         # Extract the first word of "orbit-idl", so it can be a program name with args.
4563 set dummy orbit-idl; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   case $ORBIT_IDL in
4570   [\\/]* | ?:[\\/]*)
4571   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4572   ;;
4573   *)
4574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579   for ac_exec_ext in '' $ac_executable_extensions; do
4580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586 done
4587
4588   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4589   ;;
4590 esac
4591 fi
4592 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4593
4594 if test -n "$ORBIT_IDL"; then
4595   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4596 echo "${ECHO_T}$ORBIT_IDL" >&6
4597 else
4598   echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4603 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4604 if test "${gnome_cv_orbit_found+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607
4608                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4609                         gnome_cv_orbit_found=no
4610                 else
4611                         gnome_cv_orbit_found=yes
4612                 fi
4613
4614 fi
4615 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4616 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4617
4618
4619 if test x$gnome_cv_orbit_found = xyes; then
4620   HAVE_ORBIT_TRUE=
4621   HAVE_ORBIT_FALSE='#'
4622 else
4623   HAVE_ORBIT_TRUE='#'
4624   HAVE_ORBIT_FALSE=
4625 fi
4626         if test x$gnome_cv_orbit_found = xyes; then
4627
4628                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4629                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4630
4631
4632         else
4633                 if test xfail = xfailure; then
4634                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4635 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4636    { (exit 1); exit 1; }; }
4637                 fi
4638         fi
4639
4640         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4641 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4642 if test "${gnome_cv_gnorba_found+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645
4646                 gnome_cv_gnorba_found=no
4647                 if test x$gnome_cv_orbit_found = xyes; then
4648                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4649                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4650                         if test -n "$GNORBA_LIBS"; then
4651                                 gnome_cv_gnorba_found=yes
4652                         fi
4653                 fi
4654
4655 fi
4656 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4657 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4658
4659
4660 if test x$gnome_cv_gnorba_found = xyes; then
4661   HAVE_GNORBA_TRUE=
4662   HAVE_GNORBA_FALSE='#'
4663 else
4664   HAVE_GNORBA_TRUE='#'
4665   HAVE_GNORBA_FALSE=
4666 fi
4667         if test x$gnome_cv_orbit_found = xyes; then
4668
4669                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4670                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4671
4672
4673         else
4674                 if test xfail = xfailure; then
4675                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4676 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4677    { (exit 1); exit 1; }; }
4678                 fi
4679         fi
4680
4681                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4682                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4683                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4684                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4685                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4686                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4687                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4688
4689               else
4690                 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692                 no_gnome_config="yes"
4693               fi
4694             fi
4695
4696             if test x$exec_prefix = xNONE; then
4697                 if test x$prefix = xNONE; then
4698                     gnome_prefix=$ac_default_prefix/lib
4699                 else
4700                     gnome_prefix=$prefix/lib
4701                 fi
4702             else
4703                 gnome_prefix=`eval echo \`echo $libdir\``
4704             fi
4705
4706             if test "$no_gnome_config" = "yes"; then
4707               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4708 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4709               if test -f $gnome_prefix/gnomeConf.sh; then
4710                 echo "$as_me:$LINENO: result: found" >&5
4711 echo "${ECHO_T}found" >&6
4712                 echo "loading gnome configuration from" \
4713                      "$gnome_prefix/gnomeConf.sh"
4714                 . $gnome_prefix/gnomeConf.sh
4715
4716               else
4717                 echo "$as_me:$LINENO: result: not found" >&5
4718 echo "${ECHO_T}not found" >&6
4719                 if test xfail = xfail; then
4720                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4721 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4722    { (exit 1); exit 1; }; }
4723                 fi
4724               fi
4725             fi
4726         fi
4727
4728         if test -n ""; then
4729           n=""
4730           for i in $n; do
4731             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4732 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4733             case $i in
4734               applets)
4735
4736                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4737                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4739               docklets)
4740
4741                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4742                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4744               capplet)
4745
4746                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4747                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4748 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4749               *)
4750                 echo "$as_me:$LINENO: result: unknown library" >&5
4751 echo "${ECHO_T}unknown library" >&6
4752             esac
4753             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4754             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4755           done
4756         fi
4757
4758
4759      GNOME_DIR=src/gnome-console
4760      gnome_version="Version 1.4"
4761   fi
4762 fi
4763
4764
4765
4766 # -------------------------------------------
4767 # wx-console (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-wx-console or --disable-wx-console was given.
4770 if test "${enable_wx_console+set}" = set; then
4771   enableval="$enable_wx_console"
4772   if test x$enableval = xyes; then
4773     support_wx_console=yes
4774   fi
4775 fi;
4776
4777 WX_DIR=
4778 if test x$support_wx_console = xyes; then
4779   abc=`$WXCONFIG --cppflags`
4780   pkg=$?
4781   if test $pkg = 0; then
4782      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4783      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4784
4785
4786      WX_DIR=src/wx-console
4787   else
4788      echo " "
4789      echo "wx-config program not found. wx-console disabled."
4790      echo " "
4791      support_wx_console=no
4792   fi
4793 fi
4794
4795
4796
4797 # -------------------------------------------
4798 # tray-monitor (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4801 if test "${enable_tray_monitor+set}" = set; then
4802   enableval="$enable_tray_monitor"
4803   if test x$enableval = xyes; then
4804     support_tray_monitor=yes
4805   fi
4806 fi;
4807
4808 TRAY_MONITOR_DIR=
4809 if test x$support_tray_monitor = xyes; then
4810   abc=`$PKGCONFIG --exists gtk+-2.0`
4811   pkg=$?
4812   if test $pkg = 0; then
4813      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4814      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4815
4816
4817      TRAY_MONITOR_DIR=src/tray-monitor
4818      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4819      pkg=$?
4820      if test $pkg = 0; then
4821         cat >>confdefs.h <<\_ACEOF
4822 #define HAVE_GTK_2_4 1
4823 _ACEOF
4824
4825      fi
4826   fi
4827 fi
4828
4829
4830 # -------------------------------------------
4831 # smartalloc (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4834 if test "${enable_smartalloc+set}" = set; then
4835   enableval="$enable_smartalloc"
4836   if test x$enableval = xno; then
4837     support_smartalloc=no
4838   fi
4839 fi;
4840
4841 if test x$support_smartalloc = xyes; then
4842    cat >>confdefs.h <<\_ACEOF
4843 #define SMARTALLOC 1
4844 _ACEOF
4845
4846 fi
4847
4848 # -------------------------------------------
4849 # static-tools (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-tools or --disable-static-tools was given.
4852 if test "${enable_static_tools+set}" = set; then
4853   enableval="$enable_static_tools"
4854   if test x$enableval = xyes; then
4855      support_static_tools=yes
4856    fi
4857 fi;
4858
4859 TTOOL_LDFLAGS=
4860 if test x$support_static_tools = xyes; then
4861    TTOOL_LDFLAGS="-static"
4862 fi
4863
4864
4865 # -------------------------------------------
4866 # static-fd    (default off)
4867 # -------------------------------------------
4868 # Check whether --enable-static-fd or --disable-static-fd was given.
4869 if test "${enable_static_fd+set}" = set; then
4870   enableval="$enable_static_fd"
4871   if test x$enableval = xyes; then
4872      support_static_fd=yes
4873    fi
4874 fi;
4875
4876 STATIC_FD=
4877 if test x$support_static_fd = xyes; then
4878    STATIC_FD="static-bacula-fd"
4879 fi
4880
4881
4882 # -------------------------------------------
4883 # static-sd    (default off)
4884 # -------------------------------------------
4885 # Check whether --enable-static-sd or --disable-static-sd was given.
4886 if test "${enable_static_sd+set}" = set; then
4887   enableval="$enable_static_sd"
4888   if test x$enableval = xyes; then
4889      support_static_sd=yes
4890    fi
4891 fi;
4892
4893 STATIC_SD=
4894 if test x$support_static_sd = xyes; then
4895    STATIC_SD="static-bacula-sd"
4896 fi
4897
4898
4899 # -------------------------------------------
4900 # static-dir   (default off)
4901 # -------------------------------------------
4902 # Check whether --enable-static-dir or --disable-static-dir was given.
4903 if test "${enable_static_dir+set}" = set; then
4904   enableval="$enable_static_dir"
4905   if test x$enableval = xyes; then
4906      support_static_dir=yes
4907    fi
4908 fi;
4909
4910 STATIC_DIR=
4911 if test x$support_static_dir = xyes; then
4912    STATIC_DIR="static-bacula-dir"
4913 fi
4914
4915
4916 # -------------------------------------------
4917 # static-cons  (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-static-cons or --disable-static-cons was given.
4920 if test "${enable_static_cons+set}" = set; then
4921   enableval="$enable_static_cons"
4922   if test x$enableval = xyes; then
4923      support_static_cons=yes
4924    fi
4925 fi;
4926
4927 STATIC_CONS=
4928 STATIC_GNOME_CONS=
4929 STATIC_WX_CONS=
4930 if test x$support_static_cons = xyes; then
4931    STATIC_CONS="static-bconsole"
4932    STATIC_GNOME_CONS="static-gnome-console"
4933    STATIC_WX_CONS="static-wx-console"
4934 fi
4935
4936
4937
4938
4939 # -------------------------------------------
4940 # client_only  (default off)
4941 # -------------------------------------------
4942 # Check whether --enable-client-only or --disable-client-only was given.
4943 if test "${enable_client_only+set}" = set; then
4944   enableval="$enable_client_only"
4945   if test x$enableval = xyes; then
4946      build_client_only=yes
4947     db_name=None
4948     DB_NAME=none
4949    fi
4950 fi;
4951 if test x$build_client_only = xno; then
4952    ALL_DIRS="subdirs"
4953 else
4954    ALL_DIRS=""
4955 fi
4956
4957
4958 # ---------------------------------------------------
4959 # Check for conio (Bacula readline substitute)(
4960 # ---------------------------------------------------
4961 # this allows you to turn it completely off
4962 # Check whether --enable-conio or --disable-conio was given.
4963 if test "${enable_conio+set}" = set; then
4964   enableval="$enable_conio"
4965   if test x$enableval = xno; then
4966     support_conio=no
4967   fi
4968 fi;
4969
4970 got_conio="no"
4971 if test x$support_conio = xyes; then
4972    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4974 if test "${ac_cv_header_stdc+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 #include <stdlib.h>
4985 #include <stdarg.h>
4986 #include <string.h>
4987 #include <float.h>
4988
4989 int
4990 main ()
4991 {
4992
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999   (eval $ac_compile) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_cv_header_stdc=yes
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_cv_header_stdc=no
5015 fi
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5017
5018 if test $ac_cv_header_stdc = yes; then
5019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5020   cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #include <string.h>
5028
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031   $EGREP "memchr" >/dev/null 2>&1; then
5032   :
5033 else
5034   ac_cv_header_stdc=no
5035 fi
5036 rm -f conftest*
5037
5038 fi
5039
5040 if test $ac_cv_header_stdc = yes; then
5041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #include <stdlib.h>
5050
5051 _ACEOF
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053   $EGREP "free" >/dev/null 2>&1; then
5054   :
5055 else
5056   ac_cv_header_stdc=no
5057 fi
5058 rm -f conftest*
5059
5060 fi
5061
5062 if test $ac_cv_header_stdc = yes; then
5063   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5064   if test "$cross_compiling" = yes; then
5065   :
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ctype.h>
5075 #if ((' ' & 0x0FF) == 0x020)
5076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5078 #else
5079 # define ISLOWER(c) \
5080                    (('a' <= (c) && (c) <= 'i') \
5081                      || ('j' <= (c) && (c) <= 'r') \
5082                      || ('s' <= (c) && (c) <= 'z'))
5083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5084 #endif
5085
5086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5087 int
5088 main ()
5089 {
5090   int i;
5091   for (i = 0; i < 256; i++)
5092     if (XOR (islower (i), ISLOWER (i))
5093         || toupper (i) != TOUPPER (i))
5094       exit(2);
5095   exit (0);
5096 }
5097 _ACEOF
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100   (eval $ac_link) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   :
5110 else
5111   echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ( exit $ac_status )
5116 ac_cv_header_stdc=no
5117 fi
5118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 fi
5121 fi
5122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5124 if test $ac_cv_header_stdc = yes; then
5125
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5128 _ACEOF
5129
5130 fi
5131
5132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5143                   inttypes.h stdint.h unistd.h
5144 do
5145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5146 echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 $ac_includes_default
5159
5160 #include <$ac_header>
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164   (eval $ac_compile) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } &&
5168          { ac_try='test -s conftest.$ac_objext'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; }; then
5174   eval "$as_ac_Header=yes"
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 eval "$as_ac_Header=no"
5180 fi
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186   cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 _ACEOF
5189
5190 fi
5191
5192 done
5193
5194
5195 if test "${ac_cv_header_termcap_h+set}" = set; then
5196   echo "$as_me:$LINENO: checking for termcap.h" >&5
5197 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5198 if test "${ac_cv_header_termcap_h+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 fi
5201 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5202 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5203 else
5204   # Is the header compilable?
5205 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5206 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 $ac_includes_default
5215 #include <termcap.h>
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219   (eval $ac_compile) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } &&
5223          { ac_try='test -s conftest.$ac_objext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   ac_header_compiler=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 ac_header_compiler=no
5235 fi
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238 echo "${ECHO_T}$ac_header_compiler" >&6
5239
5240 # Is the header present?
5241 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5242 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <termcap.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } >/dev/null; then
5260   if test -s conftest.err; then
5261     ac_cpp_err=$ac_c_preproc_warn_flag
5262   else
5263     ac_cpp_err=
5264   fi
5265 else
5266   ac_cpp_err=yes
5267 fi
5268 if test -z "$ac_cpp_err"; then
5269   ac_header_preproc=yes
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274   ac_header_preproc=no
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6
5279
5280 # So?  What about this header?
5281 case $ac_header_compiler:$ac_header_preproc in
5282   yes:no )
5283     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5284 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5287     (
5288       cat <<\_ASBOX
5289 ## ------------------------------------ ##
5290 ## Report this to bug-autoconf@gnu.org. ##
5291 ## ------------------------------------ ##
5292 _ASBOX
5293     ) |
5294       sed "s/^/$as_me: WARNING:     /" >&2
5295     ;;
5296   no:yes )
5297     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5298 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5299     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5300 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5303     (
5304       cat <<\_ASBOX
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5308 _ASBOX
5309     ) |
5310       sed "s/^/$as_me: WARNING:     /" >&2
5311     ;;
5312 esac
5313 echo "$as_me:$LINENO: checking for termcap.h" >&5
5314 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_termcap_h+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   ac_cv_header_termcap_h=$ac_header_preproc
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5322
5323 fi
5324 if test $ac_cv_header_termcap_h = yes; then
5325    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5326 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5327 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-ltermcap  $LIBS"
5332 cat >conftest.$ac_ext <<_ACEOF
5333 #line $LINENO "configure"
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339
5340 /* Override any gcc2 internal prototype to avoid an error.  */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345    builtin and then its argument prototype would still apply.  */
5346 char tgetent ();
5347 int
5348 main ()
5349 {
5350 tgetent ();
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357   (eval $ac_link) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } &&
5361          { ac_try='test -s conftest$ac_exeext'
5362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363   (eval $ac_try) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; }; then
5367   ac_cv_lib_termcap_tgetent=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_cv_lib_termcap_tgetent=no
5373 fi
5374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5375 LIBS=$ac_check_lib_save_LIBS
5376 fi
5377 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5378 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5379 if test $ac_cv_lib_termcap_tgetent = yes; then
5380    CONS_LIBS="-ltermcap"
5381          CONS_OBJ="conio.o"
5382          CONS_SRC="conio.c"
5383          got_conio="yes"
5384          support_readline=no
5385
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_CONIO 1
5388 _ACEOF
5389
5390
5391 else
5392    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5393 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5394 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lncurses  $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char tgetent ();
5414 int
5415 main ()
5416 {
5417 tgetent ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -s conftest$ac_exeext'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; }; then
5434   ac_cv_lib_ncurses_tgetent=yes
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 ac_cv_lib_ncurses_tgetent=no
5440 fi
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442 LIBS=$ac_check_lib_save_LIBS
5443 fi
5444 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5445 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5446 if test $ac_cv_lib_ncurses_tgetent = yes; then
5447    CONS_LIBS="-lncurses"
5448            CONS_OBJ="conio.o"
5449            CONS_SRC="conio.c"
5450            got_conio="yes"
5451            support_readline=no
5452
5453 cat >>confdefs.h <<\_ACEOF
5454 #define HAVE_CONIO 1
5455 _ACEOF
5456
5457
5458 fi
5459
5460
5461 fi
5462
5463
5464 else
5465
5466
5467 for ac_header in curses.h
5468 do
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5471   echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 fi
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5478 else
5479   # Is the header compilable?
5480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line $LINENO "configure"
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 $ac_includes_default
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494   (eval $ac_compile) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } &&
5498          { ac_try='test -s conftest.$ac_objext'
5499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   ac_header_compiler=yes
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_header_compiler=no
5510 fi
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5513 echo "${ECHO_T}$ac_header_compiler" >&6
5514
5515 # Is the header present?
5516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <$ac_header>
5526 _ACEOF
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } >/dev/null; then
5535   if test -s conftest.err; then
5536     ac_cpp_err=$ac_c_preproc_warn_flag
5537   else
5538     ac_cpp_err=
5539   fi
5540 else
5541   ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544   ac_header_preproc=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549   ac_header_preproc=no
5550 fi
5551 rm -f conftest.err conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5553 echo "${ECHO_T}$ac_header_preproc" >&6
5554
5555 # So?  What about this header?
5556 case $ac_header_compiler:$ac_header_preproc in
5557   yes:no )
5558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562     (
5563       cat <<\_ASBOX
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5567 _ASBOX
5568     ) |
5569       sed "s/^/$as_me: WARNING:     /" >&2
5570     ;;
5571   no:yes )
5572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5578     (
5579       cat <<\_ASBOX
5580 ## ------------------------------------ ##
5581 ## Report this to bug-autoconf@gnu.org. ##
5582 ## ------------------------------------ ##
5583 _ASBOX
5584     ) |
5585       sed "s/^/$as_me: WARNING:     /" >&2
5586     ;;
5587 esac
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   eval "$as_ac_Header=$ac_header_preproc"
5594 fi
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5597
5598 fi
5599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600   cat >>confdefs.h <<_ACEOF
5601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602 _ACEOF
5603
5604 fi
5605
5606 done
5607
5608          echo "$as_me:$LINENO: checking for term.h" >&5
5609 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5610 if test "${ac_cv_header_term_h+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 #if HAVE_CURSES_H
5621 #include <curses.h>
5622 #endif
5623
5624
5625 #include <term.h>
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -s conftest.$ac_objext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   ac_cv_header_term_h=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_cv_header_term_h=no
5645 fi
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5649 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5650 if test $ac_cv_header_term_h = yes; then
5651    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5652 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5653 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lcurses  $LIBS"
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665
5666 /* Override any gcc2 internal prototype to avoid an error.  */
5667 #ifdef __cplusplus
5668 extern "C"
5669 #endif
5670 /* We use char because int might match the return type of a gcc2
5671    builtin and then its argument prototype would still apply.  */
5672 char tgetent ();
5673 int
5674 main ()
5675 {
5676 tgetent ();
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -s conftest$ac_exeext'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; }; then
5693   ac_cv_lib_curses_tgetent=yes
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_lib_curses_tgetent=no
5699 fi
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5704 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5705 if test $ac_cv_lib_curses_tgetent = yes; then
5706    CONS_LIBS="-lcurses"
5707                    CONS_OBJ="conio.o"
5708                    CONS_SRC="conio.c"
5709                    got_conio="yes"
5710                    support_readline=no
5711
5712 cat >>confdefs.h <<\_ACEOF
5713 #define HAVE_CONIO 1
5714 _ACEOF
5715
5716
5717 fi
5718
5719
5720 else
5721    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5722 fi
5723
5724
5725
5726 fi
5727
5728
5729 fi
5730
5731
5732 # ---------------------------------------------------
5733 # Check for readline support/directory (default off)
5734 # ---------------------------------------------------
5735 # this allows you to turn it completely off
5736 # Check whether --enable-readline or --disable-readline was given.
5737 if test "${enable_readline+set}" = set; then
5738   enableval="$enable_readline"
5739   if test x$enableval = xno; then
5740     support_readline=no
5741   fi
5742 fi;
5743
5744 got_readline="no"
5745 READLINE_SRC=
5746 if test x$support_readline = xyes; then
5747
5748 # Check whether --with-readline or --without-readline was given.
5749 if test "${with_readline+set}" = set; then
5750   withval="$with_readline"
5751
5752         case "$with_readline" in
5753         no) : ;;
5754         yes|*)
5755           if test "$with_readline" != "yes"; then
5756             CONS_INC="-I${with_readline}"
5757             CONS_LDFLAGS="-L$with_readline"
5758           else
5759              with_readline="/usr/include/readline"
5760           fi
5761           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5764 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 fi
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770 else
5771   # Is the header compilable?
5772 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5773 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 $ac_includes_default
5782 #include <${with_readline}/readline.h>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786   (eval $ac_compile) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_header_compiler=yes
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ac_header_compiler=no
5802 fi
5803 rm -f conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5805 echo "${ECHO_T}$ac_header_compiler" >&6
5806
5807 # Is the header present?
5808 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5809 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817 #include <${with_readline}/readline.h>
5818 _ACEOF
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } >/dev/null; then
5827   if test -s conftest.err; then
5828     ac_cpp_err=$ac_c_preproc_warn_flag
5829   else
5830     ac_cpp_err=
5831   fi
5832 else
5833   ac_cpp_err=yes
5834 fi
5835 if test -z "$ac_cpp_err"; then
5836   ac_header_preproc=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841   ac_header_preproc=no
5842 fi
5843 rm -f conftest.err conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5845 echo "${ECHO_T}$ac_header_preproc" >&6
5846
5847 # So?  What about this header?
5848 case $ac_header_compiler:$ac_header_preproc in
5849   yes:no )
5850     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5851 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5853 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5854     (
5855       cat <<\_ASBOX
5856 ## ------------------------------------ ##
5857 ## Report this to bug-autoconf@gnu.org. ##
5858 ## ------------------------------------ ##
5859 _ASBOX
5860     ) |
5861       sed "s/^/$as_me: WARNING:     /" >&2
5862     ;;
5863   no:yes )
5864     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5868     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5870     (
5871       cat <<\_ASBOX
5872 ## ------------------------------------ ##
5873 ## Report this to bug-autoconf@gnu.org. ##
5874 ## ------------------------------------ ##
5875 _ASBOX
5876     ) |
5877       sed "s/^/$as_me: WARNING:     /" >&2
5878     ;;
5879 esac
5880 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5881 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   eval "$as_ac_Header=$ac_header_preproc"
5886 fi
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
5890 fi
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892    cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_READLINE 1
5894 _ACEOF
5895
5896                CONS_LIBS="-lreadline -ltermcap"
5897                got_readline="yes"
5898
5899 else
5900    echo " "
5901                echo "readline.h not found. readline turned off ..."
5902                echo " "
5903
5904
5905 fi
5906
5907
5908           ;;
5909         esac
5910
5911 else
5912
5913        # check for standard readline library
5914        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5915   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5916 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5917 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5921 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5922 else
5923   # Is the header compilable?
5924 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5925 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 $ac_includes_default
5934 #include </usr/include/readline/readline.h>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_header_compiler=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954 fi
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5958
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5961 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #include </usr/include/readline/readline.h>
5970 _ACEOF
5971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } >/dev/null; then
5979   if test -s conftest.err; then
5980     ac_cpp_err=$ac_c_preproc_warn_flag
5981   else
5982     ac_cpp_err=
5983   fi
5984 else
5985   ac_cpp_err=yes
5986 fi
5987 if test -z "$ac_cpp_err"; then
5988   ac_header_preproc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993   ac_header_preproc=no
5994 fi
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5998
5999 # So?  What about this header?
6000 case $ac_header_compiler:$ac_header_preproc in
6001   yes:no )
6002     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6005 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6006     (
6007       cat <<\_ASBOX
6008 ## ------------------------------------ ##
6009 ## Report this to bug-autoconf@gnu.org. ##
6010 ## ------------------------------------ ##
6011 _ASBOX
6012     ) |
6013       sed "s/^/$as_me: WARNING:     /" >&2
6014     ;;
6015   no:yes )
6016     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6018     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6020     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6022     (
6023       cat <<\_ASBOX
6024 ## ------------------------------------ ##
6025 ## Report this to bug-autoconf@gnu.org. ##
6026 ## ------------------------------------ ##
6027 _ASBOX
6028     ) |
6029       sed "s/^/$as_me: WARNING:     /" >&2
6030     ;;
6031 esac
6032 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6033 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6034 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6038 fi
6039 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6040 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6041
6042 fi
6043 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6044    cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_READLINE 1
6046 _ACEOF
6047
6048            got_readline="yes"
6049            CONS_INC="-I/usr/include/readline"
6050            CONS_LIBS="-lreadline -ltermcap"
6051
6052 else
6053
6054            # Did not find standard library, so try Bacula's default
6055             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6058 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 fi
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064 else
6065   # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6067 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 $ac_includes_default
6076 #include <${TOP_DIR}/depkgs/readline/readline.h>
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080   (eval $ac_compile) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -s conftest.$ac_objext'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_header_compiler=yes
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_header_compiler=no
6096 fi
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6099 echo "${ECHO_T}$ac_header_compiler" >&6
6100
6101 # Is the header present?
6102 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6103 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #include <${TOP_DIR}/depkgs/readline/readline.h>
6112 _ACEOF
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115   ac_status=$?
6116   grep -v '^ *+' conftest.er1 >conftest.err
6117   rm -f conftest.er1
6118   cat conftest.err >&5
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } >/dev/null; then
6121   if test -s conftest.err; then
6122     ac_cpp_err=$ac_c_preproc_warn_flag
6123   else
6124     ac_cpp_err=
6125   fi
6126 else
6127   ac_cpp_err=yes
6128 fi
6129 if test -z "$ac_cpp_err"; then
6130   ac_header_preproc=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135   ac_header_preproc=no
6136 fi
6137 rm -f conftest.err conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6
6140
6141 # So?  What about this header?
6142 case $ac_header_compiler:$ac_header_preproc in
6143   yes:no )
6144     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6147 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6148     (
6149       cat <<\_ASBOX
6150 ## ------------------------------------ ##
6151 ## Report this to bug-autoconf@gnu.org. ##
6152 ## ------------------------------------ ##
6153 _ASBOX
6154     ) |
6155       sed "s/^/$as_me: WARNING:     /" >&2
6156     ;;
6157   no:yes )
6158     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6162     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6164     (
6165       cat <<\_ASBOX
6166 ## ------------------------------------ ##
6167 ## Report this to bug-autoconf@gnu.org. ##
6168 ## ------------------------------------ ##
6169 _ASBOX
6170     ) |
6171       sed "s/^/$as_me: WARNING:     /" >&2
6172     ;;
6173 esac
6174 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6175 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   eval "$as_ac_Header=$ac_header_preproc"
6180 fi
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183
6184 fi
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186    cat >>confdefs.h <<\_ACEOF
6187 #define HAVE_READLINE 1
6188 _ACEOF
6189
6190                  got_readline="yes"
6191                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6192                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6193                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6194                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6195
6196 else
6197    echo " "
6198                 echo "readline.h not found. readline turned off ..."
6199                 echo " "
6200
6201
6202 fi
6203
6204
6205
6206
6207 fi
6208
6209
6210
6211
6212 fi;
6213 fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 # Minimal stuff for readline Makefile configuration
6225 MAKE_SHELL=/bin/sh
6226
6227 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6228 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6229 if test "${ac_cv_header_stat_broken+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   cat >conftest.$ac_ext <<_ACEOF
6233 #line $LINENO "configure"
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 #include <sys/types.h>
6240 #include <sys/stat.h>
6241
6242 #if defined(S_ISBLK) && defined(S_IFDIR)
6243 # if S_ISBLK (S_IFDIR)
6244 You lose.
6245 # endif
6246 #endif
6247
6248 #if defined(S_ISBLK) && defined(S_IFCHR)
6249 # if S_ISBLK (S_IFCHR)
6250 You lose.
6251 # endif
6252 #endif
6253
6254 #if defined(S_ISLNK) && defined(S_IFREG)
6255 # if S_ISLNK (S_IFREG)
6256 You lose.
6257 # endif
6258 #endif
6259
6260 #if defined(S_ISSOCK) && defined(S_IFREG)
6261 # if S_ISSOCK (S_IFREG)
6262 You lose.
6263 # endif
6264 #endif
6265
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268   $EGREP "You lose" >/dev/null 2>&1; then
6269   ac_cv_header_stat_broken=yes
6270 else
6271   ac_cv_header_stat_broken=no
6272 fi
6273 rm -f conftest*
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6277 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6278 if test $ac_cv_header_stat_broken = yes; then
6279
6280 cat >>confdefs.h <<\_ACEOF
6281 #define STAT_MACROS_BROKEN 1
6282 _ACEOF
6283
6284 fi
6285
6286
6287
6288
6289
6290
6291 ac_header_dirent=no
6292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6293   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6294 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6295 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306 #include <sys/types.h>
6307 #include <$ac_hdr>
6308
6309 int
6310 main ()
6311 {
6312 if ((DIR *) 0)
6313 return 0;
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest.$ac_objext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   eval "$as_ac_Header=yes"
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 eval "$as_ac_Header=no"
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6342   cat >>confdefs.h <<_ACEOF
6343 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6344 _ACEOF
6345
6346 ac_header_dirent=$ac_hdr; break
6347 fi
6348
6349 done
6350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6351 if test $ac_header_dirent = dirent.h; then
6352   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6354 if test "${ac_cv_search_opendir+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   ac_func_search_save_LIBS=$LIBS
6358 ac_cv_search_opendir=no
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366
6367 /* Override any gcc2 internal prototype to avoid an error.  */
6368 #ifdef __cplusplus
6369 extern "C"
6370 #endif
6371 /* We use char because int might match the return type of a gcc2
6372    builtin and then its argument prototype would still apply.  */
6373 char opendir ();
6374 int
6375 main ()
6376 {
6377 opendir ();
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384   (eval $ac_link) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -s conftest$ac_exeext'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; }; then
6394   ac_cv_search_opendir="none required"
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 fi
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 if test "$ac_cv_search_opendir" = no; then
6402   for ac_lib in dir; do
6403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6404     cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411
6412 /* Override any gcc2 internal prototype to avoid an error.  */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417    builtin and then its argument prototype would still apply.  */
6418 char opendir ();
6419 int
6420 main ()
6421 {
6422 opendir ();
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429   (eval $ac_link) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -s conftest$ac_exeext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_cv_search_opendir="-l$ac_lib"
6440 break
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 fi
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447   done
6448 fi
6449 LIBS=$ac_func_search_save_LIBS
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6452 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6453 if test "$ac_cv_search_opendir" != no; then
6454   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6455
6456 fi
6457
6458 else
6459   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6461 if test "${ac_cv_search_opendir+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_func_search_save_LIBS=$LIBS
6465 ac_cv_search_opendir=no
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char opendir ();
6481 int
6482 main ()
6483 {
6484 opendir ();
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_cv_search_opendir="none required"
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 fi
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 if test "$ac_cv_search_opendir" = no; then
6509   for ac_lib in x; do
6510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6511     cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518
6519 /* Override any gcc2 internal prototype to avoid an error.  */
6520 #ifdef __cplusplus
6521 extern "C"
6522 #endif
6523 /* We use char because int might match the return type of a gcc2
6524    builtin and then its argument prototype would still apply.  */
6525 char opendir ();
6526 int
6527 main ()
6528 {
6529 opendir ();
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536   (eval $ac_link) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -s conftest$ac_exeext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_search_opendir="-l$ac_lib"
6547 break
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 fi
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554   done
6555 fi
6556 LIBS=$ac_func_search_save_LIBS
6557 fi
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6562
6563 fi
6564
6565 fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6576 do
6577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_func" >&5
6579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_var+set}\" = set"; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 /* System header to define __stub macros and hopefully few prototypes,
6591     which can conflict with char $ac_func (); below.
6592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593     <limits.h> exists even on freestanding compilers.  */
6594 #ifdef __STDC__
6595 # include <limits.h>
6596 #else
6597 # include <assert.h>
6598 #endif
6599 /* Override any gcc2 internal prototype to avoid an error.  */
6600 #ifdef __cplusplus
6601 extern "C"
6602 {
6603 #endif
6604 /* We use char because int might match the return type of a gcc2
6605    builtin and then its argument prototype would still apply.  */
6606 char $ac_func ();
6607 /* The GNU C library defines this for functions which it implements
6608     to always fail with ENOSYS.  Some functions are actually named
6609     something starting with __ and the normal name is an alias.  */
6610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6611 choke me
6612 #else
6613 char (*f) () = $ac_func;
6614 #endif
6615 #ifdef __cplusplus
6616 }
6617 #endif
6618
6619 int
6620 main ()
6621 {
6622 return f != $ac_func;
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629   (eval $ac_link) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -s conftest$ac_exeext'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; }; then
6639   eval "$as_ac_var=yes"
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 eval "$as_ac_var=no"
6645 fi
6646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6647 fi
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6650 if test `eval echo '${'$as_ac_var'}'` = yes; then
6651   cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653 _ACEOF
6654
6655 fi
6656 done
6657
6658
6659
6660 for ac_func in nanosleep nl_langinfo
6661 do
6662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_var+set}\" = set"; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   cat >conftest.$ac_ext <<_ACEOF
6669 #line $LINENO "configure"
6670 /* confdefs.h.  */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h.  */
6675 /* System header to define __stub macros and hopefully few prototypes,
6676     which can conflict with char $ac_func (); below.
6677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678     <limits.h> exists even on freestanding compilers.  */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6684 /* Override any gcc2 internal prototype to avoid an error.  */
6685 #ifdef __cplusplus
6686 extern "C"
6687 {
6688 #endif
6689 /* We use char because int might match the return type of a gcc2
6690    builtin and then its argument prototype would still apply.  */
6691 char $ac_func ();
6692 /* The GNU C library defines this for functions which it implements
6693     to always fail with ENOSYS.  Some functions are actually named
6694     something starting with __ and the normal name is an alias.  */
6695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 choke me
6697 #else
6698 char (*f) () = $ac_func;
6699 #endif
6700 #ifdef __cplusplus
6701 }
6702 #endif
6703
6704 int
6705 main ()
6706 {
6707 return f != $ac_func;
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -s conftest$ac_exeext'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   eval "$as_ac_var=yes"
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 eval "$as_ac_var=no"
6730 fi
6731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6732 fi
6733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6735 if test `eval echo '${'$as_ac_var'}'` = yes; then
6736   cat >>confdefs.h <<_ACEOF
6737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6738 _ACEOF
6739
6740 fi
6741 done
6742
6743
6744 for ac_header in varargs.h
6745 do
6746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748   echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 fi
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6755 else
6756   # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 $ac_includes_default
6767 #include <$ac_header>
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   ac_header_compiler=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 ac_header_compiler=no
6787 fi
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 echo "${ECHO_T}$ac_header_compiler" >&6
6791
6792 # Is the header present?
6793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806   ac_status=$?
6807   grep -v '^ *+' conftest.er1 >conftest.err
6808   rm -f conftest.er1
6809   cat conftest.err >&5
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } >/dev/null; then
6812   if test -s conftest.err; then
6813     ac_cpp_err=$ac_c_preproc_warn_flag
6814   else
6815     ac_cpp_err=
6816   fi
6817 else
6818   ac_cpp_err=yes
6819 fi
6820 if test -z "$ac_cpp_err"; then
6821   ac_header_preproc=yes
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826   ac_header_preproc=no
6827 fi
6828 rm -f conftest.err conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 echo "${ECHO_T}$ac_header_preproc" >&6
6831
6832 # So?  What about this header?
6833 case $ac_header_compiler:$ac_header_preproc in
6834   yes:no )
6835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6839     (
6840       cat <<\_ASBOX
6841 ## ------------------------------------ ##
6842 ## Report this to bug-autoconf@gnu.org. ##
6843 ## ------------------------------------ ##
6844 _ASBOX
6845     ) |
6846       sed "s/^/$as_me: WARNING:     /" >&2
6847     ;;
6848   no:yes )
6849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6851     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6855     (
6856       cat <<\_ASBOX
6857 ## ------------------------------------ ##
6858 ## Report this to bug-autoconf@gnu.org. ##
6859 ## ------------------------------------ ##
6860 _ASBOX
6861     ) |
6862       sed "s/^/$as_me: WARNING:     /" >&2
6863     ;;
6864 esac
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   eval "$as_ac_Header=$ac_header_preproc"
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874
6875 fi
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877   cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6879 _ACEOF
6880
6881 fi
6882
6883 done
6884
6885
6886 # End of readline/conio stuff
6887 # -----------------------------------------------------------------------
6888
6889 # -----------------------------------------------------------------------
6890 #  Check for Python support
6891 #
6892 echo "$as_me:$LINENO: checking for Python support" >&5
6893 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6894
6895 # Check whether --with-python or --without-python was given.
6896 if test "${with_python+set}" = set; then
6897   withval="$with_python"
6898
6899   PYTHON_INCDIR=.
6900   PYTHON_LIBS=
6901   if test "$withval" != "no"; then
6902      if test "$withval" = "yes"; then
6903         if test -f /usr/include/python2.2/Python.h; then
6904            PYTHON_INCDIR=/usr/include/python2.2
6905            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6906         elif test -f $prefix/include/Python.h; then
6907            PYTHON_INCDIR=$prefix/include
6908            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6909         else
6910            echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6912            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6913 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6914    { (exit 1); exit 1; }; }
6915         fi
6916      else
6917         if test -f $withval/Python.h; then
6918            PYTHON_INCDIR=$withval
6919            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6920         elif test -f $withval/include/Python.h; then
6921            PYTHON_INCDIR=$withval/include
6922            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6923         else
6924            echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6927 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6928    { (exit 1); exit 1; }; }
6929         fi
6930      fi
6931      cat >>confdefs.h <<\_ACEOF
6932 #define HAVE_PYTHON 1
6933 _ACEOF
6934
6935      echo "$as_me:$LINENO: result: yes" >&5
6936 echo "${ECHO_T}yes" >&6
6937      support_python=yes
6938
6939   else
6940      echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6942   fi
6943
6944 else
6945
6946   echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6
6948
6949 fi;
6950
6951
6952
6953
6954 # -------------------------------------------
6955 # check for cdrecord writer location
6956 # get scsibus,target,lun
6957 # -------------------------------------------
6958 CDSTL="3,0,0"
6959 if test ! x$CDRECORD = x ; then
6960    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6961    if test x${CDSTL} = x ; then
6962       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6963    fi
6964    if test x${CDSTL} = x ; then
6965       CDSTL="3,0,0"
6966    fi
6967 fi
6968
6969
6970
6971 # ---------------------------------------------------
6972 # Check for GMP support/directory
6973 # ---------------------------------------------------
6974 #GMP_SRC=
6975 #local_gmp="no"
6976 #AC_ARG_WITH(gmp,
6977 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6978 #  [
6979 #     case "$with_gmp" in
6980 #     no) : ;;
6981 #     yes|*)
6982 #       if test "$with_gmp" != "yes"; then
6983 #         GMP_INC="-I$with_gmp"
6984 #         GMP_LIBS="-lgmp"
6985 #         GMP_LDFLAGS="-L$with_gmp"
6986 #       else
6987 #          with_gmp="/usr/include"
6988 #       fi
6989 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6990 #          [ AC_MSG_RESULT(yes)
6991 #            AC_DEFINE(HAVE_GMP)
6992 #            GMP_LIBS="-lgmp"
6993 #            got_gmp="yes"
6994 #          ],
6995 #          [ AC_MSG_ERROR([*** gmp library missing])
6996 #          ]
6997 #       )
6998 #       ;;
6999 #     esac
7000 #  ],[
7001 #    # check for standard gmp library
7002 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7003 #    [ AC_MSG_RESULT(yes)
7004 #      AC_DEFINE(HAVE_GMP)
7005 #      got_gmp="yes"
7006 #      GMP_INC=
7007 #      GMP_LIBS="-lgmp"
7008 #    ], [
7009 #      # Did not find standard library, so use our own
7010 #      AC_MSG_RESULT(yes)
7011 #      AC_DEFINE(HAVE_GMP)
7012 #      got_gmp="yes"
7013 #      local_gmp="yes"
7014 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7015 #      GMP_LIBS="-lgmp"
7016 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7017 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7018 #    ])
7019 #  ]
7020 #)
7021 #AC_SUBST(GMP_INC)
7022 #AC_SUBST(GMP_LIBS)
7023 #AC_SUBST(GMP_LDFLAGS)
7024 #AC_SUBST(GMP_SRC)
7025
7026 # End of GMP stuff
7027 # -----------------------------------------------------------------------
7028
7029
7030 # ---------------------------------------------------
7031 # Check for CWEB support/directory
7032 # ---------------------------------------------------
7033 #CWEB_SRC=
7034 #CWEB=/bin
7035 #local_cweb="no"
7036 #AC_ARG_WITH(cweb,
7037 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7038 #  [
7039 #     case "$with_cweb" in
7040 #     no) : ;;
7041 #     yes|*)
7042 #       if test "$with_cweb" != "yes"; then
7043 #         CWEB_INC="-I$with_cweb"
7044 #         CWEB_LIBS="-lcweb"
7045 #         CWEB_LDFLAGS="-L$with_cweb"
7046 #       else
7047 #          with_cweb="/usr/include"
7048 #       fi
7049 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7050 #          [ AC_MSG_RESULT(yes)
7051 #            AC_DEFINE(HAVE_CWEB)
7052 #            CWEB_LIBS="-lcweb"
7053 #            got_cweb="yes"
7054 #          ],
7055 #          [ AC_MSG_ERROR([*** cweb library missing])
7056 #          ]
7057 #       )
7058 #       ;;
7059 #     esac
7060 #  ],[
7061 #    # check for standard cweb library
7062 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7063 #    [ AC_MSG_RESULT(yes)
7064 #      AC_DEFINE(HAVE_CWEB)
7065 #      got_cweb="yes"
7066 #      CWEB_INC=
7067 #      CWEB_LIBS="-lcweb"
7068 #    ], [
7069 #      # Did not find starndard library, so use our own
7070 #      AC_MSG_RESULT(yes)
7071 #      AC_DEFINE(HAVE_CWEB)
7072 #      got_cweb="yes"
7073 #      local_cweb="yes"
7074 #      CWEB=${TOP_DIR}/depkgs/cweb
7075 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7076 #      CWEB_LIBS="-lcweb"
7077 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7078 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7079 #    ])
7080 #  ]
7081 #)
7082 #AC_SUBST(CWEB)
7083 #AC_SUBST(CWEB_INC)
7084 #AC_SUBST(CWEB_LIBS)
7085 #AC_SUBST(CWEB_LDFLAGS)
7086 #AC_SUBST(CWEB_SRC)
7087
7088 # End of CWEB stuff
7089 # -----------------------------------------------------------------------
7090
7091 #
7092 # Find where sockets are (especially for Solaris)
7093 # Do this before the TCP Wrappers test since tcp wrappers
7094 # uses the socket library and some linkers are stupid.
7095 #
7096 echo "$as_me:$LINENO: checking for socket" >&5
7097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7098 if test "${ac_cv_func_socket+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   cat >conftest.$ac_ext <<_ACEOF
7102 #line $LINENO "configure"
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108 /* System header to define __stub macros and hopefully few prototypes,
7109     which can conflict with char socket (); below.
7110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111     <limits.h> exists even on freestanding compilers.  */
7112 #ifdef __STDC__
7113 # include <limits.h>
7114 #else
7115 # include <assert.h>
7116 #endif
7117 /* Override any gcc2 internal prototype to avoid an error.  */
7118 #ifdef __cplusplus
7119 extern "C"
7120 {
7121 #endif
7122 /* We use char because int might match the return type of a gcc2
7123    builtin and then its argument prototype would still apply.  */
7124 char socket ();
7125 /* The GNU C library defines this for functions which it implements
7126     to always fail with ENOSYS.  Some functions are actually named
7127     something starting with __ and the normal name is an alias.  */
7128 #if defined (__stub_socket) || defined (__stub___socket)
7129 choke me
7130 #else
7131 char (*f) () = socket;
7132 #endif
7133 #ifdef __cplusplus
7134 }
7135 #endif
7136
7137 int
7138 main ()
7139 {
7140 return f != socket;
7141   ;
7142   return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147   (eval $ac_link) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -s conftest$ac_exeext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   ac_cv_func_socket=yes
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 ac_cv_func_socket=no
7163 fi
7164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7167 echo "${ECHO_T}$ac_cv_func_socket" >&6
7168 if test $ac_cv_func_socket = yes; then
7169   echo "$as_me:$LINENO: result: using libc's socket" >&5
7170 echo "${ECHO_T}using libc's socket" >&6
7171 else
7172
7173 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7174 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7175 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   ac_check_lib_save_LIBS=$LIBS
7179 LIBS="-lxnet  $LIBS"
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187
7188 /* Override any gcc2 internal prototype to avoid an error.  */
7189 #ifdef __cplusplus
7190 extern "C"
7191 #endif
7192 /* We use char because int might match the return type of a gcc2
7193    builtin and then its argument prototype would still apply.  */
7194 char socket ();
7195 int
7196 main ()
7197 {
7198 socket ();
7199   ;
7200   return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205   (eval $ac_link) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); } &&
7209          { ac_try='test -s conftest$ac_exeext'
7210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211   (eval $ac_try) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; }; then
7215   ac_cv_lib_xnet_socket=yes
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_cv_lib_xnet_socket=no
7221 fi
7222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7224 fi
7225 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7226 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7227 if test $ac_cv_lib_xnet_socket = yes; then
7228   cat >>confdefs.h <<_ACEOF
7229 #define HAVE_LIBXNET 1
7230 _ACEOF
7231
7232   LIBS="-lxnet $LIBS"
7233
7234 fi
7235
7236
7237 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7238 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7239 if test "${ac_cv_lib_socket_socket+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   ac_check_lib_save_LIBS=$LIBS
7243 LIBS="-lsocket  $LIBS"
7244 cat >conftest.$ac_ext <<_ACEOF
7245 #line $LINENO "configure"
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251
7252 /* Override any gcc2 internal prototype to avoid an error.  */
7253 #ifdef __cplusplus
7254 extern "C"
7255 #endif
7256 /* We use char because int might match the return type of a gcc2
7257    builtin and then its argument prototype would still apply.  */
7258 char socket ();
7259 int
7260 main ()
7261 {
7262 socket ();
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269   (eval $ac_link) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } &&
7273          { ac_try='test -s conftest$ac_exeext'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279   ac_cv_lib_socket_socket=yes
7280 else
7281   echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_cv_lib_socket_socket=no
7285 fi
7286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7290 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7291 if test $ac_cv_lib_socket_socket = yes; then
7292   cat >>confdefs.h <<_ACEOF
7293 #define HAVE_LIBSOCKET 1
7294 _ACEOF
7295
7296   LIBS="-lsocket $LIBS"
7297
7298 fi
7299
7300
7301 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7302 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7303 if test "${ac_cv_lib_inet_socket+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-linet  $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315
7316 /* Override any gcc2 internal prototype to avoid an error.  */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321    builtin and then its argument prototype would still apply.  */
7322 char socket ();
7323 int
7324 main ()
7325 {
7326 socket ();
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333   (eval $ac_link) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   ac_cv_lib_inet_socket=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ac_cv_lib_inet_socket=no
7349 fi
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LIBS=$ac_check_lib_save_LIBS
7352 fi
7353 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7354 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7355 if test $ac_cv_lib_inet_socket = yes; then
7356   cat >>confdefs.h <<_ACEOF
7357 #define HAVE_LIBINET 1
7358 _ACEOF
7359
7360   LIBS="-linet $LIBS"
7361
7362 fi
7363
7364 fi
7365
7366
7367
7368 # -----------------------------------------------------------
7369 # Check whether user wants TCP wrappers support (default off)
7370 # -----------------------------------------------------------
7371 TCPW_MSG="no"
7372
7373 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7374 if test "${with_tcp_wrappers+set}" = set; then
7375   withval="$with_tcp_wrappers"
7376
7377     if test "x$withval" != "xno" ; then
7378        saved_LIBS="$LIBS"
7379        LIBS="$saved_LIBS -lwrap"
7380        echo "$as_me:$LINENO: checking for libwrap" >&5
7381 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7382        cat >conftest.$ac_ext <<_ACEOF
7383 #line $LINENO "configure"
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389  #include <tcpd.h>
7390              int deny_severity = 0;
7391              int allow_severity = 0;
7392              struct request_info *req;
7393 int
7394 main ()
7395 {
7396  hosts_access(req);
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403   (eval $ac_link) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } &&
7407          { ac_try='test -s conftest$ac_exeext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413
7414             echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416             cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_LIBWRAP 1
7418 _ACEOF
7419
7420             TCPW_MSG="yes"
7421
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426
7427             LIBS="$saved_LIBS -lwrap -lnsl"
7428             cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435  #include <tcpd.h>
7436                  int deny_severity = 0;
7437                  int allow_severity = 0;
7438                  struct request_info *req;
7439 int
7440 main ()
7441 {
7442  hosts_access(req);
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449   (eval $ac_link) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -s conftest$ac_exeext'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459
7460                  echo "$as_me:$LINENO: result: yes" >&5
7461 echo "${ECHO_T}yes" >&6
7462                  cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_LIBWRAP 1
7464 _ACEOF
7465
7466                  TCPW_MSG="yes"
7467
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7473 echo "$as_me: error: *** libwrap missing" >&2;}
7474    { (exit 1); exit 1; }; }
7475
7476 fi
7477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7478
7479 fi
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7481     fi
7482
7483
7484 fi;
7485
7486 # ------------------------------------------
7487 # Where to place working dir
7488 # ------------------------------------------
7489 working_dir=`eval echo ${prefix}/var/bacula/working`
7490
7491 # Check whether --with-working-dir or --without-working-dir was given.
7492 if test "${with_working_dir+set}" = set; then
7493   withval="$with_working_dir"
7494
7495        if test "x$withval" != "xno" ; then
7496               working_dir=$withval
7497        fi
7498
7499
7500 fi;
7501
7502
7503
7504
7505 # ------------------------------------------
7506 # Where to place scriptdir (script files)
7507 # ------------------------------------------
7508 scriptdir=`eval echo ${sysconfdir}`
7509
7510 # Check whether --with-scriptdir or --without-scriptdir was given.
7511 if test "${with_scriptdir+set}" = set; then
7512   withval="$with_scriptdir"
7513
7514        if test "x$withval" != "xno" ; then
7515               scriptdir=$withval
7516        fi
7517
7518
7519 fi;
7520
7521
7522
7523
7524 # ------------------------------------------
7525 # Where to send dump email
7526 # ------------------------------------------
7527 dump_email=root@localhost
7528
7529 # Check whether --with-dump-email or --without-dump-email was given.
7530 if test "${with_dump_email+set}" = set; then
7531   withval="$with_dump_email"
7532
7533        if test "x$withval" != "xno" ; then
7534               dump_email=$withval
7535        fi
7536
7537
7538 fi;
7539
7540
7541
7542 # ------------------------------------------
7543 # Where to send job email
7544 # ------------------------------------------
7545 job_email=root@localhost
7546
7547 # Check whether --with-job-email or --without-job-email was given.
7548 if test "${with_job_email+set}" = set; then
7549   withval="$with_job_email"
7550
7551        if test "x$withval" != "xno" ; then
7552               job_email=$withval
7553        fi
7554
7555
7556 fi;
7557
7558
7559
7560 # ------------------------------------------
7561 # Where to find smtp host
7562 # ------------------------------------------
7563 smtp_host=localhost
7564
7565 # Check whether --with-smtp_host or --without-smtp_host was given.
7566 if test "${with_smtp_host+set}" = set; then
7567   withval="$with_smtp_host"
7568
7569        if test "x$withval" != "xno" ; then
7570               smtp_host=$withval
7571        fi
7572
7573
7574 fi;
7575
7576
7577
7578
7579 # ------------------------------------
7580 # Where to place pid files
7581 # ------------------------------------
7582 piddir=/var/run
7583
7584 # Check whether --with-pid-dir or --without-pid-dir was given.
7585 if test "${with_pid_dir+set}" = set; then
7586   withval="$with_pid_dir"
7587
7588         if test "x$withval" != "xno" ; then
7589             piddir=$withval
7590         fi
7591
7592
7593 fi;
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define _PATH_BACULA_PIDDIR "$piddir"
7597 _ACEOF
7598
7599
7600
7601
7602 # ------------------------------------
7603 # Where to place subsys "lock file"
7604 # ------------------------------------
7605 subsysdir=/var/run/subsys
7606
7607 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7608 if test "${with_subsys_dir+set}" = set; then
7609   withval="$with_subsys_dir"
7610
7611         if test "x$withval" != "xno" ; then
7612             subsysdir=$withval
7613         fi
7614
7615
7616 fi;
7617
7618
7619
7620
7621
7622 # ------------------------------------
7623 # Where to start assigning ports
7624 # ------------------------------------
7625 baseport=9101
7626
7627 # Check whether --with-baseport or --without-baseport was given.
7628 if test "${with_baseport+set}" = set; then
7629   withval="$with_baseport"
7630
7631         if test "x$withval" != "xno" ; then
7632              baseport=$withval
7633         fi
7634
7635
7636 fi;
7637
7638
7639 dir_port=`expr $baseport`
7640 fd_port=`expr $baseport + 1`
7641 sd_port=`expr $fd_port + 1`
7642
7643
7644
7645
7646
7647
7648 # ------------------------------------------
7649 # Generate passwords
7650 # ------------------------------------------
7651 dir_password=
7652
7653 # Check whether --with-dir-password or --without-dir-password was given.
7654 if test "${with_dir_password+set}" = set; then
7655   withval="$with_dir_password"
7656
7657        if test "x$withval" != "xno" ; then
7658            dir_password=$withval
7659        fi
7660
7661
7662 fi;
7663
7664 if test "x$dir_password" = "x" ; then
7665    if test "x$OPENSSL" = "xnone" ; then
7666 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7667       key=`autoconf/randpass 33`
7668    else
7669       key=`openssl rand -base64 33`
7670    fi
7671    dir_password=$key
7672 fi
7673
7674 fd_password=
7675
7676 # Check whether --with-fd-password or --without-fd-password was given.
7677 if test "${with_fd_password+set}" = set; then
7678   withval="$with_fd_password"
7679
7680        if test "x$withval" != "xno" ; then
7681            fd_password=$withval
7682        fi
7683
7684
7685 fi;
7686
7687 if test "x$fd_password" = "x" ; then
7688    if test "x$OPENSSL" = "xnone" ; then
7689 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7690       key=`autoconf/randpass 37`
7691    else
7692       key=`openssl rand -base64 33`
7693    fi
7694    fd_password=$key
7695 fi
7696
7697 sd_password=
7698
7699 # Check whether --with-sd-password or --without-sd-password was given.
7700 if test "${with_sd_password+set}" = set; then
7701   withval="$with_sd_password"
7702
7703        if test "x$withval" != "xno" ; then
7704            sd_password=$withval
7705        fi
7706
7707
7708 fi;
7709
7710 if test "x$sd_password" = "x" ; then
7711    if test "x$OPENSSL" = "xnone" ; then
7712 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7713       key=`autoconf/randpass 41`
7714    else
7715       key=`openssl rand -base64 33`
7716    fi
7717    sd_password=$key
7718 fi
7719
7720 mon_dir_password=
7721
7722 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7723 if test "${with_mon_dir_password+set}" = set; then
7724   withval="$with_mon_dir_password"
7725
7726        if test "x$withval" != "xno" ; then
7727            mon_dir_password=$withval
7728        fi
7729
7730
7731 fi;
7732
7733 if test "x$mon_dir_password" = "x" ; then
7734    if test "x$OPENSSL" = "xnone" ; then
7735 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7736       key=`autoconf/randpass 33`
7737    else
7738       key=`openssl rand -base64 33`
7739    fi
7740    mon_dir_password=$key
7741 fi
7742
7743 mon_fd_password=
7744
7745 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7746 if test "${with_mon_fd_password+set}" = set; then
7747   withval="$with_mon_fd_password"
7748
7749        if test "x$withval" != "xno" ; then
7750            mon_fd_password=$withval
7751        fi
7752
7753
7754 fi;
7755
7756 if test "x$mon_fd_password" = "x" ; then
7757    if test "x$OPENSSL" = "xnone" ; then
7758 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7759       key=`autoconf/randpass 37`
7760    else
7761       key=`openssl rand -base64 33`
7762    fi
7763    mon_fd_password=$key
7764 fi
7765
7766 mon_sd_password=
7767
7768 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7769 if test "${with_mon_sd_password+set}" = set; then
7770   withval="$with_mon_sd_password"
7771
7772        if test "x$withval" != "xno" ; then
7773            mon_sd_password=$withval
7774        fi
7775
7776
7777 fi;
7778
7779 if test "x$mon_sd_password" = "x" ; then
7780    if test "x$OPENSSL" = "xnone" ; then
7781 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7782       key=`autoconf/randpass 41`
7783    else
7784       key=`openssl rand -base64 33`
7785    fi
7786    mon_sd_password=$key
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796 # -------------------------------------------------------------------------
7797 #  Set variables for bimagemgr installation
7798 # -------------------------------------------------------------------------
7799 bimagemgr_cgidir=/var/www/cgi-bin
7800
7801 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7802 if test "${with_bimagemgr_cgidir+set}" = set; then
7803   withval="$with_bimagemgr_cgidir"
7804
7805        if test "x$withval" != "xno" ; then
7806            bimagemgr_cgidir=$withval
7807        fi
7808
7809
7810 fi;
7811
7812 bimagemgr_docdir=/var/www/html
7813
7814 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7815 if test "${with_bimagemgr_docdir+set}" = set; then
7816   withval="$with_bimagemgr_docdir"
7817
7818        if test "x$withval" != "xno" ; then
7819            bimagemgr_docdir=$withval
7820        fi
7821
7822
7823 fi;
7824
7825 bimagemgr_binowner=root
7826
7827 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7828 if test "${with_bimagemgr_binowner+set}" = set; then
7829   withval="$with_bimagemgr_binowner"
7830
7831        if test "x$withval" != "xno" ; then
7832            bimagemgr_binowner=$withval
7833        fi
7834
7835
7836 fi;
7837
7838 bimagemgr_bingroup=root
7839
7840 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7841 if test "${with_bimagemgr_bingroup+set}" = set; then
7842   withval="$with_bimagemgr_bingroup"
7843
7844        if test "x$withval" != "xno" ; then
7845            bimagemgr_bingroup=$withval
7846        fi
7847
7848
7849 fi;
7850
7851 bimagemgr_dataowner=apache
7852
7853 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7854 if test "${with_bimagemgr_dataowner+set}" = set; then
7855   withval="$with_bimagemgr_dataowner"
7856
7857        if test "x$withval" != "xno" ; then
7858            bimagemgr_dataowner=$withval
7859        fi
7860
7861
7862 fi;
7863
7864 bimagemgr_datagroup=apache
7865
7866 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7867 if test "${with_bimagemgr_datagroup+set}" = set; then
7868   withval="$with_bimagemgr_datagroup"
7869
7870        if test "x$withval" != "xno" ; then
7871            bimagemgr_datagroup=$withval
7872        fi
7873
7874
7875 fi;
7876
7877
7878
7879
7880
7881
7882
7883
7884 #
7885 # Handle users and groups for each daemon
7886 #
7887 dir_user=
7888
7889 # Check whether --with-dir_user or --without-dir_user was given.
7890 if test "${with_dir_user+set}" = set; then
7891   withval="$with_dir_user"
7892
7893         if test "x$withval" != "x" ; then
7894              dir_user=$withval
7895         fi
7896
7897
7898 fi;
7899
7900 dir_group=
7901
7902 # Check whether --with-dir_group or --without-dir_group was given.
7903 if test "${with_dir_group+set}" = set; then
7904   withval="$with_dir_group"
7905
7906         if test "x$withval" != "x" ; then
7907              dir_group=$withval
7908         fi
7909
7910
7911 fi;
7912
7913 sd_user=
7914
7915 # Check whether --with-sd_user or --without-sd_user was given.
7916 if test "${with_sd_user+set}" = set; then
7917   withval="$with_sd_user"
7918
7919         if test "x$withval" != "x" ; then
7920              sd_user=$withval
7921         fi
7922
7923
7924 fi;
7925
7926 sd_group=
7927
7928 # Check whether --with-sd_group or --without-sd_group was given.
7929 if test "${with_sd_group+set}" = set; then
7930   withval="$with_sd_group"
7931
7932         if test "x$withval" != "x" ; then
7933              sd_group=$withval
7934         fi
7935
7936
7937 fi;
7938
7939 fd_user=
7940
7941 # Check whether --with-fd_user or --without-fd_user was given.
7942 if test "${with_fd_user+set}" = set; then
7943   withval="$with_fd_user"
7944
7945         if test "x$withval" != "x" ; then
7946              fd_user=$withval
7947         fi
7948
7949
7950 fi;
7951
7952 fd_group=
7953
7954 # Check whether --with-fd_group or --without-fd_group was given.
7955 if test "${with_fd_group+set}" = set; then
7956   withval="$with_fd_group"
7957
7958         if test "x$withval" != "x" ; then
7959              fd_group=$withval
7960         fi
7961
7962
7963 fi;
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 #
7976 # allow setting default executable permissions
7977 #
7978 SBINPERM=0754
7979
7980 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7981 if test "${with_sbin_perm+set}" = set; then
7982   withval="$with_sbin_perm"
7983
7984         if test "x$withval" != "x" ; then
7985             SBINPERM=$withval
7986         fi
7987
7988
7989 fi;
7990
7991
7992
7993 # ------------------------------------------------
7994 # Bacula check for various SQL database engines
7995 # ------------------------------------------------
7996
7997 db_found=no
7998 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7999 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8000
8001 # Check whether --with-postgresql or --without-postgresql was given.
8002 if test "${with_postgresql+set}" = set; then
8003   withval="$with_postgresql"
8004
8005   if test "$withval" != "no"; then
8006       if test "$db_found" = "yes"; then
8007           echo "$as_me:$LINENO: result: error" >&5
8008 echo "${ECHO_T}error" >&6
8009           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8010 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8011    { (exit 1); exit 1; }; };
8012       fi
8013       if test "$withval" = "yes"; then
8014           if test -f /usr/local/include/libpq-fe.h; then
8015               POSTGRESQL_INCDIR=/usr/local/include
8016               POSTGRESQL_LIBDIR=/usr/local/lib
8017               POSTGRESQL_BINDIR=/usr/local/bin
8018           elif test -f /usr/include/libpq-fe.h; then
8019               POSTGRESQL_INCDIR=/usr/include
8020               POSTGRESQL_LIBDIR=/usr/lib
8021               POSTGRESQL_BINDIR=/usr/bin
8022           elif test -f /usr/include/pgsql/libpq-fe.h; then
8023               POSTGRESQL_INCDIR=/usr/include/pgsql
8024               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8025               POSTGRESQL_BINDIR=/usr/bin
8026           elif test -f /usr/include/postgresql/libpq-fe.h; then
8027               POSTGRESQL_INCDIR=/usr/include/postgresql
8028               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8029               POSTGRESQL_BINDIR=/usr/bin
8030           else
8031               echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8034 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8035    { (exit 1); exit 1; }; }
8036           fi
8037       elif test -f $withval/include/libpq-fe.h; then
8038           POSTGRESQL_INCDIR=$withval/include
8039           POSTGRESQL_LIBDIR=$withval/lib
8040           POSTGRESQL_BINDIR=$withval/bin
8041       elif test -f $withval/include/postgresql/libpq-fe.h; then
8042           POSTGRESQL_INCDIR=$withval/include/postgresql
8043           POSTGRESQL_LIBDIR=$withval/lib
8044           POSTGRESQL_BINDIR=$withval/bin
8045       else
8046           echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8049 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8050    { (exit 1); exit 1; }; }
8051       fi
8052       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8053       echo "$as_me:$LINENO: checking for crypt" >&5
8054 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8055 if test "${ac_cv_func_crypt+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065 /* System header to define __stub macros and hopefully few prototypes,
8066     which can conflict with char crypt (); below.
8067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8068     <limits.h> exists even on freestanding compilers.  */
8069 #ifdef __STDC__
8070 # include <limits.h>
8071 #else
8072 # include <assert.h>
8073 #endif
8074 /* Override any gcc2 internal prototype to avoid an error.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 {
8078 #endif
8079 /* We use char because int might match the return type of a gcc2
8080    builtin and then its argument prototype would still apply.  */
8081 char crypt ();
8082 /* The GNU C library defines this for functions which it implements
8083     to always fail with ENOSYS.  Some functions are actually named
8084     something starting with __ and the normal name is an alias.  */
8085 #if defined (__stub_crypt) || defined (__stub___crypt)
8086 choke me
8087 #else
8088 char (*f) () = crypt;
8089 #endif
8090 #ifdef __cplusplus
8091 }
8092 #endif
8093
8094 int
8095 main ()
8096 {
8097 return f != crypt;
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -s conftest$ac_exeext'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   ac_cv_func_crypt=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ac_cv_func_crypt=no
8120 fi
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8124 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8125 if test $ac_cv_func_crypt = yes; then
8126   :
8127 else
8128   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8129 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8130 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-lcrypt  $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142
8143 /* Override any gcc2 internal prototype to avoid an error.  */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 /* We use char because int might match the return type of a gcc2
8148    builtin and then its argument prototype would still apply.  */
8149 char crypt ();
8150 int
8151 main ()
8152 {
8153 crypt ();
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160   (eval $ac_link) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   ac_cv_lib_crypt_crypt=yes
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_cv_lib_crypt_crypt=no
8176 fi
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8181 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8182 if test $ac_cv_lib_crypt_crypt = yes; then
8183   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8184 fi
8185
8186 fi
8187
8188       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8189       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8190       SQL_BINDIR=$POSTGRESQL_BINDIR
8191       cat >>confdefs.h <<\_ACEOF
8192 #define HAVE_POSTGRESQL 1
8193 _ACEOF
8194
8195       echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197       db_found=yes
8198       support_postgresql=yes
8199       db_name=PostgreSQL
8200       DB_NAME=postgresql
8201   else
8202       echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204   fi
8205
8206 else
8207
8208   echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8210
8211 fi;
8212
8213
8214
8215
8216
8217
8218
8219 db_found=no
8220 echo "$as_me:$LINENO: checking for MySQL support" >&5
8221 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8222
8223 # Check whether --with-mysql or --without-mysql was given.
8224 if test "${with_mysql+set}" = set; then
8225   withval="$with_mysql"
8226
8227   if test "$withval" != "no"; then
8228         if test "$withval" = "yes"; then
8229                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8230                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8231                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8232                         MYSQL_BINDIR=/usr/local/mysql/bin
8233                 elif test -f /usr/include/mysql/mysql.h; then
8234                         MYSQL_INCDIR=/usr/include/mysql
8235                         MYSQL_LIBDIR=/usr/lib/mysql
8236                         MYSQL_BINDIR=/usr/bin
8237                 elif test -f /usr/include/mysql.h; then
8238                         MYSQL_INCDIR=/usr/include
8239                         MYSQL_LIBDIR=/usr/lib
8240                         MYSQL_BINDIR=/usr/bin
8241                 elif test -f /usr/local/include/mysql/mysql.h; then
8242                         MYSQL_INCDIR=/usr/local/include/mysql
8243                         MYSQL_LIBDIR=/usr/local/lib/mysql
8244                         MYSQL_BINDIR=/usr/local/bin
8245                 elif test -f /usr/local/include/mysql.h; then
8246                         MYSQL_INCDIR=/usr/local/include
8247                         MYSQL_LIBDIR=/usr/local/lib
8248                         MYSQL_BINDIR=/usr/local/bin
8249                 else
8250                    echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8253 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8254    { (exit 1); exit 1; }; }
8255                 fi
8256         else
8257                 if test -f $withval/include/mysql/mysql.h; then
8258                         MYSQL_INCDIR=$withval/include/mysql
8259                         MYSQL_LIBDIR=$withval/lib/mysql
8260                         MYSQL_BINDIR=$withval/bin
8261                 elif test -f $withval/include/mysql.h; then
8262                         MYSQL_INCDIR=$withval/include
8263                         MYSQL_LIBDIR=$withval/lib
8264                         MYSQL_BINDIR=$withval/bin
8265                 else
8266                    echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6
8268                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8269 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8270    { (exit 1); exit 1; }; }
8271                 fi
8272         fi
8273     SQL_INCLUDE=-I$MYSQL_INCDIR
8274     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8275        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8276        cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_THREAD_SAFE_MYSQL 1
8278 _ACEOF
8279
8280     else
8281        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8282     fi
8283     SQL_BINDIR=$MYSQL_BINDIR
8284
8285     cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_MYSQL 1
8287 _ACEOF
8288
8289     echo "$as_me:$LINENO: result: yes" >&5
8290 echo "${ECHO_T}yes" >&6
8291     db_found=yes
8292     support_mysql=yes
8293     db_name=MySQL
8294     DB_NAME=mysql
8295
8296   else
8297         echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6
8299   fi
8300
8301
8302 fi;
8303
8304
8305 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8306 if test "${with_embedded_mysql+set}" = set; then
8307   withval="$with_embedded_mysql"
8308
8309   if test "$withval" != "no"; then
8310         if test "$withval" = "yes"; then
8311                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8312                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8313                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8314                         MYSQL_BINDIR=/usr/local/mysql/bin
8315                 elif test -f /usr/include/mysql/mysql.h; then
8316                         MYSQL_INCDIR=/usr/include/mysql
8317                         MYSQL_LIBDIR=/usr/lib/mysql
8318                         MYSQL_BINDIR=/usr/bin
8319                 elif test -f /usr/include/mysql.h; then
8320                         MYSQL_INCDIR=/usr/include
8321                         MYSQL_LIBDIR=/usr/lib
8322                         MYSQL_BINDIR=/usr/bin
8323                 elif test -f /usr/local/include/mysql/mysql.h; then
8324                         MYSQL_INCDIR=/usr/local/include/mysql
8325                         MYSQL_LIBDIR=/usr/local/lib/mysql
8326                         MYSQL_BINDIR=/usr/local/bin
8327                 elif test -f /usr/local/include/mysql.h; then
8328                         MYSQL_INCDIR=/usr/local/include
8329                         MYSQL_LIBDIR=/usr/local/lib
8330                         MYSQL_BINDIR=/usr/local/bin
8331                 else
8332                    echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8335 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8336    { (exit 1); exit 1; }; }
8337                 fi
8338         else
8339                 if test -f $withval/include/mysql/mysql.h; then
8340                         MYSQL_INCDIR=$withval/include/mysql
8341                         MYSQL_LIBDIR=$withval/lib/mysql
8342                         MYSQL_BINDIR=$withval/bin
8343                 elif test -f $withval/include/mysql.h; then
8344                         MYSQL_INCDIR=$withval/include
8345                         MYSQL_LIBDIR=$withval/lib
8346                         MYSQL_BINDIR=$withval/bin
8347                 else
8348                    echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8350                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8351 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8352    { (exit 1); exit 1; }; }
8353                 fi
8354         fi
8355     SQL_INCLUDE=-I$MYSQL_INCDIR
8356     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8357     SQL_BINDIR=$MYSQL_BINDIR
8358
8359     cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_MYSQL 1
8361 _ACEOF
8362
8363     cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_EMBEDDED_MYSQL 1
8365 _ACEOF
8366
8367     echo "$as_me:$LINENO: result: yes" >&5
8368 echo "${ECHO_T}yes" >&6
8369     db_found=yes
8370     support_mysql=yes
8371     db_name=MySQL
8372     DB_NAME=mysql
8373
8374   else
8375         echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8377   fi
8378
8379
8380 fi;
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 db_found=no
8391 echo "$as_me:$LINENO: checking for SQLite support" >&5
8392 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8393
8394 # Check whether --with-sqlite or --without-sqlite was given.
8395 if test "${with_sqlite+set}" = set; then
8396   withval="$with_sqlite"
8397
8398   if test "$withval" != "no"; then
8399      if test "$withval" = "yes"; then
8400         if test -f /usr/local/include/sqlite.h; then
8401            SQLITE_INCDIR=/usr/local/include
8402            SQLITE_LIBDIR=/usr/local/lib
8403            SQLITE_BINDIR=/usr/local/bin
8404         elif test -f /usr/include/sqlite.h; then
8405            SQLITE_INCDIR=/usr/include
8406            SQLITE_LIBDIR=/usr/lib
8407            SQLITE_BINDIR=/usr/bin
8408         elif test -f $prefix/include/sqlite.h; then
8409            SQLITE_INCDIR=$prefix/include
8410            SQLITE_LIBDIR=$prefix/lib
8411            SQLITE_BINDIR=$prefix/bin
8412         else
8413            echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6
8415            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8416 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8417    { (exit 1); exit 1; }; }
8418         fi
8419      else
8420         if test -f $withval/sqlite.h; then
8421            SQLITE_INCDIR=$withval
8422            SQLITE_LIBDIR=$withval
8423            SQLITE_BINDIR=$withval
8424         elif test -f $withval/include/sqlite.h; then
8425            SQLITE_INCDIR=$withval/include
8426            SQLITE_LIBDIR=$withval/lib
8427            SQLITE_BINDIR=$withval/bin
8428         else
8429            echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6
8431            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8432 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8433    { (exit 1); exit 1; }; }
8434         fi
8435      fi
8436      SQL_INCLUDE=-I$SQLITE_INCDIR
8437      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8438      SQL_BINDIR=$SQLITE_BINDIR
8439
8440      cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_SQLITE 1
8442 _ACEOF
8443
8444      echo "$as_me:$LINENO: result: yes" >&5
8445 echo "${ECHO_T}yes" >&6
8446      db_found=yes
8447      support_sqlite=yes
8448      db_name=SQLite
8449      DB_NAME=sqlite
8450
8451   else
8452      echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8454   fi
8455
8456 else
8457
8458   echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6
8460
8461 fi;
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 cat >>confdefs.h <<\_ACEOF
8472 #define PROTOTYPES 1
8473 _ACEOF
8474
8475
8476 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8477     if test -z "$CCOPTS"; then
8478         CCOPTS='-g -O2 -Wall'
8479     fi
8480     CFLAGS="$CCOPTS"
8481 fi
8482
8483
8484
8485
8486 largefile_support="no"
8487
8488    # Check whether --enable-largefile or --disable-largefile was given.
8489 if test "${enable_largefile+set}" = set; then
8490   enableval="$enable_largefile"
8491
8492 fi;
8493    if test "$enable_largefile" != no; then
8494      if test -n "$ac_tool_prefix"; then
8495   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8496 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8497 echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499 if test "${ac_cv_prog_GETCONF+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   if test -n "$GETCONF"; then
8503   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510   for ac_exec_ext in '' $ac_executable_extensions; do
8511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517 done
8518
8519 fi
8520 fi
8521 GETCONF=$ac_cv_prog_GETCONF
8522 if test -n "$GETCONF"; then
8523   echo "$as_me:$LINENO: result: $GETCONF" >&5
8524 echo "${ECHO_T}$GETCONF" >&6
8525 else
8526   echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8528 fi
8529
8530 fi
8531 if test -z "$ac_cv_prog_GETCONF"; then
8532   ac_ct_GETCONF=$GETCONF
8533   # Extract the first word of "getconf", so it can be a program name with args.
8534 set dummy getconf; ac_word=$2
8535 echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8537 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   if test -n "$ac_ct_GETCONF"; then
8541   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8542 else
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546   IFS=$as_save_IFS
8547   test -z "$as_dir" && as_dir=.
8548   for ac_exec_ext in '' $ac_executable_extensions; do
8549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550     ac_cv_prog_ac_ct_GETCONF="getconf"
8551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8552     break 2
8553   fi
8554 done
8555 done
8556
8557 fi
8558 fi
8559 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8560 if test -n "$ac_ct_GETCONF"; then
8561   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8562 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8563 else
8564   echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8566 fi
8567
8568   GETCONF=$ac_ct_GETCONF
8569 else
8570   GETCONF="$ac_cv_prog_GETCONF"
8571 fi
8572
8573      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8574 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8575 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8579         ac_cv_sys_largefile_CFLAGS=no
8580         case "$host_os" in
8581            # IRIX 6.2 and later require cc -n32.
8582            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8583              if test "$GCC" != yes; then
8584                ac_cv_sys_largefile_CFLAGS=-n32
8585              fi
8586              ac_save_CC="$CC"
8587              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8588              cat >conftest.$ac_ext <<_ACEOF
8589 #line $LINENO "configure"
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595
8596 int
8597 main ()
8598 {
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606   (eval $ac_link) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   :
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_sys_largefile_CFLAGS=no
8622 fi
8623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624              CC="$ac_save_CC"
8625            esac
8626       }
8627 fi
8628 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8629 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8630      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8631 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8632 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8636         ac_cv_sys_largefile_LDFLAGS=no
8637
8638       }
8639 fi
8640 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8641 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8642      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8643 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8644 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8645   echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8648         ac_cv_sys_largefile_LIBS=no
8649
8650       }
8651 fi
8652 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8653 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8654
8655      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8656        case "$ac_flag" in
8657        no) ;;
8658        -D_FILE_OFFSET_BITS=*) ;;
8659        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8660        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8661        -D?* | -I?*)
8662          case "$ac_flag" in
8663    no) ;;
8664    ?*)
8665      case "$CPPFLAGS" in
8666      '') CPPFLAGS="$ac_flag" ;;
8667      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8668      esac ;;
8669    esac ;;
8670        *)
8671          case "$ac_flag" in
8672    no) ;;
8673    ?*)
8674      case "$CFLAGS" in
8675      '') CFLAGS="$ac_flag" ;;
8676      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8677      esac ;;
8678    esac ;;
8679        esac
8680      done
8681      case "$ac_cv_sys_largefile_LDFLAGS" in
8682    no) ;;
8683    ?*)
8684      case "$LDFLAGS" in
8685      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8686      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8687      esac ;;
8688    esac
8689      case "$ac_cv_sys_largefile_LIBS" in
8690    no) ;;
8691    ?*)
8692      case "$LIBS" in
8693      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8694      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8695      esac ;;
8696    esac
8697      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8698 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8699 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   ac_cv_sys_file_offset_bits=no
8703       ac_cv_sys_file_offset_bits=64
8704       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8705         case "$ac_flag" in
8706         -D_FILE_OFFSET_BITS)
8707           ac_cv_sys_file_offset_bits=1 ;;
8708         -D_FILE_OFFSET_BITS=*)
8709           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8710         esac
8711       done
8712
8713 fi
8714 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8715 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8716    if test "$ac_cv_sys_file_offset_bits" != no; then
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8720 _ACEOF
8721
8722    fi
8723      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8724 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8725 if test "${ac_cv_sys_largefile_source+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   ac_cv_sys_largefile_source=no
8729       ac_cv_sys_largefile_source=1
8730       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8731         case "$ac_flag" in
8732         -D_LARGEFILE_SOURCE)
8733           ac_cv_sys_largefile_source=1 ;;
8734         -D_LARGEFILE_SOURCE=*)
8735           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8736         esac
8737       done
8738
8739 fi
8740 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8741 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8742    if test "$ac_cv_sys_largefile_source" != no; then
8743
8744 cat >>confdefs.h <<_ACEOF
8745 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8746 _ACEOF
8747
8748    fi
8749      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8750 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8751 if test "${ac_cv_sys_large_files+set}" = set; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   ac_cv_sys_large_files=no
8755       ac_cv_sys_large_files=1
8756       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8757         case "$ac_flag" in
8758         -D_LARGE_FILES)
8759           ac_cv_sys_large_files=1 ;;
8760         -D_LARGE_FILES=*)
8761           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8762         esac
8763       done
8764
8765 fi
8766 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8768    if test "$ac_cv_sys_large_files" != no; then
8769
8770 cat >>confdefs.h <<_ACEOF
8771 #define _LARGE_FILES $ac_cv_sys_large_files
8772 _ACEOF
8773
8774    fi
8775    fi
8776
8777
8778
8779 echo "$as_me:$LINENO: checking for X" >&5
8780 echo $ECHO_N "checking for X... $ECHO_C" >&6
8781
8782
8783 # Check whether --with-x or --without-x was given.
8784 if test "${with_x+set}" = set; then
8785   withval="$with_x"
8786
8787 fi;
8788 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8789 if test "x$with_x" = xno; then
8790   # The user explicitly disabled X.
8791   have_x=disabled
8792 else
8793   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8794     # Both variables are already set.
8795     have_x=yes
8796   else
8797     if test "${ac_cv_have_x+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   # One or both of the vars are not set, and there is no cached value.
8801 ac_x_includes=no ac_x_libraries=no
8802 rm -fr conftest.dir
8803 if mkdir conftest.dir; then
8804   cd conftest.dir
8805   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8806   cat >Imakefile <<'_ACEOF'
8807 acfindx:
8808         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8809 _ACEOF
8810   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8811     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8813     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8814     for ac_extension in a so sl; do
8815       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8816          test -f $ac_im_libdir/libX11.$ac_extension; then
8817         ac_im_usrlibdir=$ac_im_libdir; break
8818       fi
8819     done
8820     # Screen out bogus values from the imake configuration.  They are
8821     # bogus both because they are the default anyway, and because
8822     # using them would break gcc on systems where it needs fixed includes.
8823     case $ac_im_incroot in
8824         /usr/include) ;;
8825         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8826     esac
8827     case $ac_im_usrlibdir in
8828         /usr/lib | /lib) ;;
8829         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8830     esac
8831   fi
8832   cd ..
8833   rm -fr conftest.dir
8834 fi
8835
8836 # Standard set of common directories for X headers.
8837 # Check X11 before X11Rn because it is often a symlink to the current release.
8838 ac_x_header_dirs='
8839 /usr/X11/include
8840 /usr/X11R6/include
8841 /usr/X11R5/include
8842 /usr/X11R4/include
8843
8844 /usr/include/X11
8845 /usr/include/X11R6
8846 /usr/include/X11R5
8847 /usr/include/X11R4
8848
8849 /usr/local/X11/include
8850 /usr/local/X11R6/include
8851 /usr/local/X11R5/include
8852 /usr/local/X11R4/include
8853
8854 /usr/local/include/X11
8855 /usr/local/include/X11R6
8856 /usr/local/include/X11R5
8857 /usr/local/include/X11R4
8858
8859 /usr/X386/include
8860 /usr/x386/include
8861 /usr/XFree86/include/X11
8862
8863 /usr/include
8864 /usr/local/include
8865 /usr/unsupported/include
8866 /usr/athena/include
8867 /usr/local/x11r5/include
8868 /usr/lpp/Xamples/include
8869
8870 /usr/openwin/include
8871 /usr/openwin/share/include'
8872
8873 if test "$ac_x_includes" = no; then
8874   # Guess where to find include files, by looking for Intrinsic.h.
8875   # First, try using that file with no special directory specified.
8876   cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883 #include <X11/Intrinsic.h>
8884 _ACEOF
8885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8887   ac_status=$?
8888   grep -v '^ *+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } >/dev/null; then
8893   if test -s conftest.err; then
8894     ac_cpp_err=$ac_c_preproc_warn_flag
8895   else
8896     ac_cpp_err=
8897   fi
8898 else
8899   ac_cpp_err=yes
8900 fi
8901 if test -z "$ac_cpp_err"; then
8902   # We can compile using X headers with no special include directory.
8903 ac_x_includes=
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908   for ac_dir in $ac_x_header_dirs; do
8909   if test -r "$ac_dir/X11/Intrinsic.h"; then
8910     ac_x_includes=$ac_dir
8911     break
8912   fi
8913 done
8914 fi
8915 rm -f conftest.err conftest.$ac_ext
8916 fi # $ac_x_includes = no
8917
8918 if test "$ac_x_libraries" = no; then
8919   # Check for the libraries.
8920   # See if we find them without any special options.
8921   # Don't add to $LIBS permanently.
8922   ac_save_LIBS=$LIBS
8923   LIBS="-lXt $LIBS"
8924   cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 /* confdefs.h.  */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h.  */
8931 #include <X11/Intrinsic.h>
8932 int
8933 main ()
8934 {
8935 XtMalloc (0)
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -s conftest$ac_exeext'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; }; then
8952   LIBS=$ac_save_LIBS
8953 # We can link X programs with no special library path.
8954 ac_x_libraries=
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 LIBS=$ac_save_LIBS
8960 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8961 do
8962   # Don't even attempt the hair of trying to link an X program!
8963   for ac_extension in a so sl; do
8964     if test -r $ac_dir/libXt.$ac_extension; then
8965       ac_x_libraries=$ac_dir
8966       break 2
8967     fi
8968   done
8969 done
8970 fi
8971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8972 fi # $ac_x_libraries = no
8973
8974 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8975   # Didn't find X anywhere.  Cache the known absence of X.
8976   ac_cv_have_x="have_x=no"
8977 else
8978   # Record where we found X for the cache.
8979   ac_cv_have_x="have_x=yes \
8980                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8981 fi
8982 fi
8983
8984   fi
8985   eval "$ac_cv_have_x"
8986 fi # $with_x != no
8987
8988 if test "$have_x" != yes; then
8989   echo "$as_me:$LINENO: result: $have_x" >&5
8990 echo "${ECHO_T}$have_x" >&6
8991   no_x=yes
8992 else
8993   # If each of the values was on the command line, it overrides each guess.
8994   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8995   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8996   # Update the cache value to reflect the command line values.
8997   ac_cv_have_x="have_x=yes \
8998                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8999   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9000 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9001 fi
9002
9003 if test "$no_x" = yes; then
9004   # Not all programs may use this symbol, but it does not hurt to define it.
9005
9006 cat >>confdefs.h <<\_ACEOF
9007 #define X_DISPLAY_MISSING 1
9008 _ACEOF
9009
9010   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9011 else
9012   if test -n "$x_includes"; then
9013     X_CFLAGS="$X_CFLAGS -I$x_includes"
9014   fi
9015
9016   # It would also be nice to do this for all -L options, not just this one.
9017   if test -n "$x_libraries"; then
9018     X_LIBS="$X_LIBS -L$x_libraries"
9019     # For Solaris; some versions of Sun CC require a space after -R and
9020     # others require no space.  Words are not sufficient . . . .
9021     case `(uname -sr) 2>/dev/null` in
9022     "SunOS 5"*)
9023       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9024 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9025       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9026       cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033
9034 int
9035 main ()
9036 {
9037
9038   ;
9039   return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044   (eval $ac_link) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   ac_R_nospace=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 ac_R_nospace=no
9060 fi
9061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9062       if test $ac_R_nospace = yes; then
9063         echo "$as_me:$LINENO: result: no" >&5
9064 echo "${ECHO_T}no" >&6
9065         X_LIBS="$X_LIBS -R$x_libraries"
9066       else
9067         LIBS="$ac_xsave_LIBS -R $x_libraries"
9068         cat >conftest.$ac_ext <<_ACEOF
9069 #line $LINENO "configure"
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075
9076 int
9077 main ()
9078 {
9079
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086   (eval $ac_link) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); } &&
9090          { ac_try='test -s conftest$ac_exeext'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_R_space=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_R_space=no
9102 fi
9103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9104         if test $ac_R_space = yes; then
9105           echo "$as_me:$LINENO: result: yes" >&5
9106 echo "${ECHO_T}yes" >&6
9107           X_LIBS="$X_LIBS -R $x_libraries"
9108         else
9109           echo "$as_me:$LINENO: result: neither works" >&5
9110 echo "${ECHO_T}neither works" >&6
9111         fi
9112       fi
9113       LIBS=$ac_xsave_LIBS
9114     esac
9115   fi
9116
9117   # Check for system-dependent libraries X programs must link with.
9118   # Do this before checking for the system-independent R6 libraries
9119   # (-lICE), since we may need -lsocket or whatever for X linking.
9120
9121   if test "$ISC" = yes; then
9122     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9123   else
9124     # Martyn Johnson says this is needed for Ultrix, if the X
9125     # libraries were built with DECnet support.  And Karl Berry says
9126     # the Alpha needs dnet_stub (dnet does not exist).
9127     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9128     cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135
9136 /* Override any gcc2 internal prototype to avoid an error.  */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 /* We use char because int might match the return type of a gcc2
9141    builtin and then its argument prototype would still apply.  */
9142 char XOpenDisplay ();
9143 int
9144 main ()
9145 {
9146 XOpenDisplay ();
9147   ;
9148   return 0;
9149 }
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153   (eval $ac_link) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   :
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9169 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9170 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-ldnet  $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182
9183 /* Override any gcc2 internal prototype to avoid an error.  */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 /* We use char because int might match the return type of a gcc2
9188    builtin and then its argument prototype would still apply.  */
9189 char dnet_ntoa ();
9190 int
9191 main ()
9192 {
9193 dnet_ntoa ();
9194   ;
9195   return 0;
9196 }
9197 _ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200   (eval $ac_link) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -s conftest$ac_exeext'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; }; then
9210   ac_cv_lib_dnet_dnet_ntoa=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 ac_cv_lib_dnet_dnet_ntoa=no
9216 fi
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9219 fi
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9221 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9222 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9223   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9224 fi
9225
9226     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9227       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9228 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9229 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232   ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-ldnet_stub  $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241
9242 /* Override any gcc2 internal prototype to avoid an error.  */
9243 #ifdef __cplusplus
9244 extern "C"
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char dnet_ntoa ();
9249 int
9250 main ()
9251 {
9252 dnet_ntoa ();
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259   (eval $ac_link) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -s conftest$ac_exeext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_cv_lib_dnet_stub_dnet_ntoa=no
9275 fi
9276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9280 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9281 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9282   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9283 fi
9284
9285     fi
9286 fi
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288     LIBS="$ac_xsave_LIBS"
9289
9290     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9291     # to get the SysV transport functions.
9292     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9293     # needs -lnsl.
9294     # The nsl library prevents programs from opening the X display
9295     # on Irix 5.2, according to T.E. Dickey.
9296     # The functions gethostbyname, getservbyname, and inet_addr are
9297     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9298     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9299 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9300 if test "${ac_cv_func_gethostbyname+set}" = set; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310 /* System header to define __stub macros and hopefully few prototypes,
9311     which can conflict with char gethostbyname (); below.
9312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313     <limits.h> exists even on freestanding compilers.  */
9314 #ifdef __STDC__
9315 # include <limits.h>
9316 #else
9317 # include <assert.h>
9318 #endif
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 {
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325    builtin and then its argument prototype would still apply.  */
9326 char gethostbyname ();
9327 /* The GNU C library defines this for functions which it implements
9328     to always fail with ENOSYS.  Some functions are actually named
9329     something starting with __ and the normal name is an alias.  */
9330 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9331 choke me
9332 #else
9333 char (*f) () = gethostbyname;
9334 #endif
9335 #ifdef __cplusplus
9336 }
9337 #endif
9338
9339 int
9340 main ()
9341 {
9342 return f != gethostbyname;
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349   (eval $ac_link) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -s conftest$ac_exeext'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359   ac_cv_func_gethostbyname=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_cv_func_gethostbyname=no
9365 fi
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 fi
9368 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9369 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9370
9371     if test $ac_cv_func_gethostbyname = no; then
9372       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9373 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9374 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lnsl  $LIBS"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386
9387 /* Override any gcc2 internal prototype to avoid an error.  */
9388 #ifdef __cplusplus
9389 extern "C"
9390 #endif
9391 /* We use char because int might match the return type of a gcc2
9392    builtin and then its argument prototype would still apply.  */
9393 char gethostbyname ();
9394 int
9395 main ()
9396 {
9397 gethostbyname ();
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404   (eval $ac_link) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -s conftest$ac_exeext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414   ac_cv_lib_nsl_gethostbyname=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ac_cv_lib_nsl_gethostbyname=no
9420 fi
9421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9423 fi
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9425 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9426 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9427   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9428 fi
9429
9430       if test $ac_cv_lib_nsl_gethostbyname = no; then
9431         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9432 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9433 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436   ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-lbsd  $LIBS"
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9440 /* confdefs.h.  */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h.  */
9445
9446 /* Override any gcc2 internal prototype to avoid an error.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 /* We use char because int might match the return type of a gcc2
9451    builtin and then its argument prototype would still apply.  */
9452 char gethostbyname ();
9453 int
9454 main ()
9455 {
9456 gethostbyname ();
9457   ;
9458   return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext 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); } &&
9467          { ac_try='test -s conftest$ac_exeext'
9468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469   (eval $ac_try) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; }; then
9473   ac_cv_lib_bsd_gethostbyname=yes
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ac_cv_lib_bsd_gethostbyname=no
9479 fi
9480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9481 LIBS=$ac_check_lib_save_LIBS
9482 fi
9483 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9484 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9485 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9486   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9487 fi
9488
9489       fi
9490     fi
9491
9492     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9493     # socket/setsockopt and other routines are undefined under SCO ODT
9494     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9495     # on later versions), says Simon Leinen: it contains gethostby*
9496     # variants that don't use the name server (or something).  -lsocket
9497     # must be given before -lnsl if both are needed.  We assume that
9498     # if connect needs -lnsl, so does gethostbyname.
9499     echo "$as_me:$LINENO: checking for connect" >&5
9500 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9501 if test "${ac_cv_func_connect+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511 /* System header to define __stub macros and hopefully few prototypes,
9512     which can conflict with char connect (); below.
9513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514     <limits.h> exists even on freestanding compilers.  */
9515 #ifdef __STDC__
9516 # include <limits.h>
9517 #else
9518 # include <assert.h>
9519 #endif
9520 /* Override any gcc2 internal prototype to avoid an error.  */
9521 #ifdef __cplusplus
9522 extern "C"
9523 {
9524 #endif
9525 /* We use char because int might match the return type of a gcc2
9526    builtin and then its argument prototype would still apply.  */
9527 char connect ();
9528 /* The GNU C library defines this for functions which it implements
9529     to always fail with ENOSYS.  Some functions are actually named
9530     something starting with __ and the normal name is an alias.  */
9531 #if defined (__stub_connect) || defined (__stub___connect)
9532 choke me
9533 #else
9534 char (*f) () = connect;
9535 #endif
9536 #ifdef __cplusplus
9537 }
9538 #endif
9539
9540 int
9541 main ()
9542 {
9543 return f != connect;
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550   (eval $ac_link) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -s conftest$ac_exeext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_func_connect=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_func_connect=no
9566 fi
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9570 echo "${ECHO_T}$ac_cv_func_connect" >&6
9571
9572     if test $ac_cv_func_connect = no; then
9573       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9574 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9575 if test "${ac_cv_lib_socket_connect+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587
9588 /* Override any gcc2 internal prototype to avoid an error.  */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593    builtin and then its argument prototype would still apply.  */
9594 char connect ();
9595 int
9596 main ()
9597 {
9598 connect ();
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605   (eval $ac_link) 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } &&
9609          { ac_try='test -s conftest$ac_exeext'
9610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611   (eval $ac_try) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); }; }; then
9615   ac_cv_lib_socket_connect=yes
9616 else
9617   echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 ac_cv_lib_socket_connect=no
9621 fi
9622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9626 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9627 if test $ac_cv_lib_socket_connect = yes; then
9628   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9629 fi
9630
9631     fi
9632
9633     # Guillermo Gomez says -lposix is necessary on A/UX.
9634     echo "$as_me:$LINENO: checking for remove" >&5
9635 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9636 if test "${ac_cv_func_remove+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646 /* System header to define __stub macros and hopefully few prototypes,
9647     which can conflict with char remove (); below.
9648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649     <limits.h> exists even on freestanding compilers.  */
9650 #ifdef __STDC__
9651 # include <limits.h>
9652 #else
9653 # include <assert.h>
9654 #endif
9655 /* Override any gcc2 internal prototype to avoid an error.  */
9656 #ifdef __cplusplus
9657 extern "C"
9658 {
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661    builtin and then its argument prototype would still apply.  */
9662 char remove ();
9663 /* The GNU C library defines this for functions which it implements
9664     to always fail with ENOSYS.  Some functions are actually named
9665     something starting with __ and the normal name is an alias.  */
9666 #if defined (__stub_remove) || defined (__stub___remove)
9667 choke me
9668 #else
9669 char (*f) () = remove;
9670 #endif
9671 #ifdef __cplusplus
9672 }
9673 #endif
9674
9675 int
9676 main ()
9677 {
9678 return f != remove;
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_func_remove=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_func_remove=no
9701 fi
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9705 echo "${ECHO_T}$ac_cv_func_remove" >&6
9706
9707     if test $ac_cv_func_remove = no; then
9708       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9709 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9710 if test "${ac_cv_lib_posix_remove+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lposix  $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 /* Override any gcc2 internal prototype to avoid an error.  */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 /* We use char because int might match the return type of a gcc2
9728    builtin and then its argument prototype would still apply.  */
9729 char remove ();
9730 int
9731 main ()
9732 {
9733 remove ();
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740   (eval $ac_link) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_lib_posix_remove=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_cv_lib_posix_remove=no
9756 fi
9757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9759 fi
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9761 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9762 if test $ac_cv_lib_posix_remove = yes; then
9763   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9764 fi
9765
9766     fi
9767
9768     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9769     echo "$as_me:$LINENO: checking for shmat" >&5
9770 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9771 if test "${ac_cv_func_shmat+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 /* System header to define __stub macros and hopefully few prototypes,
9782     which can conflict with char shmat (); below.
9783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784     <limits.h> exists even on freestanding compilers.  */
9785 #ifdef __STDC__
9786 # include <limits.h>
9787 #else
9788 # include <assert.h>
9789 #endif
9790 /* Override any gcc2 internal prototype to avoid an error.  */
9791 #ifdef __cplusplus
9792 extern "C"
9793 {
9794 #endif
9795 /* We use char because int might match the return type of a gcc2
9796    builtin and then its argument prototype would still apply.  */
9797 char shmat ();
9798 /* The GNU C library defines this for functions which it implements
9799     to always fail with ENOSYS.  Some functions are actually named
9800     something starting with __ and the normal name is an alias.  */
9801 #if defined (__stub_shmat) || defined (__stub___shmat)
9802 choke me
9803 #else
9804 char (*f) () = shmat;
9805 #endif
9806 #ifdef __cplusplus
9807 }
9808 #endif
9809
9810 int
9811 main ()
9812 {
9813 return f != shmat;
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820   (eval $ac_link) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -s conftest$ac_exeext'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   ac_cv_func_shmat=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 ac_cv_func_shmat=no
9836 fi
9837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9840 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9841
9842     if test $ac_cv_func_shmat = no; then
9843       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9844 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9845 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lipc  $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any gcc2 internal prototype to avoid an error.  */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 /* We use char because int might match the return type of a gcc2
9863    builtin and then its argument prototype would still apply.  */
9864 char shmat ();
9865 int
9866 main ()
9867 {
9868 shmat ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875   (eval $ac_link) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_ipc_shmat=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_ipc_shmat=no
9891 fi
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9897 if test $ac_cv_lib_ipc_shmat = yes; then
9898   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9899 fi
9900
9901     fi
9902   fi
9903
9904   # Check for libraries that X11R6 Xt/Xaw programs need.
9905   ac_save_LDFLAGS=$LDFLAGS
9906   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9907   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9908   # check for ICE first), but we must link in the order -lSM -lICE or
9909   # we get undefined symbols.  So assume we have SM if we have ICE.
9910   # These have to be linked with before -lX11, unlike the other
9911   # libraries we check for below, so use a different variable.
9912   # John Interrante, Karl Berry
9913   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   ac_check_lib_save_LIBS=$LIBS
9919 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927
9928 /* Override any gcc2 internal prototype to avoid an error.  */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 /* We use char because int might match the return type of a gcc2
9933    builtin and then its argument prototype would still apply.  */
9934 char IceConnectionNumber ();
9935 int
9936 main ()
9937 {
9938 IceConnectionNumber ();
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945   (eval $ac_link) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -s conftest$ac_exeext'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; }; then
9955   ac_cv_lib_ICE_IceConnectionNumber=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_cv_lib_ICE_IceConnectionNumber=no
9961 fi
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963 LIBS=$ac_check_lib_save_LIBS
9964 fi
9965 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9966 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9967 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9968   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9969 fi
9970
9971   LDFLAGS=$ac_save_LDFLAGS
9972
9973 fi
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003 for ac_header in \
10004         assert.h \
10005         fcntl.h \
10006         grp.h \
10007         pwd.h \
10008         libc.h \
10009         limits.h \
10010         stdarg.h \
10011         stdlib.h \
10012         stdint.h \
10013         string.h \
10014         termios.h \
10015         termcap.h \
10016         term.h \
10017         unistd.h \
10018         sys/bitypes.h \
10019         sys/byteorder.h \
10020         sys/ioctl.h \
10021         sys/select.h \
10022         sys/sockio.h \
10023         sys/time.h \
10024         sys/socket.h \
10025         arpa/nameser.h \
10026         resolv.h \
10027         mtio.h \
10028         sys/mtio.h \
10029         sys/tape.h \
10030         regex.h \
10031
10032 do
10033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10035   echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 fi
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10042 else
10043   # Is the header compilable?
10044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10046 cat >conftest.$ac_ext <<_ACEOF
10047 #line $LINENO "configure"
10048 /* confdefs.h.  */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h.  */
10053 $ac_includes_default
10054 #include <$ac_header>
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058   (eval $ac_compile) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -s conftest.$ac_objext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_header_compiler=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_header_compiler=no
10074 fi
10075 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6
10078
10079 # Is the header present?
10080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089 #include <$ac_header>
10090 _ACEOF
10091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } >/dev/null; then
10099   if test -s conftest.err; then
10100     ac_cpp_err=$ac_c_preproc_warn_flag
10101   else
10102     ac_cpp_err=
10103   fi
10104 else
10105   ac_cpp_err=yes
10106 fi
10107 if test -z "$ac_cpp_err"; then
10108   ac_header_preproc=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113   ac_header_preproc=no
10114 fi
10115 rm -f conftest.err conftest.$ac_ext
10116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10117 echo "${ECHO_T}$ac_header_preproc" >&6
10118
10119 # So?  What about this header?
10120 case $ac_header_compiler:$ac_header_preproc in
10121   yes:no )
10122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10126     (
10127       cat <<\_ASBOX
10128 ## ------------------------------------ ##
10129 ## Report this to bug-autoconf@gnu.org. ##
10130 ## ------------------------------------ ##
10131 _ASBOX
10132     ) |
10133       sed "s/^/$as_me: WARNING:     /" >&2
10134     ;;
10135   no:yes )
10136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10138     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10142     (
10143       cat <<\_ASBOX
10144 ## ------------------------------------ ##
10145 ## Report this to bug-autoconf@gnu.org. ##
10146 ## ------------------------------------ ##
10147 _ASBOX
10148     ) |
10149       sed "s/^/$as_me: WARNING:     /" >&2
10150     ;;
10151 esac
10152 echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   eval "$as_ac_Header=$ac_header_preproc"
10158 fi
10159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10161
10162 fi
10163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10164   cat >>confdefs.h <<_ACEOF
10165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166 _ACEOF
10167
10168 fi
10169
10170 done
10171
10172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10174 if test "${ac_cv_header_stdc+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177   cat >conftest.$ac_ext <<_ACEOF
10178 #line $LINENO "configure"
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <stdlib.h>
10185 #include <stdarg.h>
10186 #include <string.h>
10187 #include <float.h>
10188
10189 int
10190 main ()
10191 {
10192
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10199   (eval $ac_compile) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); } &&
10203          { ac_try='test -s conftest.$ac_objext'
10204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205   (eval $ac_try) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; }; then
10209   ac_cv_header_stdc=yes
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 ac_cv_header_stdc=no
10215 fi
10216 rm -f conftest.$ac_objext conftest.$ac_ext
10217
10218 if test $ac_cv_header_stdc = yes; then
10219   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10220   cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 #include <string.h>
10228
10229 _ACEOF
10230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10231   $EGREP "memchr" >/dev/null 2>&1; then
10232   :
10233 else
10234   ac_cv_header_stdc=no
10235 fi
10236 rm -f conftest*
10237
10238 fi
10239
10240 if test $ac_cv_header_stdc = yes; then
10241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10242   cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249 #include <stdlib.h>
10250
10251 _ACEOF
10252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10253   $EGREP "free" >/dev/null 2>&1; then
10254   :
10255 else
10256   ac_cv_header_stdc=no
10257 fi
10258 rm -f conftest*
10259
10260 fi
10261
10262 if test $ac_cv_header_stdc = yes; then
10263   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10264   if test "$cross_compiling" = yes; then
10265   :
10266 else
10267   cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 #include <ctype.h>
10275 #if ((' ' & 0x0FF) == 0x020)
10276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10278 #else
10279 # define ISLOWER(c) \
10280                    (('a' <= (c) && (c) <= 'i') \
10281                      || ('j' <= (c) && (c) <= 'r') \
10282                      || ('s' <= (c) && (c) <= 'z'))
10283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10284 #endif
10285
10286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10287 int
10288 main ()
10289 {
10290   int i;
10291   for (i = 0; i < 256; i++)
10292     if (XOR (islower (i), ISLOWER (i))
10293         || toupper (i) != TOUPPER (i))
10294       exit(2);
10295   exit (0);
10296 }
10297 _ACEOF
10298 rm -f conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300   (eval $ac_link) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   :
10310 else
10311   echo "$as_me: program exited with status $ac_status" >&5
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 ( exit $ac_status )
10316 ac_cv_header_stdc=no
10317 fi
10318 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 fi
10321 fi
10322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10324 if test $ac_cv_header_stdc = yes; then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define STDC_HEADERS 1
10328 _ACEOF
10329
10330 fi
10331
10332 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10333 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10334 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344 #include <sys/types.h>
10345 int
10346 main ()
10347 {
10348 return makedev(0, 0);
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355   (eval $ac_link) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   ac_cv_header_sys_types_h_makedev=yes
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_cv_header_sys_types_h_makedev=no
10371 fi
10372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10373
10374 fi
10375 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10376 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10377
10378 if test $ac_cv_header_sys_types_h_makedev = no; then
10379 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10380   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10381 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 fi
10385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10387 else
10388   # Is the header compilable?
10389 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10390 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 $ac_includes_default
10399 #include <sys/mkdev.h>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403   (eval $ac_compile) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } &&
10407          { ac_try='test -s conftest.$ac_objext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_header_compiler=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_header_compiler=no
10419 fi
10420 rm -f conftest.$ac_objext conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10422 echo "${ECHO_T}$ac_header_compiler" >&6
10423
10424 # Is the header present?
10425 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10426 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10429 /* confdefs.h.  */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h.  */
10434 #include <sys/mkdev.h>
10435 _ACEOF
10436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } >/dev/null; then
10444   if test -s conftest.err; then
10445     ac_cpp_err=$ac_c_preproc_warn_flag
10446   else
10447     ac_cpp_err=
10448   fi
10449 else
10450   ac_cpp_err=yes
10451 fi
10452 if test -z "$ac_cpp_err"; then
10453   ac_header_preproc=yes
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458   ac_header_preproc=no
10459 fi
10460 rm -f conftest.err conftest.$ac_ext
10461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10462 echo "${ECHO_T}$ac_header_preproc" >&6
10463
10464 # So?  What about this header?
10465 case $ac_header_compiler:$ac_header_preproc in
10466   yes:no )
10467     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10468 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10469     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10470 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10471     (
10472       cat <<\_ASBOX
10473 ## ------------------------------------ ##
10474 ## Report this to bug-autoconf@gnu.org. ##
10475 ## ------------------------------------ ##
10476 _ASBOX
10477     ) |
10478       sed "s/^/$as_me: WARNING:     /" >&2
10479     ;;
10480   no:yes )
10481     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10482 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10483     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10484 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10485     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10486 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10487     (
10488       cat <<\_ASBOX
10489 ## ------------------------------------ ##
10490 ## Report this to bug-autoconf@gnu.org. ##
10491 ## ------------------------------------ ##
10492 _ASBOX
10493     ) |
10494       sed "s/^/$as_me: WARNING:     /" >&2
10495     ;;
10496 esac
10497 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10498 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10499 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10503 fi
10504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10505 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10506
10507 fi
10508 if test $ac_cv_header_sys_mkdev_h = yes; then
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define MAJOR_IN_MKDEV 1
10512 _ACEOF
10513
10514 fi
10515
10516
10517
10518   if test $ac_cv_header_sys_mkdev_h = no; then
10519     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10520   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10521 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10522 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 fi
10525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10526 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10527 else
10528   # Is the header compilable?
10529 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10530 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10532 #line $LINENO "configure"
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 $ac_includes_default
10539 #include <sys/sysmacros.h>
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -s conftest.$ac_objext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_header_compiler=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_header_compiler=no
10559 fi
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10562 echo "${ECHO_T}$ac_header_compiler" >&6
10563
10564 # Is the header present?
10565 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10566 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 #include <sys/sysmacros.h>
10575 _ACEOF
10576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10578   ac_status=$?
10579   grep -v '^ *+' conftest.er1 >conftest.err
10580   rm -f conftest.er1
10581   cat conftest.err >&5
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } >/dev/null; then
10584   if test -s conftest.err; then
10585     ac_cpp_err=$ac_c_preproc_warn_flag
10586   else
10587     ac_cpp_err=
10588   fi
10589 else
10590   ac_cpp_err=yes
10591 fi
10592 if test -z "$ac_cpp_err"; then
10593   ac_header_preproc=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598   ac_header_preproc=no
10599 fi
10600 rm -f conftest.err conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10602 echo "${ECHO_T}$ac_header_preproc" >&6
10603
10604 # So?  What about this header?
10605 case $ac_header_compiler:$ac_header_preproc in
10606   yes:no )
10607     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10608 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10609     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10610 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10611     (
10612       cat <<\_ASBOX
10613 ## ------------------------------------ ##
10614 ## Report this to bug-autoconf@gnu.org. ##
10615 ## ------------------------------------ ##
10616 _ASBOX
10617     ) |
10618       sed "s/^/$as_me: WARNING:     /" >&2
10619     ;;
10620   no:yes )
10621     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10622 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10623     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10624 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10626 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10627     (
10628       cat <<\_ASBOX
10629 ## ------------------------------------ ##
10630 ## Report this to bug-autoconf@gnu.org. ##
10631 ## ------------------------------------ ##
10632 _ASBOX
10633     ) |
10634       sed "s/^/$as_me: WARNING:     /" >&2
10635     ;;
10636 esac
10637 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10638 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10639 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10643 fi
10644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10645 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10646
10647 fi
10648 if test $ac_cv_header_sys_sysmacros_h = yes; then
10649
10650 cat >>confdefs.h <<\_ACEOF
10651 #define MAJOR_IN_SYSMACROS 1
10652 _ACEOF
10653
10654 fi
10655
10656
10657   fi
10658 fi
10659
10660
10661
10662
10663
10664
10665 ac_header_dirent=no
10666 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10667   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10668 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10669 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 #include <sys/types.h>
10681 #include <$ac_hdr>
10682
10683 int
10684 main ()
10685 {
10686 if ((DIR *) 0)
10687 return 0;
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694   (eval $ac_compile) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } &&
10698          { ac_try='test -s conftest.$ac_objext'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; }; then
10704   eval "$as_ac_Header=yes"
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 eval "$as_ac_Header=no"
10710 fi
10711 rm -f conftest.$ac_objext conftest.$ac_ext
10712 fi
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10716   cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10718 _ACEOF
10719
10720 ac_header_dirent=$ac_hdr; break
10721 fi
10722
10723 done
10724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10725 if test $ac_header_dirent = dirent.h; then
10726   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10728 if test "${ac_cv_search_opendir+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_func_search_save_LIBS=$LIBS
10732 ac_cv_search_opendir=no
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740
10741 /* Override any gcc2 internal prototype to avoid an error.  */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 /* We use char because int might match the return type of a gcc2
10746    builtin and then its argument prototype would still apply.  */
10747 char opendir ();
10748 int
10749 main ()
10750 {
10751 opendir ();
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758   (eval $ac_link) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest$ac_exeext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_cv_search_opendir="none required"
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 fi
10774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10775 if test "$ac_cv_search_opendir" = no; then
10776   for ac_lib in dir; do
10777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10778     cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785
10786 /* Override any gcc2 internal prototype to avoid an error.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 /* We use char because int might match the return type of a gcc2
10791    builtin and then its argument prototype would still apply.  */
10792 char opendir ();
10793 int
10794 main ()
10795 {
10796 opendir ();
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10803   (eval $ac_link) 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } &&
10807          { ac_try='test -s conftest$ac_exeext'
10808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809   (eval $ac_try) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; }; then
10813   ac_cv_search_opendir="-l$ac_lib"
10814 break
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 fi
10820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10821   done
10822 fi
10823 LIBS=$ac_func_search_save_LIBS
10824 fi
10825 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10826 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10827 if test "$ac_cv_search_opendir" != no; then
10828   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10829
10830 fi
10831
10832 else
10833   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10835 if test "${ac_cv_search_opendir+set}" = set; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   ac_func_search_save_LIBS=$LIBS
10839 ac_cv_search_opendir=no
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847
10848 /* Override any gcc2 internal prototype to avoid an error.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 /* We use char because int might match the return type of a gcc2
10853    builtin and then its argument prototype would still apply.  */
10854 char opendir ();
10855 int
10856 main ()
10857 {
10858 opendir ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10865   (eval $ac_link) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } &&
10869          { ac_try='test -s conftest$ac_exeext'
10870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871   (eval $ac_try) 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; }; then
10875   ac_cv_search_opendir="none required"
10876 else
10877   echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 fi
10881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10882 if test "$ac_cv_search_opendir" = no; then
10883   for ac_lib in x; do
10884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10885     cat >conftest.$ac_ext <<_ACEOF
10886 #line $LINENO "configure"
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892
10893 /* Override any gcc2 internal prototype to avoid an error.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 /* We use char because int might match the return type of a gcc2
10898    builtin and then its argument prototype would still apply.  */
10899 char opendir ();
10900 int
10901 main ()
10902 {
10903 opendir ();
10904   ;
10905   return 0;
10906 }
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910   (eval $ac_link) 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); } &&
10914          { ac_try='test -s conftest$ac_exeext'
10915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916   (eval $ac_try) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); }; }; then
10920   ac_cv_search_opendir="-l$ac_lib"
10921 break
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 fi
10927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10928   done
10929 fi
10930 LIBS=$ac_func_search_save_LIBS
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10933 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10934 if test "$ac_cv_search_opendir" != no; then
10935   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10936
10937 fi
10938
10939 fi
10940
10941 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10942 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10943 if test "${ac_cv_header_stat_broken+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953 #include <sys/types.h>
10954 #include <sys/stat.h>
10955
10956 #if defined(S_ISBLK) && defined(S_IFDIR)
10957 # if S_ISBLK (S_IFDIR)
10958 You lose.
10959 # endif
10960 #endif
10961
10962 #if defined(S_ISBLK) && defined(S_IFCHR)
10963 # if S_ISBLK (S_IFCHR)
10964 You lose.
10965 # endif
10966 #endif
10967
10968 #if defined(S_ISLNK) && defined(S_IFREG)
10969 # if S_ISLNK (S_IFREG)
10970 You lose.
10971 # endif
10972 #endif
10973
10974 #if defined(S_ISSOCK) && defined(S_IFREG)
10975 # if S_ISSOCK (S_IFREG)
10976 You lose.
10977 # endif
10978 #endif
10979
10980 _ACEOF
10981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10982   $EGREP "You lose" >/dev/null 2>&1; then
10983   ac_cv_header_stat_broken=yes
10984 else
10985   ac_cv_header_stat_broken=no
10986 fi
10987 rm -f conftest*
10988
10989 fi
10990 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10991 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10992 if test $ac_cv_header_stat_broken = yes; then
10993
10994 cat >>confdefs.h <<\_ACEOF
10995 #define STAT_MACROS_BROKEN 1
10996 _ACEOF
10997
10998 fi
10999
11000 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   cat >conftest.$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 #include <sys/types.h>
11013 #include <sys/wait.h>
11014 #ifndef WEXITSTATUS
11015 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11016 #endif
11017 #ifndef WIFEXITED
11018 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11019 #endif
11020
11021 int
11022 main ()
11023 {
11024   int s;
11025   wait (&s);
11026   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033   (eval $ac_compile) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -s conftest.$ac_objext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_header_sys_wait_h=yes
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_header_sys_wait_h=no
11049 fi
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11051 fi
11052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11054 if test $ac_cv_header_sys_wait_h = yes; then
11055
11056 cat >>confdefs.h <<\_ACEOF
11057 #define HAVE_SYS_WAIT_H 1
11058 _ACEOF
11059
11060 fi
11061
11062 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11063 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11064 if test "${ac_cv_header_time+set}" = set; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067   cat >conftest.$ac_ext <<_ACEOF
11068 #line $LINENO "configure"
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074 #include <sys/types.h>
11075 #include <sys/time.h>
11076 #include <time.h>
11077
11078 int
11079 main ()
11080 {
11081 if ((struct tm *) 0)
11082 return 0;
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089   (eval $ac_compile) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } &&
11093          { ac_try='test -s conftest.$ac_objext'
11094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095   (eval $ac_try) 2>&5
11096   ac_status=$?
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); }; }; then
11099   ac_cv_header_time=yes
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 ac_cv_header_time=no
11105 fi
11106 rm -f conftest.$ac_objext conftest.$ac_ext
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11109 echo "${ECHO_T}$ac_cv_header_time" >&6
11110 if test $ac_cv_header_time = yes; then
11111
11112 cat >>confdefs.h <<\_ACEOF
11113 #define TIME_WITH_SYS_TIME 1
11114 _ACEOF
11115
11116 fi
11117
11118
11119 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11120 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11121 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 $ac_includes_default
11132 int
11133 main ()
11134 {
11135 static struct stat ac_aggr;
11136 if (ac_aggr.st_blksize)
11137 return 0;
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144   (eval $ac_compile) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -s conftest.$ac_objext'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154   ac_cv_member_struct_stat_st_blksize=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 $ac_includes_default
11167 int
11168 main ()
11169 {
11170 static struct stat ac_aggr;
11171 if (sizeof ac_aggr.st_blksize)
11172 return 0;
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest.$ac_objext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179   (eval $ac_compile) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -s conftest.$ac_objext'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   ac_cv_member_struct_stat_st_blksize=yes
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 ac_cv_member_struct_stat_st_blksize=no
11195 fi
11196 rm -f conftest.$ac_objext conftest.$ac_ext
11197 fi
11198 rm -f conftest.$ac_objext conftest.$ac_ext
11199 fi
11200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11201 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11202 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11203
11204 cat >>confdefs.h <<_ACEOF
11205 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11206 _ACEOF
11207
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_ST_BLKSIZE 1
11211 _ACEOF
11212
11213 fi
11214
11215
11216 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11217 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11218 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221   cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 $ac_includes_default
11229 int
11230 main ()
11231 {
11232 static struct stat ac_aggr;
11233 if (ac_aggr.st_blocks)
11234 return 0;
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241   (eval $ac_compile) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } &&
11245          { ac_try='test -s conftest.$ac_objext'
11246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247   (eval $ac_try) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }; then
11251   ac_cv_member_struct_stat_st_blocks=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 $ac_includes_default
11264 int
11265 main ()
11266 {
11267 static struct stat ac_aggr;
11268 if (sizeof ac_aggr.st_blocks)
11269 return 0;
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276   (eval $ac_compile) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -s conftest.$ac_objext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_member_struct_stat_st_blocks=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_member_struct_stat_st_blocks=no
11292 fi
11293 rm -f conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 rm -f conftest.$ac_objext conftest.$ac_ext
11296 fi
11297 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11298 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11299 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11300
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11303 _ACEOF
11304
11305
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_ST_BLOCKS 1
11308 _ACEOF
11309
11310 else
11311   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11312 fi
11313
11314
11315 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11316 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11317 if test "${ac_cv_struct_tm+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <sys/types.h>
11328 #include <time.h>
11329
11330 int
11331 main ()
11332 {
11333 struct tm *tp; tp->tm_sec;
11334   ;
11335   return 0;
11336 }
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11340   (eval $ac_compile) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } &&
11344          { ac_try='test -s conftest.$ac_objext'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   ac_cv_struct_tm=time.h
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11354
11355 ac_cv_struct_tm=sys/time.h
11356 fi
11357 rm -f conftest.$ac_objext conftest.$ac_ext
11358 fi
11359 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11360 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11361 if test $ac_cv_struct_tm = sys/time.h; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define TM_IN_SYS_TIME 1
11365 _ACEOF
11366
11367 fi
11368
11369 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11370 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11371 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #include <sys/types.h>
11382 #include <$ac_cv_struct_tm>
11383
11384
11385 int
11386 main ()
11387 {
11388 static struct tm ac_aggr;
11389 if (ac_aggr.tm_zone)
11390 return 0;
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 rm -f conftest.$ac_objext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397   (eval $ac_compile) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } &&
11401          { ac_try='test -s conftest.$ac_objext'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; }; then
11407   ac_cv_member_struct_tm_tm_zone=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 cat >conftest.$ac_ext <<_ACEOF
11413 #line $LINENO "configure"
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 #include <sys/types.h>
11420 #include <$ac_cv_struct_tm>
11421
11422
11423 int
11424 main ()
11425 {
11426 static struct tm ac_aggr;
11427 if (sizeof ac_aggr.tm_zone)
11428 return 0;
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435   (eval $ac_compile) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -s conftest.$ac_objext'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_cv_member_struct_tm_tm_zone=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_cv_member_struct_tm_tm_zone=no
11451 fi
11452 rm -f conftest.$ac_objext conftest.$ac_ext
11453 fi
11454 rm -f conftest.$ac_objext conftest.$ac_ext
11455 fi
11456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11457 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11458 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11459
11460 cat >>confdefs.h <<_ACEOF
11461 #define HAVE_STRUCT_TM_TM_ZONE 1
11462 _ACEOF
11463
11464
11465 fi
11466
11467 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11468
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_TM_ZONE 1
11471 _ACEOF
11472
11473 else
11474   echo "$as_me:$LINENO: checking for tzname" >&5
11475 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11476 if test "${ac_cv_var_tzname+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486 #include <time.h>
11487 #ifndef tzname /* For SGI.  */
11488 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11489 #endif
11490
11491 int
11492 main ()
11493 {
11494 atoi(*tzname);
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501   (eval $ac_link) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -s conftest$ac_exeext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   ac_cv_var_tzname=yes
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_cv_var_tzname=no
11517 fi
11518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11519 fi
11520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11522   if test $ac_cv_var_tzname = yes; then
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_TZNAME 1
11526 _ACEOF
11527
11528   fi
11529 fi
11530
11531
11532 echo "$as_me:$LINENO: checking for utime.h" >&5
11533 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11534 if test "${ba_cv_header_utime_h+set}" = set; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537   cat >conftest.$ac_ext <<_ACEOF
11538 #line $LINENO "configure"
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 #include <sys/types.h>
11546 #include <utime.h>
11547 int
11548 main ()
11549 {
11550 struct utimbuf foo
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557   (eval $ac_compile) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -s conftest.$ac_objext'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   ba_cv_header_utime_h=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ba_cv_header_utime_h=no
11573 fi
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11577 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11578 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_UTIME_H 1
11580 _ACEOF
11581
11582
11583 echo "$as_me:$LINENO: checking for socklen_t" >&5
11584 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11585 if test "${ba_cv_header_socklen_t+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595
11596 #include <sys/types.h>
11597 #include <sys/socket.h>
11598 int
11599 main ()
11600 {
11601 socklen_t x
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11608   (eval $ac_compile) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -s conftest.$ac_objext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   ba_cv_header_socklen_t=yes
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ba_cv_header_socklen_t=no
11624 fi
11625 rm -f conftest.$ac_objext conftest.$ac_ext
11626 fi
11627 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11628 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11629 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_SOCKLEN_T 1
11631 _ACEOF
11632
11633
11634 echo "$as_me:$LINENO: checking for bigendian" >&5
11635 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11636 if test "${ba_cv_bigendian+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   if test "$cross_compiling" = yes; then
11640   ba_cv_bigendian=no
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11650 _ACEOF
11651 rm -f conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ba_cv_bigendian=yes
11663 else
11664   echo "$as_me: program exited with status $ac_status" >&5
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ( exit $ac_status )
11669 ba_cv_bigendian=no
11670 fi
11671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11672 fi
11673 fi
11674 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11675 echo "${ECHO_T}$ba_cv_bigendian" >&6
11676 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_BIGENDIAN 1
11678 _ACEOF
11679
11680
11681
11682 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11683 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11684 if test "${ac_cv_c_const+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695 int
11696 main ()
11697 {
11698 /* FIXME: Include the comments suggested by Paul. */
11699 #ifndef __cplusplus
11700   /* Ultrix mips cc rejects this.  */
11701   typedef int charset[2];
11702   const charset x;
11703   /* SunOS 4.1.1 cc rejects this.  */
11704   char const *const *ccp;
11705   char **p;
11706   /* NEC SVR4.0.2 mips cc rejects this.  */
11707   struct point {int x, y;};
11708   static struct point const zero = {0,0};
11709   /* AIX XL C 1.02.0.0 rejects this.
11710      It does not let you subtract one const X* pointer from another in
11711      an arm of an if-expression whose if-part is not a constant
11712      expression */
11713   const char *g = "string";
11714   ccp = &g + (g ? g-g : 0);
11715   /* HPUX 7.0 cc rejects these. */
11716   ++ccp;
11717   p = (char**) ccp;
11718   ccp = (char const *const *) p;
11719   { /* SCO 3.2v4 cc rejects this.  */
11720     char *t;
11721     char const *s = 0 ? (char *) 0 : (char const *) 0;
11722
11723     *t++ = 0;
11724   }
11725   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11726     int x[] = {25, 17};
11727     const int *foo = &x[0];
11728     ++foo;
11729   }
11730   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11731     typedef const int *iptr;
11732     iptr p = 0;
11733     ++p;
11734   }
11735   { /* AIX XL C 1.02.0.0 rejects this saying
11736        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11737     struct s { int j; const int *ap[3]; };
11738     struct s *b; b->j = 5;
11739   }
11740   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11741     const int foo = 10;
11742   }
11743 #endif
11744
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751   (eval $ac_compile) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -s conftest.$ac_objext'
11756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757   (eval $ac_try) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); }; }; then
11761   ac_cv_c_const=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766 ac_cv_c_const=no
11767 fi
11768 rm -f conftest.$ac_objext conftest.$ac_ext
11769 fi
11770 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11771 echo "${ECHO_T}$ac_cv_c_const" >&6
11772 if test $ac_cv_c_const = no; then
11773
11774 cat >>confdefs.h <<\_ACEOF
11775 #define const
11776 _ACEOF
11777
11778 fi
11779
11780
11781
11782 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11783 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11784 fstype=no
11785 # The order of these tests is important.
11786 cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11788 /* confdefs.h.  */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h.  */
11793 #include <sys/statvfs.h>
11794 #include <sys/fstyp.h>
11795 _ACEOF
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } >/dev/null; then
11804   if test -s conftest.err; then
11805     ac_cpp_err=$ac_c_preproc_warn_flag
11806   else
11807     ac_cpp_err=
11808   fi
11809 else
11810   ac_cpp_err=yes
11811 fi
11812 if test -z "$ac_cpp_err"; then
11813   cat >>confdefs.h <<\_ACEOF
11814 #define FSTYPE_STATVFS 1
11815 _ACEOF
11816  fstype=SVR4
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821
11822 fi
11823 rm -f conftest.err conftest.$ac_ext
11824 if test $fstype = no; then
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 #include <sys/statfs.h>
11833 #include <sys/fstyp.h>
11834 _ACEOF
11835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } >/dev/null; then
11843   if test -s conftest.err; then
11844     ac_cpp_err=$ac_c_preproc_warn_flag
11845   else
11846     ac_cpp_err=
11847   fi
11848 else
11849   ac_cpp_err=yes
11850 fi
11851 if test -z "$ac_cpp_err"; then
11852   cat >>confdefs.h <<\_ACEOF
11853 #define FSTYPE_USG_STATFS 1
11854 _ACEOF
11855  fstype=SVR3
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860
11861 fi
11862 rm -f conftest.err conftest.$ac_ext
11863 fi
11864 if test $fstype = no; then
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #line $LINENO "configure"
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <sys/statfs.h>
11873 #include <sys/vmount.h>
11874 _ACEOF
11875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } >/dev/null; then
11883   if test -s conftest.err; then
11884     ac_cpp_err=$ac_c_preproc_warn_flag
11885   else
11886     ac_cpp_err=
11887   fi
11888 else
11889   ac_cpp_err=yes
11890 fi
11891 if test -z "$ac_cpp_err"; then
11892   cat >>confdefs.h <<\_ACEOF
11893 #define FSTYPE_AIX_STATFS 1
11894 _ACEOF
11895  fstype=AIX
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900
11901 fi
11902 rm -f conftest.err conftest.$ac_ext
11903 fi
11904 if test $fstype = no; then
11905 cat >conftest.$ac_ext <<_ACEOF
11906 #line $LINENO "configure"
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 #include <mntent.h>
11913 _ACEOF
11914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } >/dev/null; then
11922   if test -s conftest.err; then
11923     ac_cpp_err=$ac_c_preproc_warn_flag
11924   else
11925     ac_cpp_err=
11926   fi
11927 else
11928   ac_cpp_err=yes
11929 fi
11930 if test -z "$ac_cpp_err"; then
11931   cat >>confdefs.h <<\_ACEOF
11932 #define FSTYPE_MNTENT 1
11933 _ACEOF
11934  fstype=4.3BSD
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939
11940 fi
11941 rm -f conftest.err conftest.$ac_ext
11942 fi
11943 if test $fstype = no; then
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 #include <sys/mount.h>
11952
11953 _ACEOF
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11955   $EGREP "f_type;" >/dev/null 2>&1; then
11956   cat >>confdefs.h <<\_ACEOF
11957 #define FSTYPE_STATFS 1
11958 _ACEOF
11959  fstype=4.4BSD/OSF1
11960 fi
11961 rm -f conftest*
11962
11963 fi
11964 if test $fstype = no; then
11965 cat >conftest.$ac_ext <<_ACEOF
11966 #line $LINENO "configure"
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 #include <sys/mount.h>
11973 #include <sys/fs_types.h>
11974 _ACEOF
11975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } >/dev/null; then
11983   if test -s conftest.err; then
11984     ac_cpp_err=$ac_c_preproc_warn_flag
11985   else
11986     ac_cpp_err=
11987   fi
11988 else
11989   ac_cpp_err=yes
11990 fi
11991 if test -z "$ac_cpp_err"; then
11992   cat >>confdefs.h <<\_ACEOF
11993 #define FSTYPE_GETMNT 1
11994 _ACEOF
11995  fstype=Ultrix
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000
12001 fi
12002 rm -f conftest.err conftest.$ac_ext
12003 fi
12004 echo "$as_me:$LINENO: result: $fstype" >&5
12005 echo "${ECHO_T}$fstype" >&6
12006
12007 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12008 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12009 if test "${ac_cv_type_signal+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   cat >conftest.$ac_ext <<_ACEOF
12013 #line $LINENO "configure"
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019 #include <sys/types.h>
12020 #include <signal.h>
12021 #ifdef signal
12022 # undef signal
12023 #endif
12024 #ifdef __cplusplus
12025 extern "C" void (*signal (int, void (*)(int)))(int);
12026 #else
12027 void (*signal ()) ();
12028 #endif
12029
12030 int
12031 main ()
12032 {
12033 int i;
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040   (eval $ac_compile) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -s conftest.$ac_objext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   ac_cv_type_signal=void
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 ac_cv_type_signal=int
12056 fi
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12060 echo "${ECHO_T}$ac_cv_type_signal" >&6
12061
12062 cat >>confdefs.h <<_ACEOF
12063 #define RETSIGTYPE $ac_cv_type_signal
12064 _ACEOF
12065
12066
12067
12068 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12069 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12070 if test "${bash_cv_signal_vintage+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073
12074   cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081 #include <signal.h>
12082 int
12083 main ()
12084 {
12085
12086     sigset_t ss;
12087     struct sigaction sa;
12088     sigemptyset(&ss); sigsuspend(&ss);
12089     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12090     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12091
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098   (eval $ac_link) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -s conftest$ac_exeext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   bash_cv_signal_vintage=posix
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113
12114     cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12116 /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121 #include <signal.h>
12122 int
12123 main ()
12124 {
12125
12126         int mask = sigmask(SIGINT);
12127         sigsetmask(mask); sigblock(mask); sigpause(mask);
12128
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135   (eval $ac_link) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } &&
12139          { ac_try='test -s conftest$ac_exeext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   bash_cv_signal_vintage=4.2bsd
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150
12151       cat >conftest.$ac_ext <<_ACEOF
12152 #line $LINENO "configure"
12153 /* confdefs.h.  */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h.  */
12158
12159         #include <signal.h>
12160         RETSIGTYPE foo() { }
12161 int
12162 main ()
12163 {
12164
12165                 int mask = sigmask(SIGINT);
12166                 sigset(SIGINT, foo); sigrelse(SIGINT);
12167                 sighold(SIGINT); sigpause(SIGINT);
12168
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175   (eval $ac_link) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -s conftest$ac_exeext'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   bash_cv_signal_vintage=svr3
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 bash_cv_signal_vintage=v7
12191
12192 fi
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12194
12195 fi
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197
12198 fi
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12200
12201 fi
12202
12203 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12204 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12205 if test "$bash_cv_signal_vintage" = posix; then
12206 cat >>confdefs.h <<\_ACEOF
12207 #define HAVE_POSIX_SIGNALS 1
12208 _ACEOF
12209
12210 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_BSD_SIGNALS 1
12213 _ACEOF
12214
12215 elif test "$bash_cv_signal_vintage" = svr3; then
12216 cat >>confdefs.h <<\_ACEOF
12217 #define HAVE_USG_SIGHOLD 1
12218 _ACEOF
12219
12220 fi
12221
12222 echo "$as_me:$LINENO: checking for mode_t" >&5
12223 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12224 if test "${ac_cv_type_mode_t+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   cat >conftest.$ac_ext <<_ACEOF
12228 #line $LINENO "configure"
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 $ac_includes_default
12235 int
12236 main ()
12237 {
12238 if ((mode_t *) 0)
12239   return 0;
12240 if (sizeof (mode_t))
12241   return 0;
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248   (eval $ac_compile) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } &&
12252          { ac_try='test -s conftest.$ac_objext'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   ac_cv_type_mode_t=yes
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ac_cv_type_mode_t=no
12264 fi
12265 rm -f conftest.$ac_objext conftest.$ac_ext
12266 fi
12267 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12268 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12269 if test $ac_cv_type_mode_t = yes; then
12270   :
12271 else
12272
12273 cat >>confdefs.h <<_ACEOF
12274 #define mode_t int
12275 _ACEOF
12276
12277 fi
12278
12279 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12280 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12281 if test "${ac_cv_type_uid_t+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 #include <sys/types.h>
12292
12293 _ACEOF
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295   $EGREP "uid_t" >/dev/null 2>&1; then
12296   ac_cv_type_uid_t=yes
12297 else
12298   ac_cv_type_uid_t=no
12299 fi
12300 rm -f conftest*
12301
12302 fi
12303 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12304 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12305 if test $ac_cv_type_uid_t = no; then
12306
12307 cat >>confdefs.h <<\_ACEOF
12308 #define uid_t int
12309 _ACEOF
12310
12311
12312 cat >>confdefs.h <<\_ACEOF
12313 #define gid_t int
12314 _ACEOF
12315
12316 fi
12317
12318 echo "$as_me:$LINENO: checking for size_t" >&5
12319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12320 if test "${ac_cv_type_size_t+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   cat >conftest.$ac_ext <<_ACEOF
12324 #line $LINENO "configure"
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334 if ((size_t *) 0)
12335   return 0;
12336 if (sizeof (size_t))
12337   return 0;
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -s conftest.$ac_objext'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   ac_cv_type_size_t=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 ac_cv_type_size_t=no
12360 fi
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12364 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12365 if test $ac_cv_type_size_t = yes; then
12366   :
12367 else
12368
12369 cat >>confdefs.h <<_ACEOF
12370 #define size_t unsigned
12371 _ACEOF
12372
12373 fi
12374
12375 echo "$as_me:$LINENO: checking for pid_t" >&5
12376 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12377 if test "${ac_cv_type_pid_t+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387 $ac_includes_default
12388 int
12389 main ()
12390 {
12391 if ((pid_t *) 0)
12392   return 0;
12393 if (sizeof (pid_t))
12394   return 0;
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401   (eval $ac_compile) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } &&
12405          { ac_try='test -s conftest.$ac_objext'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; }; then
12411   ac_cv_type_pid_t=yes
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_cv_type_pid_t=no
12417 fi
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12422 if test $ac_cv_type_pid_t = yes; then
12423   :
12424 else
12425
12426 cat >>confdefs.h <<_ACEOF
12427 #define pid_t int
12428 _ACEOF
12429
12430 fi
12431
12432 echo "$as_me:$LINENO: checking for off_t" >&5
12433 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12434 if test "${ac_cv_type_off_t+set}" = set; then
12435   echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
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 if ((off_t *) 0)
12449   return 0;
12450 if (sizeof (off_t))
12451   return 0;
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458   (eval $ac_compile) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -s conftest.$ac_objext'
12463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464   (eval $ac_try) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_cv_type_off_t=yes
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_cv_type_off_t=no
12474 fi
12475 rm -f conftest.$ac_objext conftest.$ac_ext
12476 fi
12477 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12478 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12479 if test $ac_cv_type_off_t = yes; then
12480   :
12481 else
12482
12483 cat >>confdefs.h <<_ACEOF
12484 #define off_t long
12485 _ACEOF
12486
12487 fi
12488
12489 echo "$as_me:$LINENO: checking for ino_t" >&5
12490 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12491 if test "${ac_cv_type_ino_t+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12496 /* confdefs.h.  */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h.  */
12501 $ac_includes_default
12502 int
12503 main ()
12504 {
12505 if ((ino_t *) 0)
12506   return 0;
12507 if (sizeof (ino_t))
12508   return 0;
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515   (eval $ac_compile) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -s conftest.$ac_objext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_type_ino_t=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_cv_type_ino_t=no
12531 fi
12532 rm -f conftest.$ac_objext conftest.$ac_ext
12533 fi
12534 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12535 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12536 if test $ac_cv_type_ino_t = yes; then
12537   :
12538 else
12539
12540 cat >>confdefs.h <<_ACEOF
12541 #define ino_t unsigned long
12542 _ACEOF
12543
12544 fi
12545
12546 echo "$as_me:$LINENO: checking for dev_t" >&5
12547 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12548 if test "${ac_cv_type_dev_t+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 $ac_includes_default
12559 int
12560 main ()
12561 {
12562 if ((dev_t *) 0)
12563   return 0;
12564 if (sizeof (dev_t))
12565   return 0;
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572   (eval $ac_compile) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   ac_cv_type_dev_t=yes
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ac_cv_type_dev_t=no
12588 fi
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12592 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12593 if test $ac_cv_type_dev_t = yes; then
12594   :
12595 else
12596
12597 cat >>confdefs.h <<_ACEOF
12598 #define dev_t unsigned long
12599 _ACEOF
12600
12601 fi
12602
12603 echo "$as_me:$LINENO: checking for daddr_t" >&5
12604 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12605 if test "${ac_cv_type_daddr_t+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608   cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_includes_default
12616 int
12617 main ()
12618 {
12619 if ((daddr_t *) 0)
12620   return 0;
12621 if (sizeof (daddr_t))
12622   return 0;
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629   (eval $ac_compile) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -s conftest.$ac_objext'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }; then
12639   ac_cv_type_daddr_t=yes
12640 else
12641   echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 ac_cv_type_daddr_t=no
12645 fi
12646 rm -f conftest.$ac_objext conftest.$ac_ext
12647 fi
12648 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12649 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12650 if test $ac_cv_type_daddr_t = yes; then
12651   :
12652 else
12653
12654 cat >>confdefs.h <<_ACEOF
12655 #define daddr_t long
12656 _ACEOF
12657
12658 fi
12659
12660 echo "$as_me:$LINENO: checking for major_t" >&5
12661 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12662 if test "${ac_cv_type_major_t+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   cat >conftest.$ac_ext <<_ACEOF
12666 #line $LINENO "configure"
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 $ac_includes_default
12673 int
12674 main ()
12675 {
12676 if ((major_t *) 0)
12677   return 0;
12678 if (sizeof (major_t))
12679   return 0;
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686   (eval $ac_compile) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } &&
12690          { ac_try='test -s conftest.$ac_objext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   ac_cv_type_major_t=yes
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_cv_type_major_t=no
12702 fi
12703 rm -f conftest.$ac_objext conftest.$ac_ext
12704 fi
12705 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12706 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12707 if test $ac_cv_type_major_t = yes; then
12708   :
12709 else
12710
12711 cat >>confdefs.h <<_ACEOF
12712 #define major_t int
12713 _ACEOF
12714
12715 fi
12716
12717 echo "$as_me:$LINENO: checking for minor_t" >&5
12718 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12719 if test "${ac_cv_type_minor_t+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   cat >conftest.$ac_ext <<_ACEOF
12723 #line $LINENO "configure"
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729 $ac_includes_default
12730 int
12731 main ()
12732 {
12733 if ((minor_t *) 0)
12734   return 0;
12735 if (sizeof (minor_t))
12736   return 0;
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743   (eval $ac_compile) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -s conftest.$ac_objext'
12748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749   (eval $ac_try) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753   ac_cv_type_minor_t=yes
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758 ac_cv_type_minor_t=no
12759 fi
12760 rm -f conftest.$ac_objext conftest.$ac_ext
12761 fi
12762 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12763 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12764 if test $ac_cv_type_minor_t = yes; then
12765   :
12766 else
12767
12768 cat >>confdefs.h <<_ACEOF
12769 #define minor_t int
12770 _ACEOF
12771
12772 fi
12773
12774 echo "$as_me:$LINENO: checking for ssize_t" >&5
12775 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12776 if test "${ac_cv_type_ssize_t+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 /* confdefs.h.  */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h.  */
12786 $ac_includes_default
12787 int
12788 main ()
12789 {
12790 if ((ssize_t *) 0)
12791   return 0;
12792 if (sizeof (ssize_t))
12793   return 0;
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800   (eval $ac_compile) 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } &&
12804          { ac_try='test -s conftest.$ac_objext'
12805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806   (eval $ac_try) 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; }; then
12810   ac_cv_type_ssize_t=yes
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 ac_cv_type_ssize_t=no
12816 fi
12817 rm -f conftest.$ac_objext conftest.$ac_ext
12818 fi
12819 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12820 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12821 if test $ac_cv_type_ssize_t = yes; then
12822   :
12823 else
12824
12825 cat >>confdefs.h <<_ACEOF
12826 #define ssize_t int
12827 _ACEOF
12828
12829 fi
12830
12831 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12832 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12833 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 $ac_includes_default
12844 int
12845 main ()
12846 {
12847 static struct stat ac_aggr;
12848 if (ac_aggr.st_blocks)
12849 return 0;
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest.$ac_objext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12856   (eval $ac_compile) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -s conftest.$ac_objext'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   ac_cv_member_struct_stat_st_blocks=yes
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 $ac_includes_default
12879 int
12880 main ()
12881 {
12882 static struct stat ac_aggr;
12883 if (sizeof ac_aggr.st_blocks)
12884 return 0;
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891   (eval $ac_compile) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -s conftest.$ac_objext'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_cv_member_struct_stat_st_blocks=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 ac_cv_member_struct_stat_st_blocks=no
12907 fi
12908 rm -f conftest.$ac_objext conftest.$ac_ext
12909 fi
12910 rm -f conftest.$ac_objext conftest.$ac_ext
12911 fi
12912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12914 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12915
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12918 _ACEOF
12919
12920
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_ST_BLOCKS 1
12923 _ACEOF
12924
12925 else
12926   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12927 fi
12928
12929
12930
12931 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12932 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12933 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12934   echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936   cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 $ac_includes_default
12944 int
12945 main ()
12946 {
12947 static struct stat ac_aggr;
12948 if (ac_aggr.st_rdev)
12949 return 0;
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -s conftest.$ac_objext'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; }; then
12966   ac_cv_member_struct_stat_st_rdev=yes
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 cat >conftest.$ac_ext <<_ACEOF
12972 #line $LINENO "configure"
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12978 $ac_includes_default
12979 int
12980 main ()
12981 {
12982 static struct stat ac_aggr;
12983 if (sizeof ac_aggr.st_rdev)
12984 return 0;
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991   (eval $ac_compile) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   ac_cv_member_struct_stat_st_rdev=yes
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_cv_member_struct_stat_st_rdev=no
13007 fi
13008 rm -f conftest.$ac_objext conftest.$ac_ext
13009 fi
13010 rm -f conftest.$ac_objext conftest.$ac_ext
13011 fi
13012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13014 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13015
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_STRUCT_STAT_ST_RDEV 1
13018 _ACEOF
13019
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_ST_RDEV 1
13023 _ACEOF
13024
13025 fi
13026
13027
13028 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13029 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13030 if test "${ac_cv_struct_tm+set}" = set; then
13031   echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033   cat >conftest.$ac_ext <<_ACEOF
13034 #line $LINENO "configure"
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040 #include <sys/types.h>
13041 #include <time.h>
13042
13043 int
13044 main ()
13045 {
13046 struct tm *tp; tp->tm_sec;
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053   (eval $ac_compile) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); } &&
13057          { ac_try='test -s conftest.$ac_objext'
13058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059   (eval $ac_try) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   ac_cv_struct_tm=time.h
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 ac_cv_struct_tm=sys/time.h
13069 fi
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 fi
13072 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13073 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13074 if test $ac_cv_struct_tm = sys/time.h; then
13075
13076 cat >>confdefs.h <<\_ACEOF
13077 #define TM_IN_SYS_TIME 1
13078 _ACEOF
13079
13080 fi
13081
13082 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13083 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13084 if test "${ac_cv_c_const+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   cat >conftest.$ac_ext <<_ACEOF
13088 #line $LINENO "configure"
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094
13095 int
13096 main ()
13097 {
13098 /* FIXME: Include the comments suggested by Paul. */
13099 #ifndef __cplusplus
13100   /* Ultrix mips cc rejects this.  */
13101   typedef int charset[2];
13102   const charset x;
13103   /* SunOS 4.1.1 cc rejects this.  */
13104   char const *const *ccp;
13105   char **p;
13106   /* NEC SVR4.0.2 mips cc rejects this.  */
13107   struct point {int x, y;};
13108   static struct point const zero = {0,0};
13109   /* AIX XL C 1.02.0.0 rejects this.
13110      It does not let you subtract one const X* pointer from another in
13111      an arm of an if-expression whose if-part is not a constant
13112      expression */
13113   const char *g = "string";
13114   ccp = &g + (g ? g-g : 0);
13115   /* HPUX 7.0 cc rejects these. */
13116   ++ccp;
13117   p = (char**) ccp;
13118   ccp = (char const *const *) p;
13119   { /* SCO 3.2v4 cc rejects this.  */
13120     char *t;
13121     char const *s = 0 ? (char *) 0 : (char const *) 0;
13122
13123     *t++ = 0;
13124   }
13125   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13126     int x[] = {25, 17};
13127     const int *foo = &x[0];
13128     ++foo;
13129   }
13130   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13131     typedef const int *iptr;
13132     iptr p = 0;
13133     ++p;
13134   }
13135   { /* AIX XL C 1.02.0.0 rejects this saying
13136        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13137     struct s { int j; const int *ap[3]; };
13138     struct s *b; b->j = 5;
13139   }
13140   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13141     const int foo = 10;
13142   }
13143 #endif
13144
13145   ;
13146   return 0;
13147 }
13148 _ACEOF
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151   (eval $ac_compile) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -s conftest.$ac_objext'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   ac_cv_c_const=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 ac_cv_c_const=no
13167 fi
13168 rm -f conftest.$ac_objext conftest.$ac_ext
13169 fi
13170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13171 echo "${ECHO_T}$ac_cv_c_const" >&6
13172 if test $ac_cv_c_const = no; then
13173
13174 cat >>confdefs.h <<\_ACEOF
13175 #define const
13176 _ACEOF
13177
13178 fi
13179
13180
13181
13182 echo "$as_me:$LINENO: checking for char" >&5
13183 echo $ECHO_N "checking for char... $ECHO_C" >&6
13184 if test "${ac_cv_type_char+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 $ac_includes_default
13195 int
13196 main ()
13197 {
13198 if ((char *) 0)
13199   return 0;
13200 if (sizeof (char))
13201   return 0;
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208   (eval $ac_compile) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } &&
13212          { ac_try='test -s conftest.$ac_objext'
13213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214   (eval $ac_try) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); }; }; then
13218   ac_cv_type_char=yes
13219 else
13220   echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 ac_cv_type_char=no
13224 fi
13225 rm -f conftest.$ac_objext conftest.$ac_ext
13226 fi
13227 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13228 echo "${ECHO_T}$ac_cv_type_char" >&6
13229
13230 echo "$as_me:$LINENO: checking size of char" >&5
13231 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13232 if test "${ac_cv_sizeof_char+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   if test "$ac_cv_type_char" = yes; then
13236   # The cast to unsigned long works around a bug in the HP C Compiler
13237   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13238   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13239   # This bug is HP SR number 8606223364.
13240   if test "$cross_compiling" = yes; then
13241   # Depending upon the size, compute the lo and hi bounds.
13242 cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 $ac_includes_default
13250 int
13251 main ()
13252 {
13253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13254 test_array [0] = 0
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_lo=0 ac_mid=0
13273   while :; do
13274     cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281 $ac_includes_default
13282 int
13283 main ()
13284 {
13285 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13286 test_array [0] = 0
13287
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294   (eval $ac_compile) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } &&
13298          { ac_try='test -s conftest.$ac_objext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   ac_hi=$ac_mid; break
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_lo=`expr $ac_mid + 1`
13310                     if test $ac_lo -le $ac_mid; then
13311                       ac_lo= ac_hi=
13312                       break
13313                     fi
13314                     ac_mid=`expr 2 '*' $ac_mid + 1`
13315 fi
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13317   done
13318 else
13319   echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 cat >conftest.$ac_ext <<_ACEOF
13323 #line $LINENO "configure"
13324 /* confdefs.h.  */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h.  */
13329 $ac_includes_default
13330 int
13331 main ()
13332 {
13333 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13334 test_array [0] = 0
13335
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342   (eval $ac_compile) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } &&
13346          { ac_try='test -s conftest.$ac_objext'
13347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348   (eval $ac_try) 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_hi=-1 ac_mid=-1
13353   while :; do
13354     cat >conftest.$ac_ext <<_ACEOF
13355 #line $LINENO "configure"
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 $ac_includes_default
13362 int
13363 main ()
13364 {
13365 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13366 test_array [0] = 0
13367
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374   (eval $ac_compile) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -s conftest.$ac_objext'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   ac_lo=$ac_mid; break
13385 else
13386   echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ac_hi=`expr '(' $ac_mid ')' - 1`
13390                        if test $ac_mid -le $ac_hi; then
13391                          ac_lo= ac_hi=
13392                          break
13393                        fi
13394                        ac_mid=`expr 2 '*' $ac_mid`
13395 fi
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13397   done
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_lo= ac_hi=
13403 fi
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13407 # Binary search between lo and hi bounds.
13408 while test "x$ac_lo" != "x$ac_hi"; do
13409   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13410   cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 $ac_includes_default
13418 int
13419 main ()
13420 {
13421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13422 test_array [0] = 0
13423
13424   ;
13425   return 0;
13426 }
13427 _ACEOF
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430   (eval $ac_compile) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } &&
13434          { ac_try='test -s conftest.$ac_objext'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   ac_hi=$ac_mid
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_lo=`expr '(' $ac_mid ')' + 1`
13446 fi
13447 rm -f conftest.$ac_objext conftest.$ac_ext
13448 done
13449 case $ac_lo in
13450 ?*) ac_cv_sizeof_char=$ac_lo;;
13451 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13452 See \`config.log' for more details." >&5
13453 echo "$as_me: error: cannot compute sizeof (char), 77
13454 See \`config.log' for more details." >&2;}
13455    { (exit 1); exit 1; }; } ;;
13456 esac
13457 else
13458   if test "$cross_compiling" = yes; then
13459   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13460 See \`config.log' for more details." >&5
13461 echo "$as_me: error: cannot run test program while cross compiling
13462 See \`config.log' for more details." >&2;}
13463    { (exit 1); exit 1; }; }
13464 else
13465   cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472 $ac_includes_default
13473 long longval () { return (long) (sizeof (char)); }
13474 unsigned long ulongval () { return (long) (sizeof (char)); }
13475 #include <stdio.h>
13476 #include <stdlib.h>
13477 int
13478 main ()
13479 {
13480
13481   FILE *f = fopen ("conftest.val", "w");
13482   if (! f)
13483     exit (1);
13484   if (((long) (sizeof (char))) < 0)
13485     {
13486       long i = longval ();
13487       if (i != ((long) (sizeof (char))))
13488         exit (1);
13489       fprintf (f, "%ld\n", i);
13490     }
13491   else
13492     {
13493       unsigned long i = ulongval ();
13494       if (i != ((long) (sizeof (char))))
13495         exit (1);
13496       fprintf (f, "%lu\n", i);
13497     }
13498   exit (ferror (f) || fclose (f) != 0);
13499
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506   (eval $ac_link) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511   (eval $ac_try) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; }; then
13515   ac_cv_sizeof_char=`cat conftest.val`
13516 else
13517   echo "$as_me: program exited with status $ac_status" >&5
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ( exit $ac_status )
13522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13523 See \`config.log' for more details." >&5
13524 echo "$as_me: error: cannot compute sizeof (char), 77
13525 See \`config.log' for more details." >&2;}
13526    { (exit 1); exit 1; }; }
13527 fi
13528 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13529 fi
13530 fi
13531 rm -f conftest.val
13532 else
13533   ac_cv_sizeof_char=0
13534 fi
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13537 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13538 cat >>confdefs.h <<_ACEOF
13539 #define SIZEOF_CHAR $ac_cv_sizeof_char
13540 _ACEOF
13541
13542
13543 echo "$as_me:$LINENO: checking for short int" >&5
13544 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13545 if test "${ac_cv_type_short_int+set}" = set; then
13546   echo $ECHO_N "(cached) $ECHO_C" >&6
13547 else
13548   cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 int
13557 main ()
13558 {
13559 if ((short int *) 0)
13560   return 0;
13561 if (sizeof (short int))
13562   return 0;
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569   (eval $ac_compile) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -s conftest.$ac_objext'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_cv_type_short_int=yes
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_cv_type_short_int=no
13585 fi
13586 rm -f conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13589 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13590
13591 echo "$as_me:$LINENO: checking size of short int" >&5
13592 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13593 if test "${ac_cv_sizeof_short_int+set}" = set; then
13594   echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596   if test "$ac_cv_type_short_int" = yes; then
13597   # The cast to unsigned long works around a bug in the HP C Compiler
13598   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13599   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13600   # This bug is HP SR number 8606223364.
13601   if test "$cross_compiling" = yes; then
13602   # Depending upon the size, compute the lo and hi bounds.
13603 cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 $ac_includes_default
13611 int
13612 main ()
13613 {
13614 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13615 test_array [0] = 0
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623   (eval $ac_compile) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -s conftest.$ac_objext'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_lo=0 ac_mid=0
13634   while :; do
13635     cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642 $ac_includes_default
13643 int
13644 main ()
13645 {
13646 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13647 test_array [0] = 0
13648
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655   (eval $ac_compile) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } &&
13659          { ac_try='test -s conftest.$ac_objext'
13660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661   (eval $ac_try) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_hi=$ac_mid; break
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ac_lo=`expr $ac_mid + 1`
13671                     if test $ac_lo -le $ac_mid; then
13672                       ac_lo= ac_hi=
13673                       break
13674                     fi
13675                     ac_mid=`expr 2 '*' $ac_mid + 1`
13676 fi
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13678   done
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 cat >conftest.$ac_ext <<_ACEOF
13684 #line $LINENO "configure"
13685 /* confdefs.h.  */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h.  */
13690 $ac_includes_default
13691 int
13692 main ()
13693 {
13694 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13695 test_array [0] = 0
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703   (eval $ac_compile) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -s conftest.$ac_objext'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_hi=-1 ac_mid=-1
13714   while :; do
13715     cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 $ac_includes_default
13723 int
13724 main ()
13725 {
13726 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13727 test_array [0] = 0
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735   (eval $ac_compile) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -s conftest.$ac_objext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_lo=$ac_mid; break
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ac_hi=`expr '(' $ac_mid ')' - 1`
13751                        if test $ac_mid -le $ac_hi; then
13752                          ac_lo= ac_hi=
13753                          break
13754                        fi
13755                        ac_mid=`expr 2 '*' $ac_mid`
13756 fi
13757 rm -f conftest.$ac_objext conftest.$ac_ext
13758   done
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_lo= ac_hi=
13764 fi
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13766 fi
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13768 # Binary search between lo and hi bounds.
13769 while test "x$ac_lo" != "x$ac_hi"; do
13770   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13771   cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 $ac_includes_default
13779 int
13780 main ()
13781 {
13782 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13783 test_array [0] = 0
13784
13785   ;
13786   return 0;
13787 }
13788 _ACEOF
13789 rm -f conftest.$ac_objext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13791   (eval $ac_compile) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); } &&
13795          { ac_try='test -s conftest.$ac_objext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801   ac_hi=$ac_mid
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_lo=`expr '(' $ac_mid ')' + 1`
13807 fi
13808 rm -f conftest.$ac_objext conftest.$ac_ext
13809 done
13810 case $ac_lo in
13811 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13813 See \`config.log' for more details." >&5
13814 echo "$as_me: error: cannot compute sizeof (short int), 77
13815 See \`config.log' for more details." >&2;}
13816    { (exit 1); exit 1; }; } ;;
13817 esac
13818 else
13819   if test "$cross_compiling" = yes; then
13820   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13821 See \`config.log' for more details." >&5
13822 echo "$as_me: error: cannot run test program while cross compiling
13823 See \`config.log' for more details." >&2;}
13824    { (exit 1); exit 1; }; }
13825 else
13826   cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 $ac_includes_default
13834 long longval () { return (long) (sizeof (short int)); }
13835 unsigned long ulongval () { return (long) (sizeof (short int)); }
13836 #include <stdio.h>
13837 #include <stdlib.h>
13838 int
13839 main ()
13840 {
13841
13842   FILE *f = fopen ("conftest.val", "w");
13843   if (! f)
13844     exit (1);
13845   if (((long) (sizeof (short int))) < 0)
13846     {
13847       long i = longval ();
13848       if (i != ((long) (sizeof (short int))))
13849         exit (1);
13850       fprintf (f, "%ld\n", i);
13851     }
13852   else
13853     {
13854       unsigned long i = ulongval ();
13855       if (i != ((long) (sizeof (short int))))
13856         exit (1);
13857       fprintf (f, "%lu\n", i);
13858     }
13859   exit (ferror (f) || fclose (f) != 0);
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867   (eval $ac_link) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; }; then
13876   ac_cv_sizeof_short_int=`cat conftest.val`
13877 else
13878   echo "$as_me: program exited with status $ac_status" >&5
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882 ( exit $ac_status )
13883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13884 See \`config.log' for more details." >&5
13885 echo "$as_me: error: cannot compute sizeof (short int), 77
13886 See \`config.log' for more details." >&2;}
13887    { (exit 1); exit 1; }; }
13888 fi
13889 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13890 fi
13891 fi
13892 rm -f conftest.val
13893 else
13894   ac_cv_sizeof_short_int=0
13895 fi
13896 fi
13897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13898 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13899 cat >>confdefs.h <<_ACEOF
13900 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13901 _ACEOF
13902
13903
13904 echo "$as_me:$LINENO: checking for int" >&5
13905 echo $ECHO_N "checking for int... $ECHO_C" >&6
13906 if test "${ac_cv_type_int+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 $ac_includes_default
13917 int
13918 main ()
13919 {
13920 if ((int *) 0)
13921   return 0;
13922 if (sizeof (int))
13923   return 0;
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930   (eval $ac_compile) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -s conftest.$ac_objext'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   ac_cv_type_int=yes
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_cv_type_int=no
13946 fi
13947 rm -f conftest.$ac_objext conftest.$ac_ext
13948 fi
13949 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13950 echo "${ECHO_T}$ac_cv_type_int" >&6
13951
13952 echo "$as_me:$LINENO: checking size of int" >&5
13953 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13954 if test "${ac_cv_sizeof_int+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   if test "$ac_cv_type_int" = yes; then
13958   # The cast to unsigned long works around a bug in the HP C Compiler
13959   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961   # This bug is HP SR number 8606223364.
13962   if test "$cross_compiling" = yes; then
13963   # Depending upon the size, compute the lo and hi bounds.
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 /* confdefs.h.  */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h.  */
13971 $ac_includes_default
13972 int
13973 main ()
13974 {
13975 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13976 test_array [0] = 0
13977
13978   ;
13979   return 0;
13980 }
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984   (eval $ac_compile) 2>&5
13985   ac_status=$?
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } &&
13988          { ac_try='test -s conftest.$ac_objext'
13989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990   (eval $ac_try) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; }; then
13994   ac_lo=0 ac_mid=0
13995   while :; do
13996     cat >conftest.$ac_ext <<_ACEOF
13997 #line $LINENO "configure"
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 $ac_includes_default
14004 int
14005 main ()
14006 {
14007 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14008 test_array [0] = 0
14009
14010   ;
14011   return 0;
14012 }
14013 _ACEOF
14014 rm -f conftest.$ac_objext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14016   (eval $ac_compile) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   ac_hi=$ac_mid; break
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031 ac_lo=`expr $ac_mid + 1`
14032                     if test $ac_lo -le $ac_mid; then
14033                       ac_lo= ac_hi=
14034                       break
14035                     fi
14036                     ac_mid=`expr 2 '*' $ac_mid + 1`
14037 fi
14038 rm -f conftest.$ac_objext conftest.$ac_ext
14039   done
14040 else
14041   echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line $LINENO "configure"
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 $ac_includes_default
14052 int
14053 main ()
14054 {
14055 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14056 test_array [0] = 0
14057
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064   (eval $ac_compile) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -s conftest.$ac_objext'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; }; then
14074   ac_hi=-1 ac_mid=-1
14075   while :; do
14076     cat >conftest.$ac_ext <<_ACEOF
14077 #line $LINENO "configure"
14078 /* confdefs.h.  */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h.  */
14083 $ac_includes_default
14084 int
14085 main ()
14086 {
14087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14088 test_array [0] = 0
14089
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096   (eval $ac_compile) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -s conftest.$ac_objext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_lo=$ac_mid; break
14107 else
14108   echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 ac_hi=`expr '(' $ac_mid ')' - 1`
14112                        if test $ac_mid -le $ac_hi; then
14113                          ac_lo= ac_hi=
14114                          break
14115                        fi
14116                        ac_mid=`expr 2 '*' $ac_mid`
14117 fi
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14119   done
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_lo= ac_hi=
14125 fi
14126 rm -f conftest.$ac_objext conftest.$ac_ext
14127 fi
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14129 # Binary search between lo and hi bounds.
14130 while test "x$ac_lo" != "x$ac_hi"; do
14131   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14132   cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14134 /* confdefs.h.  */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h.  */
14139 $ac_includes_default
14140 int
14141 main ()
14142 {
14143 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14144 test_array [0] = 0
14145
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest.$ac_objext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152   (eval $ac_compile) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); } &&
14156          { ac_try='test -s conftest.$ac_objext'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_hi=$ac_mid
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_lo=`expr '(' $ac_mid ')' + 1`
14168 fi
14169 rm -f conftest.$ac_objext conftest.$ac_ext
14170 done
14171 case $ac_lo in
14172 ?*) ac_cv_sizeof_int=$ac_lo;;
14173 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14174 See \`config.log' for more details." >&5
14175 echo "$as_me: error: cannot compute sizeof (int), 77
14176 See \`config.log' for more details." >&2;}
14177    { (exit 1); exit 1; }; } ;;
14178 esac
14179 else
14180   if test "$cross_compiling" = yes; then
14181   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14182 See \`config.log' for more details." >&5
14183 echo "$as_me: error: cannot run test program while cross compiling
14184 See \`config.log' for more details." >&2;}
14185    { (exit 1); exit 1; }; }
14186 else
14187   cat >conftest.$ac_ext <<_ACEOF
14188 #line $LINENO "configure"
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 $ac_includes_default
14195 long longval () { return (long) (sizeof (int)); }
14196 unsigned long ulongval () { return (long) (sizeof (int)); }
14197 #include <stdio.h>
14198 #include <stdlib.h>
14199 int
14200 main ()
14201 {
14202
14203   FILE *f = fopen ("conftest.val", "w");
14204   if (! f)
14205     exit (1);
14206   if (((long) (sizeof (int))) < 0)
14207     {
14208       long i = longval ();
14209       if (i != ((long) (sizeof (int))))
14210         exit (1);
14211       fprintf (f, "%ld\n", i);
14212     }
14213   else
14214     {
14215       unsigned long i = ulongval ();
14216       if (i != ((long) (sizeof (int))))
14217         exit (1);
14218       fprintf (f, "%lu\n", i);
14219     }
14220   exit (ferror (f) || fclose (f) != 0);
14221
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228   (eval $ac_link) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_sizeof_int=`cat conftest.val`
14238 else
14239   echo "$as_me: program exited with status $ac_status" >&5
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ( exit $ac_status )
14244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14245 See \`config.log' for more details." >&5
14246 echo "$as_me: error: cannot compute sizeof (int), 77
14247 See \`config.log' for more details." >&2;}
14248    { (exit 1); exit 1; }; }
14249 fi
14250 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14251 fi
14252 fi
14253 rm -f conftest.val
14254 else
14255   ac_cv_sizeof_int=0
14256 fi
14257 fi
14258 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14259 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14260 cat >>confdefs.h <<_ACEOF
14261 #define SIZEOF_INT $ac_cv_sizeof_int
14262 _ACEOF
14263
14264
14265 echo "$as_me:$LINENO: checking for long int" >&5
14266 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14267 if test "${ac_cv_type_long_int+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 #line $LINENO "configure"
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277 $ac_includes_default
14278 int
14279 main ()
14280 {
14281 if ((long int *) 0)
14282   return 0;
14283 if (sizeof (long int))
14284   return 0;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291   (eval $ac_compile) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } &&
14295          { ac_try='test -s conftest.$ac_objext'
14296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297   (eval $ac_try) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }; then
14301   ac_cv_type_long_int=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_cv_type_long_int=no
14307 fi
14308 rm -f conftest.$ac_objext conftest.$ac_ext
14309 fi
14310 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14311 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14312
14313 echo "$as_me:$LINENO: checking size of long int" >&5
14314 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14315 if test "${ac_cv_sizeof_long_int+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   if test "$ac_cv_type_long_int" = yes; then
14319   # The cast to unsigned long works around a bug in the HP C Compiler
14320   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14321   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14322   # This bug is HP SR number 8606223364.
14323   if test "$cross_compiling" = yes; then
14324   # Depending upon the size, compute the lo and hi bounds.
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332 $ac_includes_default
14333 int
14334 main ()
14335 {
14336 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14337 test_array [0] = 0
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345   (eval $ac_compile) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_lo=0 ac_mid=0
14356   while :; do
14357     cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 $ac_includes_default
14365 int
14366 main ()
14367 {
14368 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14369 test_array [0] = 0
14370
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377   (eval $ac_compile) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_hi=$ac_mid; break
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_lo=`expr $ac_mid + 1`
14393                     if test $ac_lo -le $ac_mid; then
14394                       ac_lo= ac_hi=
14395                       break
14396                     fi
14397                     ac_mid=`expr 2 '*' $ac_mid + 1`
14398 fi
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14400   done
14401 else
14402   echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 $ac_includes_default
14413 int
14414 main ()
14415 {
14416 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14417 test_array [0] = 0
14418
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425   (eval $ac_compile) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -s conftest.$ac_objext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_hi=-1 ac_mid=-1
14436   while :; do
14437     cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 $ac_includes_default
14445 int
14446 main ()
14447 {
14448 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14449 test_array [0] = 0
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457   (eval $ac_compile) 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -s conftest.$ac_objext'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   ac_lo=$ac_mid; break
14468 else
14469   echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ac_hi=`expr '(' $ac_mid ')' - 1`
14473                        if test $ac_mid -le $ac_hi; then
14474                          ac_lo= ac_hi=
14475                          break
14476                        fi
14477                        ac_mid=`expr 2 '*' $ac_mid`
14478 fi
14479 rm -f conftest.$ac_objext conftest.$ac_ext
14480   done
14481 else
14482   echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14484
14485 ac_lo= ac_hi=
14486 fi
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14488 fi
14489 rm -f conftest.$ac_objext conftest.$ac_ext
14490 # Binary search between lo and hi bounds.
14491 while test "x$ac_lo" != "x$ac_hi"; do
14492   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14493   cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 $ac_includes_default
14501 int
14502 main ()
14503 {
14504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14505 test_array [0] = 0
14506
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513   (eval $ac_compile) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -s conftest.$ac_objext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_hi=$ac_mid
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_lo=`expr '(' $ac_mid ')' + 1`
14529 fi
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14531 done
14532 case $ac_lo in
14533 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14535 See \`config.log' for more details." >&5
14536 echo "$as_me: error: cannot compute sizeof (long int), 77
14537 See \`config.log' for more details." >&2;}
14538    { (exit 1); exit 1; }; } ;;
14539 esac
14540 else
14541   if test "$cross_compiling" = yes; then
14542   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14543 See \`config.log' for more details." >&5
14544 echo "$as_me: error: cannot run test program while cross compiling
14545 See \`config.log' for more details." >&2;}
14546    { (exit 1); exit 1; }; }
14547 else
14548   cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555 $ac_includes_default
14556 long longval () { return (long) (sizeof (long int)); }
14557 unsigned long ulongval () { return (long) (sizeof (long int)); }
14558 #include <stdio.h>
14559 #include <stdlib.h>
14560 int
14561 main ()
14562 {
14563
14564   FILE *f = fopen ("conftest.val", "w");
14565   if (! f)
14566     exit (1);
14567   if (((long) (sizeof (long int))) < 0)
14568     {
14569       long i = longval ();
14570       if (i != ((long) (sizeof (long int))))
14571         exit (1);
14572       fprintf (f, "%ld\n", i);
14573     }
14574   else
14575     {
14576       unsigned long i = ulongval ();
14577       if (i != ((long) (sizeof (long int))))
14578         exit (1);
14579       fprintf (f, "%lu\n", i);
14580     }
14581   exit (ferror (f) || fclose (f) != 0);
14582
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest$ac_exeext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14589   (eval $ac_link) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   ac_cv_sizeof_long_int=`cat conftest.val`
14599 else
14600   echo "$as_me: program exited with status $ac_status" >&5
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ( exit $ac_status )
14605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14606 See \`config.log' for more details." >&5
14607 echo "$as_me: error: cannot compute sizeof (long int), 77
14608 See \`config.log' for more details." >&2;}
14609    { (exit 1); exit 1; }; }
14610 fi
14611 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14612 fi
14613 fi
14614 rm -f conftest.val
14615 else
14616   ac_cv_sizeof_long_int=0
14617 fi
14618 fi
14619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14620 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14621 cat >>confdefs.h <<_ACEOF
14622 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14623 _ACEOF
14624
14625
14626 echo "$as_me:$LINENO: checking for long long int" >&5
14627 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14628 if test "${ac_cv_type_long_long_int+set}" = set; then
14629   echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631   cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 /* confdefs.h.  */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h.  */
14638 $ac_includes_default
14639 int
14640 main ()
14641 {
14642 if ((long long int *) 0)
14643   return 0;
14644 if (sizeof (long long int))
14645   return 0;
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652   (eval $ac_compile) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -s conftest.$ac_objext'
14657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658   (eval $ac_try) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }; then
14662   ac_cv_type_long_long_int=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_cv_type_long_long_int=no
14668 fi
14669 rm -f conftest.$ac_objext conftest.$ac_ext
14670 fi
14671 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14672 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14673
14674 echo "$as_me:$LINENO: checking size of long long int" >&5
14675 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14676 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   if test "$ac_cv_type_long_long_int" = yes; then
14680   # The cast to unsigned long works around a bug in the HP C Compiler
14681   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14682   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14683   # This bug is HP SR number 8606223364.
14684   if test "$cross_compiling" = yes; then
14685   # Depending upon the size, compute the lo and hi bounds.
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693 $ac_includes_default
14694 int
14695 main ()
14696 {
14697 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14698 test_array [0] = 0
14699
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } &&
14710          { ac_try='test -s conftest.$ac_objext'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716   ac_lo=0 ac_mid=0
14717   while :; do
14718     cat >conftest.$ac_ext <<_ACEOF
14719 #line $LINENO "configure"
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 $ac_includes_default
14726 int
14727 main ()
14728 {
14729 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14730 test_array [0] = 0
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738   (eval $ac_compile) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -s conftest.$ac_objext'
14743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744   (eval $ac_try) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; }; then
14748   ac_hi=$ac_mid; break
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_lo=`expr $ac_mid + 1`
14754                     if test $ac_lo -le $ac_mid; then
14755                       ac_lo= ac_hi=
14756                       break
14757                     fi
14758                     ac_mid=`expr 2 '*' $ac_mid + 1`
14759 fi
14760 rm -f conftest.$ac_objext conftest.$ac_ext
14761   done
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 cat >conftest.$ac_ext <<_ACEOF
14767 #line $LINENO "configure"
14768 /* confdefs.h.  */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h.  */
14773 $ac_includes_default
14774 int
14775 main ()
14776 {
14777 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14778 test_array [0] = 0
14779
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14786   (eval $ac_compile) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } &&
14790          { ac_try='test -s conftest.$ac_objext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   ac_hi=-1 ac_mid=-1
14797   while :; do
14798     cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 int
14807 main ()
14808 {
14809 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14810 test_array [0] = 0
14811
14812   ;
14813   return 0;
14814 }
14815 _ACEOF
14816 rm -f conftest.$ac_objext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14818   (eval $ac_compile) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -s conftest.$ac_objext'
14823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824   (eval $ac_try) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; }; then
14828   ac_lo=$ac_mid; break
14829 else
14830   echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_hi=`expr '(' $ac_mid ')' - 1`
14834                        if test $ac_mid -le $ac_hi; then
14835                          ac_lo= ac_hi=
14836                          break
14837                        fi
14838                        ac_mid=`expr 2 '*' $ac_mid`
14839 fi
14840 rm -f conftest.$ac_objext conftest.$ac_ext
14841   done
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 ac_lo= ac_hi=
14847 fi
14848 rm -f conftest.$ac_objext conftest.$ac_ext
14849 fi
14850 rm -f conftest.$ac_objext conftest.$ac_ext
14851 # Binary search between lo and hi bounds.
14852 while test "x$ac_lo" != "x$ac_hi"; do
14853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14854   cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 $ac_includes_default
14862 int
14863 main ()
14864 {
14865 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14866 test_array [0] = 0
14867
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874   (eval $ac_compile) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } &&
14878          { ac_try='test -s conftest.$ac_objext'
14879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880   (eval $ac_try) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; }; then
14884   ac_hi=$ac_mid
14885 else
14886   echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889 ac_lo=`expr '(' $ac_mid ')' + 1`
14890 fi
14891 rm -f conftest.$ac_objext conftest.$ac_ext
14892 done
14893 case $ac_lo in
14894 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14895 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14896 See \`config.log' for more details." >&5
14897 echo "$as_me: error: cannot compute sizeof (long long int), 77
14898 See \`config.log' for more details." >&2;}
14899    { (exit 1); exit 1; }; } ;;
14900 esac
14901 else
14902   if test "$cross_compiling" = yes; then
14903   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14904 See \`config.log' for more details." >&5
14905 echo "$as_me: error: cannot run test program while cross compiling
14906 See \`config.log' for more details." >&2;}
14907    { (exit 1); exit 1; }; }
14908 else
14909   cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916 $ac_includes_default
14917 long longval () { return (long) (sizeof (long long int)); }
14918 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14919 #include <stdio.h>
14920 #include <stdlib.h>
14921 int
14922 main ()
14923 {
14924
14925   FILE *f = fopen ("conftest.val", "w");
14926   if (! f)
14927     exit (1);
14928   if (((long) (sizeof (long long int))) < 0)
14929     {
14930       long i = longval ();
14931       if (i != ((long) (sizeof (long long int))))
14932         exit (1);
14933       fprintf (f, "%ld\n", i);
14934     }
14935   else
14936     {
14937       unsigned long i = ulongval ();
14938       if (i != ((long) (sizeof (long long int))))
14939         exit (1);
14940       fprintf (f, "%lu\n", i);
14941     }
14942   exit (ferror (f) || fclose (f) != 0);
14943
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest$ac_exeext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950   (eval $ac_link) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   ac_cv_sizeof_long_long_int=`cat conftest.val`
14960 else
14961   echo "$as_me: program exited with status $ac_status" >&5
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ( exit $ac_status )
14966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14967 See \`config.log' for more details." >&5
14968 echo "$as_me: error: cannot compute sizeof (long long int), 77
14969 See \`config.log' for more details." >&2;}
14970    { (exit 1); exit 1; }; }
14971 fi
14972 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 fi
14974 fi
14975 rm -f conftest.val
14976 else
14977   ac_cv_sizeof_long_long_int=0
14978 fi
14979 fi
14980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14981 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14982 cat >>confdefs.h <<_ACEOF
14983 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14984 _ACEOF
14985
14986
14987 echo "$as_me:$LINENO: checking for int *" >&5
14988 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14989 if test "${ac_cv_type_int_p+set}" = set; then
14990   echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992   cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 /* confdefs.h.  */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h.  */
14999 $ac_includes_default
15000 int
15001 main ()
15002 {
15003 if ((int * *) 0)
15004   return 0;
15005 if (sizeof (int *))
15006   return 0;
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013   (eval $ac_compile) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } &&
15017          { ac_try='test -s conftest.$ac_objext'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }; then
15023   ac_cv_type_int_p=yes
15024 else
15025   echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 ac_cv_type_int_p=no
15029 fi
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15031 fi
15032 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15033 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15034
15035 echo "$as_me:$LINENO: checking size of int *" >&5
15036 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15037 if test "${ac_cv_sizeof_int_p+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   if test "$ac_cv_type_int_p" = yes; then
15041   # The cast to unsigned long works around a bug in the HP C Compiler
15042   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15043   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15044   # This bug is HP SR number 8606223364.
15045   if test "$cross_compiling" = yes; then
15046   # Depending upon the size, compute the lo and hi bounds.
15047 cat >conftest.$ac_ext <<_ACEOF
15048 #line $LINENO "configure"
15049 /* confdefs.h.  */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h.  */
15054 $ac_includes_default
15055 int
15056 main ()
15057 {
15058 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15059 test_array [0] = 0
15060
15061   ;
15062   return 0;
15063 }
15064 _ACEOF
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } &&
15071          { ac_try='test -s conftest.$ac_objext'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; }; then
15077   ac_lo=0 ac_mid=0
15078   while :; do
15079     cat >conftest.$ac_ext <<_ACEOF
15080 #line $LINENO "configure"
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15091 test_array [0] = 0
15092
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099   (eval $ac_compile) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } &&
15103          { ac_try='test -s conftest.$ac_objext'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; }; then
15109   ac_hi=$ac_mid; break
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 ac_lo=`expr $ac_mid + 1`
15115                     if test $ac_lo -le $ac_mid; then
15116                       ac_lo= ac_hi=
15117                       break
15118                     fi
15119                     ac_mid=`expr 2 '*' $ac_mid + 1`
15120 fi
15121 rm -f conftest.$ac_objext conftest.$ac_ext
15122   done
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 $ac_includes_default
15135 int
15136 main ()
15137 {
15138 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15139 test_array [0] = 0
15140
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15147   (eval $ac_compile) 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -s conftest.$ac_objext'
15152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153   (eval $ac_try) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; }; then
15157   ac_hi=-1 ac_mid=-1
15158   while :; do
15159     cat >conftest.$ac_ext <<_ACEOF
15160 #line $LINENO "configure"
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 $ac_includes_default
15167 int
15168 main ()
15169 {
15170 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15171 test_array [0] = 0
15172
15173   ;
15174   return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179   (eval $ac_compile) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } &&
15183          { ac_try='test -s conftest.$ac_objext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_lo=$ac_mid; break
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_hi=`expr '(' $ac_mid ')' - 1`
15195                        if test $ac_mid -le $ac_hi; then
15196                          ac_lo= ac_hi=
15197                          break
15198                        fi
15199                        ac_mid=`expr 2 '*' $ac_mid`
15200 fi
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15202   done
15203 else
15204   echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207 ac_lo= ac_hi=
15208 fi
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15210 fi
15211 rm -f conftest.$ac_objext conftest.$ac_ext
15212 # Binary search between lo and hi bounds.
15213 while test "x$ac_lo" != "x$ac_hi"; do
15214   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15215   cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 $ac_includes_default
15223 int
15224 main ()
15225 {
15226 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15227 test_array [0] = 0
15228
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235   (eval $ac_compile) 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -s conftest.$ac_objext'
15240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241   (eval $ac_try) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); }; }; then
15245   ac_hi=$ac_mid
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_lo=`expr '(' $ac_mid ')' + 1`
15251 fi
15252 rm -f conftest.$ac_objext conftest.$ac_ext
15253 done
15254 case $ac_lo in
15255 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15256 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot compute sizeof (int *), 77
15259 See \`config.log' for more details." >&2;}
15260    { (exit 1); exit 1; }; } ;;
15261 esac
15262 else
15263   if test "$cross_compiling" = yes; then
15264   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15265 See \`config.log' for more details." >&5
15266 echo "$as_me: error: cannot run test program while cross compiling
15267 See \`config.log' for more details." >&2;}
15268    { (exit 1); exit 1; }; }
15269 else
15270   cat >conftest.$ac_ext <<_ACEOF
15271 #line $LINENO "configure"
15272 /* confdefs.h.  */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h.  */
15277 $ac_includes_default
15278 long longval () { return (long) (sizeof (int *)); }
15279 unsigned long ulongval () { return (long) (sizeof (int *)); }
15280 #include <stdio.h>
15281 #include <stdlib.h>
15282 int
15283 main ()
15284 {
15285
15286   FILE *f = fopen ("conftest.val", "w");
15287   if (! f)
15288     exit (1);
15289   if (((long) (sizeof (int *))) < 0)
15290     {
15291       long i = longval ();
15292       if (i != ((long) (sizeof (int *))))
15293         exit (1);
15294       fprintf (f, "%ld\n", i);
15295     }
15296   else
15297     {
15298       unsigned long i = ulongval ();
15299       if (i != ((long) (sizeof (int *))))
15300         exit (1);
15301       fprintf (f, "%lu\n", i);
15302     }
15303   exit (ferror (f) || fclose (f) != 0);
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311   (eval $ac_link) 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316   (eval $ac_try) 2>&5
15317   ac_status=$?
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); }; }; then
15320   ac_cv_sizeof_int_p=`cat conftest.val`
15321 else
15322   echo "$as_me: program exited with status $ac_status" >&5
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326 ( exit $ac_status )
15327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot compute sizeof (int *), 77
15330 See \`config.log' for more details." >&2;}
15331    { (exit 1); exit 1; }; }
15332 fi
15333 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 fi
15336 rm -f conftest.val
15337 else
15338   ac_cv_sizeof_int_p=0
15339 fi
15340 fi
15341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15342 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15343 cat >>confdefs.h <<_ACEOF
15344 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15345 _ACEOF
15346
15347
15348
15349 # Check for sys/types.h types
15350 echo "$as_me:$LINENO: checking for u_int type" >&5
15351 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15352 if test "${ac_cv_have_u_int+set}" = set; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355
15356     cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363  #include <sys/types.h>
15364 int
15365 main ()
15366 {
15367  u_int a; a = 1;
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374   (eval $ac_compile) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -s conftest.$ac_objext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384    ac_cv_have_u_int="yes"
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389  ac_cv_have_u_int="no"
15390
15391 fi
15392 rm -f conftest.$ac_objext conftest.$ac_ext
15393
15394 fi
15395 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15396 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15397 if test "x$ac_cv_have_u_int" = "xyes" ; then
15398    cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_U_INT 1
15400 _ACEOF
15401
15402    have_u_int=1
15403 fi
15404
15405 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15406 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15407 if test "${ac_cv_have_intmax_t+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410
15411    cat >conftest.$ac_ext <<_ACEOF
15412 #line $LINENO "configure"
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418  #include <sys/types.h>
15419 int
15420 main ()
15421 {
15422  intmax_t a; a = 1;
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429   (eval $ac_compile) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439    ac_cv_have_intmax_t="yes"
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444
15445          cat >conftest.$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452  #include <stdint.h>
15453 int
15454 main ()
15455 {
15456  intmax_t a; a = 1;
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 rm -f conftest.$ac_objext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15463   (eval $ac_compile) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); } &&
15467          { ac_try='test -s conftest.$ac_objext'
15468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469   (eval $ac_try) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; }; then
15473    ac_cv_have_intmax_t="yes"
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478  ac_cv_have_intmax_t="no"
15479
15480 fi
15481 rm -f conftest.$ac_objext conftest.$ac_ext
15482
15483
15484 fi
15485 rm -f conftest.$ac_objext conftest.$ac_ext
15486
15487
15488 fi
15489 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15490 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15491 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15492    cat >>confdefs.h <<\_ACEOF
15493 #define HAVE_INTMAX_T 1
15494 _ACEOF
15495
15496    have_intmax_t=1
15497 fi
15498
15499
15500 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15501 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15502 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505
15506    cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513  #include <sys/types.h>
15514 int
15515 main ()
15516 {
15517  u_intmax_t a; a = 1;
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534    ac_cv_have_u_intmax_t="yes"
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539
15540          cat >conftest.$ac_ext <<_ACEOF
15541 #line $LINENO "configure"
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547  #include <stdint.h>
15548 int
15549 main ()
15550 {
15551  u_intmax_t a; a = 1;
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558   (eval $ac_compile) 2>&5
15559   ac_status=$?
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -s conftest.$ac_objext'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; }; then
15568    ac_cv_have_u_intmax_t="yes"
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573  ac_cv_have_u_intmax_t="no"
15574
15575 fi
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15577
15578
15579 fi
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15581
15582 fi
15583 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15584 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15585 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15586    cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_U_INTMAX_T 1
15588 _ACEOF
15589
15590    have_u_intmax_t=1
15591 fi
15592
15593
15594 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15595 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15596 if test "${ac_cv_have_intxx_t+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599
15600    cat >conftest.$ac_ext <<_ACEOF
15601 #line $LINENO "configure"
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607  #include <sys/types.h>
15608 int
15609 main ()
15610 {
15611  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -s conftest.$ac_objext'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628    ac_cv_have_intxx_t="yes"
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633  ac_cv_have_intxx_t="no"
15634
15635 fi
15636 rm -f conftest.$ac_objext conftest.$ac_ext
15637
15638 fi
15639 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15640 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15641 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15642    cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_INTXX_T 1
15644 _ACEOF
15645
15646    have_intxx_t=1
15647 fi
15648
15649 echo "$as_me:$LINENO: checking for int64_t type" >&5
15650 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15651 if test "${ac_cv_have_int64_t+set}" = set; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654
15655    cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662  #include <sys/types.h>
15663 int
15664 main ()
15665 {
15666  int64_t a; a = 1;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -s conftest.$ac_objext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683    ac_cv_have_int64_t="yes"
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688  ac_cv_have_int64_t="no"
15689
15690 fi
15691 rm -f conftest.$ac_objext conftest.$ac_ext
15692
15693 fi
15694 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15695 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15696 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15697    cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_INT64_T 1
15699 _ACEOF
15700
15701    have_int64_t=1
15702 fi
15703
15704 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15705 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15706 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709
15710    cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717  #include <sys/types.h>
15718 int
15719 main ()
15720 {
15721  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15722   ;
15723   return 0;
15724 }
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728   (eval $ac_compile) 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -s conftest.$ac_objext'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; }; then
15738    ac_cv_have_u_intxx_t="yes"
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743  ac_cv_have_u_intxx_t="no"
15744
15745 fi
15746 rm -f conftest.$ac_objext conftest.$ac_ext
15747
15748 fi
15749 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15750 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15751 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15752    cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_U_INTXX_T 1
15754 _ACEOF
15755
15756    have_u_intxx_t=1
15757 fi
15758
15759 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15760 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15761 if test "${ac_cv_have_u_int64_t+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764
15765    cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772  #include <sys/types.h>
15773 int
15774 main ()
15775 {
15776  u_int64_t a; a = 1;
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783   (eval $ac_compile) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } &&
15787          { ac_try='test -s conftest.$ac_objext'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793    ac_cv_have_u_int64_t="yes"
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798  ac_cv_have_u_int64_t="no"
15799
15800 fi
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15802
15803 fi
15804 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15805 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15806 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15807    cat >>confdefs.h <<\_ACEOF
15808 #define HAVE_U_INT64_T 1
15809 _ACEOF
15810
15811    have_u_int64_t=1
15812 fi
15813
15814 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15815            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15816 then
15817    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15818 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15819    cat >conftest.$ac_ext <<_ACEOF
15820 #line $LINENO "configure"
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826  #include <sys/bitypes.h>
15827 int
15828 main ()
15829 {
15830  int8_t a; int16_t b; int32_t c;
15831         u_int8_t e; u_int16_t f; u_int32_t g;
15832         a = b = c = e = f = g = 1;
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839   (eval $ac_compile) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -s conftest.$ac_objext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849    cat >>confdefs.h <<\_ACEOF
15850 #define HAVE_U_INTXX_T 1
15851 _ACEOF
15852
15853         cat >>confdefs.h <<\_ACEOF
15854 #define HAVE_INTXX_T 1
15855 _ACEOF
15856
15857         cat >>confdefs.h <<\_ACEOF
15858 #define HAVE_SYS_BITYPES_H 1
15859 _ACEOF
15860
15861         echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867  echo "$as_me:$LINENO: result: no" >&5
15868 echo "${ECHO_T}no" >&6
15869
15870 fi
15871 rm -f conftest.$ac_objext conftest.$ac_ext
15872 fi
15873
15874 if test -z "$have_u_intxx_t" ; then
15875    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15876 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15877 if test "${ac_cv_have_uintxx_t+set}" = set; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880
15881       cat >conftest.$ac_ext <<_ACEOF
15882 #line $LINENO "configure"
15883 /* confdefs.h.  */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h.  */
15888  #include <sys/types.h>
15889 int
15890 main ()
15891 {
15892  uint8_t a; uint16_t b;
15893            uint32_t c; a = b = c = 1;
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900   (eval $ac_compile) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910    ac_cv_have_uintxx_t="yes"
15911 else
15912   echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915  ac_cv_have_uintxx_t="no"
15916
15917 fi
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919
15920 fi
15921 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15922 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15923    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15924       cat >>confdefs.h <<\_ACEOF
15925 #define HAVE_UINTXX_T 1
15926 _ACEOF
15927
15928    fi
15929 fi
15930
15931 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15932           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15933 then
15934    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15935 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15936    cat >conftest.$ac_ext <<_ACEOF
15937 #line $LINENO "configure"
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943  #include <sys/bitypes.h>
15944 int
15945 main ()
15946 {
15947  int64_t a; u_int64_t b;
15948        a = b = 1;
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955   (eval $ac_compile) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } &&
15959          { ac_try='test -s conftest.$ac_objext'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; }; then
15965    cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_U_INT64_T 1
15967 _ACEOF
15968
15969        cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_INT64_T 1
15971 _ACEOF
15972
15973        echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979  echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6
15981
15982 fi
15983 rm -f conftest.$ac_objext conftest.$ac_ext
15984 fi
15985
15986 if (test -z "$have_uintxx_t" && \
15987           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15988 then
15989    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15990 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15991    cat >conftest.$ac_ext <<_ACEOF
15992 #line $LINENO "configure"
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998  #include <sys/bitypes.h>
15999 int
16000 main ()
16001 {
16002  uint8_t a; uint16_t b;
16003           uint32_t c; a = b = c = 1;
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010   (eval $ac_compile) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } &&
16014          { ac_try='test -s conftest.$ac_objext'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020    cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_UINTXX_T 1
16022 _ACEOF
16023
16024        echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030  echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16032
16033 fi
16034 rm -f conftest.$ac_objext conftest.$ac_ext
16035
16036 fi
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054 for ac_func in \
16055         fork \
16056         getcwd \
16057         gethostname \
16058         getpid \
16059         gettimeofday \
16060         setpgid \
16061         setpgrp \
16062         setsid \
16063         signal \
16064         strerror \
16065         strncmp \
16066         strncpy \
16067         vfprintf \
16068
16069 do
16070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16071 echo "$as_me:$LINENO: checking for $ac_func" >&5
16072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16073 if eval "test \"\${$as_ac_var+set}\" = set"; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 /* System header to define __stub macros and hopefully few prototypes,
16084     which can conflict with char $ac_func (); below.
16085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086     <limits.h> exists even on freestanding compilers.  */
16087 #ifdef __STDC__
16088 # include <limits.h>
16089 #else
16090 # include <assert.h>
16091 #endif
16092 /* Override any gcc2 internal prototype to avoid an error.  */
16093 #ifdef __cplusplus
16094 extern "C"
16095 {
16096 #endif
16097 /* We use char because int might match the return type of a gcc2
16098    builtin and then its argument prototype would still apply.  */
16099 char $ac_func ();
16100 /* The GNU C library defines this for functions which it implements
16101     to always fail with ENOSYS.  Some functions are actually named
16102     something starting with __ and the normal name is an alias.  */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 choke me
16105 #else
16106 char (*f) () = $ac_func;
16107 #endif
16108 #ifdef __cplusplus
16109 }
16110 #endif
16111
16112 int
16113 main ()
16114 {
16115 return f != $ac_func;
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122   (eval $ac_link) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); } &&
16126          { ac_try='test -s conftest$ac_exeext'
16127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128   (eval $ac_try) 2>&5
16129   ac_status=$?
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132   eval "$as_ac_var=yes"
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 eval "$as_ac_var=no"
16138 fi
16139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16140 fi
16141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16143 if test `eval echo '${'$as_ac_var'}'` = yes; then
16144   cat >>confdefs.h <<_ACEOF
16145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16146 _ACEOF
16147
16148 else
16149   echo 'configure: cannot find needed function.'; exit 1
16150
16151 fi
16152 done
16153
16154
16155
16156 for ac_func in fchdir
16157 do
16158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16159 echo "$as_me:$LINENO: checking for $ac_func" >&5
16160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16161 if eval "test \"\${$as_ac_var+set}\" = set"; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16166 /* confdefs.h.  */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h.  */
16171 /* System header to define __stub macros and hopefully few prototypes,
16172     which can conflict with char $ac_func (); below.
16173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16174     <limits.h> exists even on freestanding compilers.  */
16175 #ifdef __STDC__
16176 # include <limits.h>
16177 #else
16178 # include <assert.h>
16179 #endif
16180 /* Override any gcc2 internal prototype to avoid an error.  */
16181 #ifdef __cplusplus
16182 extern "C"
16183 {
16184 #endif
16185 /* We use char because int might match the return type of a gcc2
16186    builtin and then its argument prototype would still apply.  */
16187 char $ac_func ();
16188 /* The GNU C library defines this for functions which it implements
16189     to always fail with ENOSYS.  Some functions are actually named
16190     something starting with __ and the normal name is an alias.  */
16191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192 choke me
16193 #else
16194 char (*f) () = $ac_func;
16195 #endif
16196 #ifdef __cplusplus
16197 }
16198 #endif
16199
16200 int
16201 main ()
16202 {
16203 return f != $ac_func;
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210   (eval $ac_link) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } &&
16214          { ac_try='test -s conftest$ac_exeext'
16215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   eval "$as_ac_var=yes"
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 eval "$as_ac_var=no"
16226 fi
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228 fi
16229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16231 if test `eval echo '${'$as_ac_var'}'` = yes; then
16232   cat >>confdefs.h <<_ACEOF
16233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16234 _ACEOF
16235  cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_FCHDIR 1
16237 _ACEOF
16238
16239 fi
16240 done
16241
16242
16243 for ac_func in strtoll
16244 do
16245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16246 echo "$as_me:$LINENO: checking for $ac_func" >&5
16247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16248 if eval "test \"\${$as_ac_var+set}\" = set"; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258 /* System header to define __stub macros and hopefully few prototypes,
16259     which can conflict with char $ac_func (); below.
16260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16261     <limits.h> exists even on freestanding compilers.  */
16262 #ifdef __STDC__
16263 # include <limits.h>
16264 #else
16265 # include <assert.h>
16266 #endif
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 #ifdef __cplusplus
16269 extern "C"
16270 {
16271 #endif
16272 /* We use char because int might match the return type of a gcc2
16273    builtin and then its argument prototype would still apply.  */
16274 char $ac_func ();
16275 /* The GNU C library defines this for functions which it implements
16276     to always fail with ENOSYS.  Some functions are actually named
16277     something starting with __ and the normal name is an alias.  */
16278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279 choke me
16280 #else
16281 char (*f) () = $ac_func;
16282 #endif
16283 #ifdef __cplusplus
16284 }
16285 #endif
16286
16287 int
16288 main ()
16289 {
16290 return f != $ac_func;
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16297   (eval $ac_link) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); } &&
16301          { ac_try='test -s conftest$ac_exeext'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; }; then
16307   eval "$as_ac_var=yes"
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 eval "$as_ac_var=no"
16313 fi
16314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16315 fi
16316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16318 if test `eval echo '${'$as_ac_var'}'` = yes; then
16319   cat >>confdefs.h <<_ACEOF
16320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 _ACEOF
16322  cat >>confdefs.h <<\_ACEOF
16323 #define HAVE_STRTOLL 1
16324 _ACEOF
16325
16326 fi
16327 done
16328
16329
16330
16331 for ac_func in chflags
16332 do
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   cat >conftest.$ac_ext <<_ACEOF
16340 #line $LINENO "configure"
16341 /* confdefs.h.  */
16342 _ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h.  */
16346 /* System header to define __stub macros and hopefully few prototypes,
16347     which can conflict with char $ac_func (); below.
16348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16349     <limits.h> exists even on freestanding compilers.  */
16350 #ifdef __STDC__
16351 # include <limits.h>
16352 #else
16353 # include <assert.h>
16354 #endif
16355 /* Override any gcc2 internal prototype to avoid an error.  */
16356 #ifdef __cplusplus
16357 extern "C"
16358 {
16359 #endif
16360 /* We use char because int might match the return type of a gcc2
16361    builtin and then its argument prototype would still apply.  */
16362 char $ac_func ();
16363 /* The GNU C library defines this for functions which it implements
16364     to always fail with ENOSYS.  Some functions are actually named
16365     something starting with __ and the normal name is an alias.  */
16366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16367 choke me
16368 #else
16369 char (*f) () = $ac_func;
16370 #endif
16371 #ifdef __cplusplus
16372 }
16373 #endif
16374
16375 int
16376 main ()
16377 {
16378 return f != $ac_func;
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385   (eval $ac_link) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -s conftest$ac_exeext'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   eval "$as_ac_var=yes"
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 eval "$as_ac_var=no"
16401 fi
16402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16403 fi
16404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16406 if test `eval echo '${'$as_ac_var'}'` = yes; then
16407   cat >>confdefs.h <<_ACEOF
16408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16409 _ACEOF
16410
16411 fi
16412 done
16413
16414
16415
16416
16417
16418
16419 for ac_func in snprintf vsnprintf gethostid getdomainname
16420 do
16421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16422 echo "$as_me:$LINENO: checking for $ac_func" >&5
16423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16424 if eval "test \"\${$as_ac_var+set}\" = set"; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16429 /* confdefs.h.  */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h.  */
16434 /* System header to define __stub macros and hopefully few prototypes,
16435     which can conflict with char $ac_func (); below.
16436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437     <limits.h> exists even on freestanding compilers.  */
16438 #ifdef __STDC__
16439 # include <limits.h>
16440 #else
16441 # include <assert.h>
16442 #endif
16443 /* Override any gcc2 internal prototype to avoid an error.  */
16444 #ifdef __cplusplus
16445 extern "C"
16446 {
16447 #endif
16448 /* We use char because int might match the return type of a gcc2
16449    builtin and then its argument prototype would still apply.  */
16450 char $ac_func ();
16451 /* The GNU C library defines this for functions which it implements
16452     to always fail with ENOSYS.  Some functions are actually named
16453     something starting with __ and the normal name is an alias.  */
16454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16455 choke me
16456 #else
16457 char (*f) () = $ac_func;
16458 #endif
16459 #ifdef __cplusplus
16460 }
16461 #endif
16462
16463 int
16464 main ()
16465 {
16466 return f != $ac_func;
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473   (eval $ac_link) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } &&
16477          { ac_try='test -s conftest$ac_exeext'
16478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479   (eval $ac_try) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); }; }; then
16483   eval "$as_ac_var=yes"
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 eval "$as_ac_var=no"
16489 fi
16490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16491 fi
16492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495   cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16498
16499 fi
16500 done
16501
16502
16503
16504
16505
16506
16507 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16508 do
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16512 if eval "test \"\${$as_ac_var+set}\" = set"; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 #line $LINENO "configure"
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 /* System header to define __stub macros and hopefully few prototypes,
16523     which can conflict with char $ac_func (); below.
16524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16525     <limits.h> exists even on freestanding compilers.  */
16526 #ifdef __STDC__
16527 # include <limits.h>
16528 #else
16529 # include <assert.h>
16530 #endif
16531 /* Override any gcc2 internal prototype to avoid an error.  */
16532 #ifdef __cplusplus
16533 extern "C"
16534 {
16535 #endif
16536 /* We use char because int might match the return type of a gcc2
16537    builtin and then its argument prototype would still apply.  */
16538 char $ac_func ();
16539 /* The GNU C library defines this for functions which it implements
16540     to always fail with ENOSYS.  Some functions are actually named
16541     something starting with __ and the normal name is an alias.  */
16542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16543 choke me
16544 #else
16545 char (*f) () = $ac_func;
16546 #endif
16547 #ifdef __cplusplus
16548 }
16549 #endif
16550
16551 int
16552 main ()
16553 {
16554 return f != $ac_func;
16555   ;
16556   return 0;
16557 }
16558 _ACEOF
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16561   (eval $ac_link) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -s conftest$ac_exeext'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   eval "$as_ac_var=yes"
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 eval "$as_ac_var=no"
16577 fi
16578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16579 fi
16580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16582 if test `eval echo '${'$as_ac_var'}'` = yes; then
16583   cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16585 _ACEOF
16586
16587 fi
16588 done
16589
16590
16591 # If resolver functions are not in libc check for -lnsl or -lresolv.
16592 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16593 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16594 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   cat >conftest.$ac_ext <<_ACEOF
16598 #line $LINENO "configure"
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604 /* System header to define __stub macros and hopefully few prototypes,
16605     which can conflict with char gethostbyname_r (); below.
16606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607     <limits.h> exists even on freestanding compilers.  */
16608 #ifdef __STDC__
16609 # include <limits.h>
16610 #else
16611 # include <assert.h>
16612 #endif
16613 /* Override any gcc2 internal prototype to avoid an error.  */
16614 #ifdef __cplusplus
16615 extern "C"
16616 {
16617 #endif
16618 /* We use char because int might match the return type of a gcc2
16619    builtin and then its argument prototype would still apply.  */
16620 char gethostbyname_r ();
16621 /* The GNU C library defines this for functions which it implements
16622     to always fail with ENOSYS.  Some functions are actually named
16623     something starting with __ and the normal name is an alias.  */
16624 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16625 choke me
16626 #else
16627 char (*f) () = gethostbyname_r;
16628 #endif
16629 #ifdef __cplusplus
16630 }
16631 #endif
16632
16633 int
16634 main ()
16635 {
16636 return f != gethostbyname_r;
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643   (eval $ac_link) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ac_cv_func_gethostbyname_r=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_cv_func_gethostbyname_r=no
16659 fi
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661 fi
16662 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16663 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16664 if test $ac_cv_func_gethostbyname_r = yes; then
16665   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16666 echo "${ECHO_T}using libc's resolver" >&6
16667 else
16668
16669 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16670 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16671 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   ac_check_lib_save_LIBS=$LIBS
16675 LIBS="-lnsl  $LIBS"
16676 cat >conftest.$ac_ext <<_ACEOF
16677 #line $LINENO "configure"
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683
16684 /* Override any gcc2 internal prototype to avoid an error.  */
16685 #ifdef __cplusplus
16686 extern "C"
16687 #endif
16688 /* We use char because int might match the return type of a gcc2
16689    builtin and then its argument prototype would still apply.  */
16690 char gethostbyname_r ();
16691 int
16692 main ()
16693 {
16694 gethostbyname_r ();
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701   (eval $ac_link) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -s conftest$ac_exeext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_cv_lib_nsl_gethostbyname_r=yes
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_cv_lib_nsl_gethostbyname_r=no
16717 fi
16718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16719 LIBS=$ac_check_lib_save_LIBS
16720 fi
16721 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16722 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16723 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16724   cat >>confdefs.h <<_ACEOF
16725 #define HAVE_LIBNSL 1
16726 _ACEOF
16727
16728   LIBS="-lnsl $LIBS"
16729
16730 fi
16731
16732
16733 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16734 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16735 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16736   echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738   ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lresolv  $LIBS"
16740 cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747
16748 /* Override any gcc2 internal prototype to avoid an error.  */
16749 #ifdef __cplusplus
16750 extern "C"
16751 #endif
16752 /* We use char because int might match the return type of a gcc2
16753    builtin and then its argument prototype would still apply.  */
16754 char gethostbyname_r ();
16755 int
16756 main ()
16757 {
16758 gethostbyname_r ();
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765   (eval $ac_link) 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -s conftest$ac_exeext'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   ac_cv_lib_resolv_gethostbyname_r=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ac_cv_lib_resolv_gethostbyname_r=no
16781 fi
16782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS
16784 fi
16785 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16786 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16787 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16788   cat >>confdefs.h <<_ACEOF
16789 #define HAVE_LIBRESOLV 1
16790 _ACEOF
16791
16792   LIBS="-lresolv $LIBS"
16793
16794 fi
16795
16796 fi
16797
16798
16799
16800
16801
16802 for ac_func in inet_pton
16803 do
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16807 if eval "test \"\${$as_ac_var+set}\" = set"; then
16808   echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810   cat >conftest.$ac_ext <<_ACEOF
16811 #line $LINENO "configure"
16812 /* confdefs.h.  */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h.  */
16817 /* System header to define __stub macros and hopefully few prototypes,
16818     which can conflict with char $ac_func (); below.
16819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820     <limits.h> exists even on freestanding compilers.  */
16821 #ifdef __STDC__
16822 # include <limits.h>
16823 #else
16824 # include <assert.h>
16825 #endif
16826 /* Override any gcc2 internal prototype to avoid an error.  */
16827 #ifdef __cplusplus
16828 extern "C"
16829 {
16830 #endif
16831 /* We use char because int might match the return type of a gcc2
16832    builtin and then its argument prototype would still apply.  */
16833 char $ac_func ();
16834 /* The GNU C library defines this for functions which it implements
16835     to always fail with ENOSYS.  Some functions are actually named
16836     something starting with __ and the normal name is an alias.  */
16837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16838 choke me
16839 #else
16840 char (*f) () = $ac_func;
16841 #endif
16842 #ifdef __cplusplus
16843 }
16844 #endif
16845
16846 int
16847 main ()
16848 {
16849 return f != $ac_func;
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16856   (eval $ac_link) 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); } &&
16860          { ac_try='test -s conftest$ac_exeext'
16861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862   (eval $ac_try) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; }; then
16866   eval "$as_ac_var=yes"
16867 else
16868   echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 eval "$as_ac_var=no"
16872 fi
16873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16874 fi
16875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16877 if test `eval echo '${'$as_ac_var'}'` = yes; then
16878   cat >>confdefs.h <<_ACEOF
16879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16880 _ACEOF
16881  cat >>confdefs.h <<\_ACEOF
16882 #define HAVE_INET_PTON 1
16883 _ACEOF
16884
16885 fi
16886 done
16887
16888
16889 for ac_func in inet_ntop
16890 do
16891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16892 echo "$as_me:$LINENO: checking for $ac_func" >&5
16893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16894 if eval "test \"\${$as_ac_var+set}\" = set"; then
16895   echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897   cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904 /* System header to define __stub macros and hopefully few prototypes,
16905     which can conflict with char $ac_func (); below.
16906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16907     <limits.h> exists even on freestanding compilers.  */
16908 #ifdef __STDC__
16909 # include <limits.h>
16910 #else
16911 # include <assert.h>
16912 #endif
16913 /* Override any gcc2 internal prototype to avoid an error.  */
16914 #ifdef __cplusplus
16915 extern "C"
16916 {
16917 #endif
16918 /* We use char because int might match the return type of a gcc2
16919    builtin and then its argument prototype would still apply.  */
16920 char $ac_func ();
16921 /* The GNU C library defines this for functions which it implements
16922     to always fail with ENOSYS.  Some functions are actually named
16923     something starting with __ and the normal name is an alias.  */
16924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16925 choke me
16926 #else
16927 char (*f) () = $ac_func;
16928 #endif
16929 #ifdef __cplusplus
16930 }
16931 #endif
16932
16933 int
16934 main ()
16935 {
16936 return f != $ac_func;
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943   (eval $ac_link) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } &&
16947          { ac_try='test -s conftest$ac_exeext'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   eval "$as_ac_var=yes"
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 eval "$as_ac_var=no"
16959 fi
16960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16961 fi
16962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16964 if test `eval echo '${'$as_ac_var'}'` = yes; then
16965   cat >>confdefs.h <<_ACEOF
16966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16967 _ACEOF
16968  cat >>confdefs.h <<\_ACEOF
16969 #define HAVE_INET_NTOP 1
16970 _ACEOF
16971
16972 fi
16973 done
16974
16975
16976 for ac_func in gethostbyname2
16977 do
16978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16979 echo "$as_me:$LINENO: checking for $ac_func" >&5
16980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_var+set}\" = set"; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 /* System header to define __stub macros and hopefully few prototypes,
16992     which can conflict with char $ac_func (); below.
16993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994     <limits.h> exists even on freestanding compilers.  */
16995 #ifdef __STDC__
16996 # include <limits.h>
16997 #else
16998 # include <assert.h>
16999 #endif
17000 /* Override any gcc2 internal prototype to avoid an error.  */
17001 #ifdef __cplusplus
17002 extern "C"
17003 {
17004 #endif
17005 /* We use char because int might match the return type of a gcc2
17006    builtin and then its argument prototype would still apply.  */
17007 char $ac_func ();
17008 /* The GNU C library defines this for functions which it implements
17009     to always fail with ENOSYS.  Some functions are actually named
17010     something starting with __ and the normal name is an alias.  */
17011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17012 choke me
17013 #else
17014 char (*f) () = $ac_func;
17015 #endif
17016 #ifdef __cplusplus
17017 }
17018 #endif
17019
17020 int
17021 main ()
17022 {
17023 return f != $ac_func;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030   (eval $ac_link) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   eval "$as_ac_var=yes"
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 eval "$as_ac_var=no"
17046 fi
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048 fi
17049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17051 if test `eval echo '${'$as_ac_var'}'` = yes; then
17052   cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17054 _ACEOF
17055  cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_GETHOSTBYNAME2 1
17057 _ACEOF
17058
17059 fi
17060 done
17061
17062
17063 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17064 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17065 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17066   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068   cat >conftest.$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075 #include <sys/socket.h>
17076 int
17077 main ()
17078 {
17079 struct sockaddr s; s.sa_len;
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086   (eval $ac_compile) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -s conftest.$ac_objext'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_struct_sockaddr_sa_len=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_cv_struct_sockaddr_sa_len=no
17102 fi
17103 rm -f conftest.$ac_objext conftest.$ac_ext
17104 fi
17105 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17106 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17107
17108  if test $ac_cv_struct_sockaddr_sa_len = yes; then
17109
17110 cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_SA_LEN 1
17112 _ACEOF
17113
17114  fi
17115
17116
17117 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17118 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17119 if test "${ac_cv_ipv6_support+set}" = set; then
17120   echo $ECHO_N "(cached) $ECHO_C" >&6
17121 else
17122   cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129  #include <sys/types.h>
17130 #include <sys/socket.h>
17131 #include <netinet/in.h>
17132 int
17133 main ()
17134 {
17135 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17136  0;
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext 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); } &&
17147          { ac_try='test -s conftest$ac_exeext'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; }; then
17153   ac_cv_ipv6_support=yes
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ac_cv_ipv6_support=no
17159 fi
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17161 fi
17162 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17163 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17164
17165 if test "$ac_cv_ipv6_support" = yes; then
17166
17167 cat >>confdefs.h <<\_ACEOF
17168 #define HAVE_IPV6 1
17169 _ACEOF
17170
17171 fi
17172
17173
17174
17175
17176 for ac_func in strftime
17177 do
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17181 if eval "test \"\${$as_ac_var+set}\" = set"; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* System header to define __stub macros and hopefully few prototypes,
17192     which can conflict with char $ac_func (); below.
17193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17194     <limits.h> exists even on freestanding compilers.  */
17195 #ifdef __STDC__
17196 # include <limits.h>
17197 #else
17198 # include <assert.h>
17199 #endif
17200 /* Override any gcc2 internal prototype to avoid an error.  */
17201 #ifdef __cplusplus
17202 extern "C"
17203 {
17204 #endif
17205 /* We use char because int might match the return type of a gcc2
17206    builtin and then its argument prototype would still apply.  */
17207 char $ac_func ();
17208 /* The GNU C library defines this for functions which it implements
17209     to always fail with ENOSYS.  Some functions are actually named
17210     something starting with __ and the normal name is an alias.  */
17211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17212 choke me
17213 #else
17214 char (*f) () = $ac_func;
17215 #endif
17216 #ifdef __cplusplus
17217 }
17218 #endif
17219
17220 int
17221 main ()
17222 {
17223 return f != $ac_func;
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17230   (eval $ac_link) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } &&
17234          { ac_try='test -s conftest$ac_exeext'
17235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236   (eval $ac_try) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; }; then
17240   eval "$as_ac_var=yes"
17241 else
17242   echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 eval "$as_ac_var=no"
17246 fi
17247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17248 fi
17249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252   cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 _ACEOF
17255
17256 else
17257   # strftime is in -lintl on SCO UNIX.
17258 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17259 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-lintl  $LIBS"
17265 cat >conftest.$ac_ext <<_ACEOF
17266 #line $LINENO "configure"
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272
17273 /* Override any gcc2 internal prototype to avoid an error.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 /* We use char because int might match the return type of a gcc2
17278    builtin and then its argument prototype would still apply.  */
17279 char strftime ();
17280 int
17281 main ()
17282 {
17283 strftime ();
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290   (eval $ac_link) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -s conftest$ac_exeext'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; }; then
17300   ac_cv_lib_intl_strftime=yes
17301 else
17302   echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 ac_cv_lib_intl_strftime=no
17306 fi
17307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17309 fi
17310 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17311 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17312 if test $ac_cv_lib_intl_strftime = yes; then
17313   cat >>confdefs.h <<\_ACEOF
17314 #define HAVE_STRFTIME 1
17315 _ACEOF
17316
17317 LIBS="-lintl $LIBS"
17318 fi
17319
17320 fi
17321 done
17322
17323
17324 for ac_func in vprintf
17325 do
17326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17327 echo "$as_me:$LINENO: checking for $ac_func" >&5
17328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17329 if eval "test \"\${$as_ac_var+set}\" = set"; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   cat >conftest.$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339 /* System header to define __stub macros and hopefully few prototypes,
17340     which can conflict with char $ac_func (); below.
17341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17342     <limits.h> exists even on freestanding compilers.  */
17343 #ifdef __STDC__
17344 # include <limits.h>
17345 #else
17346 # include <assert.h>
17347 #endif
17348 /* Override any gcc2 internal prototype to avoid an error.  */
17349 #ifdef __cplusplus
17350 extern "C"
17351 {
17352 #endif
17353 /* We use char because int might match the return type of a gcc2
17354    builtin and then its argument prototype would still apply.  */
17355 char $ac_func ();
17356 /* The GNU C library defines this for functions which it implements
17357     to always fail with ENOSYS.  Some functions are actually named
17358     something starting with __ and the normal name is an alias.  */
17359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17360 choke me
17361 #else
17362 char (*f) () = $ac_func;
17363 #endif
17364 #ifdef __cplusplus
17365 }
17366 #endif
17367
17368 int
17369 main ()
17370 {
17371 return f != $ac_func;
17372   ;
17373   return 0;
17374 }
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378   (eval $ac_link) 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384   (eval $ac_try) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   eval "$as_ac_var=yes"
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 eval "$as_ac_var=no"
17394 fi
17395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17396 fi
17397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400   cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 _ACEOF
17403
17404 echo "$as_me:$LINENO: checking for _doprnt" >&5
17405 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17406 if test "${ac_cv_func__doprnt+set}" = set; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 #line $LINENO "configure"
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416 /* System header to define __stub macros and hopefully few prototypes,
17417     which can conflict with char _doprnt (); below.
17418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419     <limits.h> exists even on freestanding compilers.  */
17420 #ifdef __STDC__
17421 # include <limits.h>
17422 #else
17423 # include <assert.h>
17424 #endif
17425 /* Override any gcc2 internal prototype to avoid an error.  */
17426 #ifdef __cplusplus
17427 extern "C"
17428 {
17429 #endif
17430 /* We use char because int might match the return type of a gcc2
17431    builtin and then its argument prototype would still apply.  */
17432 char _doprnt ();
17433 /* The GNU C library defines this for functions which it implements
17434     to always fail with ENOSYS.  Some functions are actually named
17435     something starting with __ and the normal name is an alias.  */
17436 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17437 choke me
17438 #else
17439 char (*f) () = _doprnt;
17440 #endif
17441 #ifdef __cplusplus
17442 }
17443 #endif
17444
17445 int
17446 main ()
17447 {
17448 return f != _doprnt;
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455   (eval $ac_link) 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } &&
17459          { ac_try='test -s conftest$ac_exeext'
17460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461   (eval $ac_try) 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; }; then
17465   ac_cv_func__doprnt=yes
17466 else
17467   echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17469
17470 ac_cv_func__doprnt=no
17471 fi
17472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17473 fi
17474 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17476 if test $ac_cv_func__doprnt = yes; then
17477
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_DOPRNT 1
17480 _ACEOF
17481
17482 fi
17483
17484 fi
17485 done
17486
17487
17488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17489 # for constant arguments.  Useless!
17490 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17492 if test "${ac_cv_working_alloca_h+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496 #line $LINENO "configure"
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502 #include <alloca.h>
17503 int
17504 main ()
17505 {
17506 char *p = (char *) alloca (2 * sizeof (int));
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513   (eval $ac_link) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } &&
17517          { ac_try='test -s conftest$ac_exeext'
17518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519   (eval $ac_try) 2>&5
17520   ac_status=$?
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); }; }; then
17523   ac_cv_working_alloca_h=yes
17524 else
17525   echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528 ac_cv_working_alloca_h=no
17529 fi
17530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17531 fi
17532 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17533 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17534 if test $ac_cv_working_alloca_h = yes; then
17535
17536 cat >>confdefs.h <<\_ACEOF
17537 #define HAVE_ALLOCA_H 1
17538 _ACEOF
17539
17540 fi
17541
17542 echo "$as_me:$LINENO: checking for alloca" >&5
17543 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17544 if test "${ac_cv_func_alloca_works+set}" = set; then
17545   echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547   cat >conftest.$ac_ext <<_ACEOF
17548 #line $LINENO "configure"
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 #ifdef __GNUC__
17555 # define alloca __builtin_alloca
17556 #else
17557 # ifdef _MSC_VER
17558 #  include <malloc.h>
17559 #  define alloca _alloca
17560 # else
17561 #  if HAVE_ALLOCA_H
17562 #   include <alloca.h>
17563 #  else
17564 #   ifdef _AIX
17565  #pragma alloca
17566 #   else
17567 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17568 char *alloca ();
17569 #    endif
17570 #   endif
17571 #  endif
17572 # endif
17573 #endif
17574
17575 int
17576 main ()
17577 {
17578 char *p = (char *) alloca (1);
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585   (eval $ac_link) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -s conftest$ac_exeext'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; }; then
17595   ac_cv_func_alloca_works=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_cv_func_alloca_works=no
17601 fi
17602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17605 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17606
17607 if test $ac_cv_func_alloca_works = yes; then
17608
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_ALLOCA 1
17611 _ACEOF
17612
17613 else
17614   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17615 # that cause trouble.  Some versions do not even contain alloca or
17616 # contain a buggy version.  If you still want to use their alloca,
17617 # use ar to extract alloca.o from them instead of compiling alloca.c.
17618
17619 ALLOCA=alloca.$ac_objext
17620
17621 cat >>confdefs.h <<\_ACEOF
17622 #define C_ALLOCA 1
17623 _ACEOF
17624
17625
17626 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17627 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17628 if test "${ac_cv_os_cray+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   cat >conftest.$ac_ext <<_ACEOF
17632 #line $LINENO "configure"
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638 #if defined(CRAY) && ! defined(CRAY2)
17639 webecray
17640 #else
17641 wenotbecray
17642 #endif
17643
17644 _ACEOF
17645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17646   $EGREP "webecray" >/dev/null 2>&1; then
17647   ac_cv_os_cray=yes
17648 else
17649   ac_cv_os_cray=no
17650 fi
17651 rm -f conftest*
17652
17653 fi
17654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17655 echo "${ECHO_T}$ac_cv_os_cray" >&6
17656 if test $ac_cv_os_cray = yes; then
17657   for ac_func in _getb67 GETB67 getb67; do
17658     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17659 echo "$as_me:$LINENO: checking for $ac_func" >&5
17660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17661 if eval "test \"\${$as_ac_var+set}\" = set"; then
17662   echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664   cat >conftest.$ac_ext <<_ACEOF
17665 #line $LINENO "configure"
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671 /* System header to define __stub macros and hopefully few prototypes,
17672     which can conflict with char $ac_func (); below.
17673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674     <limits.h> exists even on freestanding compilers.  */
17675 #ifdef __STDC__
17676 # include <limits.h>
17677 #else
17678 # include <assert.h>
17679 #endif
17680 /* Override any gcc2 internal prototype to avoid an error.  */
17681 #ifdef __cplusplus
17682 extern "C"
17683 {
17684 #endif
17685 /* We use char because int might match the return type of a gcc2
17686    builtin and then its argument prototype would still apply.  */
17687 char $ac_func ();
17688 /* The GNU C library defines this for functions which it implements
17689     to always fail with ENOSYS.  Some functions are actually named
17690     something starting with __ and the normal name is an alias.  */
17691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17692 choke me
17693 #else
17694 char (*f) () = $ac_func;
17695 #endif
17696 #ifdef __cplusplus
17697 }
17698 #endif
17699
17700 int
17701 main ()
17702 {
17703 return f != $ac_func;
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -s conftest$ac_exeext'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; }; then
17720   eval "$as_ac_var=yes"
17721 else
17722   echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 eval "$as_ac_var=no"
17726 fi
17727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17728 fi
17729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define CRAY_STACKSEG_END $ac_func
17735 _ACEOF
17736
17737     break
17738 fi
17739
17740   done
17741 fi
17742
17743 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17744 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17745 if test "${ac_cv_c_stack_direction+set}" = set; then
17746   echo $ECHO_N "(cached) $ECHO_C" >&6
17747 else
17748   if test "$cross_compiling" = yes; then
17749   ac_cv_c_stack_direction=0
17750 else
17751   cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 int
17759 find_stack_direction ()
17760 {
17761   static char *addr = 0;
17762   auto char dummy;
17763   if (addr == 0)
17764     {
17765       addr = &dummy;
17766       return find_stack_direction ();
17767     }
17768   else
17769     return (&dummy > addr) ? 1 : -1;
17770 }
17771
17772 int
17773 main ()
17774 {
17775   exit (find_stack_direction () < 0);
17776 }
17777 _ACEOF
17778 rm -f conftest$ac_exeext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17780   (eval $ac_link) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   ac_cv_c_stack_direction=1
17790 else
17791   echo "$as_me: program exited with status $ac_status" >&5
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795 ( exit $ac_status )
17796 ac_cv_c_stack_direction=-1
17797 fi
17798 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17799 fi
17800 fi
17801 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17803
17804 cat >>confdefs.h <<_ACEOF
17805 #define STACK_DIRECTION $ac_cv_c_stack_direction
17806 _ACEOF
17807
17808
17809 fi
17810
17811 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17812 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17813 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17814 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lsun  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 #line $LINENO "configure"
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826
17827 /* Override any gcc2 internal prototype to avoid an error.  */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 /* We use char because int might match the return type of a gcc2
17832    builtin and then its argument prototype would still apply.  */
17833 char getmntent ();
17834 int
17835 main ()
17836 {
17837 getmntent ();
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext conftest$ac_exeext
17843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17844   (eval $ac_link) 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } &&
17848          { ac_try='test -s conftest$ac_exeext'
17849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850   (eval $ac_try) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; }; then
17854   ac_cv_lib_sun_getmntent=yes
17855 else
17856   echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 ac_cv_lib_sun_getmntent=no
17860 fi
17861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17865 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17866 if test $ac_cv_lib_sun_getmntent = yes; then
17867   LIBS="-lsun $LIBS"
17868 else
17869   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17870 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17871 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17872   echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874   ac_check_lib_save_LIBS=$LIBS
17875 LIBS="-lseq  $LIBS"
17876 cat >conftest.$ac_ext <<_ACEOF
17877 #line $LINENO "configure"
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883
17884 /* Override any gcc2 internal prototype to avoid an error.  */
17885 #ifdef __cplusplus
17886 extern "C"
17887 #endif
17888 /* We use char because int might match the return type of a gcc2
17889    builtin and then its argument prototype would still apply.  */
17890 char getmntent ();
17891 int
17892 main ()
17893 {
17894 getmntent ();
17895   ;
17896   return 0;
17897 }
17898 _ACEOF
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901   (eval $ac_link) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -s conftest$ac_exeext'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911   ac_cv_lib_seq_getmntent=yes
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916 ac_cv_lib_seq_getmntent=no
17917 fi
17918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17920 fi
17921 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17922 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17923 if test $ac_cv_lib_seq_getmntent = yes; then
17924   LIBS="-lseq $LIBS"
17925 else
17926   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17927 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17928 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   ac_check_lib_save_LIBS=$LIBS
17932 LIBS="-lgen  $LIBS"
17933 cat >conftest.$ac_ext <<_ACEOF
17934 #line $LINENO "configure"
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 /* Override any gcc2 internal prototype to avoid an error.  */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 /* We use char because int might match the return type of a gcc2
17946    builtin and then its argument prototype would still apply.  */
17947 char getmntent ();
17948 int
17949 main ()
17950 {
17951 getmntent ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958   (eval $ac_link) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } &&
17962          { ac_try='test -s conftest$ac_exeext'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   ac_cv_lib_gen_getmntent=yes
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 ac_cv_lib_gen_getmntent=no
17974 fi
17975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17977 fi
17978 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17979 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17980 if test $ac_cv_lib_gen_getmntent = yes; then
17981   LIBS="-lgen $LIBS"
17982 fi
17983
17984 fi
17985
17986 fi
17987
17988
17989 for ac_func in getmntent
17990 do
17991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17992 echo "$as_me:$LINENO: checking for $ac_func" >&5
17993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17994 if eval "test \"\${$as_ac_var+set}\" = set"; then
17995   echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997   cat >conftest.$ac_ext <<_ACEOF
17998 #line $LINENO "configure"
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004 /* System header to define __stub macros and hopefully few prototypes,
18005     which can conflict with char $ac_func (); below.
18006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007     <limits.h> exists even on freestanding compilers.  */
18008 #ifdef __STDC__
18009 # include <limits.h>
18010 #else
18011 # include <assert.h>
18012 #endif
18013 /* Override any gcc2 internal prototype to avoid an error.  */
18014 #ifdef __cplusplus
18015 extern "C"
18016 {
18017 #endif
18018 /* We use char because int might match the return type of a gcc2
18019    builtin and then its argument prototype would still apply.  */
18020 char $ac_func ();
18021 /* The GNU C library defines this for functions which it implements
18022     to always fail with ENOSYS.  Some functions are actually named
18023     something starting with __ and the normal name is an alias.  */
18024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18025 choke me
18026 #else
18027 char (*f) () = $ac_func;
18028 #endif
18029 #ifdef __cplusplus
18030 }
18031 #endif
18032
18033 int
18034 main ()
18035 {
18036 return f != $ac_func;
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043   (eval $ac_link) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -s conftest$ac_exeext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   eval "$as_ac_var=yes"
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 eval "$as_ac_var=no"
18059 fi
18060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18061 fi
18062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065   cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 fi
18070 done
18071
18072
18073 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18074 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18075 if test "${ac_cv_func_closedir_void+set}" = set; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078   if test "$cross_compiling" = yes; then
18079   ac_cv_func_closedir_void=yes
18080 else
18081   cat >conftest.$ac_ext <<_ACEOF
18082 #line $LINENO "configure"
18083 /* confdefs.h.  */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h.  */
18088 $ac_includes_default
18089 #include <$ac_header_dirent>
18090 #ifndef __cplusplus
18091 int closedir ();
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097 exit (closedir (opendir (".")) != 0);
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest$ac_exeext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104   (eval $ac_link) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_func_closedir_void=no
18114 else
18115   echo "$as_me: program exited with status $ac_status" >&5
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ( exit $ac_status )
18120 ac_cv_func_closedir_void=yes
18121 fi
18122 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18123 fi
18124 fi
18125 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18126 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18127 if test $ac_cv_func_closedir_void = yes; then
18128
18129 cat >>confdefs.h <<\_ACEOF
18130 #define CLOSEDIR_VOID 1
18131 _ACEOF
18132
18133 fi
18134
18135 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18136 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18137 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   if test "$cross_compiling" = yes; then
18141   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18142 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18143    { (exit 1); exit 1; }; }
18144 else
18145   cat >conftest.$ac_ext <<_ACEOF
18146 #line $LINENO "configure"
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152 #if HAVE_UNISTD_H
18153 # include <unistd.h>
18154 #endif
18155
18156 int
18157 main ()
18158 {
18159 /* If this system has a BSD-style setpgrp which takes arguments,
18160   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18161   exit successfully. */
18162   exit (setpgrp (1,1) == -1 ? 0 : 1);
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest$ac_exeext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169   (eval $ac_link) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174   (eval $ac_try) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; }; then
18178   ac_cv_func_setpgrp_void=no
18179 else
18180   echo "$as_me: program exited with status $ac_status" >&5
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ( exit $ac_status )
18185 ac_cv_func_setpgrp_void=yes
18186 fi
18187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18188 fi
18189 fi
18190 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18191 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18192 if test $ac_cv_func_setpgrp_void = yes; then
18193
18194 cat >>confdefs.h <<\_ACEOF
18195 #define SETPGRP_VOID 1
18196 _ACEOF
18197
18198 fi
18199                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18200 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18201 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18202   echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204   # Some versions of Solaris, SCO, and the GNU C Library
18205    # have a broken or incompatible fnmatch.
18206    # So we run a test program.  If we are cross-compiling, take no chance.
18207    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18208    if test "$cross_compiling" = yes; then
18209   ac_cv_func_fnmatch_works=cross
18210 else
18211   cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218 #include <fnmatch.h>
18219 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18220 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18221
18222 int
18223 main ()
18224 {
18225 exit
18226            (!(y ("a*", "abc", 0)
18227               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18228               && y ("a\\\\bc", "abc", 0)
18229               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18230               && y ("*x", ".x", 0)
18231               && n ("*x", ".x", FNM_PERIOD)
18232               && 1));
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 rm -f conftest$ac_exeext
18238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18239   (eval $ac_link) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   ac_cv_func_fnmatch_works=yes
18249 else
18250   echo "$as_me: program exited with status $ac_status" >&5
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 ( exit $ac_status )
18255 ac_cv_func_fnmatch_works=no
18256 fi
18257 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18258 fi
18259 fi
18260 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18261 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18262 if test $ac_cv_func_fnmatch_works = yes; then
18263
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE_FNMATCH 1
18266 _ACEOF
18267
18268 fi
18269
18270
18271
18272
18273
18274 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18275 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18276 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279   ac_check_lib_save_LIBS=$LIBS
18280 LIBS="-lxpg4  $LIBS"
18281 cat >conftest.$ac_ext <<_ACEOF
18282 #line $LINENO "configure"
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288
18289 /* Override any gcc2 internal prototype to avoid an error.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 /* We use char because int might match the return type of a gcc2
18294    builtin and then its argument prototype would still apply.  */
18295 char setlocale ();
18296 int
18297 main ()
18298 {
18299 setlocale ();
18300   ;
18301   return 0;
18302 }
18303 _ACEOF
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18306   (eval $ac_link) 2>&5
18307   ac_status=$?
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } &&
18310          { ac_try='test -s conftest$ac_exeext'
18311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312   (eval $ac_try) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; }; then
18316   ac_cv_lib_xpg4_setlocale=yes
18317 else
18318   echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 ac_cv_lib_xpg4_setlocale=no
18322 fi
18323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18325 fi
18326 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18327 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18328 if test $ac_cv_lib_xpg4_setlocale = yes; then
18329   LIBS="$LIBS -lxpg4"
18330 fi
18331
18332
18333
18334
18335 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18336 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18337 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   ac_check_lib_save_LIBS=$LIBS
18341 LIBS="-lsun  $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
18343 #line $LINENO "configure"
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 /* Override any gcc2 internal prototype to avoid an error.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 /* We use char because int might match the return type of a gcc2
18355    builtin and then its argument prototype would still apply.  */
18356 char getpwnam ();
18357 int
18358 main ()
18359 {
18360 getpwnam ();
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367   (eval $ac_link) 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } &&
18371          { ac_try='test -s conftest$ac_exeext'
18372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373   (eval $ac_try) 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; }; then
18377   ac_cv_lib_sun_getpwnam=yes
18378 else
18379   echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 ac_cv_lib_sun_getpwnam=no
18383 fi
18384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18388 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18389 if test $ac_cv_lib_sun_getpwnam = yes; then
18390   cat >>confdefs.h <<_ACEOF
18391 #define HAVE_LIBSUN 1
18392 _ACEOF
18393
18394   LIBS="-lsun $LIBS"
18395
18396 fi
18397
18398
18399
18400 for ac_header in zlib.h
18401 do
18402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18404   echo "$as_me:$LINENO: checking for $ac_header" >&5
18405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 fi
18409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18411 else
18412   # Is the header compilable?
18413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18416 #line $LINENO "configure"
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422 $ac_includes_default
18423 #include <$ac_header>
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427   (eval $ac_compile) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -s conftest.$ac_objext'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; }; then
18437   ac_header_compiler=yes
18438 else
18439   echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 ac_header_compiler=no
18443 fi
18444 rm -f conftest.$ac_objext conftest.$ac_ext
18445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18446 echo "${ECHO_T}$ac_header_compiler" >&6
18447
18448 # Is the header present?
18449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line $LINENO "configure"
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458 #include <$ac_header>
18459 _ACEOF
18460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } >/dev/null; then
18468   if test -s conftest.err; then
18469     ac_cpp_err=$ac_c_preproc_warn_flag
18470   else
18471     ac_cpp_err=
18472   fi
18473 else
18474   ac_cpp_err=yes
18475 fi
18476 if test -z "$ac_cpp_err"; then
18477   ac_header_preproc=yes
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482   ac_header_preproc=no
18483 fi
18484 rm -f conftest.err conftest.$ac_ext
18485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18486 echo "${ECHO_T}$ac_header_preproc" >&6
18487
18488 # So?  What about this header?
18489 case $ac_header_compiler:$ac_header_preproc in
18490   yes:no )
18491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18495     (
18496       cat <<\_ASBOX
18497 ## ------------------------------------ ##
18498 ## Report this to bug-autoconf@gnu.org. ##
18499 ## ------------------------------------ ##
18500 _ASBOX
18501     ) |
18502       sed "s/^/$as_me: WARNING:     /" >&2
18503     ;;
18504   no:yes )
18505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18507     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18511     (
18512       cat <<\_ASBOX
18513 ## ------------------------------------ ##
18514 ## Report this to bug-autoconf@gnu.org. ##
18515 ## ------------------------------------ ##
18516 _ASBOX
18517     ) |
18518       sed "s/^/$as_me: WARNING:     /" >&2
18519     ;;
18520 esac
18521 echo "$as_me:$LINENO: checking for $ac_header" >&5
18522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526   eval "$as_ac_Header=$ac_header_preproc"
18527 fi
18528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18530
18531 fi
18532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18533   cat >>confdefs.h <<_ACEOF
18534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18535 _ACEOF
18536
18537 fi
18538
18539 done
18540
18541 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18542 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18543 if test "${ac_cv_lib_z_deflate+set}" = set; then
18544   echo $ECHO_N "(cached) $ECHO_C" >&6
18545 else
18546   ac_check_lib_save_LIBS=$LIBS
18547 LIBS="-lz  $LIBS"
18548 cat >conftest.$ac_ext <<_ACEOF
18549 #line $LINENO "configure"
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any gcc2 internal prototype to avoid an error.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 /* We use char because int might match the return type of a gcc2
18561    builtin and then its argument prototype would still apply.  */
18562 char deflate ();
18563 int
18564 main ()
18565 {
18566 deflate ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573   (eval $ac_link) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } &&
18577          { ac_try='test -s conftest$ac_exeext'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; }; then
18583   ac_cv_lib_z_deflate=yes
18584 else
18585   echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588 ac_cv_lib_z_deflate=no
18589 fi
18590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18592 fi
18593 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18594 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18595 if test $ac_cv_lib_z_deflate = yes; then
18596   FDLIBS="-lz"
18597 fi
18598
18599 have_zlib=no
18600 if test x$FDLIBS = x-lz; then
18601   cat >>confdefs.h <<\_ACEOF
18602 #define HAVE_LIBZ 1
18603 _ACEOF
18604
18605   have_zlib=yes
18606 fi
18607
18608 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18609   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 fi
18614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18616 else
18617   # Is the header compilable?
18618 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18620 cat >conftest.$ac_ext <<_ACEOF
18621 #line $LINENO "configure"
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 $ac_includes_default
18628 #include <sys/acl.h>
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632   (eval $ac_compile) 2>&5
18633   ac_status=$?
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -s conftest.$ac_objext'
18637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638   (eval $ac_try) 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; }; then
18642   ac_header_compiler=yes
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647 ac_header_compiler=no
18648 fi
18649 rm -f conftest.$ac_objext conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18651 echo "${ECHO_T}$ac_header_compiler" >&6
18652
18653 # Is the header present?
18654 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18655 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18656 cat >conftest.$ac_ext <<_ACEOF
18657 #line $LINENO "configure"
18658 /* confdefs.h.  */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h.  */
18663 #include <sys/acl.h>
18664 _ACEOF
18665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18667   ac_status=$?
18668   grep -v '^ *+' conftest.er1 >conftest.err
18669   rm -f conftest.er1
18670   cat conftest.err >&5
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); } >/dev/null; then
18673   if test -s conftest.err; then
18674     ac_cpp_err=$ac_c_preproc_warn_flag
18675   else
18676     ac_cpp_err=
18677   fi
18678 else
18679   ac_cpp_err=yes
18680 fi
18681 if test -z "$ac_cpp_err"; then
18682   ac_header_preproc=yes
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687   ac_header_preproc=no
18688 fi
18689 rm -f conftest.err conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18691 echo "${ECHO_T}$ac_header_preproc" >&6
18692
18693 # So?  What about this header?
18694 case $ac_header_compiler:$ac_header_preproc in
18695   yes:no )
18696     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18697 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18698     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18699 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18700     (
18701       cat <<\_ASBOX
18702 ## ------------------------------------ ##
18703 ## Report this to bug-autoconf@gnu.org. ##
18704 ## ------------------------------------ ##
18705 _ASBOX
18706     ) |
18707       sed "s/^/$as_me: WARNING:     /" >&2
18708     ;;
18709   no:yes )
18710     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18711 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18712     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18713 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18714     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18715 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18716     (
18717       cat <<\_ASBOX
18718 ## ------------------------------------ ##
18719 ## Report this to bug-autoconf@gnu.org. ##
18720 ## ------------------------------------ ##
18721 _ASBOX
18722     ) |
18723       sed "s/^/$as_me: WARNING:     /" >&2
18724     ;;
18725 esac
18726 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18727 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18728 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   ac_cv_header_sys_acl_h=$ac_header_preproc
18732 fi
18733 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18734 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18735
18736 fi
18737
18738
18739 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18740 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18741 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lacl  $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 #line $LINENO "configure"
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753
18754 /* Override any gcc2 internal prototype to avoid an error.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 /* We use char because int might match the return type of a gcc2
18759    builtin and then its argument prototype would still apply.  */
18760 char acl_get_file ();
18761 int
18762 main ()
18763 {
18764 acl_get_file ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18771   (eval $ac_link) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } &&
18775          { ac_try='test -s conftest$ac_exeext'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; }; then
18781   ac_cv_lib_acl_acl_get_file=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_cv_lib_acl_acl_get_file=no
18787 fi
18788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18790 fi
18791 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18792 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18793 if test $ac_cv_lib_acl_acl_get_file = yes; then
18794   FDLIBS="-lacl $FDLIBS"
18795 fi
18796
18797 have_acl=no
18798 if test $ac_cv_lib_acl_acl_get_file = yes; then
18799    cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_ACL 1
18801 _ACEOF
18802
18803    have_acl=yes
18804 fi
18805
18806 PTHREAD_LIB=""
18807 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18808 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18809 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812   ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lpthread  $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 #line $LINENO "configure"
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821
18822 /* Override any gcc2 internal prototype to avoid an error.  */
18823 #ifdef __cplusplus
18824 extern "C"
18825 #endif
18826 /* We use char because int might match the return type of a gcc2
18827    builtin and then its argument prototype would still apply.  */
18828 char pthread_create ();
18829 int
18830 main ()
18831 {
18832 pthread_create ();
18833   ;
18834   return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839   (eval $ac_link) 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); } &&
18843          { ac_try='test -s conftest$ac_exeext'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; }; then
18849   ac_cv_lib_pthread_pthread_create=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 ac_cv_lib_pthread_pthread_create=no
18855 fi
18856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18860 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18861 if test $ac_cv_lib_pthread_pthread_create = yes; then
18862   PTHREAD_LIB="-lpthread"
18863 else
18864   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18865 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18866 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lpthreads  $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 #line $LINENO "configure"
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878
18879 /* Override any gcc2 internal prototype to avoid an error.  */
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 /* We use char because int might match the return type of a gcc2
18884    builtin and then its argument prototype would still apply.  */
18885 char pthread_create ();
18886 int
18887 main ()
18888 {
18889 pthread_create ();
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18896   (eval $ac_link) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } &&
18900          { ac_try='test -s conftest$ac_exeext'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; }; then
18906   ac_cv_lib_pthreads_pthread_create=yes
18907 else
18908   echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911 ac_cv_lib_pthreads_pthread_create=no
18912 fi
18913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18915 fi
18916 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18917 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18918 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18919   PTHREAD_LIB="-lpthreads"
18920 else
18921   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18922 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18923 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   ac_check_lib_save_LIBS=$LIBS
18927 LIBS="-lc_r  $LIBS"
18928 cat >conftest.$ac_ext <<_ACEOF
18929 #line $LINENO "configure"
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935
18936 /* Override any gcc2 internal prototype to avoid an error.  */
18937 #ifdef __cplusplus
18938 extern "C"
18939 #endif
18940 /* We use char because int might match the return type of a gcc2
18941    builtin and then its argument prototype would still apply.  */
18942 char pthread_create ();
18943 int
18944 main ()
18945 {
18946 pthread_create ();
18947   ;
18948   return 0;
18949 }
18950 _ACEOF
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18953   (eval $ac_link) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; }; then
18963   ac_cv_lib_c_r_pthread_create=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968 ac_cv_lib_c_r_pthread_create=no
18969 fi
18970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18971 LIBS=$ac_check_lib_save_LIBS
18972 fi
18973 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18974 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18975 if test $ac_cv_lib_c_r_pthread_create = yes; then
18976   PTHREAD_LIB="-lc_r"
18977 else
18978   echo "$as_me:$LINENO: checking for pthread_create" >&5
18979 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18980 if test "${ac_cv_func_pthread_create+set}" = set; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 /* confdefs.h.  */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h.  */
18990 /* System header to define __stub macros and hopefully few prototypes,
18991     which can conflict with char pthread_create (); below.
18992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993     <limits.h> exists even on freestanding compilers.  */
18994 #ifdef __STDC__
18995 # include <limits.h>
18996 #else
18997 # include <assert.h>
18998 #endif
18999 /* Override any gcc2 internal prototype to avoid an error.  */
19000 #ifdef __cplusplus
19001 extern "C"
19002 {
19003 #endif
19004 /* We use char because int might match the return type of a gcc2
19005    builtin and then its argument prototype would still apply.  */
19006 char pthread_create ();
19007 /* The GNU C library defines this for functions which it implements
19008     to always fail with ENOSYS.  Some functions are actually named
19009     something starting with __ and the normal name is an alias.  */
19010 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19011 choke me
19012 #else
19013 char (*f) () = pthread_create;
19014 #endif
19015 #ifdef __cplusplus
19016 }
19017 #endif
19018
19019 int
19020 main ()
19021 {
19022 return f != pthread_create;
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19029   (eval $ac_link) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } &&
19033          { ac_try='test -s conftest$ac_exeext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   ac_cv_func_pthread_create=yes
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 ac_cv_func_pthread_create=no
19045 fi
19046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19047 fi
19048 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19049 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19050
19051
19052 fi
19053
19054
19055 fi
19056
19057
19058 fi
19059
19060
19061
19062 cat >>confdefs.h <<\_ACEOF
19063 #define FDLIBS 1
19064 _ACEOF
19065
19066
19067
19068 CFLAGS=${CFLAGS--O}
19069 LDFLAGS=${LDFLAGS--O}
19070 DB_LIBS="${SQL_LFLAGS}"
19071
19072 CPPFLAGS="$CPPFLAGS"
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087 OBJLIST=
19088
19089
19090 lld="lld"
19091 llu="llu"
19092
19093 WCFLAGS=
19094 WLDFLAGS=
19095
19096 #
19097 # Finally we set appropriate distribution specific
19098 #  variables and defaults
19099 #
19100 # PFILES are platform specific files
19101 PFILES="platforms/Makefile"
19102 PSCMD="ps -e"
19103 WIN32=
19104 MACOSX=
19105 hostname=`uname -n | cut -d '.' -f 1`
19106 case "$DISTNAME" in
19107 aix)
19108         DISTVER=`uname -r`
19109         PSCMD="ps -e -o pid,comm"
19110         PFILES="${PFILES} \
19111            platforms/aix/Makefile"
19112         TAPEDRIVE="/dev/rmt0.1"
19113   ;;
19114 alpha)
19115         DISTVER=`uname -r`
19116         PTHREAD_LIB="-lpthread -lexc"
19117         if test "${CC}" = "gcc" ; then
19118            lld="lld"
19119            llu="llu"
19120         else
19121            lld="ld"
19122            llu="lu"
19123         fi
19124         TAPEDRIVE="/dev/nrmt0"
19125   ;;
19126 bsdi)
19127         DISTVER=`uname -a |awk '{print $3}'`
19128         TAPEDRIVE="/dev/nrmt0"
19129         PTHREAD_LIB="-pthread"
19130         CFLAGS="${CFLAGS} -pthread"
19131         PSCMD="ps -x -o pid,command"
19132         lld="qd"
19133         llu="qu"
19134         PFILES="${PFILES} \
19135             platforms/bsdi/Makefile \
19136             platforms/bsdi/bacula-fd \
19137             platforms/bsdi/bacula-sd \
19138             platforms/bsdi/bacula-dir"
19139         largefile_support="yes"
19140   ;;
19141 cygwin)
19142         DISTVER=`uname -a |awk '{print $3}'`
19143         TAPEDRIVE="/dev/nrst0"
19144         WIN32=win32
19145         WCFLAGS="-mwindows"
19146         WLDFLAGS="-mwindows"
19147   ;;
19148 darwin)
19149         DISTVER=`uname -r`
19150         TAPEDRIVE="/dev/nst0"
19151         PSCMD="ps -e -o pid,command"
19152         MACOSX=macosx
19153         PFILES="${PFILES} \
19154            platforms/darwin/Makefile"
19155   ;;
19156 debian)
19157         DISTVER=`cat /etc/debian_version`
19158         TAPEDRIVE="/dev/nrst0"
19159         PSCMD="ps -e -o pid,command"
19160   ;;
19161 freebsd)
19162         DISTVER=`uname -a |awk '{print $3}'`
19163         VER=`echo $DISTVER | cut -c 1`
19164         if test x$VER = x4 ; then
19165            PTHREAD_LIB="-pthread"
19166            CFLAGS="${CFLAGS} -pthread"
19167         fi
19168         lld="qd"
19169         llu="qu"
19170         TAPEDRIVE="/dev/nrsa0"
19171         PSCMD="ps -x -o pid,command"
19172         PFILES="${PFILES} \
19173             platforms/freebsd/Makefile \
19174             platforms/freebsd/bacula-fd \
19175             platforms/freebsd/bacula-sd \
19176             platforms/freebsd/bacula-dir"
19177         largefile_support="yes"
19178   ;;
19179 hpux)
19180         PSCMD="UNIX95=1 ps -e -o pid,comm"
19181         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19182         DISTVER=`uname -r`
19183         TAPEDRIVE="/dev/rmt/0hnb"
19184   ;;
19185 irix)
19186         DISTVER=`uname -r`
19187         TAPEDRIVE="/dev/rmt/0cbn"
19188         PSCMD="ps -e -o pid,comm"
19189         PFILES="${PFILES} \
19190             platforms/irix/Makefile \
19191             platforms/irix/bacula-fd \
19192             platforms/irix/bacula-sd \
19193             platforms/irix/bacula-dir"
19194   ;;
19195 netbsd)
19196         DISTVER=`uname -a |awk '{print $3}'`
19197         lld="qd"
19198         llu="qu"
19199         TAPEDRIVE="/dev/nrst0"
19200         PSCMD="ps -a -o pid,command"
19201         PTHREAD_LIB="-pthread"
19202         CFLAGS="${CFLAGS} -pthread"
19203   ;;
19204 openbsd)
19205         DISTVER=`uname -a |awk '{print $3}'`
19206         lld="qd"
19207         llu="qu"
19208         TAPEDRIVE="/dev/nrst0"
19209         PSCMD="ps -ax -o pid,command"
19210         PTHREAD_LIB="-pthread"
19211         CFLAGS="${CFLAGS} -pthread"
19212         PFILES="${PFILES} \
19213             platforms/openbsd/Makefile \
19214             platforms/openbsd/bacula-fd \
19215             platforms/openbsd/bacula-sd \
19216             platforms/openbsd/bacula-dir"
19217   ;;
19218 redhat)
19219         if test -f /etc/whitebox-release ; then
19220            f=/etc/whitebox-release
19221         else
19222            f=/etc/redhat-release
19223         fi
19224         if test `cat $f | grep release |\
19225                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19226            DISTVER="Enterprise "`cat $f | grep release |\
19227                     cut -f 6 -d ' '`
19228         else
19229             DISTVER=`cat /etc/redhat-release | grep release |\
19230                      cut -f 5 -d ' '`
19231         fi
19232         TAPEDRIVE="/dev/nst0"
19233         PSCMD="ps -e -o pid,command"
19234         PFILES="${PFILES} \
19235             platforms/redhat/Makefile \
19236             platforms/redhat/bacula-fd \
19237             platforms/redhat/bacula-sd \
19238             platforms/redhat/bacula-dir \
19239             platforms/redhat/bacula.spec \
19240             "
19241         hostname=`hostname -s`
19242   ;;
19243 mandrake)
19244         DISTVER=`cat /etc/mandrake-release | grep release |\
19245            cut -f 5 -d ' '`
19246         TAPEDRIVE="/dev/nst0"
19247         PSCMD="ps -e -o pid,command"
19248         PFILES="${PFILES} \
19249             platforms/mandrake/Makefile \
19250             platforms/mandrake/bacula-fd \
19251             platforms/mandrake/bacula-sd \
19252             platforms/mandrake/bacula-dir \
19253             platforms/mandrake/bacula.spec \
19254             "
19255   ;;
19256 gentoo)
19257         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19258         TAPEDRIVE="/dev/nst0"
19259         PSCMD="ps -e -o pid,command"
19260         PFILES="${PFILES} \
19261             platforms/gentoo/Makefile \
19262          platforms/gentoo/bacula-init \
19263             platforms/gentoo/bacula-fd \
19264             platforms/gentoo/bacula-sd \
19265             platforms/gentoo/bacula-dir"
19266   ;;
19267 slackware)
19268         DISTVER=`cat /etc/slackware-version`
19269         TAPEDRIVE="/dev/nst0"
19270         PSCMD="ps -e -o pid,command"
19271         PFILES="${PFILES} \
19272             platforms/slackware/Makefile \
19273             platforms/slackware/rc.bacula-fd \
19274             platforms/slackware/rc.bacula-sd \
19275             platforms/slackware/rc.bacula-dir\
19276             platforms/slackware/functions.bacula"
19277   ;;
19278 solaris)
19279         DISTVER=`uname -r`
19280         TAPEDRIVE="/dev/rmt/0cbn"
19281         PSCMD="ps -e -o pid,comm"
19282         PFILES="${PFILES} \
19283             platforms/solaris/Makefile \
19284             platforms/solaris/bacula-fd \
19285             platforms/solaris/bacula-sd \
19286             platforms/solaris/bacula-dir"
19287         if test x$DISTVER = x5.6 ; then
19288             cat >>confdefs.h <<\_ACEOF
19289 #define HAVE_OLD_SOCKOPT 1
19290 _ACEOF
19291
19292         fi
19293   ;;
19294 suse)
19295         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19296             cut -f 3 -d ' '`
19297         TAPEDRIVE="/dev/nst0"
19298         PSCMD="ps -e -o pid,command"
19299         PFILES="${PFILES} \
19300             platforms/suse/Makefile \
19301             platforms/suse/bacula-fd \
19302             platforms/suse/bacula-sd \
19303             platforms/suse/bacula-dir \
19304             platforms/suse/bacula \
19305             platforms/suse/bacula.spec"
19306   ;;
19307 suse5)
19308         DISTNAME=suse
19309         DISTVER=5.x
19310         TAPEDRIVE="/dev/nst0"
19311         PSCMD="ps -e -o pid,command"
19312         PFILES="${PFILES} \
19313             platforms/suse/Makefile \
19314             platforms/suse/bacula-fd \
19315             platforms/suse/bacula-sd \
19316             platforms/suse/bacula-dir"
19317   ;;
19318 unknown)
19319         DISTVER=unknown
19320         TAPEDRIVE="/dev/nst0"
19321   ;;
19322 *)
19323   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19324   ;;
19325 esac
19326
19327
19328
19329 LIBS="$PTHREAD_LIB $LIBS"
19330
19331 cat >>confdefs.h <<_ACEOF
19332 #define lld "$lld"
19333 _ACEOF
19334
19335 cat >>confdefs.h <<_ACEOF
19336 #define llu "$llu"
19337 _ACEOF
19338
19339
19340
19341
19342
19343
19344
19345
19346 MCOMMON=./autoconf/Make.common
19347
19348
19349 if test "x${subsysdir}" = "x${sbindir}" ; then
19350    echo " "
19351    echo " "
19352    echo "You have set both --sbindir and --with-subsys-dir"
19353    echo "  equal to: ${subsysdir} "
19354    echo "This is not permitted. Please reconfigure."
19355    echo " "
19356    echo "Aborting configuration ..."
19357    echo " "
19358    echo " "
19359    exit 1
19360 fi
19361
19362                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19363           ac_config_commands="$ac_config_commands default"
19364 cat >confcache <<\_ACEOF
19365 # This file is a shell script that caches the results of configure
19366 # tests run on this system so they can be shared between configure
19367 # scripts and configure runs, see configure's option --config-cache.
19368 # It is not useful on other systems.  If it contains results you don't
19369 # want to keep, you may remove or edit it.
19370 #
19371 # config.status only pays attention to the cache file if you give it
19372 # the --recheck option to rerun configure.
19373 #
19374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19376 # following values.
19377
19378 _ACEOF
19379
19380 # The following way of writing the cache mishandles newlines in values,
19381 # but we know of no workaround that is simple, portable, and efficient.
19382 # So, don't put newlines in cache variables' values.
19383 # Ultrix sh set writes to stderr and can't be redirected directly,
19384 # and sets the high bit in the cache file unless we assign to the vars.
19385 {
19386   (set) 2>&1 |
19387     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19388     *ac_space=\ *)
19389       # `set' does not quote correctly, so add quotes (double-quote
19390       # substitution turns \\\\ into \\, and sed turns \\ into \).
19391       sed -n \
19392         "s/'/'\\\\''/g;
19393           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19394       ;;
19395     *)
19396       # `set' quotes correctly as required by POSIX, so do not add quotes.
19397       sed -n \
19398         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19399       ;;
19400     esac;
19401 } |
19402   sed '
19403      t clear
19404      : clear
19405      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19406      t end
19407      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19408      : end' >>confcache
19409 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19410   if test -w $cache_file; then
19411     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19412     cat confcache >$cache_file
19413   else
19414     echo "not updating unwritable cache $cache_file"
19415   fi
19416 fi
19417 rm -f confcache
19418
19419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19420 # Let make expand exec_prefix.
19421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19422
19423 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19424 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19425 # trailing colons and then remove the whole line if VPATH becomes empty
19426 # (actually we leave an empty line to preserve line numbers).
19427 if test "x$srcdir" = x.; then
19428   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19429 s/:*\$(srcdir):*/:/;
19430 s/:*\${srcdir}:*/:/;
19431 s/:*@srcdir@:*/:/;
19432 s/^\([^=]*=[    ]*\):*/\1/;
19433 s/:*$//;
19434 s/^[^=]*=[      ]*$//;
19435 }'
19436 fi
19437
19438 DEFS=-DHAVE_CONFIG_H
19439
19440 ac_libobjs=
19441 ac_ltlibobjs=
19442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19443   # 1. Remove the extension, and $U if already installed.
19444   ac_i=`echo "$ac_i" |
19445          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19446   # 2. Add them.
19447   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19448   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19449 done
19450 LIBOBJS=$ac_libobjs
19451
19452 LTLIBOBJS=$ac_ltlibobjs
19453
19454
19455
19456 : ${CONFIG_STATUS=./config.status}
19457 ac_clean_files_save=$ac_clean_files
19458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19459 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19460 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19461 cat >$CONFIG_STATUS <<_ACEOF
19462 #! $SHELL
19463 # Generated by $as_me.
19464 # Run this file to recreate the current configuration.
19465 # Compiler output produced by configure, useful for debugging
19466 # configure, is in config.log if it exists.
19467
19468 debug=false
19469 ac_cs_recheck=false
19470 ac_cs_silent=false
19471 SHELL=\${CONFIG_SHELL-$SHELL}
19472 _ACEOF
19473
19474 cat >>$CONFIG_STATUS <<\_ACEOF
19475 ## --------------------- ##
19476 ## M4sh Initialization.  ##
19477 ## --------------------- ##
19478
19479 # Be Bourne compatible
19480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19481   emulate sh
19482   NULLCMD=:
19483   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19484   # is contrary to our usage.  Disable this feature.
19485   alias -g '${1+"$@"}'='"$@"'
19486 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19487   set -o posix
19488 fi
19489
19490 # Support unset when possible.
19491 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19492   as_unset=unset
19493 else
19494   as_unset=false
19495 fi
19496
19497
19498 # Work around bugs in pre-3.0 UWIN ksh.
19499 $as_unset ENV MAIL MAILPATH
19500 PS1='$ '
19501 PS2='> '
19502 PS4='+ '
19503
19504 # NLS nuisances.
19505 for as_var in \
19506   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19507   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19508   LC_TELEPHONE LC_TIME
19509 do
19510   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19511     eval $as_var=C; export $as_var
19512   else
19513     $as_unset $as_var
19514   fi
19515 done
19516
19517 # Required to use basename.
19518 if expr a : '\(a\)' >/dev/null 2>&1; then
19519   as_expr=expr
19520 else
19521   as_expr=false
19522 fi
19523
19524 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19525   as_basename=basename
19526 else
19527   as_basename=false
19528 fi
19529
19530
19531 # Name of the executable.
19532 as_me=`$as_basename "$0" ||
19533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19534          X"$0" : 'X\(//\)$' \| \
19535          X"$0" : 'X\(/\)$' \| \
19536          .     : '\(.\)' 2>/dev/null ||
19537 echo X/"$0" |
19538     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19539           /^X\/\(\/\/\)$/{ s//\1/; q; }
19540           /^X\/\(\/\).*/{ s//\1/; q; }
19541           s/.*/./; q'`
19542
19543
19544 # PATH needs CR, and LINENO needs CR and PATH.
19545 # Avoid depending upon Character Ranges.
19546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19549 as_cr_digits='0123456789'
19550 as_cr_alnum=$as_cr_Letters$as_cr_digits
19551
19552 # The user is always right.
19553 if test "${PATH_SEPARATOR+set}" != set; then
19554   echo "#! /bin/sh" >conf$$.sh
19555   echo  "exit 0"   >>conf$$.sh
19556   chmod +x conf$$.sh
19557   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19558     PATH_SEPARATOR=';'
19559   else
19560     PATH_SEPARATOR=:
19561   fi
19562   rm -f conf$$.sh
19563 fi
19564
19565
19566   as_lineno_1=$LINENO
19567   as_lineno_2=$LINENO
19568   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19569   test "x$as_lineno_1" != "x$as_lineno_2" &&
19570   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19571   # Find who we are.  Look in the path if we contain no path at all
19572   # relative or not.
19573   case $0 in
19574     *[\\/]* ) as_myself=$0 ;;
19575     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19576 for as_dir in $PATH
19577 do
19578   IFS=$as_save_IFS
19579   test -z "$as_dir" && as_dir=.
19580   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19581 done
19582
19583        ;;
19584   esac
19585   # We did not find ourselves, most probably we were run as `sh COMMAND'
19586   # in which case we are not to be found in the path.
19587   if test "x$as_myself" = x; then
19588     as_myself=$0
19589   fi
19590   if test ! -f "$as_myself"; then
19591     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19592 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19593    { (exit 1); exit 1; }; }
19594   fi
19595   case $CONFIG_SHELL in
19596   '')
19597     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19599 do
19600   IFS=$as_save_IFS
19601   test -z "$as_dir" && as_dir=.
19602   for as_base in sh bash ksh sh5; do
19603          case $as_dir in
19604          /*)
19605            if ("$as_dir/$as_base" -c '
19606   as_lineno_1=$LINENO
19607   as_lineno_2=$LINENO
19608   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19609   test "x$as_lineno_1" != "x$as_lineno_2" &&
19610   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19611              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19612              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19613              CONFIG_SHELL=$as_dir/$as_base
19614              export CONFIG_SHELL
19615              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19616            fi;;
19617          esac
19618        done
19619 done
19620 ;;
19621   esac
19622
19623   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19624   # uniformly replaced by the line number.  The first 'sed' inserts a
19625   # line-number line before each line; the second 'sed' does the real
19626   # work.  The second script uses 'N' to pair each line-number line
19627   # with the numbered line, and appends trailing '-' during
19628   # substitution so that $LINENO is not a special case at line end.
19629   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19630   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19631   sed '=' <$as_myself |
19632     sed '
19633       N
19634       s,$,-,
19635       : loop
19636       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19637       t loop
19638       s,-$,,
19639       s,^['$as_cr_digits']*\n,,
19640     ' >$as_me.lineno &&
19641   chmod +x $as_me.lineno ||
19642     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19643 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19644    { (exit 1); exit 1; }; }
19645
19646   # Don't try to exec as it changes $[0], causing all sort of problems
19647   # (the dirname of $[0] is not the place where we might find the
19648   # original and so on.  Autoconf is especially sensible to this).
19649   . ./$as_me.lineno
19650   # Exit status is that of the last command.
19651   exit
19652 }
19653
19654
19655 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19656   *c*,-n*) ECHO_N= ECHO_C='
19657 ' ECHO_T='      ' ;;
19658   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19659   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19660 esac
19661
19662 if expr a : '\(a\)' >/dev/null 2>&1; then
19663   as_expr=expr
19664 else
19665   as_expr=false
19666 fi
19667
19668 rm -f conf$$ conf$$.exe conf$$.file
19669 echo >conf$$.file
19670 if ln -s conf$$.file conf$$ 2>/dev/null; then
19671   # We could just check for DJGPP; but this test a) works b) is more generic
19672   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19673   if test -f conf$$.exe; then
19674     # Don't use ln at all; we don't have any links
19675     as_ln_s='cp -p'
19676   else
19677     as_ln_s='ln -s'
19678   fi
19679 elif ln conf$$.file conf$$ 2>/dev/null; then
19680   as_ln_s=ln
19681 else
19682   as_ln_s='cp -p'
19683 fi
19684 rm -f conf$$ conf$$.exe conf$$.file
19685
19686 if mkdir -p . 2>/dev/null; then
19687   as_mkdir_p=:
19688 else
19689   as_mkdir_p=false
19690 fi
19691
19692 as_executable_p="test -f"
19693
19694 # Sed expression to map a string onto a valid CPP name.
19695 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19696
19697 # Sed expression to map a string onto a valid variable name.
19698 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19699
19700
19701 # IFS
19702 # We need space, tab and new line, in precisely that order.
19703 as_nl='
19704 '
19705 IFS="   $as_nl"
19706
19707 # CDPATH.
19708 $as_unset CDPATH
19709
19710 exec 6>&1
19711
19712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19713 # report actual input values of CONFIG_FILES etc. instead of their
19714 # values after options handling.  Logging --version etc. is OK.
19715 exec 5>>config.log
19716 {
19717   echo
19718   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19719 ## Running $as_me. ##
19720 _ASBOX
19721 } >&5
19722 cat >&5 <<_CSEOF
19723
19724 This file was extended by $as_me, which was
19725 generated by GNU Autoconf 2.57.  Invocation command line was
19726
19727   CONFIG_FILES    = $CONFIG_FILES
19728   CONFIG_HEADERS  = $CONFIG_HEADERS
19729   CONFIG_LINKS    = $CONFIG_LINKS
19730   CONFIG_COMMANDS = $CONFIG_COMMANDS
19731   $ $0 $@
19732
19733 _CSEOF
19734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19735 echo >&5
19736 _ACEOF
19737
19738 # Files that config.status was made for.
19739 if test -n "$ac_config_files"; then
19740   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19741 fi
19742
19743 if test -n "$ac_config_headers"; then
19744   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19745 fi
19746
19747 if test -n "$ac_config_links"; then
19748   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19749 fi
19750
19751 if test -n "$ac_config_commands"; then
19752   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19753 fi
19754
19755 cat >>$CONFIG_STATUS <<\_ACEOF
19756
19757 ac_cs_usage="\
19758 \`$as_me' instantiates files from templates according to the
19759 current configuration.
19760
19761 Usage: $0 [OPTIONS] [FILE]...
19762
19763   -h, --help       print this help, then exit
19764   -V, --version    print version number, then exit
19765   -q, --quiet      do not print progress messages
19766   -d, --debug      don't remove temporary files
19767       --recheck    update $as_me by reconfiguring in the same conditions
19768   --file=FILE[:TEMPLATE]
19769                    instantiate the configuration file FILE
19770   --header=FILE[:TEMPLATE]
19771                    instantiate the configuration header FILE
19772
19773 Configuration files:
19774 $config_files
19775
19776 Configuration headers:
19777 $config_headers
19778
19779 Configuration commands:
19780 $config_commands
19781
19782 Report bugs to <bug-autoconf@gnu.org>."
19783 _ACEOF
19784
19785 cat >>$CONFIG_STATUS <<_ACEOF
19786 ac_cs_version="\\
19787 config.status
19788 configured by $0, generated by GNU Autoconf 2.57,
19789   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19790
19791 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19792 Free Software Foundation, Inc.
19793 This config.status script is free software; the Free Software Foundation
19794 gives unlimited permission to copy, distribute and modify it."
19795 srcdir=$srcdir
19796 INSTALL="$INSTALL"
19797 _ACEOF
19798
19799 cat >>$CONFIG_STATUS <<\_ACEOF
19800 # If no file are specified by the user, then we need to provide default
19801 # value.  By we need to know if files were specified by the user.
19802 ac_need_defaults=:
19803 while test $# != 0
19804 do
19805   case $1 in
19806   --*=*)
19807     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19808     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19809     ac_shift=:
19810     ;;
19811   -*)
19812     ac_option=$1
19813     ac_optarg=$2
19814     ac_shift=shift
19815     ;;
19816   *) # This is not an option, so the user has probably given explicit
19817      # arguments.
19818      ac_option=$1
19819      ac_need_defaults=false;;
19820   esac
19821
19822   case $ac_option in
19823   # Handling of the options.
19824 _ACEOF
19825 cat >>$CONFIG_STATUS <<\_ACEOF
19826   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19827     ac_cs_recheck=: ;;
19828   --version | --vers* | -V )
19829     echo "$ac_cs_version"; exit 0 ;;
19830   --he | --h)
19831     # Conflict between --help and --header
19832     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19833 Try \`$0 --help' for more information." >&5
19834 echo "$as_me: error: ambiguous option: $1
19835 Try \`$0 --help' for more information." >&2;}
19836    { (exit 1); exit 1; }; };;
19837   --help | --hel | -h )
19838     echo "$ac_cs_usage"; exit 0 ;;
19839   --debug | --d* | -d )
19840     debug=: ;;
19841   --file | --fil | --fi | --f )
19842     $ac_shift
19843     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19844     ac_need_defaults=false;;
19845   --header | --heade | --head | --hea )
19846     $ac_shift
19847     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19848     ac_need_defaults=false;;
19849   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19850   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19851     ac_cs_silent=: ;;
19852
19853   # This is an error.
19854   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19855 Try \`$0 --help' for more information." >&5
19856 echo "$as_me: error: unrecognized option: $1
19857 Try \`$0 --help' for more information." >&2;}
19858    { (exit 1); exit 1; }; } ;;
19859
19860   *) ac_config_targets="$ac_config_targets $1" ;;
19861
19862   esac
19863   shift
19864 done
19865
19866 ac_configure_extra_args=
19867
19868 if $ac_cs_silent; then
19869   exec 6>/dev/null
19870   ac_configure_extra_args="$ac_configure_extra_args --silent"
19871 fi
19872
19873 _ACEOF
19874 cat >>$CONFIG_STATUS <<_ACEOF
19875 if \$ac_cs_recheck; then
19876   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19877   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19878 fi
19879
19880 _ACEOF
19881
19882
19883
19884
19885
19886 cat >>$CONFIG_STATUS <<\_ACEOF
19887 for ac_config_target in $ac_config_targets
19888 do
19889   case "$ac_config_target" in
19890   # Handling of arguments.
19891   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19892   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19893   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19894   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19895   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19896   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19897   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19898   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19899   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19900   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19901   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19902   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19903   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19904   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19905   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19906   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19907   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19908   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19909   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19910   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19911   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19912   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19913   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19914   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19915   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19916   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19917   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19918   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19919   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19920   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19921   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19922   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19923   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19924   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19925   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19926   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19927   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19928   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19929   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19930   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19931   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19932   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19933   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19934   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19935   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19936   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19937   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19938   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19939   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19940   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19941   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19942   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19943   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19944   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19945   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19946   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19947   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19948   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19949   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19950   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19951   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19952   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19953   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19954   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19955   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19956   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19957   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19958   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19959   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19960   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19961   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19962   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19963   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19964   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19965   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19966   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19967   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19968   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19969   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19970   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19971   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19972   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19973   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19974   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19975   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19976   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19977   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19978   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19979   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19980   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19981   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19982   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19983   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19984   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19985   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19986   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19987   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19988   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19989   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19991    { (exit 1); exit 1; }; };;
19992   esac
19993 done
19994
19995 # If the user did not use the arguments to specify the items to instantiate,
19996 # then the envvar interface is used.  Set only those that are not.
19997 # We use the long form for the default assignment because of an extremely
19998 # bizarre bug on SunOS 4.1.3.
19999 if $ac_need_defaults; then
20000   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20001   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20002   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20003 fi
20004
20005 # Have a temporary directory for convenience.  Make it in the build tree
20006 # simply because there is no reason to put it here, and in addition,
20007 # creating and moving files from /tmp can sometimes cause problems.
20008 # Create a temporary directory, and hook for its removal unless debugging.
20009 $debug ||
20010 {
20011   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20012   trap '{ (exit 1); exit 1; }' 1 2 13 15
20013 }
20014
20015 # Create a (secure) tmp directory for tmp files.
20016
20017 {
20018   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20019   test -n "$tmp" && test -d "$tmp"
20020 }  ||
20021 {
20022   tmp=./confstat$$-$RANDOM
20023   (umask 077 && mkdir $tmp)
20024 } ||
20025 {
20026    echo "$me: cannot create a temporary directory in ." >&2
20027    { (exit 1); exit 1; }
20028 }
20029
20030 _ACEOF
20031
20032 cat >>$CONFIG_STATUS <<_ACEOF
20033
20034 #
20035 # CONFIG_FILES section.
20036 #
20037
20038 # No need to generate the scripts if there are no CONFIG_FILES.
20039 # This happens for instance when ./config.status config.h
20040 if test -n "\$CONFIG_FILES"; then
20041   # Protect against being on the right side of a sed subst in config.status.
20042   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20043    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20044 s,@SHELL@,$SHELL,;t t
20045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20051 s,@exec_prefix@,$exec_prefix,;t t
20052 s,@prefix@,$prefix,;t t
20053 s,@program_transform_name@,$program_transform_name,;t t
20054 s,@bindir@,$bindir,;t t
20055 s,@sbindir@,$sbindir,;t t
20056 s,@libexecdir@,$libexecdir,;t t
20057 s,@datadir@,$datadir,;t t
20058 s,@sysconfdir@,$sysconfdir,;t t
20059 s,@sharedstatedir@,$sharedstatedir,;t t
20060 s,@localstatedir@,$localstatedir,;t t
20061 s,@libdir@,$libdir,;t t
20062 s,@includedir@,$includedir,;t t
20063 s,@oldincludedir@,$oldincludedir,;t t
20064 s,@infodir@,$infodir,;t t
20065 s,@mandir@,$mandir,;t t
20066 s,@build_alias@,$build_alias,;t t
20067 s,@host_alias@,$host_alias,;t t
20068 s,@target_alias@,$target_alias,;t t
20069 s,@DEFS@,$DEFS,;t t
20070 s,@ECHO_C@,$ECHO_C,;t t
20071 s,@ECHO_N@,$ECHO_N,;t t
20072 s,@ECHO_T@,$ECHO_T,;t t
20073 s,@LIBS@,$LIBS,;t t
20074 s,@BUILD_DIR@,$BUILD_DIR,;t t
20075 s,@TRUEPRG@,$TRUEPRG,;t t
20076 s,@FALSEPRG@,$FALSEPRG,;t t
20077 s,@VERSION@,$VERSION,;t t
20078 s,@DATE@,$DATE,;t t
20079 s,@LSMDATE@,$LSMDATE,;t t
20080 s,@CC@,$CC,;t t
20081 s,@CFLAGS@,$CFLAGS,;t t
20082 s,@LDFLAGS@,$LDFLAGS,;t t
20083 s,@CPPFLAGS@,$CPPFLAGS,;t t
20084 s,@ac_ct_CC@,$ac_ct_CC,;t t
20085 s,@EXEEXT@,$EXEEXT,;t t
20086 s,@OBJEXT@,$OBJEXT,;t t
20087 s,@CXX@,$CXX,;t t
20088 s,@CXXFLAGS@,$CXXFLAGS,;t t
20089 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20090 s,@CPP@,$CPP,;t t
20091 s,@EGREP@,$EGREP,;t t
20092 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20093 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20094 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20095 s,@RANLIB@,$RANLIB,;t t
20096 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20097 s,@MV@,$MV,;t t
20098 s,@RM@,$RM,;t t
20099 s,@CP@,$CP,;t t
20100 s,@SED@,$SED,;t t
20101 s,@AWK@,$AWK,;t t
20102 s,@ECHO@,$ECHO,;t t
20103 s,@CMP@,$CMP,;t t
20104 s,@TBL@,$TBL,;t t
20105 s,@AR@,$AR,;t t
20106 s,@OPENSSL@,$OPENSSL,;t t
20107 s,@MTX@,$MTX,;t t
20108 s,@PKGCONFIG@,$PKGCONFIG,;t t
20109 s,@WXCONFIG@,$WXCONFIG,;t t
20110 s,@CDRECORD@,$CDRECORD,;t t
20111 s,@ARFLAGS@,$ARFLAGS,;t t
20112 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20113 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20114 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20115 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20116 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20117 s,@build@,$build,;t t
20118 s,@build_cpu@,$build_cpu,;t t
20119 s,@build_vendor@,$build_vendor,;t t
20120 s,@build_os@,$build_os,;t t
20121 s,@host@,$host,;t t
20122 s,@host_cpu@,$host_cpu,;t t
20123 s,@host_vendor@,$host_vendor,;t t
20124 s,@host_os@,$host_os,;t t
20125 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20126 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20127 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20128 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20129 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20130 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20131 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20132 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20133 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20134 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20135 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20136 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20137 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20138 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20139 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20140 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20141 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20142 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20143 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20144 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20145 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20146 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20147 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20148 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20149 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20150 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20151 s,@MSGFMT@,$MSGFMT,;t t
20152 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20153 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20154 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20155 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20156 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20157 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20158 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20159 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20160 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20161 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20162 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20163 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20164 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20165 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20166 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20167 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20168 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20169 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20170 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20171 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20172 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20173 s,@GNOME_DIR@,$GNOME_DIR,;t t
20174 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20175 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20176 s,@WX_DIR@,$WX_DIR,;t t
20177 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20178 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20179 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20180 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20181 s,@STATIC_FD@,$STATIC_FD,;t t
20182 s,@STATIC_SD@,$STATIC_SD,;t t
20183 s,@STATIC_DIR@,$STATIC_DIR,;t t
20184 s,@STATIC_CONS@,$STATIC_CONS,;t t
20185 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20186 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20187 s,@ALL_DIRS@,$ALL_DIRS,;t t
20188 s,@CONS_INC@,$CONS_INC,;t t
20189 s,@CONS_OBJ@,$CONS_OBJ,;t t
20190 s,@CONS_SRC@,$CONS_SRC,;t t
20191 s,@CONS_LIBS@,$CONS_LIBS,;t t
20192 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20193 s,@READLINE_SRC@,$READLINE_SRC,;t t
20194 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20195 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20196 s,@CDSTL@,$CDSTL,;t t
20197 s,@working_dir@,$working_dir,;t t
20198 s,@scriptdir@,$scriptdir,;t t
20199 s,@dump_email@,$dump_email,;t t
20200 s,@job_email@,$job_email,;t t
20201 s,@smtp_host@,$smtp_host,;t t
20202 s,@piddir@,$piddir,;t t
20203 s,@subsysdir@,$subsysdir,;t t
20204 s,@baseport@,$baseport,;t t
20205 s,@dir_port@,$dir_port,;t t
20206 s,@fd_port@,$fd_port,;t t
20207 s,@sd_port@,$sd_port,;t t
20208 s,@dir_password@,$dir_password,;t t
20209 s,@fd_password@,$fd_password,;t t
20210 s,@sd_password@,$sd_password,;t t
20211 s,@mon_dir_password@,$mon_dir_password,;t t
20212 s,@mon_fd_password@,$mon_fd_password,;t t
20213 s,@mon_sd_password@,$mon_sd_password,;t t
20214 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20215 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20216 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20217 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20218 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20219 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20220 s,@dir_user@,$dir_user,;t t
20221 s,@dir_group@,$dir_group,;t t
20222 s,@sd_user@,$sd_user,;t t
20223 s,@sd_group@,$sd_group,;t t
20224 s,@fd_user@,$fd_user,;t t
20225 s,@fd_group@,$fd_group,;t t
20226 s,@SBINPERM@,$SBINPERM,;t t
20227 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20228 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20229 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20230 s,@cats@,$cats,;t t
20231 s,@DB_NAME@,$DB_NAME,;t t
20232 s,@GETCONF@,$GETCONF,;t t
20233 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20234 s,@X_CFLAGS@,$X_CFLAGS,;t t
20235 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20236 s,@X_LIBS@,$X_LIBS,;t t
20237 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20238 s,@LIBOBJS@,$LIBOBJS,;t t
20239 s,@ALLOCA@,$ALLOCA,;t t
20240 s,@FDLIBS@,$FDLIBS,;t t
20241 s,@DEBUG@,$DEBUG,;t t
20242 s,@DINCLUDE@,$DINCLUDE,;t t
20243 s,@DLIB@,$DLIB,;t t
20244 s,@DB_LIBS@,$DB_LIBS,;t t
20245 s,@WCFLAGS@,$WCFLAGS,;t t
20246 s,@WLDFLAGS@,$WLDFLAGS,;t t
20247 s,@OBJLIST@,$OBJLIST,;t t
20248 s,@hostname@,$hostname,;t t
20249 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20250 s,@PSCMD@,$PSCMD,;t t
20251 s,@WIN32@,$WIN32,;t t
20252 s,@MACOSX@,$MACOSX,;t t
20253 s,@DISTNAME@,$DISTNAME,;t t
20254 s,@DISTVER@,$DISTVER,;t t
20255 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20256 /@MCOMMON@/r $MCOMMON
20257 s,@MCOMMON@,,;t t
20258 CEOF
20259
20260 _ACEOF
20261
20262   cat >>$CONFIG_STATUS <<\_ACEOF
20263   # Split the substitutions into bite-sized pieces for seds with
20264   # small command number limits, like on Digital OSF/1 and HP-UX.
20265   ac_max_sed_lines=48
20266   ac_sed_frag=1 # Number of current file.
20267   ac_beg=1 # First line for current file.
20268   ac_end=$ac_max_sed_lines # Line after last line for current file.
20269   ac_more_lines=:
20270   ac_sed_cmds=
20271   while $ac_more_lines; do
20272     if test $ac_beg -gt 1; then
20273       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20274     else
20275       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20276     fi
20277     if test ! -s $tmp/subs.frag; then
20278       ac_more_lines=false
20279     else
20280       # The purpose of the label and of the branching condition is to
20281       # speed up the sed processing (if there are no `@' at all, there
20282       # is no need to browse any of the substitutions).
20283       # These are the two extra sed commands mentioned above.
20284       (echo ':t
20285   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20286       if test -z "$ac_sed_cmds"; then
20287         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20288       else
20289         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20290       fi
20291       ac_sed_frag=`expr $ac_sed_frag + 1`
20292       ac_beg=$ac_end
20293       ac_end=`expr $ac_end + $ac_max_sed_lines`
20294     fi
20295   done
20296   if test -z "$ac_sed_cmds"; then
20297     ac_sed_cmds=cat
20298   fi
20299 fi # test -n "$CONFIG_FILES"
20300
20301 _ACEOF
20302 cat >>$CONFIG_STATUS <<\_ACEOF
20303 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20304   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20305   case $ac_file in
20306   - | *:- | *:-:* ) # input from stdin
20307         cat >$tmp/stdin
20308         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20309         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20310   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20311         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20312   * )   ac_file_in=$ac_file.in ;;
20313   esac
20314
20315   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20316   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20318          X"$ac_file" : 'X\(//\)[^/]' \| \
20319          X"$ac_file" : 'X\(//\)$' \| \
20320          X"$ac_file" : 'X\(/\)' \| \
20321          .     : '\(.\)' 2>/dev/null ||
20322 echo X"$ac_file" |
20323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20325           /^X\(\/\/\)$/{ s//\1/; q; }
20326           /^X\(\/\).*/{ s//\1/; q; }
20327           s/.*/./; q'`
20328   { if $as_mkdir_p; then
20329     mkdir -p "$ac_dir"
20330   else
20331     as_dir="$ac_dir"
20332     as_dirs=
20333     while test ! -d "$as_dir"; do
20334       as_dirs="$as_dir $as_dirs"
20335       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20337          X"$as_dir" : 'X\(//\)[^/]' \| \
20338          X"$as_dir" : 'X\(//\)$' \| \
20339          X"$as_dir" : 'X\(/\)' \| \
20340          .     : '\(.\)' 2>/dev/null ||
20341 echo X"$as_dir" |
20342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20344           /^X\(\/\/\)$/{ s//\1/; q; }
20345           /^X\(\/\).*/{ s//\1/; q; }
20346           s/.*/./; q'`
20347     done
20348     test ! -n "$as_dirs" || mkdir $as_dirs
20349   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20351    { (exit 1); exit 1; }; }; }
20352
20353   ac_builddir=.
20354
20355 if test "$ac_dir" != .; then
20356   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20357   # A "../" for each directory in $ac_dir_suffix.
20358   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20359 else
20360   ac_dir_suffix= ac_top_builddir=
20361 fi
20362
20363 case $srcdir in
20364   .)  # No --srcdir option.  We are building in place.
20365     ac_srcdir=.
20366     if test -z "$ac_top_builddir"; then
20367        ac_top_srcdir=.
20368     else
20369        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20370     fi ;;
20371   [\\/]* | ?:[\\/]* )  # Absolute path.
20372     ac_srcdir=$srcdir$ac_dir_suffix;
20373     ac_top_srcdir=$srcdir ;;
20374   *) # Relative path.
20375     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20376     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20377 esac
20378 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20379 # absolute.
20380 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20381 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20382 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20383 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20384
20385
20386   case $INSTALL in
20387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20388   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20389   esac
20390
20391   if test x"$ac_file" != x-; then
20392     { echo "$as_me:$LINENO: creating $ac_file" >&5
20393 echo "$as_me: creating $ac_file" >&6;}
20394     rm -f "$ac_file"
20395   fi
20396   # Let's still pretend it is `configure' which instantiates (i.e., don't
20397   # use $as_me), people would be surprised to read:
20398   #    /* config.h.  Generated by config.status.  */
20399   if test x"$ac_file" = x-; then
20400     configure_input=
20401   else
20402     configure_input="$ac_file.  "
20403   fi
20404   configure_input=$configure_input"Generated from `echo $ac_file_in |
20405                                      sed 's,.*/,,'` by configure."
20406
20407   # First look for the input files in the build tree, otherwise in the
20408   # src tree.
20409   ac_file_inputs=`IFS=:
20410     for f in $ac_file_in; do
20411       case $f in
20412       -) echo $tmp/stdin ;;
20413       [\\/$]*)
20414          # Absolute (can't be DOS-style, as IFS=:)
20415          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20416 echo "$as_me: error: cannot find input file: $f" >&2;}
20417    { (exit 1); exit 1; }; }
20418          echo $f;;
20419       *) # Relative
20420          if test -f "$f"; then
20421            # Build tree
20422            echo $f
20423          elif test -f "$srcdir/$f"; then
20424            # Source tree
20425            echo $srcdir/$f
20426          else
20427            # /dev/null tree
20428            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20429 echo "$as_me: error: cannot find input file: $f" >&2;}
20430    { (exit 1); exit 1; }; }
20431          fi;;
20432       esac
20433     done` || { (exit 1); exit 1; }
20434 _ACEOF
20435 cat >>$CONFIG_STATUS <<_ACEOF
20436   sed "$ac_vpsub
20437 $extrasub
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20440 :t
20441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20442 s,@configure_input@,$configure_input,;t t
20443 s,@srcdir@,$ac_srcdir,;t t
20444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20445 s,@top_srcdir@,$ac_top_srcdir,;t t
20446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20447 s,@builddir@,$ac_builddir,;t t
20448 s,@abs_builddir@,$ac_abs_builddir,;t t
20449 s,@top_builddir@,$ac_top_builddir,;t t
20450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20451 s,@INSTALL@,$ac_INSTALL,;t t
20452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20453   rm -f $tmp/stdin
20454   if test x"$ac_file" != x-; then
20455     mv $tmp/out $ac_file
20456   else
20457     cat $tmp/out
20458     rm -f $tmp/out
20459   fi
20460
20461 done
20462 _ACEOF
20463 cat >>$CONFIG_STATUS <<\_ACEOF
20464
20465 #
20466 # CONFIG_HEADER section.
20467 #
20468
20469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20471 #
20472 # ac_d sets the value in "#define NAME VALUE" lines.
20473 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20474 ac_dB='[        ].*$,\1#\2'
20475 ac_dC=' '
20476 ac_dD=',;t'
20477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20478 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20479 ac_uB='$,\1#\2define\3'
20480 ac_uC=' '
20481 ac_uD=',;t'
20482
20483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20484   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20485   case $ac_file in
20486   - | *:- | *:-:* ) # input from stdin
20487         cat >$tmp/stdin
20488         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20490   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20491         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20492   * )   ac_file_in=$ac_file.in ;;
20493   esac
20494
20495   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20496 echo "$as_me: creating $ac_file" >&6;}
20497
20498   # First look for the input files in the build tree, otherwise in the
20499   # src tree.
20500   ac_file_inputs=`IFS=:
20501     for f in $ac_file_in; do
20502       case $f in
20503       -) echo $tmp/stdin ;;
20504       [\\/$]*)
20505          # Absolute (can't be DOS-style, as IFS=:)
20506          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20507 echo "$as_me: error: cannot find input file: $f" >&2;}
20508    { (exit 1); exit 1; }; }
20509          echo $f;;
20510       *) # Relative
20511          if test -f "$f"; then
20512            # Build tree
20513            echo $f
20514          elif test -f "$srcdir/$f"; then
20515            # Source tree
20516            echo $srcdir/$f
20517          else
20518            # /dev/null tree
20519            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20520 echo "$as_me: error: cannot find input file: $f" >&2;}
20521    { (exit 1); exit 1; }; }
20522          fi;;
20523       esac
20524     done` || { (exit 1); exit 1; }
20525   # Remove the trailing spaces.
20526   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20527
20528 _ACEOF
20529
20530 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20531 # `conftest.undefs', that substitutes the proper values into
20532 # config.h.in to produce config.h.  The first handles `#define'
20533 # templates, and the second `#undef' templates.
20534 # And first: Protect against being on the right side of a sed subst in
20535 # config.status.  Protect against being in an unquoted here document
20536 # in config.status.
20537 rm -f conftest.defines conftest.undefs
20538 # Using a here document instead of a string reduces the quoting nightmare.
20539 # Putting comments in sed scripts is not portable.
20540 #
20541 # `end' is used to avoid that the second main sed command (meant for
20542 # 0-ary CPP macros) applies to n-ary macro definitions.
20543 # See the Autoconf documentation for `clear'.
20544 cat >confdef2sed.sed <<\_ACEOF
20545 s/[\\&,]/\\&/g
20546 s,[\\$`],\\&,g
20547 t clear
20548 : clear
20549 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20550 t end
20551 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20552 : end
20553 _ACEOF
20554 # If some macros were called several times there might be several times
20555 # the same #defines, which is useless.  Nevertheless, we may not want to
20556 # sort them, since we want the *last* AC-DEFINE to be honored.
20557 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20558 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20559 rm -f confdef2sed.sed
20560
20561 # This sed command replaces #undef with comments.  This is necessary, for
20562 # example, in the case of _POSIX_SOURCE, which is predefined and required
20563 # on some systems where configure will not decide to define it.
20564 cat >>conftest.undefs <<\_ACEOF
20565 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20566 _ACEOF
20567
20568 # Break up conftest.defines because some shells have a limit on the size
20569 # of here documents, and old seds have small limits too (100 cmds).
20570 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20571 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20572 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20573 echo '  :' >>$CONFIG_STATUS
20574 rm -f conftest.tail
20575 while grep . conftest.defines >/dev/null
20576 do
20577   # Write a limited-size here document to $tmp/defines.sed.
20578   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20579   # Speed up: don't consider the non `#define' lines.
20580   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20581   # Work around the forget-to-reset-the-flag bug.
20582   echo 't clr' >>$CONFIG_STATUS
20583   echo ': clr' >>$CONFIG_STATUS
20584   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20585   echo 'CEOF
20586   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20587   rm -f $tmp/in
20588   mv $tmp/out $tmp/in
20589 ' >>$CONFIG_STATUS
20590   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20591   rm -f conftest.defines
20592   mv conftest.tail conftest.defines
20593 done
20594 rm -f conftest.defines
20595 echo '  fi # grep' >>$CONFIG_STATUS
20596 echo >>$CONFIG_STATUS
20597
20598 # Break up conftest.undefs because some shells have a limit on the size
20599 # of here documents, and old seds have small limits too (100 cmds).
20600 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20601 rm -f conftest.tail
20602 while grep . conftest.undefs >/dev/null
20603 do
20604   # Write a limited-size here document to $tmp/undefs.sed.
20605   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20606   # Speed up: don't consider the non `#undef'
20607   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20608   # Work around the forget-to-reset-the-flag bug.
20609   echo 't clr' >>$CONFIG_STATUS
20610   echo ': clr' >>$CONFIG_STATUS
20611   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20612   echo 'CEOF
20613   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20614   rm -f $tmp/in
20615   mv $tmp/out $tmp/in
20616 ' >>$CONFIG_STATUS
20617   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20618   rm -f conftest.undefs
20619   mv conftest.tail conftest.undefs
20620 done
20621 rm -f conftest.undefs
20622
20623 cat >>$CONFIG_STATUS <<\_ACEOF
20624   # Let's still pretend it is `configure' which instantiates (i.e., don't
20625   # use $as_me), people would be surprised to read:
20626   #    /* config.h.  Generated by config.status.  */
20627   if test x"$ac_file" = x-; then
20628     echo "/* Generated by configure.  */" >$tmp/config.h
20629   else
20630     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20631   fi
20632   cat $tmp/in >>$tmp/config.h
20633   rm -f $tmp/in
20634   if test x"$ac_file" != x-; then
20635     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20636       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20637 echo "$as_me: $ac_file is unchanged" >&6;}
20638     else
20639       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641          X"$ac_file" : 'X\(//\)[^/]' \| \
20642          X"$ac_file" : 'X\(//\)$' \| \
20643          X"$ac_file" : 'X\(/\)' \| \
20644          .     : '\(.\)' 2>/dev/null ||
20645 echo X"$ac_file" |
20646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20648           /^X\(\/\/\)$/{ s//\1/; q; }
20649           /^X\(\/\).*/{ s//\1/; q; }
20650           s/.*/./; q'`
20651       { if $as_mkdir_p; then
20652     mkdir -p "$ac_dir"
20653   else
20654     as_dir="$ac_dir"
20655     as_dirs=
20656     while test ! -d "$as_dir"; do
20657       as_dirs="$as_dir $as_dirs"
20658       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660          X"$as_dir" : 'X\(//\)[^/]' \| \
20661          X"$as_dir" : 'X\(//\)$' \| \
20662          X"$as_dir" : 'X\(/\)' \| \
20663          .     : '\(.\)' 2>/dev/null ||
20664 echo X"$as_dir" |
20665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20667           /^X\(\/\/\)$/{ s//\1/; q; }
20668           /^X\(\/\).*/{ s//\1/; q; }
20669           s/.*/./; q'`
20670     done
20671     test ! -n "$as_dirs" || mkdir $as_dirs
20672   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20674    { (exit 1); exit 1; }; }; }
20675
20676       rm -f $ac_file
20677       mv $tmp/config.h $ac_file
20678     fi
20679   else
20680     cat $tmp/config.h
20681     rm -f $tmp/config.h
20682   fi
20683 done
20684 _ACEOF
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20686
20687 #
20688 # CONFIG_COMMANDS section.
20689 #
20690 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20691   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20692   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20693   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20695          X"$ac_dest" : 'X\(//\)[^/]' \| \
20696          X"$ac_dest" : 'X\(//\)$' \| \
20697          X"$ac_dest" : 'X\(/\)' \| \
20698          .     : '\(.\)' 2>/dev/null ||
20699 echo X"$ac_dest" |
20700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20702           /^X\(\/\/\)$/{ s//\1/; q; }
20703           /^X\(\/\).*/{ s//\1/; q; }
20704           s/.*/./; q'`
20705   ac_builddir=.
20706
20707 if test "$ac_dir" != .; then
20708   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20709   # A "../" for each directory in $ac_dir_suffix.
20710   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20711 else
20712   ac_dir_suffix= ac_top_builddir=
20713 fi
20714
20715 case $srcdir in
20716   .)  # No --srcdir option.  We are building in place.
20717     ac_srcdir=.
20718     if test -z "$ac_top_builddir"; then
20719        ac_top_srcdir=.
20720     else
20721        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20722     fi ;;
20723   [\\/]* | ?:[\\/]* )  # Absolute path.
20724     ac_srcdir=$srcdir$ac_dir_suffix;
20725     ac_top_srcdir=$srcdir ;;
20726   *) # Relative path.
20727     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20728     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20729 esac
20730 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20731 # absolute.
20732 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20733 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20734 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20735 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20736
20737
20738   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20739 echo "$as_me: executing $ac_dest commands" >&6;}
20740   case $ac_dest in
20741     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20742  ;;
20743   esac
20744 done
20745 _ACEOF
20746
20747 cat >>$CONFIG_STATUS <<\_ACEOF
20748
20749 { (exit 0); exit 0; }
20750 _ACEOF
20751 chmod +x $CONFIG_STATUS
20752 ac_clean_files=$ac_clean_files_save
20753
20754
20755 # configure is writing to config.log, and then calls config.status.
20756 # config.status does its own redirection, appending to config.log.
20757 # Unfortunately, on DOS this fails, as config.log is still kept open
20758 # by configure, so config.status won't be able to write to it; its
20759 # output is simply discarded.  So we exec the FD to /dev/null,
20760 # effectively closing config.log, so it can be properly (re)opened and
20761 # appended to by config.status.  When coming back to configure, we
20762 # need to make the FD available again.
20763 if test "$no_create" != yes; then
20764   ac_cs_success=:
20765   ac_config_status_args=
20766   test "$silent" = yes &&
20767     ac_config_status_args="$ac_config_status_args --quiet"
20768   exec 5>/dev/null
20769   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20770   exec 5>>config.log
20771   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20772   # would make configure fail if this is the last instruction.
20773   $ac_cs_success || { (exit 1); exit 1; }
20774 fi
20775
20776
20777 cd scripts
20778 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20779 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20780 cd ..
20781
20782 c=src/cats
20783
20784 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20785 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20786
20787 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20788 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20789
20790 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20791 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20792
20793 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20794 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20795
20796 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20797 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20798
20799 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20800 chmod 755 $c/sqlite
20801 chmod 755 $c/mysql
20802
20803 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20804    largefile_support="yes"
20805 fi
20806
20807 #
20808 # A whole lot of hand springs to get the compiler version.
20809 #  This is because gcc changed the output in version 3.0
20810 #
20811 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20812 if test "x${CCVERSION}" = "x" ; then
20813   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20814 fi
20815 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20816 if test x"${CXXVERSION}" = x ; then
20817   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20818 fi
20819
20820 if test "x${subsysdir}" = "x${sbindir}" ; then
20821    echo " "
20822    echo " "
20823    echo "You have set --sbindir and --with-subsys-dir"
20824    echo "  both equal to: ${subsysdir} "
20825    echo "  This is not permitted. Please reconfigure."
20826    echo " "
20827    echo "Aborting configuration ..."
20828    echo " "
20829    echo " "
20830    exit 1
20831 fi
20832
20833 if test "x${db_name}" = "xInternal" ; then
20834    echo " "
20835    echo " "
20836    echo "You have not specified either --enable-client-only or one of the"
20837    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20838    echo "  This is not permitted. Please reconfigure."
20839    echo " "
20840    echo "Aborting the configuration ..."
20841    echo " "
20842    echo " "
20843    exit 1
20844 fi
20845
20846 echo "
20847 Configuration on `date`:
20848
20849   Host:                       $host -- ${DISTNAME} ${DISTVER}
20850   Bacula version:             ${VERSION} (${DATE})
20851   Source code location:       ${srcdir}
20852   Install binaries:           ${sbindir}
20853   Install config files:       ${sysconfdir}
20854   Scripts directory:          ${scriptdir}
20855   Working directory:          ${working_dir}
20856   PID directory:              ${piddir}
20857   Subsys directory:           ${subsysdir}
20858   C Compiler:                 ${CC} ${CCVERSION}
20859   C++ Compiler:               ${CXX} ${CXXVERSION}
20860   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20861   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20862   Libraries:                  ${LIBS}
20863   Statically Linked Tools:    ${support_static_tools}
20864   Statically Linked FD:       ${support_static_fd}
20865   Statically Linked SD:       ${support_static_sd}
20866   Statically Linked DIR:      ${support_static_dir}
20867   Statically Linked CONS:     ${support_static_cons}
20868   Database type:              ${db_name}
20869   Database lib:               ${DB_LIBS}
20870
20871   Job Output Email:           ${job_email}
20872   Traceback Email:            ${dump_email}
20873   SMTP Host Address:          ${smtp_host}
20874
20875   Director Port:              ${dir_port}
20876   File daemon Port:           ${fd_port}
20877   Storage daemon Port:        ${sd_port}
20878
20879   Director User:              ${dir_user}
20880   Director Group:             ${dir_group}
20881   Storage Daemon User:        ${sd_user}
20882   Storage DaemonGroup:        ${sd_group}
20883   File Daemon User:           ${fd_user}
20884   File Daemon Group:          ${fd_group}
20885
20886   SQL binaries Directory      ${SQL_BINDIR}
20887
20888   Large file support:         $largefile_support
20889   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20890   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20891   TCP Wrappers support:       ${TCPW_MSG}
20892   ZLIB support:               ${have_zlib}
20893   enable-smartalloc:          ${support_smartalloc}
20894   enable-gnome:               ${support_gnome} ${gnome_version}
20895   enable-wx-console:          ${support_wx_console}
20896   enable-tray-monitor:        ${support_tray_monitor}
20897   client-only:                ${build_client_only}
20898   ACL support:                ${have_acl}
20899   Python support:             ${support_python} ${PYTHON_LIBS}
20900
20901   " > config.out
20902
20903 cat config.out
20904
20905 # old stuff
20906 # cweb support:               ${got_cweb} ${CWEB_SRC}
20907 # gmp support:                ${got_gmp} ${GMP_SRC}