]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add custom Distribution tag.
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 PIDOF 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'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-working-dir=PATH        specify path of Bacula working directory
888   --with-scriptdir=PATH    specify path of Bacula scripts directory
889   --with-dump-email=EMAIL        dump email address
890   --with-job-email=EMAIL         job output email address
891   --with-smtp-host=HOST          SMTP mail host address
892   --with-pid-dir=PATH            specify location of Bacula pid files
893   --with-subsys-dir=PATH         specify location of Bacula subsys file
894   --with-baseport=PORT           specify base port address for daemons
895   --with-dir-password=PASSWORD   specify Director's password
896   --with-fd-password=PASSWORD    specify Client's password
897   --with-sd-password=PASSWORD    specify Storage daemon's password
898   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
899   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
900   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
901   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
902   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
903   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
904   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
905   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
906   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
907   --with-dir-user=USER           specify user for Director daemon
908   --with-dir-group=GROUP                 specify group for Director daemon
909   --with-sd-user=USER            specify user for Storage daemon
910   --with-sd-group=GROUP          specify group for Storage daemon
911   --with-fd-user=USER            specify user for File daemon
912   --with-fd-group=GROUP          specify group for File daemon
913   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
914   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
915                           base install directory, defaults to /usr/local/pgsql
916
917   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
922                           install directory, default is to search through
923                           a number of common places for the MySQL files.
924
925   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
926                           install directory, default is to search through
927                           a number of common places for the SQLite files.
928   --with-x                use the X Window System
929
930 Some influential environment variables:
931   CC          C compiler command
932   CFLAGS      C compiler flags
933   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
934               nonstandard directory <lib dir>
935   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
936               headers in a nonstandard directory <include dir>
937   CXX         C++ compiler command
938   CXXFLAGS    C++ compiler flags
939   CPP         C preprocessor
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
982 *)
983   case "$ac_dir" in
984   .) ac_abs_builddir=`pwd`;;
985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *)
992   case ${ac_top_builddir}. in
993   .) ac_abs_top_builddir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1000 *)
1001   case $ac_srcdir in
1002   .) ac_abs_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *)
1010   case $ac_top_srcdir in
1011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014   esac;;
1015 esac
1016
1017     cd $ac_dir
1018     # Check for guested configure; otherwise get Cygnus style configure.
1019     if test -f $ac_srcdir/configure.gnu; then
1020       echo
1021       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1022     elif test -f $ac_srcdir/configure; then
1023       echo
1024       $SHELL $ac_srcdir/configure  --help=recursive
1025     elif test -f $ac_srcdir/configure.ac ||
1026            test -f $ac_srcdir/configure.in; then
1027       echo
1028       $ac_configure --help
1029     else
1030       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031     fi
1032     cd $ac_popdir
1033   done
1034 fi
1035
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038   cat <<\_ACEOF
1039
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044   exit 0
1045 fi
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1050
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59.  Invocation command line was
1053
1054   $ $0 $@
1055
1056 _ACEOF
1057 {
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1062
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1071
1072 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1073 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1076 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1077 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1078 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1079
1080 _ASUNAME
1081
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1084 do
1085   IFS=$as_save_IFS
1086   test -z "$as_dir" && as_dir=.
1087   echo "PATH: $as_dir"
1088 done
1089
1090 } >&5
1091
1092 cat >&5 <<_ACEOF
1093
1094
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1098
1099 _ACEOF
1100
1101
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1113 do
1114   for ac_arg
1115   do
1116     case $ac_arg in
1117     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119     | -silent | --silent | --silen | --sile | --sil)
1120       continue ;;
1121     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123     esac
1124     case $ac_pass in
1125     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126     2)
1127       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128       if test $ac_must_keep_next = true; then
1129         ac_must_keep_next=false # Got value, back to normal.
1130       else
1131         case $ac_arg in
1132           *=* | --config-cache | -C | -disable-* | --disable-* \
1133           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135           | -with-* | --with-* | -without-* | --without-* | --x)
1136             case "$ac_configure_args0 " in
1137               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138             esac
1139             ;;
1140           -* ) ac_must_keep_next=true ;;
1141         esac
1142       fi
1143       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144       # Get rid of the leading space.
1145       ac_sep=" "
1146       ;;
1147     esac
1148   done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log.  We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159   # Save into config.log some information that might help in debugging.
1160   {
1161     echo
1162
1163     cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168     echo
1169     # The following way of writing the cache mishandles newlines in values,
1170 {
1171   (set) 2>&1 |
1172     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173     *ac_space=\ *)
1174       sed -n \
1175         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177       ;;
1178     *)
1179       sed -n \
1180         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181       ;;
1182     esac;
1183 }
1184     echo
1185
1186     cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191     echo
1192     for ac_var in $ac_subst_vars
1193     do
1194       eval ac_val=$`echo $ac_var`
1195       echo "$ac_var='"'"'$ac_val'"'"'"
1196     done | sort
1197     echo
1198
1199     if test -n "$ac_subst_files"; then
1200       cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205       echo
1206       for ac_var in $ac_subst_files
1207       do
1208         eval ac_val=$`echo $ac_var`
1209         echo "$ac_var='"'"'$ac_val'"'"'"
1210       done | sort
1211       echo
1212     fi
1213
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h | sort
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379 BUILD_DIR=`pwd`
1380 cd ..
1381 TOP_DIR=`pwd`
1382 cd ${BUILD_DIR}
1383
1384 ac_aux_dir=
1385 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1386   if test -f $ac_dir/install-sh; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/install-sh -c"
1389     break
1390   elif test -f $ac_dir/install.sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install.sh -c"
1393     break
1394   elif test -f $ac_dir/shtool; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/shtool install -c"
1397     break
1398   fi
1399 done
1400 if test -z "$ac_aux_dir"; then
1401   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1403    { (exit 1); exit 1; }; }
1404 fi
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408
1409           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1410
1411
1412
1413
1414
1415 for ac_prog in true
1416 do
1417   # Extract the first word of "$ac_prog", so it can be a program name with args.
1418 set dummy $ac_prog; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   case $TRUEPRG in
1425   [\\/]* | ?:[\\/]*)
1426   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1427   ;;
1428   *)
1429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   for ac_exec_ext in '' $ac_executable_extensions; do
1435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438     break 2
1439   fi
1440 done
1441 done
1442
1443   ;;
1444 esac
1445 fi
1446 TRUEPRG=$ac_cv_path_TRUEPRG
1447
1448 if test -n "$TRUEPRG"; then
1449   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1450 echo "${ECHO_T}$TRUEPRG" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456   test -n "$TRUEPRG" && break
1457 done
1458 test -n "$TRUEPRG" || TRUEPRG=":"
1459
1460 for ac_prog in false
1461 do
1462   # Extract the first word of "$ac_prog", so it can be a program name with args.
1463 set dummy $ac_prog; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   case $FALSEPRG in
1470   [\\/]* | ?:[\\/]*)
1471   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1472   ;;
1473   *)
1474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477   IFS=$as_save_IFS
1478   test -z "$as_dir" && as_dir=.
1479   for ac_exec_ext in '' $ac_executable_extensions; do
1480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483     break 2
1484   fi
1485 done
1486 done
1487
1488   ;;
1489 esac
1490 fi
1491 FALSEPRG=$ac_cv_path_FALSEPRG
1492
1493 if test -n "$FALSEPRG"; then
1494   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1495 echo "${ECHO_T}$FALSEPRG" >&6
1496 else
1497   echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501   test -n "$FALSEPRG" && break
1502 done
1503 test -n "$FALSEPRG" || FALSEPRG=":"
1504
1505
1506 #AC_CANONICAL_HOST
1507
1508 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1509 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1510 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1511 echo "configuring for bacula $VERSION ($DATE)"
1512
1513
1514
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 if test -n "$ac_tool_prefix"; then
1521   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$CC"; then
1529   ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549   echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552   echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 fi
1557 if test -z "$ac_cv_prog_CC"; then
1558   ac_ct_CC=$CC
1559   # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$ac_ct_CC"; then
1567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_ac_ct_CC="gcc"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594   CC=$ac_ct_CC
1595 else
1596   CC="$ac_cv_prog_CC"
1597 fi
1598
1599 if test -z "$CC"; then
1600   if test -n "$ac_tool_prefix"; then
1601   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$CC"; then
1609   ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_CC="${ac_tool_prefix}cc"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629   echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636 fi
1637 if test -z "$ac_cv_prog_CC"; then
1638   ac_ct_CC=$CC
1639   # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$ac_ct_CC"; then
1647   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     ac_cv_prog_ac_ct_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 fi
1664 fi
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1669 else
1670   echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674   CC=$ac_ct_CC
1675 else
1676   CC="$ac_cv_prog_CC"
1677 fi
1678
1679 fi
1680 if test -z "$CC"; then
1681   # Extract the first word of "cc", so it can be a program name with args.
1682 set dummy cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   if test -n "$CC"; then
1689   ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691   ac_prog_rejected=no
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695   IFS=$as_save_IFS
1696   test -z "$as_dir" && as_dir=.
1697   for ac_exec_ext in '' $ac_executable_extensions; do
1698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1700        ac_prog_rejected=yes
1701        continue
1702      fi
1703     ac_cv_prog_CC="cc"
1704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705     break 2
1706   fi
1707 done
1708 done
1709
1710 if test $ac_prog_rejected = yes; then
1711   # We found a bogon in the path, so make sure we never use it.
1712   set dummy $ac_cv_prog_CC
1713   shift
1714   if test $# != 0; then
1715     # We chose a different compiler from the bogus one.
1716     # However, it has the same basename, so the bogon will be chosen
1717     # first if we set CC to just the basename; use the full file name.
1718     shift
1719     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1720   fi
1721 fi
1722 fi
1723 fi
1724 CC=$ac_cv_prog_CC
1725 if test -n "$CC"; then
1726   echo "$as_me:$LINENO: result: $CC" >&5
1727 echo "${ECHO_T}$CC" >&6
1728 else
1729   echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733 fi
1734 if test -z "$CC"; then
1735   if test -n "$ac_tool_prefix"; then
1736   for ac_prog in cl
1737   do
1738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   if test -n "$CC"; then
1746   ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   for ac_exec_ext in '' $ac_executable_extensions; do
1754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757     break 2
1758   fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 CC=$ac_cv_prog_CC
1765 if test -n "$CC"; then
1766   echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6
1768 else
1769   echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773     test -n "$CC" && break
1774   done
1775 fi
1776 if test -z "$CC"; then
1777   ac_ct_CC=$CC
1778   for ac_prog in cl
1779 do
1780   # Extract the first word of "$ac_prog", so it can be a program name with args.
1781 set dummy $ac_prog; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test -n "$ac_ct_CC"; then
1788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   for ac_exec_ext in '' $ac_executable_extensions; do
1796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797     ac_cv_prog_ac_ct_CC="$ac_prog"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1810 else
1811   echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815   test -n "$ac_ct_CC" && break
1816 done
1817
1818   CC=$ac_ct_CC
1819 fi
1820
1821 fi
1822
1823
1824 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: no acceptable C compiler found in \$PATH
1827 See \`config.log' for more details." >&2;}
1828    { (exit 1); exit 1; }; }
1829
1830 # Provide some information about the compiler.
1831 echo "$as_me:$LINENO:" \
1832      "checking for C compiler version" >&5
1833 ac_compiler=`set X $ac_compile; echo $2`
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835   (eval $ac_compiler --version </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840   (eval $ac_compiler -v </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845   (eval $ac_compiler -V </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h.  */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h.  */
1856
1857 int
1858 main ()
1859 {
1860
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 ac_clean_files_save=$ac_clean_files
1866 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867 # Try to create an executable without -o first, disregard a.out.
1868 # It will help us diagnose broken compilers, and finding out an intuition
1869 # of exeext.
1870 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874   (eval $ac_link_default) 2>&5
1875   ac_status=$?
1876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877   (exit $ac_status); }; then
1878   # Find the output, starting from the most likely.  This scheme is
1879 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # resort.
1881
1882 # Be careful to initialize this variable, since it used to be cached.
1883 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1884 ac_cv_exeext=
1885 # b.out is created by i960 compilers.
1886 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1887 do
1888   test -f "$ac_file" || continue
1889   case $ac_file in
1890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891         ;;
1892     conftest.$ac_ext )
1893         # This is the source file.
1894         ;;
1895     [ab].out )
1896         # We found the default executable, but exeext='' is most
1897         # certainly right.
1898         break;;
1899     *.* )
1900         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901         # FIXME: I believe we export ac_cv_exeext for Libtool,
1902         # but it would be cool to find out if it's true.  Does anybody
1903         # maintain Libtool? --akim.
1904         export ac_cv_exeext
1905         break;;
1906     * )
1907         break;;
1908   esac
1909 done
1910 else
1911   echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: C compiler cannot create executables
1917 See \`config.log' for more details." >&2;}
1918    { (exit 77); exit 77; }; }
1919 fi
1920
1921 ac_exeext=$ac_cv_exeext
1922 echo "$as_me:$LINENO: result: $ac_file" >&5
1923 echo "${ECHO_T}$ac_file" >&6
1924
1925 # Check the compiler produces executables we can run.  If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1930 # If not cross compiling, check that we can run a simple program.
1931 if test "$cross_compiling" != yes; then
1932   if { ac_try='./$ac_file'
1933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934   (eval $ac_try) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }; }; then
1938     cross_compiling=no
1939   else
1940     if test "$cross_compiling" = maybe; then
1941         cross_compiling=yes
1942     else
1943         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1944 If you meant to cross compile, use \`--host'.
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950     fi
1951   fi
1952 fi
1953 echo "$as_me:$LINENO: result: yes" >&5
1954 echo "${ECHO_T}yes" >&6
1955
1956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1957 ac_clean_files=$ac_clean_files_save
1958 # Check the compiler produces executables we can run.  If not, either
1959 # the compiler is broken, or we cross compile.
1960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1963 echo "${ECHO_T}$cross_compiling" >&6
1964
1965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968   (eval $ac_link) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; then
1972   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1973 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1974 # work properly (i.e., refer to `conftest.exe'), while it won't with
1975 # `rm'.
1976 for ac_file in conftest.exe conftest conftest.*; do
1977   test -f "$ac_file" || continue
1978   case $ac_file in
1979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981           export ac_cv_exeext
1982           break;;
1983     * ) break;;
1984   esac
1985 done
1986 else
1987   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1990 See \`config.log' for more details." >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 rm -f conftest$ac_cv_exeext
1995 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996 echo "${ECHO_T}$ac_cv_exeext" >&6
1997
1998 rm -f conftest.$ac_ext
1999 EXEEXT=$ac_cv_exeext
2000 ac_exeext=$EXEEXT
2001 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003 if test "${ac_cv_objext+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   cat >conftest.$ac_ext <<_ACEOF
2007 /* confdefs.h.  */
2008 _ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h.  */
2012
2013 int
2014 main ()
2015 {
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 rm -f conftest.o conftest.obj
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023   (eval $ac_compile) 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); }; then
2027   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028   case $ac_file in
2029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2030     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2031        break;;
2032   esac
2033 done
2034 else
2035   echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2041 See \`config.log' for more details." >&2;}
2042    { (exit 1); exit 1; }; }
2043 fi
2044
2045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 fi
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT=$ac_cv_objext
2050 ac_objext=$OBJEXT
2051 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   cat >conftest.$ac_ext <<_ACEOF
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>conftest.er1
2077   ac_status=$?
2078   grep -v '^ *+' conftest.er1 >conftest.err
2079   rm -f conftest.er1
2080   cat conftest.err >&5
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -z "$ac_c_werror_flag"
2084                          || test ! -s conftest.err'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_compiler_gnu=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_compiler_gnu=no
2102 fi
2103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2112 CFLAGS="-g"
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h.  */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h.  */
2124
2125 int
2126 main ()
2127 {
2128
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135   (eval $ac_compile) 2>conftest.er1
2136   ac_status=$?
2137   grep -v '^ *+' conftest.er1 >conftest.err
2138   rm -f conftest.er1
2139   cat conftest.err >&5
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); } &&
2142          { ac_try='test -z "$ac_c_werror_flag"
2143                          || test ! -s conftest.err'
2144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145   (eval $ac_try) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; } &&
2149          { ac_try='test -s conftest.$ac_objext'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; }; then
2155   ac_cv_prog_cc_g=yes
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_cv_prog_cc_g=no
2161 fi
2162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2166 if test "$ac_test_CFLAGS" = set; then
2167   CFLAGS=$ac_save_CFLAGS
2168 elif test $ac_cv_prog_cc_g = yes; then
2169   if test "$GCC" = yes; then
2170     CFLAGS="-g -O2"
2171   else
2172     CFLAGS="-g"
2173   fi
2174 else
2175   if test "$GCC" = yes; then
2176     CFLAGS="-O2"
2177   else
2178     CFLAGS=
2179   fi
2180 fi
2181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   ac_cv_prog_cc_stdc=no
2187 ac_save_CC=$CC
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h.  */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h.  */
2194 #include <stdarg.h>
2195 #include <stdio.h>
2196 #include <sys/types.h>
2197 #include <sys/stat.h>
2198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2199 struct buf { int x; };
2200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2201 static char *e (p, i)
2202      char **p;
2203      int i;
2204 {
2205   return p[i];
2206 }
2207 static char *f (char * (*g) (char **, int), char **p, ...)
2208 {
2209   char *s;
2210   va_list v;
2211   va_start (v,p);
2212   s = g (p, va_arg (v,int));
2213   va_end (v);
2214   return s;
2215 }
2216
2217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2218    function prototypes and stuff, but not '\xHH' hex character constants.
2219    These don't provoke an error unfortunately, instead are silently treated
2220    as 'x'.  The following induces an error, until -std1 is added to get
2221    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2222    array size at least.  It's necessary to write '\x00'==0 to get something
2223    that's true only with -std1.  */
2224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2225
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2230 int argc;
2231 char **argv;
2232 int
2233 main ()
2234 {
2235 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 # Don't try gcc -ansi; that turns off useful extensions and
2241 # breaks some systems' header files.
2242 # AIX                   -qlanglvl=ansi
2243 # Ultrix and OSF/1      -std1
2244 # HP-UX 10.20 and later -Ae
2245 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2246 # SVR4                  -Xc -D__EXTENSIONS__
2247 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2248 do
2249   CC="$ac_save_CC $ac_arg"
2250   rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>conftest.er1
2253   ac_status=$?
2254   grep -v '^ *+' conftest.er1 >conftest.err
2255   rm -f conftest.er1
2256   cat conftest.err >&5
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); } &&
2259          { ac_try='test -z "$ac_c_werror_flag"
2260                          || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287   x|xno)
2288     echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290   *)
2291     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293     CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C.  Since we use `exit',
2297 # in C++ we need to declare it.  In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302   choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"
2315                          || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   for ac_declaration in \
2328    '' \
2329    'extern "C" void std::exit (int) throw (); using std::exit;' \
2330    'extern "C" void std::exit (int); using std::exit;' \
2331    'extern "C" void exit (int) throw ();' \
2332    'extern "C" void exit (int);' \
2333    'void exit (int);'
2334 do
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 $ac_declaration
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_c_werror_flag"
2361                          || test ! -s conftest.err'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   :
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 continue
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381   cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387 $ac_declaration
2388 int
2389 main ()
2390 {
2391 exit (42);
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398   (eval $ac_compile) 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -z "$ac_c_werror_flag"
2406                          || test ! -s conftest.err'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   break
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 rm -f conftest*
2427 if test -n "$ac_declaration"; then
2428   echo '#ifdef __cplusplus' >>confdefs.h
2429   echo $ac_declaration      >>confdefs.h
2430   echo '#endif'             >>confdefs.h
2431 fi
2432
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 fi
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445 ac_ext=cc
2446 ac_cpp='$CXXCPP $CPPFLAGS'
2447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2452   do
2453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_CXX+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CXX"; then
2461   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476
2477 fi
2478 fi
2479 CXX=$ac_cv_prog_CXX
2480 if test -n "$CXX"; then
2481   echo "$as_me:$LINENO: result: $CXX" >&5
2482 echo "${ECHO_T}$CXX" >&6
2483 else
2484   echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 fi
2487
2488     test -n "$CXX" && break
2489   done
2490 fi
2491 if test -z "$CXX"; then
2492   ac_ct_CXX=$CXX
2493   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2494 do
2495   # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$ac_ct_CXX"; then
2503   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512     ac_cv_prog_ac_ct_CXX="$ac_prog"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518
2519 fi
2520 fi
2521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2522 if test -n "$ac_ct_CXX"; then
2523   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2524 echo "${ECHO_T}$ac_ct_CXX" >&6
2525 else
2526   echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2528 fi
2529
2530   test -n "$ac_ct_CXX" && break
2531 done
2532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2533
2534   CXX=$ac_ct_CXX
2535 fi
2536
2537
2538 # Provide some information about the compiler.
2539 echo "$as_me:$LINENO:" \
2540      "checking for C++ compiler version" >&5
2541 ac_compiler=`set X $ac_compile; echo $2`
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2543   (eval $ac_compiler --version </dev/null >&5) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2548   (eval $ac_compiler -v </dev/null >&5) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }
2552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2553   (eval $ac_compiler -V </dev/null >&5) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }
2557
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573 #ifndef __GNUC__
2574        choke me
2575 #endif
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583   (eval $ac_compile) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } &&
2590          { ac_try='test -z "$ac_cxx_werror_flag"
2591                          || test ! -s conftest.err'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   ac_compiler_gnu=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 ac_compiler_gnu=no
2609 fi
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2612
2613 fi
2614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2616 GXX=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CXXFLAGS=${CXXFLAGS+set}
2618 ac_save_CXXFLAGS=$CXXFLAGS
2619 CXXFLAGS="-g"
2620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cxx_g+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_cxx_werror_flag"
2650                          || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 ac_cv_prog_cxx_g=no
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674   CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-g -O2"
2678   else
2679     CXXFLAGS="-g"
2680   fi
2681 else
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-O2"
2684   else
2685     CXXFLAGS=
2686   fi
2687 fi
2688 for ac_declaration in \
2689    '' \
2690    'extern "C" void std::exit (int) throw (); using std::exit;' \
2691    'extern "C" void std::exit (int); using std::exit;' \
2692    'extern "C" void exit (int) throw ();' \
2693    'extern "C" void exit (int);' \
2694    'void exit (int);'
2695 do
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 #include <stdlib.h>
2704 int
2705 main ()
2706 {
2707 exit (42);
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_cxx_werror_flag"
2722                          || test ! -s conftest.err'
2723   { (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          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   :
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 continue
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742   cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 $ac_declaration
2749 int
2750 main ()
2751 {
2752 exit (42);
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -z "$ac_cxx_werror_flag"
2767                          || test ! -s conftest.err'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779   break
2780 else
2781   echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 fi
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 rm -f conftest*
2788 if test -n "$ac_declaration"; then
2789   echo '#ifdef __cplusplus' >>confdefs.h
2790   echo $ac_declaration      >>confdefs.h
2791   echo '#endif'             >>confdefs.h
2792 fi
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800 if test "x$CC" != xcc; then
2801   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2802 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2803 else
2804   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2805 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2806 fi
2807 set dummy $CC; ac_cc=`echo $2 |
2808                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2809 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 # Make sure it works both with $CC and with simple cc.
2828 # We do the test twice because some compilers refuse to overwrite an
2829 # existing .o file with -o, though they will create one.
2830 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2831 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); };
2841 then
2842   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2843   if test "x$CC" != xcc; then
2844     # Test first that cc exists at all.
2845     if { ac_try='cc -c conftest.$ac_ext >&5'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2852       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } &&
2857          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); };
2862       then
2863         # cc works too.
2864         :
2865       else
2866         # cc exists but doesn't like -o.
2867         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2868       fi
2869     fi
2870   fi
2871 else
2872   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873 fi
2874 rm -f conftest*
2875
2876 fi
2877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2878   echo "$as_me:$LINENO: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883
2884 cat >>confdefs.h <<\_ACEOF
2885 #define NO_MINUS_C_MINUS_O 1
2886 _ACEOF
2887
2888 fi
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2899   CPP=
2900 fi
2901 if test -z "$CPP"; then
2902   if test "${ac_cv_prog_CPP+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905       # Double quotes because CPP needs to be expanded
2906     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907     do
2908       ac_preproc_ok=false
2909 for ac_c_preproc_warn_flag in '' yes
2910 do
2911   # Use a header file that comes with gcc, so configuring glibc
2912   # with a fresh cross-compiler works.
2913   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914   # <limits.h> exists even on freestanding compilers.
2915   # On the NeXT, cc -E runs the code through the compiler's parser,
2916   # not just through cpp. "Syntax error" is here to catch this case.
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 #ifdef __STDC__
2924 # include <limits.h>
2925 #else
2926 # include <assert.h>
2927 #endif
2928                      Syntax error
2929 _ACEOF
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } >/dev/null; then
2938   if test -s conftest.err; then
2939     ac_cpp_err=$ac_c_preproc_warn_flag
2940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2941   else
2942     ac_cpp_err=
2943   fi
2944 else
2945   ac_cpp_err=yes
2946 fi
2947 if test -z "$ac_cpp_err"; then
2948   :
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953   # Broken: fails on valid input.
2954 continue
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958   # OK, works on sane cases.  Now check whether non-existent headers
2959   # can be detected and how.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #include <ac_nonexistent.h>
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   # Broken: success on invalid input.
2987 continue
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992   # Passes both tests.
2993 ac_preproc_ok=:
2994 break
2995 fi
2996 rm -f conftest.err conftest.$ac_ext
2997
2998 done
2999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3000 rm -f conftest.err conftest.$ac_ext
3001 if $ac_preproc_ok; then
3002   break
3003 fi
3004
3005     done
3006     ac_cv_prog_CPP=$CPP
3007
3008 fi
3009   CPP=$ac_cv_prog_CPP
3010 else
3011   ac_cv_prog_CPP=$CPP
3012 fi
3013 echo "$as_me:$LINENO: result: $CPP" >&5
3014 echo "${ECHO_T}$CPP" >&6
3015 ac_preproc_ok=false
3016 for ac_c_preproc_warn_flag in '' yes
3017 do
3018   # Use a header file that comes with gcc, so configuring glibc
3019   # with a fresh cross-compiler works.
3020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021   # <limits.h> exists even on freestanding compilers.
3022   # On the NeXT, cc -E runs the code through the compiler's parser,
3023   # not just through cpp. "Syntax error" is here to catch this case.
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #ifdef __STDC__
3031 # include <limits.h>
3032 #else
3033 # include <assert.h>
3034 #endif
3035                      Syntax error
3036 _ACEOF
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } >/dev/null; then
3045   if test -s conftest.err; then
3046     ac_cpp_err=$ac_c_preproc_warn_flag
3047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3048   else
3049     ac_cpp_err=
3050   fi
3051 else
3052   ac_cpp_err=yes
3053 fi
3054 if test -z "$ac_cpp_err"; then
3055   :
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060   # Broken: fails on valid input.
3061 continue
3062 fi
3063 rm -f conftest.err conftest.$ac_ext
3064
3065   # OK, works on sane cases.  Now check whether non-existent headers
3066   # can be detected and how.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #include <ac_nonexistent.h>
3074 _ACEOF
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } >/dev/null; then
3083   if test -s conftest.err; then
3084     ac_cpp_err=$ac_c_preproc_warn_flag
3085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3086   else
3087     ac_cpp_err=
3088   fi
3089 else
3090   ac_cpp_err=yes
3091 fi
3092 if test -z "$ac_cpp_err"; then
3093   # Broken: success on invalid input.
3094 continue
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099   # Passes both tests.
3100 ac_preproc_ok=:
3101 break
3102 fi
3103 rm -f conftest.err conftest.$ac_ext
3104
3105 done
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.err conftest.$ac_ext
3108 if $ac_preproc_ok; then
3109   :
3110 else
3111   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115    { (exit 1); exit 1; }; }
3116 fi
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125 echo "$as_me:$LINENO: checking for egrep" >&5
3126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3127 if test "${ac_cv_prog_egrep+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3131     then ac_cv_prog_egrep='grep -E'
3132     else ac_cv_prog_egrep='egrep'
3133     fi
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3137  EGREP=$ac_cv_prog_egrep
3138
3139
3140 if test $ac_cv_c_compiler_gnu = yes; then
3141     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3142 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3143 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146     ac_pattern="Autoconf.*'x'"
3147   cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153 #include <sgtty.h>
3154 Autoconf TIOCGETP
3155 _ACEOF
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3158   ac_cv_prog_gcc_traditional=yes
3159 else
3160   ac_cv_prog_gcc_traditional=no
3161 fi
3162 rm -f conftest*
3163
3164
3165   if test $ac_cv_prog_gcc_traditional = no; then
3166     cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <termio.h>
3173 Autoconf TCGETA
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 fi
3179 rm -f conftest*
3180
3181   fi
3182 fi
3183 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3184 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3185   if test $ac_cv_prog_gcc_traditional = yes; then
3186     CC="$CC -traditional"
3187   fi
3188 fi
3189
3190 if test "x$CC" = xgcc
3191 then
3192    cat >>confdefs.h <<\_ACEOF
3193 #define HAVE_GCC 1
3194 _ACEOF
3195
3196 fi
3197
3198 # Find a good install program.  We prefer a C program (faster),
3199 # so one script is as good as another.  But avoid the broken or
3200 # incompatible versions:
3201 # SysV /etc/install, /usr/sbin/install
3202 # SunOS /usr/etc/install
3203 # IRIX /sbin/install
3204 # AIX /bin/install
3205 # AmigaOS /C/install, which installs bootblocks on floppy discs
3206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209 # OS/2's system install, which has a completely different semantic
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3212 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222   # Account for people who put trailing slashes in PATH elements.
3223 case $as_dir/ in
3224   ./ | .// | /cC/* | \
3225   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3227   /usr/ucb/* ) ;;
3228   *)
3229     # OSF1 and SCO ODT 3.0 have their own names for install.
3230     # Don't use installbsd from OSF since it installs stuff as root
3231     # by default.
3232     for ac_prog in ginstall scoinst install; do
3233       for ac_exec_ext in '' $ac_executable_extensions; do
3234         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3235           if test $ac_prog = install &&
3236             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237             # AIX install.  It has an incompatible calling convention.
3238             :
3239           elif test $ac_prog = install &&
3240             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241             # program-specific install script used by HP pwplus--don't use.
3242             :
3243           else
3244             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245             break 3
3246           fi
3247         fi
3248       done
3249     done
3250     ;;
3251 esac
3252 done
3253
3254
3255 fi
3256   if test "${ac_cv_path_install+set}" = set; then
3257     INSTALL=$ac_cv_path_install
3258   else
3259     # As a last resort, use the slow shell script.  We don't cache a
3260     # path for INSTALL within a source directory, because that will
3261     # break other packages using the cache if that directory is
3262     # removed, or if the path is relative.
3263     INSTALL=$ac_install_sh
3264   fi
3265 fi
3266 echo "$as_me:$LINENO: result: $INSTALL" >&5
3267 echo "${ECHO_T}$INSTALL" >&6
3268
3269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3270 # It thinks the first close brace ends the variable substitution.
3271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3272
3273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3274
3275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3276
3277 if test -n "$ac_tool_prefix"; then
3278   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_RANLIB+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$RANLIB"; then
3286   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301
3302 fi
3303 fi
3304 RANLIB=$ac_cv_prog_RANLIB
3305 if test -n "$RANLIB"; then
3306   echo "$as_me:$LINENO: result: $RANLIB" >&5
3307 echo "${ECHO_T}$RANLIB" >&6
3308 else
3309   echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 fi
3312
3313 fi
3314 if test -z "$ac_cv_prog_RANLIB"; then
3315   ac_ct_RANLIB=$RANLIB
3316   # Extract the first word of "ranlib", so it can be a program name with args.
3317 set dummy ranlib; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   if test -n "$ac_ct_RANLIB"; then
3324   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331   for ac_exec_ext in '' $ac_executable_extensions; do
3332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333     ac_cv_prog_ac_ct_RANLIB="ranlib"
3334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338 done
3339
3340   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3341 fi
3342 fi
3343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3344 if test -n "$ac_ct_RANLIB"; then
3345   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3347 else
3348   echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350 fi
3351
3352   RANLIB=$ac_ct_RANLIB
3353 else
3354   RANLIB="$ac_cv_prog_RANLIB"
3355 fi
3356
3357 # Extract the first word of "mv", so it can be a program name with args.
3358 set dummy mv; ac_word=$2
3359 echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361 if test "${ac_cv_path_MV+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   case $MV in
3365   [\\/]* | ?:[\\/]*)
3366   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3367   ;;
3368   *)
3369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374   for ac_exec_ext in '' $ac_executable_extensions; do
3375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381 done
3382
3383   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3384   ;;
3385 esac
3386 fi
3387 MV=$ac_cv_path_MV
3388
3389 if test -n "$MV"; then
3390   echo "$as_me:$LINENO: result: $MV" >&5
3391 echo "${ECHO_T}$MV" >&6
3392 else
3393   echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3395 fi
3396
3397 # Extract the first word of "rm", so it can be a program name with args.
3398 set dummy rm; ac_word=$2
3399 echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401 if test "${ac_cv_path_RM+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   case $RM in
3405   [\\/]* | ?:[\\/]*)
3406   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3407   ;;
3408   *)
3409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422
3423   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3424   ;;
3425 esac
3426 fi
3427 RM=$ac_cv_path_RM
3428
3429 if test -n "$RM"; then
3430   echo "$as_me:$LINENO: result: $RM" >&5
3431 echo "${ECHO_T}$RM" >&6
3432 else
3433   echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 fi
3436
3437 # Extract the first word of "cp", so it can be a program name with args.
3438 set dummy cp; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_CP+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   case $CP in
3445   [\\/]* | ?:[\\/]*)
3446   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3447   ;;
3448   *)
3449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454   for ac_exec_ext in '' $ac_executable_extensions; do
3455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461 done
3462
3463   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3464   ;;
3465 esac
3466 fi
3467 CP=$ac_cv_path_CP
3468
3469 if test -n "$CP"; then
3470   echo "$as_me:$LINENO: result: $CP" >&5
3471 echo "${ECHO_T}$CP" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476
3477 # Extract the first word of "sed", so it can be a program name with args.
3478 set dummy sed; ac_word=$2
3479 echo "$as_me:$LINENO: checking for $ac_word" >&5
3480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481 if test "${ac_cv_path_SED+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   case $SED in
3485   [\\/]* | ?:[\\/]*)
3486   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3487   ;;
3488   *)
3489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   for ac_exec_ext in '' $ac_executable_extensions; do
3495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501 done
3502
3503   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3504   ;;
3505 esac
3506 fi
3507 SED=$ac_cv_path_SED
3508
3509 if test -n "$SED"; then
3510   echo "$as_me:$LINENO: result: $SED" >&5
3511 echo "${ECHO_T}$SED" >&6
3512 else
3513   echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3515 fi
3516
3517 # Extract the first word of "awk", so it can be a program name with args.
3518 set dummy awk; ac_word=$2
3519 echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521 if test "${ac_cv_path_AWK+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   case $AWK in
3525   [\\/]* | ?:[\\/]*)
3526   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3527   ;;
3528   *)
3529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534   for ac_exec_ext in '' $ac_executable_extensions; do
3535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541 done
3542
3543   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3544   ;;
3545 esac
3546 fi
3547 AWK=$ac_cv_path_AWK
3548
3549 if test -n "$AWK"; then
3550   echo "$as_me:$LINENO: result: $AWK" >&5
3551 echo "${ECHO_T}$AWK" >&6
3552 else
3553   echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3555 fi
3556
3557 # Extract the first word of "echo", so it can be a program name with args.
3558 set dummy echo; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_path_ECHO+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   case $ECHO in
3565   [\\/]* | ?:[\\/]*)
3566   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3567   ;;
3568   *)
3569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582
3583   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3584   ;;
3585 esac
3586 fi
3587 ECHO=$ac_cv_path_ECHO
3588
3589 if test -n "$ECHO"; then
3590   echo "$as_me:$LINENO: result: $ECHO" >&5
3591 echo "${ECHO_T}$ECHO" >&6
3592 else
3593   echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595 fi
3596
3597 # Extract the first word of "cmp", so it can be a program name with args.
3598 set dummy cmp; ac_word=$2
3599 echo "$as_me:$LINENO: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_path_CMP+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   case $CMP in
3605   [\\/]* | ?:[\\/]*)
3606   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3607   ;;
3608   *)
3609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614   for ac_exec_ext in '' $ac_executable_extensions; do
3615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618     break 2
3619   fi
3620 done
3621 done
3622
3623   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3624   ;;
3625 esac
3626 fi
3627 CMP=$ac_cv_path_CMP
3628
3629 if test -n "$CMP"; then
3630   echo "$as_me:$LINENO: result: $CMP" >&5
3631 echo "${ECHO_T}$CMP" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637 # Extract the first word of "tbl", so it can be a program name with args.
3638 set dummy tbl; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_path_TBL+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   case $TBL in
3645   [\\/]* | ?:[\\/]*)
3646   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3647   ;;
3648   *)
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654   for ac_exec_ext in '' $ac_executable_extensions; do
3655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661 done
3662
3663   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3664   ;;
3665 esac
3666 fi
3667 TBL=$ac_cv_path_TBL
3668
3669 if test -n "$TBL"; then
3670   echo "$as_me:$LINENO: result: $TBL" >&5
3671 echo "${ECHO_T}$TBL" >&6
3672 else
3673   echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3675 fi
3676
3677 # Extract the first word of "ar", so it can be a program name with args.
3678 set dummy ar; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_path_AR+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   case $AR in
3685   [\\/]* | ?:[\\/]*)
3686   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3687   ;;
3688   *)
3689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694   for ac_exec_ext in '' $ac_executable_extensions; do
3695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701 done
3702
3703   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3704   ;;
3705 esac
3706 fi
3707 AR=$ac_cv_path_AR
3708
3709 if test -n "$AR"; then
3710   echo "$as_me:$LINENO: result: $AR" >&5
3711 echo "${ECHO_T}$AR" >&6
3712 else
3713   echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717 # Extract the first word of "openssl", so it can be a program name with args.
3718 set dummy openssl; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_path_OPENSSL+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   case $OPENSSL in
3725   [\\/]* | ?:[\\/]*)
3726   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3727   ;;
3728   *)
3729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for ac_exec_ext in '' $ac_executable_extensions; do
3735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741 done
3742
3743   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3744   ;;
3745 esac
3746 fi
3747 OPENSSL=$ac_cv_path_OPENSSL
3748
3749 if test -n "$OPENSSL"; then
3750   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3751 echo "${ECHO_T}$OPENSSL" >&6
3752 else
3753   echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3755 fi
3756
3757 # Extract the first word of "mtx", so it can be a program name with args.
3758 set dummy mtx; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_path_MTX+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   case $MTX in
3765   [\\/]* | ?:[\\/]*)
3766   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3767   ;;
3768   *)
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781 done
3782
3783   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3784   ;;
3785 esac
3786 fi
3787 MTX=$ac_cv_path_MTX
3788
3789 if test -n "$MTX"; then
3790   echo "$as_me:$LINENO: result: $MTX" >&5
3791 echo "${ECHO_T}$MTX" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797 # Extract the first word of "pkg-config", so it can be a program name with args.
3798 set dummy pkg-config; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   case $PKGCONFIG in
3805   [\\/]* | ?:[\\/]*)
3806   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3807   ;;
3808   *)
3809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3824   ;;
3825 esac
3826 fi
3827 PKGCONFIG=$ac_cv_path_PKGCONFIG
3828
3829 if test -n "$PKGCONFIG"; then
3830   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3831 echo "${ECHO_T}$PKGCONFIG" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835 fi
3836
3837 # Extract the first word of "wx-config", so it can be a program name with args.
3838 set dummy wx-config; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   case $WXCONFIG in
3845   [\\/]* | ?:[\\/]*)
3846   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3847   ;;
3848   *)
3849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852   IFS=$as_save_IFS
3853   test -z "$as_dir" && as_dir=.
3854   for ac_exec_ext in '' $ac_executable_extensions; do
3855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858     break 2
3859   fi
3860 done
3861 done
3862
3863   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3864   ;;
3865 esac
3866 fi
3867 WXCONFIG=$ac_cv_path_WXCONFIG
3868
3869 if test -n "$WXCONFIG"; then
3870   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3871 echo "${ECHO_T}$WXCONFIG" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877 # Extract the first word of "cdrecord", so it can be a program name with args.
3878 set dummy cdrecord; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_path_CDRECORD+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   case $CDRECORD in
3885   [\\/]* | ?:[\\/]*)
3886   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3887   ;;
3888   *)
3889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902
3903   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3904   ;;
3905 esac
3906 fi
3907 CDRECORD=$ac_cv_path_CDRECORD
3908
3909 if test -n "$CDRECORD"; then
3910   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3911 echo "${ECHO_T}$CDRECORD" >&6
3912 else
3913   echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 # Extract the first word of "pidof", so it can be a program name with args.
3918 set dummy pidof; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_path_PIDOF+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $PIDOF in
3925   [\\/]* | ?:[\\/]*)
3926   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3927   ;;
3928   *)
3929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3944   ;;
3945 esac
3946 fi
3947 PIDOF=$ac_cv_path_PIDOF
3948
3949 if test -n "$PIDOF"; then
3950   echo "$as_me:$LINENO: result: $PIDOF" >&5
3951 echo "${ECHO_T}$PIDOF" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958 test -n "$ARFLAG" || ARFLAGS="cr"
3959
3960
3961 MAKE_SHELL=/bin/sh
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971 # Make sure we can run config.sub.
3972 $ac_config_sub sun4 >/dev/null 2>&1 ||
3973   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3974 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3975    { (exit 1); exit 1; }; }
3976
3977 echo "$as_me:$LINENO: checking build system type" >&5
3978 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3979 if test "${ac_cv_build+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   ac_cv_build_alias=$build_alias
3983 test -z "$ac_cv_build_alias" &&
3984   ac_cv_build_alias=`$ac_config_guess`
3985 test -z "$ac_cv_build_alias" &&
3986   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3988    { (exit 1); exit 1; }; }
3989 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3990   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3991 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3992    { (exit 1); exit 1; }; }
3993
3994 fi
3995 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3996 echo "${ECHO_T}$ac_cv_build" >&6
3997 build=$ac_cv_build
3998 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3999 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4000 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4001
4002
4003
4004 echo "$as_me:$LINENO: checking host system type" >&5
4005 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4006 if test "${ac_cv_host+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   ac_cv_host_alias=$host_alias
4010 test -z "$ac_cv_host_alias" &&
4011   ac_cv_host_alias=$ac_cv_build_alias
4012 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4013   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4014 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4015    { (exit 1); exit 1; }; }
4016
4017 fi
4018 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4019 echo "${ECHO_T}$ac_cv_host" >&6
4020 host=$ac_cv_host
4021 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4022 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4023 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4024
4025
4026 case $host_os in
4027   *cygwin* ) CYGWIN=yes;;
4028          * ) CYGWIN=no;;
4029 esac
4030
4031 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4032 then
4033
4034
4035 if $TRUEPRG; then
4036   HAVE_SUN_OS_TRUE=
4037   HAVE_SUN_OS_FALSE='#'
4038 else
4039   HAVE_SUN_OS_TRUE='#'
4040   HAVE_SUN_OS_FALSE=
4041 fi
4042         cat >>confdefs.h <<\_ACEOF
4043 #define HAVE_SUN_OS 1
4044 _ACEOF
4045
4046 else
4047
4048
4049 if $FALSEPRG; then
4050   HAVE_SUN_OS_TRUE=
4051   HAVE_SUN_OS_FALSE='#'
4052 else
4053   HAVE_SUN_OS_TRUE='#'
4054   HAVE_SUN_OS_FALSE=
4055 fi
4056 fi
4057
4058 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4059 then
4060
4061
4062 if $TRUEPRG; then
4063   HAVE_OSF1_OS_TRUE=
4064   HAVE_OSF1_OS_FALSE='#'
4065 else
4066   HAVE_OSF1_OS_TRUE='#'
4067   HAVE_OSF1_OS_FALSE=
4068 fi
4069         cat >>confdefs.h <<\_ACEOF
4070 #define HAVE_OSF1_OS 1
4071 _ACEOF
4072
4073 else
4074
4075
4076 if $FALSEPRG; then
4077   HAVE_OSF1_OS_TRUE=
4078   HAVE_OSF1_OS_FALSE='#'
4079 else
4080   HAVE_OSF1_OS_TRUE='#'
4081   HAVE_OSF1_OS_FALSE=
4082 fi
4083 fi
4084
4085 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4086 then
4087
4088
4089 if $TRUEPRG; then
4090   HAVE_AIX_OS_TRUE=
4091   HAVE_AIX_OS_FALSE='#'
4092 else
4093   HAVE_AIX_OS_TRUE='#'
4094   HAVE_AIX_OS_FALSE=
4095 fi
4096         cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_AIX_OS 1
4098 _ACEOF
4099
4100 else
4101
4102
4103 if $FALSEPRG; then
4104   HAVE_AIX_OS_TRUE=
4105   HAVE_AIX_OS_FALSE='#'
4106 else
4107   HAVE_AIX_OS_TRUE='#'
4108   HAVE_AIX_OS_FALSE=
4109 fi
4110 fi
4111
4112 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4113 then
4114
4115
4116 if $TRUEPRG; then
4117   HAVE_HPUX_OS_TRUE=
4118   HAVE_HPUX_OS_FALSE='#'
4119 else
4120   HAVE_HPUX_OS_TRUE='#'
4121   HAVE_HPUX_OS_FALSE=
4122 fi
4123         cat >>confdefs.h <<\_ACEOF
4124 #define HAVE_HPUX_OS 1
4125 _ACEOF
4126
4127 else
4128
4129
4130 if $FALSEPRG; then
4131   HAVE_HPUX_OS_TRUE=
4132   HAVE_HPUX_OS_FALSE='#'
4133 else
4134   HAVE_HPUX_OS_TRUE='#'
4135   HAVE_HPUX_OS_FALSE=
4136 fi
4137 fi
4138
4139 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4140 then
4141
4142
4143 if $TRUEPRG; then
4144   HAVE_LINUX_OS_TRUE=
4145   HAVE_LINUX_OS_FALSE='#'
4146 else
4147   HAVE_LINUX_OS_TRUE='#'
4148   HAVE_LINUX_OS_FALSE=
4149 fi
4150         cat >>confdefs.h <<\_ACEOF
4151 #define HAVE_LINUX_OS 1
4152 _ACEOF
4153
4154 else
4155
4156
4157 if $FALSEPRG; then
4158   HAVE_LINUX_OS_TRUE=
4159   HAVE_LINUX_OS_FALSE='#'
4160 else
4161   HAVE_LINUX_OS_TRUE='#'
4162   HAVE_LINUX_OS_FALSE=
4163 fi
4164 fi
4165
4166 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4167 then
4168
4169
4170 if $TRUEPRG; then
4171   HAVE_FREEBSD_OS_TRUE=
4172   HAVE_FREEBSD_OS_FALSE='#'
4173 else
4174   HAVE_FREEBSD_OS_TRUE='#'
4175   HAVE_FREEBSD_OS_FALSE=
4176 fi
4177         cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_FREEBSD_OS 1
4179 _ACEOF
4180
4181 else
4182
4183
4184 if $FALSEPRG; then
4185   HAVE_FREEBSD_OS_TRUE=
4186   HAVE_FREEBSD_OS_FALSE='#'
4187 else
4188   HAVE_FREEBSD_OS_TRUE='#'
4189   HAVE_FREEBSD_OS_FALSE=
4190 fi
4191 fi
4192
4193 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4194 then
4195
4196
4197 if $TRUEPRG; then
4198   HAVE_NETBSD_OS_TRUE=
4199   HAVE_NETBSD_OS_FALSE='#'
4200 else
4201   HAVE_NETBSD_OS_TRUE='#'
4202   HAVE_NETBSD_OS_FALSE=
4203 fi
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_NETBSD_OS 1
4206 _ACEOF
4207
4208 else
4209
4210
4211 if $FALSEPRG; then
4212   HAVE_NETBSD_OS_TRUE=
4213   HAVE_NETBSD_OS_FALSE='#'
4214 else
4215   HAVE_NETBSD_OS_TRUE='#'
4216   HAVE_NETBSD_OS_FALSE=
4217 fi
4218 fi
4219
4220 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4221 then
4222
4223
4224 if $TRUEPRG; then
4225   HAVE_OPENBSD_OS_TRUE=
4226   HAVE_OPENBSD_OS_FALSE='#'
4227 else
4228   HAVE_OPENBSD_OS_TRUE='#'
4229   HAVE_OPENBSD_OS_FALSE=
4230 fi
4231         cat >>confdefs.h <<\_ACEOF
4232 #define HAVE_OPENBSD_OS 1
4233 _ACEOF
4234
4235 else
4236
4237
4238 if $FALSEPRG; then
4239   HAVE_OPENBSD_OS_TRUE=
4240   HAVE_OPENBSD_OS_FALSE='#'
4241 else
4242   HAVE_OPENBSD_OS_TRUE='#'
4243   HAVE_OPENBSD_OS_FALSE=
4244 fi
4245 fi
4246
4247 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4248 then
4249
4250
4251 if $TRUEPRG; then
4252   HAVE_BSDI_OS_TRUE=
4253   HAVE_BSDI_OS_FALSE='#'
4254 else
4255   HAVE_BSDI_OS_TRUE='#'
4256   HAVE_BSDI_OS_FALSE=
4257 fi
4258         cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_BSDI_OS 1
4260 _ACEOF
4261
4262 else
4263
4264
4265 if $FALSEPRG; then
4266   HAVE_BSDI_OS_TRUE=
4267   HAVE_BSDI_OS_FALSE='#'
4268 else
4269   HAVE_BSDI_OS_TRUE='#'
4270   HAVE_BSDI_OS_FALSE=
4271 fi
4272 fi
4273
4274 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4275 then
4276
4277
4278 if $TRUEPRG; then
4279   HAVE_SGI_OS_TRUE=
4280   HAVE_SGI_OS_FALSE='#'
4281 else
4282   HAVE_SGI_OS_TRUE='#'
4283   HAVE_SGI_OS_FALSE=
4284 fi
4285         cat >>confdefs.h <<\_ACEOF
4286 #define HAVE_SGI_OS 1
4287 _ACEOF
4288
4289 else
4290
4291
4292 if $FALSEPRG; then
4293   HAVE_SGI_OS_TRUE=
4294   HAVE_SGI_OS_FALSE='#'
4295 else
4296   HAVE_SGI_OS_TRUE='#'
4297   HAVE_SGI_OS_FALSE=
4298 fi
4299 fi
4300
4301 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4302 then
4303
4304
4305 if $TRUEPRG; then
4306   HAVE_IRIX_OS_TRUE=
4307   HAVE_IRIX_OS_FALSE='#'
4308 else
4309   HAVE_IRIX_OS_TRUE='#'
4310   HAVE_IRIX_OS_FALSE=
4311 fi
4312         cat >>confdefs.h <<\_ACEOF
4313 #define HAVE_IRIX_OS 1
4314 _ACEOF
4315
4316 else
4317
4318
4319 if $FALSEPRG; then
4320   HAVE_IRIX_OS_TRUE=
4321   HAVE_IRIX_OS_FALSE='#'
4322 else
4323   HAVE_IRIX_OS_TRUE='#'
4324   HAVE_IRIX_OS_FALSE=
4325 fi
4326 fi
4327
4328 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4329 then
4330
4331
4332 if $TRUEPRG; then
4333   HAVE_DARWIN_OS_TRUE=
4334   HAVE_DARWIN_OS_FALSE='#'
4335 else
4336   HAVE_DARWIN_OS_TRUE='#'
4337   HAVE_DARWIN_OS_FALSE=
4338 fi
4339     cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_DARWIN_OS 1
4341 _ACEOF
4342
4343 else
4344
4345
4346 if $FALSEPRG; then
4347   HAVE_DARWIN_OS_TRUE=
4348   HAVE_DARWIN_OS_FALSE='#'
4349 else
4350   HAVE_DARWIN_OS_TRUE='#'
4351   HAVE_DARWIN_OS_FALSE=
4352 fi
4353 fi
4354
4355
4356 # -----------------------------------------------------------
4357 # ----------------------------------------------------------
4358 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4359 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4360 if test "x$DISTNAME" != "x"
4361 then
4362         echo "distname set to $DISTNAME"
4363 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4364 then
4365         DISTNAME=alpha
4366 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4367 then
4368         DISTNAME=aix
4369 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4370 then
4371         DISTNAME=hpux
4372 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4373 then
4374         DISTNAME=solaris
4375 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4376 then
4377         DISTNAME=freebsd
4378 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4379 then
4380         DISTNAME=netbsd
4381 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4382 then
4383         DISTNAME=openbsd
4384 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4385 then
4386         DISTNAME=irix
4387 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4388 then
4389         DISTNAME=bsdi
4390 elif test -f /etc/SuSE-release
4391 then
4392         DISTNAME=suse
4393 elif test -d /etc/SuSEconfig
4394 then
4395         DISTNAME=suse5
4396 elif test -f /etc/mandrake-release
4397 then
4398         DISTNAME=mandrake
4399 elif test -f /etc/whitebox-release
4400 then
4401        DISTNAME=redhat
4402 elif test -f /etc/redhat-release
4403 then
4404         DISTNAME=redhat
4405 elif test -f /etc/gentoo-release
4406 then
4407         DISTNAME=gentoo
4408 elif test -f /etc/debian_version
4409 then
4410         DISTNAME=debian
4411 elif test -f /etc/slackware-version
4412 then
4413         DISTNAME=slackware
4414 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4415 then
4416     DISTNAME=darwin
4417 elif test -f /etc/engarde-version
4418 then
4419         DISTNAME=engarde
4420 elif test "$CYGWIN" = yes
4421 then
4422         DISTNAME=cygwin
4423         cat >>confdefs.h <<\_ACEOF
4424 #define HAVE_CYGWIN 1
4425 _ACEOF
4426
4427 else
4428         DISTNAME=unknown
4429 fi
4430 echo "$as_me:$LINENO: result: done" >&5
4431 echo "${ECHO_T}done" >&6
4432
4433
4434 # -----------------------------------------------------------
4435 # ----------------------------------------------------------
4436
4437
4438
4439 if false; then
4440   INSIDE_GNOME_COMMON_TRUE=
4441   INSIDE_GNOME_COMMON_FALSE='#'
4442 else
4443   INSIDE_GNOME_COMMON_TRUE='#'
4444   INSIDE_GNOME_COMMON_FALSE=
4445 fi
4446
4447         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4448
4449         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4450
4451
4452 # ------------------------------------------------------------------
4453 #  If the user has not set --prefix, we set our default to nothing.
4454 #  In this case, if the user has not set --sysconfdir, we set it
4455 #  to the package default of /etc/bacula.  If either --prefix or
4456 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4457 # ------------------------------------------------------------------
4458 if test x${prefix} = xNONE ; then
4459     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4460         sysconfdir=/etc/bacula
4461     fi
4462     prefix=
4463 fi
4464 sysconfdir=`eval echo ${sysconfdir}`
4465
4466 # -------------------------------------------------------------------------
4467 #  If the user has not set --exec-prefix, we default to ${prefix}
4468 # -------------------------------------------------------------------------
4469 if test x${exec_prefix} = xNONE ; then
4470     exec_prefix=${prefix}
4471 fi
4472
4473 # ------------------------------------------------------------------
4474 # If the user has not set --sbindir, we set our default as /sbin
4475 # ------------------------------------------------------------------
4476 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4477     sbindir=${exec_prefix}/sbin
4478 fi
4479 sbindir=`eval echo ${sbindir}`
4480
4481 # ------------------------------------------------------------------
4482 # All list of languages for which a translation exist. Each
4483 #  language is separated by a space.
4484 # ------------------------------------------------------------------
4485 ALL_LINGUAS=""
4486
4487 for ac_prog in msgfmt
4488 do
4489   # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_path_MSGFMT+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   case $MSGFMT in
4497   [\\/]* | ?:[\\/]*)
4498   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4499   ;;
4500   *)
4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514
4515   ;;
4516 esac
4517 fi
4518 MSGFMT=$ac_cv_path_MSGFMT
4519
4520 if test -n "$MSGFMT"; then
4521   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4522 echo "${ECHO_T}$MSGFMT" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528   test -n "$MSGFMT" && break
4529 done
4530 test -n "$MSGFMT" || MSGFMT="no"
4531
4532 if test "$MSGFMT" = "no"
4533 then
4534    echo 'msgfmt program not found, disabling NLS !'
4535    USE_NLS=no
4536    USE_INCLUDED_LIBINTL=no
4537 #else
4538 #   AM_GNU_GETTEXT
4539 fi
4540
4541
4542 support_mysql=no
4543 support_sqlite=no
4544 support_postgresql=no
4545 support_smartalloc=yes
4546 support_readline=yes
4547 support_conio=yes
4548 support_gnome=no
4549 support_wx_console=no
4550 gnome_version=
4551 support_static_tools=no
4552 support_static_fd=no
4553 support_static_sd=no
4554 support_static_dir=no
4555 support_static_cons=no
4556 support_python=no
4557 build_client_only=no
4558 cats=
4559 db_name=Internal
4560 DB_NAME=bdb
4561
4562
4563 # -------------------------------------------
4564 # gnome (default off)
4565 # -------------------------------------------
4566 # Check whether --enable-gnome or --disable-gnome was given.
4567 if test "${enable_gnome+set}" = set; then
4568   enableval="$enable_gnome"
4569   if test x$enableval = xyes; then
4570     support_gnome=yes
4571   fi
4572 fi;
4573
4574 GNOME_DIR=
4575 if test x$support_gnome = xyes; then
4576   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4577   pkg=$?
4578   if test $pkg = 0; then
4579      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4580      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4581      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4582      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4583
4584
4585
4586
4587      GNOME_DIR=src/gnome2-console
4588      gnome_version="Version 2.x"
4589   else
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4602 if test "${with_gnome_includes+set}" = set; then
4603   withval="$with_gnome_includes"
4604
4605         CFLAGS="$CFLAGS -I$withval"
4606
4607 fi;
4608
4609
4610 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4611 if test "${with_gnome_libs+set}" = set; then
4612   withval="$with_gnome_libs"
4613
4614         LDFLAGS="$LDFLAGS -L$withval"
4615         gnome_prefix=$withval
4616
4617 fi;
4618
4619
4620 # Check whether --with-gnome or --without-gnome was given.
4621 if test "${with_gnome+set}" = set; then
4622   withval="$with_gnome"
4623   if test x$withval = xyes; then
4624                         want_gnome=yes
4625                                                                         :
4626                 else
4627                         if test "x$withval" = xno; then
4628                                 want_gnome=no
4629                         else
4630                                 want_gnome=yes
4631                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4632                                 CFLAGS="$CFLAGS -I$withval/include"
4633                                 gnome_prefix=$withval/lib
4634                         fi
4635                 fi
4636 else
4637   want_gnome=yes
4638 fi;
4639
4640         if test "x$want_gnome" = xyes; then
4641
4642             # Extract the first word of "gnome-config", so it can be a program name with args.
4643 set dummy gnome-config; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   case $GNOME_CONFIG in
4650   [\\/]* | ?:[\\/]*)
4651   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4652   ;;
4653   *)
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667
4668   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4669   ;;
4670 esac
4671 fi
4672 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4673
4674 if test -n "$GNOME_CONFIG"; then
4675   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4676 echo "${ECHO_T}$GNOME_CONFIG" >&6
4677 else
4678   echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4680 fi
4681
4682             if test "$GNOME_CONFIG" = "no"; then
4683               no_gnome_config="yes"
4684             else
4685               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4686 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4687               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4688                 echo "$as_me:$LINENO: result: yes" >&5
4689 echo "${ECHO_T}yes" >&6
4690
4691
4692         # Extract the first word of "orbit-config", so it can be a program name with args.
4693 set dummy orbit-config; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   case $ORBIT_CONFIG in
4700   [\\/]* | ?:[\\/]*)
4701   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4702   ;;
4703   *)
4704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716 done
4717
4718   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4719   ;;
4720 esac
4721 fi
4722 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4723
4724 if test -n "$ORBIT_CONFIG"; then
4725   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4726 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4727 else
4728   echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4730 fi
4731
4732         # Extract the first word of "orbit-idl", so it can be a program name with args.
4733 set dummy orbit-idl; ac_word=$2
4734 echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   case $ORBIT_IDL in
4740   [\\/]* | ?:[\\/]*)
4741   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4742   ;;
4743   *)
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757
4758   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4759   ;;
4760 esac
4761 fi
4762 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4763
4764 if test -n "$ORBIT_IDL"; then
4765   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4766 echo "${ECHO_T}$ORBIT_IDL" >&6
4767 else
4768   echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4770 fi
4771
4772         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4773 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4774 if test "${gnome_cv_orbit_found+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777
4778                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4779                         gnome_cv_orbit_found=no
4780                 else
4781                         gnome_cv_orbit_found=yes
4782                 fi
4783
4784 fi
4785 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4786 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4787
4788
4789 if test x$gnome_cv_orbit_found = xyes; then
4790   HAVE_ORBIT_TRUE=
4791   HAVE_ORBIT_FALSE='#'
4792 else
4793   HAVE_ORBIT_TRUE='#'
4794   HAVE_ORBIT_FALSE=
4795 fi
4796         if test x$gnome_cv_orbit_found = xyes; then
4797
4798                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4799                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4800
4801
4802         else
4803                 if test xfail = xfailure; then
4804                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4805 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4806    { (exit 1); exit 1; }; }
4807                 fi
4808         fi
4809
4810         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4811 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4812 if test "${gnome_cv_gnorba_found+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815
4816                 gnome_cv_gnorba_found=no
4817                 if test x$gnome_cv_orbit_found = xyes; then
4818                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4819                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4820                         if test -n "$GNORBA_LIBS"; then
4821                                 gnome_cv_gnorba_found=yes
4822                         fi
4823                 fi
4824
4825 fi
4826 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4827 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4828
4829
4830 if test x$gnome_cv_gnorba_found = xyes; then
4831   HAVE_GNORBA_TRUE=
4832   HAVE_GNORBA_FALSE='#'
4833 else
4834   HAVE_GNORBA_TRUE='#'
4835   HAVE_GNORBA_FALSE=
4836 fi
4837         if test x$gnome_cv_orbit_found = xyes; then
4838
4839                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4840                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4841
4842
4843         else
4844                 if test xfail = xfailure; then
4845                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4846 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4847    { (exit 1); exit 1; }; }
4848                 fi
4849         fi
4850
4851                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4852                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4853                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4854                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4855                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4856                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4857                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4858
4859               else
4860                 echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4862                 no_gnome_config="yes"
4863               fi
4864             fi
4865
4866             if test x$exec_prefix = xNONE; then
4867                 if test x$prefix = xNONE; then
4868                     gnome_prefix=$ac_default_prefix/lib
4869                 else
4870                     gnome_prefix=$prefix/lib
4871                 fi
4872             else
4873                 gnome_prefix=`eval echo \`echo $libdir\``
4874             fi
4875
4876             if test "$no_gnome_config" = "yes"; then
4877               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4878 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4879               if test -f $gnome_prefix/gnomeConf.sh; then
4880                 echo "$as_me:$LINENO: result: found" >&5
4881 echo "${ECHO_T}found" >&6
4882                 echo "loading gnome configuration from" \
4883                      "$gnome_prefix/gnomeConf.sh"
4884                 . $gnome_prefix/gnomeConf.sh
4885
4886               else
4887                 echo "$as_me:$LINENO: result: not found" >&5
4888 echo "${ECHO_T}not found" >&6
4889                 if test xfail = xfail; then
4890                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4891 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4892    { (exit 1); exit 1; }; }
4893                 fi
4894               fi
4895             fi
4896         fi
4897
4898         if test -n ""; then
4899           n=""
4900           for i in $n; do
4901             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4902 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4903             case $i in
4904               applets)
4905
4906                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4907                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4908 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4909               docklets)
4910
4911                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4912                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4913 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4914               capplet)
4915
4916                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4917                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4918 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4919               *)
4920                 echo "$as_me:$LINENO: result: unknown library" >&5
4921 echo "${ECHO_T}unknown library" >&6
4922             esac
4923             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4924             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4925           done
4926         fi
4927
4928
4929      GNOME_DIR=src/gnome-console
4930      gnome_version="Version 1.4"
4931   fi
4932 fi
4933
4934
4935
4936 # -------------------------------------------
4937 # wx-console (default off)
4938 # -------------------------------------------
4939 # Check whether --enable-wx-console or --disable-wx-console was given.
4940 if test "${enable_wx_console+set}" = set; then
4941   enableval="$enable_wx_console"
4942   if test x$enableval = xyes; then
4943     support_wx_console=yes
4944   fi
4945 fi;
4946
4947 WX_DIR=
4948 if test x$support_wx_console = xyes; then
4949   abc=`$WXCONFIG --cppflags`
4950   pkg=$?
4951   if test $pkg = 0; then
4952      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4953      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4954
4955
4956      WX_DIR=src/wx-console
4957   else
4958      echo " "
4959      echo "wx-config program not found. wx-console disabled."
4960      echo " "
4961      support_wx_console=no
4962   fi
4963 fi
4964
4965
4966
4967 # -------------------------------------------
4968 # tray-monitor (default off)
4969 # -------------------------------------------
4970 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4971 if test "${enable_tray_monitor+set}" = set; then
4972   enableval="$enable_tray_monitor"
4973   if test x$enableval = xyes; then
4974     support_tray_monitor=yes
4975   fi
4976 fi;
4977
4978 TRAY_MONITOR_DIR=
4979 if test x$support_tray_monitor = xyes; then
4980   abc=`$PKGCONFIG --exists gtk+-2.0`
4981   pkg=$?
4982   if test $pkg = 0; then
4983      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4984      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4985
4986
4987      TRAY_MONITOR_DIR=src/tray-monitor
4988      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4989      pkg=$?
4990      if test $pkg = 0; then
4991         cat >>confdefs.h <<\_ACEOF
4992 #define HAVE_GTK_2_4 1
4993 _ACEOF
4994
4995      fi
4996   fi
4997 fi
4998
4999
5000 # -------------------------------------------
5001 # smartalloc (default off)
5002 # -------------------------------------------
5003 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5004 if test "${enable_smartalloc+set}" = set; then
5005   enableval="$enable_smartalloc"
5006   if test x$enableval = xno; then
5007     support_smartalloc=no
5008   fi
5009 fi;
5010
5011 if test x$support_smartalloc = xyes; then
5012    cat >>confdefs.h <<\_ACEOF
5013 #define SMARTALLOC 1
5014 _ACEOF
5015
5016 fi
5017
5018 # -------------------------------------------
5019 # static-tools (default off)
5020 # -------------------------------------------
5021 # Check whether --enable-static-tools or --disable-static-tools was given.
5022 if test "${enable_static_tools+set}" = set; then
5023   enableval="$enable_static_tools"
5024   if test x$enableval = xyes; then
5025      support_static_tools=yes
5026    fi
5027 fi;
5028
5029 TTOOL_LDFLAGS=
5030 if test x$support_static_tools = xyes; then
5031    TTOOL_LDFLAGS="-static"
5032 fi
5033
5034
5035 # -------------------------------------------
5036 # static-fd    (default off)
5037 # -------------------------------------------
5038 # Check whether --enable-static-fd or --disable-static-fd was given.
5039 if test "${enable_static_fd+set}" = set; then
5040   enableval="$enable_static_fd"
5041   if test x$enableval = xyes; then
5042      support_static_fd=yes
5043    fi
5044 fi;
5045
5046 STATIC_FD=
5047 if test x$support_static_fd = xyes; then
5048    STATIC_FD="static-bacula-fd"
5049 fi
5050
5051
5052 # -------------------------------------------
5053 # static-sd    (default off)
5054 # -------------------------------------------
5055 # Check whether --enable-static-sd or --disable-static-sd was given.
5056 if test "${enable_static_sd+set}" = set; then
5057   enableval="$enable_static_sd"
5058   if test x$enableval = xyes; then
5059      support_static_sd=yes
5060    fi
5061 fi;
5062
5063 STATIC_SD=
5064 if test x$support_static_sd = xyes; then
5065    STATIC_SD="static-bacula-sd"
5066 fi
5067
5068
5069 # -------------------------------------------
5070 # static-dir   (default off)
5071 # -------------------------------------------
5072 # Check whether --enable-static-dir or --disable-static-dir was given.
5073 if test "${enable_static_dir+set}" = set; then
5074   enableval="$enable_static_dir"
5075   if test x$enableval = xyes; then
5076      support_static_dir=yes
5077    fi
5078 fi;
5079
5080 STATIC_DIR=
5081 if test x$support_static_dir = xyes; then
5082    STATIC_DIR="static-bacula-dir"
5083 fi
5084
5085
5086 # -------------------------------------------
5087 # static-cons  (default off)
5088 # -------------------------------------------
5089 # Check whether --enable-static-cons or --disable-static-cons was given.
5090 if test "${enable_static_cons+set}" = set; then
5091   enableval="$enable_static_cons"
5092   if test x$enableval = xyes; then
5093      support_static_cons=yes
5094    fi
5095 fi;
5096
5097 STATIC_CONS=
5098 STATIC_GNOME_CONS=
5099 STATIC_WX_CONS=
5100 if test x$support_static_cons = xyes; then
5101    STATIC_CONS="static-bconsole"
5102    STATIC_GNOME_CONS="static-gnome-console"
5103    STATIC_WX_CONS="static-wx-console"
5104 fi
5105
5106
5107
5108
5109 # -------------------------------------------
5110 # client_only  (default off)
5111 # -------------------------------------------
5112 # Check whether --enable-client-only or --disable-client-only was given.
5113 if test "${enable_client_only+set}" = set; then
5114   enableval="$enable_client_only"
5115   if test x$enableval = xyes; then
5116      build_client_only=yes
5117     db_name=None
5118     DB_NAME=none
5119    fi
5120 fi;
5121 if test x$build_client_only = xno; then
5122    ALL_DIRS="subdirs"
5123 else
5124    ALL_DIRS=""
5125 fi
5126
5127
5128 # ---------------------------------------------------
5129 # Check for conio (Bacula readline substitute)(
5130 # ---------------------------------------------------
5131 # this allows you to turn it completely off
5132 # Check whether --enable-conio or --disable-conio was given.
5133 if test "${enable_conio+set}" = set; then
5134   enableval="$enable_conio"
5135   if test x$enableval = xno; then
5136     support_conio=no
5137   fi
5138 fi;
5139
5140 got_conio="no"
5141 if test x$support_conio = xyes; then
5142    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5143 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5144 if test "${ac_cv_header_stdc+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #include <stdlib.h>
5154 #include <stdarg.h>
5155 #include <string.h>
5156 #include <float.h>
5157
5158 int
5159 main ()
5160 {
5161
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168   (eval $ac_compile) 2>conftest.er1
5169   ac_status=$?
5170   grep -v '^ *+' conftest.er1 >conftest.err
5171   rm -f conftest.er1
5172   cat conftest.err >&5
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } &&
5175          { ac_try='test -z "$ac_c_werror_flag"
5176                          || test ! -s conftest.err'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; } &&
5182          { ac_try='test -s conftest.$ac_objext'
5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184   (eval $ac_try) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }; }; then
5188   ac_cv_header_stdc=yes
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ac_cv_header_stdc=no
5194 fi
5195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5196
5197 if test $ac_cv_header_stdc = yes; then
5198   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 #include <string.h>
5206
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209   $EGREP "memchr" >/dev/null 2>&1; then
5210   :
5211 else
5212   ac_cv_header_stdc=no
5213 fi
5214 rm -f conftest*
5215
5216 fi
5217
5218 if test $ac_cv_header_stdc = yes; then
5219   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220   cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 #include <stdlib.h>
5227
5228 _ACEOF
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230   $EGREP "free" >/dev/null 2>&1; then
5231   :
5232 else
5233   ac_cv_header_stdc=no
5234 fi
5235 rm -f conftest*
5236
5237 fi
5238
5239 if test $ac_cv_header_stdc = yes; then
5240   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5241   if test "$cross_compiling" = yes; then
5242   :
5243 else
5244   cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <ctype.h>
5251 #if ((' ' & 0x0FF) == 0x020)
5252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5254 #else
5255 # define ISLOWER(c) \
5256                    (('a' <= (c) && (c) <= 'i') \
5257                      || ('j' <= (c) && (c) <= 'r') \
5258                      || ('s' <= (c) && (c) <= 'z'))
5259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5260 #endif
5261
5262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5263 int
5264 main ()
5265 {
5266   int i;
5267   for (i = 0; i < 256; i++)
5268     if (XOR (islower (i), ISLOWER (i))
5269         || toupper (i) != TOUPPER (i))
5270       exit(2);
5271   exit (0);
5272 }
5273 _ACEOF
5274 rm -f conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276   (eval $ac_link) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   :
5286 else
5287   echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ( exit $ac_status )
5292 ac_cv_header_stdc=no
5293 fi
5294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 fi
5297 fi
5298 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5299 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5300 if test $ac_cv_header_stdc = yes; then
5301
5302 cat >>confdefs.h <<\_ACEOF
5303 #define STDC_HEADERS 1
5304 _ACEOF
5305
5306 fi
5307
5308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5319                   inttypes.h stdint.h unistd.h
5320 do
5321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 $ac_includes_default
5334
5335 #include <$ac_header>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } &&
5346          { ac_try='test -z "$ac_c_werror_flag"
5347                          || test ! -s conftest.err'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; } &&
5353          { ac_try='test -s conftest.$ac_objext'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; }; then
5359   eval "$as_ac_Header=yes"
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 eval "$as_ac_Header=no"
5365 fi
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367 fi
5368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5371   cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5374
5375 fi
5376
5377 done
5378
5379
5380 if test "${ac_cv_header_termcap_h+set}" = set; then
5381   echo "$as_me:$LINENO: checking for termcap.h" >&5
5382 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5383 if test "${ac_cv_header_termcap_h+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5387 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5388 else
5389   # Is the header compilable?
5390 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5391 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 $ac_includes_default
5399 #include <termcap.h>
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403   (eval $ac_compile) 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } &&
5410          { ac_try='test -z "$ac_c_werror_flag"
5411                          || test ! -s conftest.err'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; } &&
5417          { ac_try='test -s conftest.$ac_objext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_header_compiler=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_header_compiler=no
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5432 echo "${ECHO_T}$ac_header_compiler" >&6
5433
5434 # Is the header present?
5435 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5436 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 #include <termcap.h>
5444 _ACEOF
5445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } >/dev/null; then
5453   if test -s conftest.err; then
5454     ac_cpp_err=$ac_c_preproc_warn_flag
5455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5456   else
5457     ac_cpp_err=
5458   fi
5459 else
5460   ac_cpp_err=yes
5461 fi
5462 if test -z "$ac_cpp_err"; then
5463   ac_header_preproc=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468   ac_header_preproc=no
5469 fi
5470 rm -f conftest.err conftest.$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5472 echo "${ECHO_T}$ac_header_preproc" >&6
5473
5474 # So?  What about this header?
5475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5476   yes:no: )
5477     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5478 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5479     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5480 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5481     ac_header_preproc=yes
5482     ;;
5483   no:yes:* )
5484     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5485 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5486     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5487 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5488     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5489 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5490     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5491 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5492     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5493 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5494     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5495 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5496     (
5497       cat <<\_ASBOX
5498 ## ------------------------------------------ ##
5499 ## Report this to the AC_PACKAGE_NAME lists.  ##
5500 ## ------------------------------------------ ##
5501 _ASBOX
5502     ) |
5503       sed "s/^/$as_me: WARNING:     /" >&2
5504     ;;
5505 esac
5506 echo "$as_me:$LINENO: checking for termcap.h" >&5
5507 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5508 if test "${ac_cv_header_termcap_h+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   ac_cv_header_termcap_h=$ac_header_preproc
5512 fi
5513 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5514 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5515
5516 fi
5517 if test $ac_cv_header_termcap_h = yes; then
5518    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5519 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5520 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-ltermcap  $LIBS"
5525 cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h.  */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h.  */
5531
5532 /* Override any gcc2 internal prototype to avoid an error.  */
5533 #ifdef __cplusplus
5534 extern "C"
5535 #endif
5536 /* We use char because int might match the return type of a gcc2
5537    builtin and then its argument prototype would still apply.  */
5538 char tgetent ();
5539 int
5540 main ()
5541 {
5542 tgetent ();
5543   ;
5544   return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext conftest$ac_exeext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549   (eval $ac_link) 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } &&
5556          { ac_try='test -z "$ac_c_werror_flag"
5557                          || test ! -s conftest.err'
5558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; } &&
5563          { ac_try='test -s conftest$ac_exeext'
5564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565   (eval $ac_try) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }; }; then
5569   ac_cv_lib_termcap_tgetent=yes
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 ac_cv_lib_termcap_tgetent=no
5575 fi
5576 rm -f conftest.err conftest.$ac_objext \
5577       conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5579 fi
5580 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5581 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5582 if test $ac_cv_lib_termcap_tgetent = yes; then
5583    CONS_LIBS="-ltermcap"
5584          CONS_OBJ="conio.o"
5585          CONS_SRC="conio.c"
5586          got_conio="yes"
5587          support_readline=no
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_CONIO 1
5591 _ACEOF
5592
5593
5594 else
5595    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5596 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5597 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lncurses  $LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608
5609 /* Override any gcc2 internal prototype to avoid an error.  */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 /* We use char because int might match the return type of a gcc2
5614    builtin and then its argument prototype would still apply.  */
5615 char tgetent ();
5616 int
5617 main ()
5618 {
5619 tgetent ();
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626   (eval $ac_link) 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -z "$ac_c_werror_flag"
5634                          || test ! -s conftest.err'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; } &&
5640          { ac_try='test -s conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   ac_cv_lib_ncurses_tgetent=yes
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_cv_lib_ncurses_tgetent=no
5652 fi
5653 rm -f conftest.err conftest.$ac_objext \
5654       conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_check_lib_save_LIBS
5656 fi
5657 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5658 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5659 if test $ac_cv_lib_ncurses_tgetent = yes; then
5660    CONS_LIBS="-lncurses"
5661            CONS_OBJ="conio.o"
5662            CONS_SRC="conio.c"
5663            got_conio="yes"
5664            support_readline=no
5665
5666 cat >>confdefs.h <<\_ACEOF
5667 #define HAVE_CONIO 1
5668 _ACEOF
5669
5670
5671 fi
5672
5673
5674 fi
5675
5676
5677 else
5678
5679
5680 for ac_header in curses.h
5681 do
5682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684   echo "$as_me:$LINENO: checking for $ac_header" >&5
5685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 fi
5689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5691 else
5692   # Is the header compilable?
5693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 $ac_includes_default
5702 #include <$ac_header>
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -z "$ac_c_werror_flag"
5714                          || test ! -s conftest.err'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_header_compiler=yes
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_header_compiler=no
5732 fi
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5736
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 #include <$ac_header>
5747 _ACEOF
5748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } >/dev/null; then
5756   if test -s conftest.err; then
5757     ac_cpp_err=$ac_c_preproc_warn_flag
5758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5759   else
5760     ac_cpp_err=
5761   fi
5762 else
5763   ac_cpp_err=yes
5764 fi
5765 if test -z "$ac_cpp_err"; then
5766   ac_header_preproc=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771   ac_header_preproc=no
5772 fi
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5776
5777 # So?  What about this header?
5778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5779   yes:no: )
5780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5784     ac_header_preproc=yes
5785     ;;
5786   no:yes:* )
5787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5799     (
5800       cat <<\_ASBOX
5801 ## ------------------------------------------ ##
5802 ## Report this to the AC_PACKAGE_NAME lists.  ##
5803 ## ------------------------------------------ ##
5804 _ASBOX
5805     ) |
5806       sed "s/^/$as_me: WARNING:     /" >&2
5807     ;;
5808 esac
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   eval "$as_ac_Header=\$ac_header_preproc"
5815 fi
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5818
5819 fi
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821   cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5823 _ACEOF
5824
5825 fi
5826
5827 done
5828
5829          echo "$as_me:$LINENO: checking for term.h" >&5
5830 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5831 if test "${ac_cv_header_term_h+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 #if HAVE_CURSES_H
5841 #include <curses.h>
5842 #endif
5843
5844
5845 #include <term.h>
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_header_term_h=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_cv_header_term_h=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5879 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5880 if test $ac_cv_header_term_h = yes; then
5881    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5882 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5883 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   ac_check_lib_save_LIBS=$LIBS
5887 LIBS="-lcurses  $LIBS"
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894
5895 /* Override any gcc2 internal prototype to avoid an error.  */
5896 #ifdef __cplusplus
5897 extern "C"
5898 #endif
5899 /* We use char because int might match the return type of a gcc2
5900    builtin and then its argument prototype would still apply.  */
5901 char tgetent ();
5902 int
5903 main ()
5904 {
5905 tgetent ();
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext conftest$ac_exeext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5912   (eval $ac_link) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest$ac_exeext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_lib_curses_tgetent=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_lib_curses_tgetent=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext \
5940       conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5942 fi
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5944 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5945 if test $ac_cv_lib_curses_tgetent = yes; then
5946    CONS_LIBS="-lcurses"
5947                    CONS_OBJ="conio.o"
5948                    CONS_SRC="conio.c"
5949                    got_conio="yes"
5950                    support_readline=no
5951
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_CONIO 1
5954 _ACEOF
5955
5956
5957 fi
5958
5959
5960 else
5961    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5962 fi
5963
5964
5965
5966 fi
5967
5968
5969 fi
5970
5971
5972 # ---------------------------------------------------
5973 # Check for readline support/directory (default off)
5974 # ---------------------------------------------------
5975 # this allows you to turn it completely off
5976 # Check whether --enable-readline or --disable-readline was given.
5977 if test "${enable_readline+set}" = set; then
5978   enableval="$enable_readline"
5979   if test x$enableval = xno; then
5980     support_readline=no
5981   fi
5982 fi;
5983
5984 got_readline="no"
5985 READLINE_SRC=
5986 if test x$support_readline = xyes; then
5987
5988 # Check whether --with-readline or --without-readline was given.
5989 if test "${with_readline+set}" = set; then
5990   withval="$with_readline"
5991
5992         case "$with_readline" in
5993         no) : ;;
5994         yes|*)
5995           if test "$with_readline" != "yes"; then
5996             CONS_INC="-I${with_readline}"
5997             CONS_LDFLAGS="-L$with_readline"
5998           else
5999              with_readline="/usr/include/readline"
6000           fi
6001           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6003   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6004 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 fi
6008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6010 else
6011   # Is the header compilable?
6012 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6013 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h.  */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h.  */
6020 $ac_includes_default
6021 #include <${with_readline}/readline.h>
6022 _ACEOF
6023 rm -f conftest.$ac_objext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025   (eval $ac_compile) 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -z "$ac_c_werror_flag"
6033                          || test ! -s conftest.err'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest.$ac_objext'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; }; then
6045   ac_header_compiler=yes
6046 else
6047   echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_header_compiler=no
6051 fi
6052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054 echo "${ECHO_T}$ac_header_compiler" >&6
6055
6056 # Is the header present?
6057 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6058 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 #include <${with_readline}/readline.h>
6066 _ACEOF
6067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } >/dev/null; then
6075   if test -s conftest.err; then
6076     ac_cpp_err=$ac_c_preproc_warn_flag
6077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6078   else
6079     ac_cpp_err=
6080   fi
6081 else
6082   ac_cpp_err=yes
6083 fi
6084 if test -z "$ac_cpp_err"; then
6085   ac_header_preproc=yes
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090   ac_header_preproc=no
6091 fi
6092 rm -f conftest.err conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6094 echo "${ECHO_T}$ac_header_preproc" >&6
6095
6096 # So?  What about this header?
6097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6098   yes:no: )
6099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6103     ac_header_preproc=yes
6104     ;;
6105   no:yes:* )
6106     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6107 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6108     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6109 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6110     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6111 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6112     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6113 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6114     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6115 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6116     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6117 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6118     (
6119       cat <<\_ASBOX
6120 ## ------------------------------------------ ##
6121 ## Report this to the AC_PACKAGE_NAME lists.  ##
6122 ## ------------------------------------------ ##
6123 _ASBOX
6124     ) |
6125       sed "s/^/$as_me: WARNING:     /" >&2
6126     ;;
6127 esac
6128 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6129 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   eval "$as_ac_Header=\$ac_header_preproc"
6134 fi
6135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6137
6138 fi
6139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6140    cat >>confdefs.h <<\_ACEOF
6141 #define HAVE_READLINE 1
6142 _ACEOF
6143
6144                CONS_LIBS="-lreadline -ltermcap"
6145                got_readline="yes"
6146
6147 else
6148    echo " "
6149                echo "readline.h not found. readline turned off ..."
6150                echo " "
6151
6152
6153 fi
6154
6155
6156           ;;
6157         esac
6158
6159 else
6160
6161        # check for standard readline library
6162        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6163   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6164 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6165 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 fi
6168 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6169 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6170 else
6171   # Is the header compilable?
6172 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6173 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180 $ac_includes_default
6181 #include </usr/include/readline/readline.h>
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185   (eval $ac_compile) 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -z "$ac_c_werror_flag"
6193                          || test ! -s conftest.err'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_header_compiler=yes
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_header_compiler=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6214 echo "${ECHO_T}$ac_header_compiler" >&6
6215
6216 # Is the header present?
6217 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6218 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 #include </usr/include/readline/readline.h>
6226 _ACEOF
6227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } >/dev/null; then
6235   if test -s conftest.err; then
6236     ac_cpp_err=$ac_c_preproc_warn_flag
6237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6238   else
6239     ac_cpp_err=
6240   fi
6241 else
6242   ac_cpp_err=yes
6243 fi
6244 if test -z "$ac_cpp_err"; then
6245   ac_header_preproc=yes
6246 else
6247   echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250   ac_header_preproc=no
6251 fi
6252 rm -f conftest.err conftest.$ac_ext
6253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6254 echo "${ECHO_T}$ac_header_preproc" >&6
6255
6256 # So?  What about this header?
6257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6258   yes:no: )
6259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6263     ac_header_preproc=yes
6264     ;;
6265   no:yes:* )
6266     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6271 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6272     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6273 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6274     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6275 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6276     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6277 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6278     (
6279       cat <<\_ASBOX
6280 ## ------------------------------------------ ##
6281 ## Report this to the AC_PACKAGE_NAME lists.  ##
6282 ## ------------------------------------------ ##
6283 _ASBOX
6284     ) |
6285       sed "s/^/$as_me: WARNING:     /" >&2
6286     ;;
6287 esac
6288 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6289 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6290 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6294 fi
6295 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6296 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6297
6298 fi
6299 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6300    cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_READLINE 1
6302 _ACEOF
6303
6304            got_readline="yes"
6305            CONS_INC="-I/usr/include/readline"
6306            CONS_LIBS="-lreadline -ltermcap"
6307
6308 else
6309
6310            # Did not find standard library, so try Bacula's default
6311             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6313   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6314 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 fi
6318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320 else
6321   # Is the header compilable?
6322 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6323 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 $ac_includes_default
6331 #include <${TOP_DIR}/depkgs/readline/readline.h>
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335   (eval $ac_compile) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"
6343                          || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest.$ac_objext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_header_compiler=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_header_compiler=no
6361 fi
6362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6365
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6368 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <${TOP_DIR}/depkgs/readline/readline.h>
6376 _ACEOF
6377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } >/dev/null; then
6385   if test -s conftest.err; then
6386     ac_cpp_err=$ac_c_preproc_warn_flag
6387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6388   else
6389     ac_cpp_err=
6390   fi
6391 else
6392   ac_cpp_err=yes
6393 fi
6394 if test -z "$ac_cpp_err"; then
6395   ac_header_preproc=yes
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400   ac_header_preproc=no
6401 fi
6402 rm -f conftest.err conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6
6405
6406 # So?  What about this header?
6407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408   yes:no: )
6409     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6413     ac_header_preproc=yes
6414     ;;
6415   no:yes:* )
6416     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6417 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6419 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6425 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6426     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6428     (
6429       cat <<\_ASBOX
6430 ## ------------------------------------------ ##
6431 ## Report this to the AC_PACKAGE_NAME lists.  ##
6432 ## ------------------------------------------ ##
6433 _ASBOX
6434     ) |
6435       sed "s/^/$as_me: WARNING:     /" >&2
6436     ;;
6437 esac
6438 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6439 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   eval "$as_ac_Header=\$ac_header_preproc"
6444 fi
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447
6448 fi
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450    cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_READLINE 1
6452 _ACEOF
6453
6454                  got_readline="yes"
6455                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6456                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6457                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6458                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6459
6460 else
6461    echo " "
6462                 echo "readline.h not found. readline turned off ..."
6463                 echo " "
6464
6465
6466 fi
6467
6468
6469
6470
6471 fi
6472
6473
6474
6475
6476 fi;
6477 fi
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488 # Minimal stuff for readline Makefile configuration
6489 MAKE_SHELL=/bin/sh
6490
6491 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6492 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6493 if test "${ac_cv_header_stat_broken+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502 #include <sys/types.h>
6503 #include <sys/stat.h>
6504
6505 #if defined(S_ISBLK) && defined(S_IFDIR)
6506 # if S_ISBLK (S_IFDIR)
6507 You lose.
6508 # endif
6509 #endif
6510
6511 #if defined(S_ISBLK) && defined(S_IFCHR)
6512 # if S_ISBLK (S_IFCHR)
6513 You lose.
6514 # endif
6515 #endif
6516
6517 #if defined(S_ISLNK) && defined(S_IFREG)
6518 # if S_ISLNK (S_IFREG)
6519 You lose.
6520 # endif
6521 #endif
6522
6523 #if defined(S_ISSOCK) && defined(S_IFREG)
6524 # if S_ISSOCK (S_IFREG)
6525 You lose.
6526 # endif
6527 #endif
6528
6529 _ACEOF
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531   $EGREP "You lose" >/dev/null 2>&1; then
6532   ac_cv_header_stat_broken=yes
6533 else
6534   ac_cv_header_stat_broken=no
6535 fi
6536 rm -f conftest*
6537
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6540 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6541 if test $ac_cv_header_stat_broken = yes; then
6542
6543 cat >>confdefs.h <<\_ACEOF
6544 #define STAT_MACROS_BROKEN 1
6545 _ACEOF
6546
6547 fi
6548
6549
6550
6551
6552
6553
6554 ac_header_dirent=no
6555 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6556   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6557 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6558 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568 #include <sys/types.h>
6569 #include <$ac_hdr>
6570
6571 int
6572 main ()
6573 {
6574 if ((DIR *) 0)
6575 return 0;
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582   (eval $ac_compile) 2>conftest.er1
6583   ac_status=$?
6584   grep -v '^ *+' conftest.er1 >conftest.err
6585   rm -f conftest.er1
6586   cat conftest.err >&5
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } &&
6589          { ac_try='test -z "$ac_c_werror_flag"
6590                          || test ! -s conftest.err'
6591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592   (eval $ac_try) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }; } &&
6596          { ac_try='test -s conftest.$ac_objext'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   eval "$as_ac_Header=yes"
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 eval "$as_ac_Header=no"
6608 fi
6609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6610 fi
6611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614   cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6616 _ACEOF
6617
6618 ac_header_dirent=$ac_hdr; break
6619 fi
6620
6621 done
6622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6623 if test $ac_header_dirent = dirent.h; then
6624   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6626 if test "${ac_cv_search_opendir+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   ac_func_search_save_LIBS=$LIBS
6630 ac_cv_search_opendir=no
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h.  */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h.  */
6637
6638 /* Override any gcc2 internal prototype to avoid an error.  */
6639 #ifdef __cplusplus
6640 extern "C"
6641 #endif
6642 /* We use char because int might match the return type of a gcc2
6643    builtin and then its argument prototype would still apply.  */
6644 char opendir ();
6645 int
6646 main ()
6647 {
6648 opendir ();
6649   ;
6650   return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655   (eval $ac_link) 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } &&
6662          { ac_try='test -z "$ac_c_werror_flag"
6663                          || test ! -s conftest.err'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; } &&
6669          { ac_try='test -s conftest$ac_exeext'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; }; then
6675   ac_cv_search_opendir="none required"
6676 else
6677   echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 fi
6681 rm -f conftest.err conftest.$ac_objext \
6682       conftest$ac_exeext conftest.$ac_ext
6683 if test "$ac_cv_search_opendir" = no; then
6684   for ac_lib in dir; do
6685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6686     cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h.  */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h.  */
6692
6693 /* Override any gcc2 internal prototype to avoid an error.  */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 /* We use char because int might match the return type of a gcc2
6698    builtin and then its argument prototype would still apply.  */
6699 char opendir ();
6700 int
6701 main ()
6702 {
6703 opendir ();
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710   (eval $ac_link) 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_c_werror_flag"
6718                          || test ! -s conftest.err'
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); }; } &&
6724          { ac_try='test -s conftest$ac_exeext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_cv_search_opendir="-l$ac_lib"
6731 break
6732 else
6733   echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 fi
6737 rm -f conftest.err conftest.$ac_objext \
6738       conftest$ac_exeext conftest.$ac_ext
6739   done
6740 fi
6741 LIBS=$ac_func_search_save_LIBS
6742 fi
6743 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6744 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6745 if test "$ac_cv_search_opendir" != no; then
6746   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6747
6748 fi
6749
6750 else
6751   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6752 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6753 if test "${ac_cv_search_opendir+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   ac_func_search_save_LIBS=$LIBS
6757 ac_cv_search_opendir=no
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h.  */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h.  */
6764
6765 /* Override any gcc2 internal prototype to avoid an error.  */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 /* We use char because int might match the return type of a gcc2
6770    builtin and then its argument prototype would still apply.  */
6771 char opendir ();
6772 int
6773 main ()
6774 {
6775 opendir ();
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782   (eval $ac_link) 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -z "$ac_c_werror_flag"
6790                          || test ! -s conftest.err'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; } &&
6796          { ac_try='test -s conftest$ac_exeext'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; }; then
6802   ac_cv_search_opendir="none required"
6803 else
6804   echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 fi
6808 rm -f conftest.err conftest.$ac_objext \
6809       conftest$ac_exeext conftest.$ac_ext
6810 if test "$ac_cv_search_opendir" = no; then
6811   for ac_lib in x; do
6812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6813     cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819
6820 /* Override any gcc2 internal prototype to avoid an error.  */
6821 #ifdef __cplusplus
6822 extern "C"
6823 #endif
6824 /* We use char because int might match the return type of a gcc2
6825    builtin and then its argument prototype would still apply.  */
6826 char opendir ();
6827 int
6828 main ()
6829 {
6830 opendir ();
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837   (eval $ac_link) 2>conftest.er1
6838   ac_status=$?
6839   grep -v '^ *+' conftest.er1 >conftest.err
6840   rm -f conftest.er1
6841   cat conftest.err >&5
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } &&
6844          { ac_try='test -z "$ac_c_werror_flag"
6845                          || test ! -s conftest.err'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; } &&
6851          { ac_try='test -s conftest$ac_exeext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   ac_cv_search_opendir="-l$ac_lib"
6858 break
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 fi
6864 rm -f conftest.err conftest.$ac_objext \
6865       conftest$ac_exeext conftest.$ac_ext
6866   done
6867 fi
6868 LIBS=$ac_func_search_save_LIBS
6869 fi
6870 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6871 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6872 if test "$ac_cv_search_opendir" != no; then
6873   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6874
6875 fi
6876
6877 fi
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6888 do
6889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6890 echo "$as_me:$LINENO: checking for $ac_func" >&5
6891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6892 if eval "test \"\${$as_ac_var+set}\" = set"; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6903 #define $ac_func innocuous_$ac_func
6904
6905 /* System header to define __stub macros and hopefully few prototypes,
6906     which can conflict with char $ac_func (); below.
6907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908     <limits.h> exists even on freestanding compilers.  */
6909
6910 #ifdef __STDC__
6911 # include <limits.h>
6912 #else
6913 # include <assert.h>
6914 #endif
6915
6916 #undef $ac_func
6917
6918 /* Override any gcc2 internal prototype to avoid an error.  */
6919 #ifdef __cplusplus
6920 extern "C"
6921 {
6922 #endif
6923 /* We use char because int might match the return type of a gcc2
6924    builtin and then its argument prototype would still apply.  */
6925 char $ac_func ();
6926 /* The GNU C library defines this for functions which it implements
6927     to always fail with ENOSYS.  Some functions are actually named
6928     something starting with __ and the normal name is an alias.  */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 choke me
6931 #else
6932 char (*f) () = $ac_func;
6933 #endif
6934 #ifdef __cplusplus
6935 }
6936 #endif
6937
6938 int
6939 main ()
6940 {
6941 return f != $ac_func;
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   (eval $ac_link) 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } &&
6955          { ac_try='test -z "$ac_c_werror_flag"
6956                          || test ! -s conftest.err'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; } &&
6962          { ac_try='test -s conftest$ac_exeext'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; }; then
6968   eval "$as_ac_var=yes"
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 eval "$as_ac_var=no"
6974 fi
6975 rm -f conftest.err conftest.$ac_objext \
6976       conftest$ac_exeext conftest.$ac_ext
6977 fi
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6980 if test `eval echo '${'$as_ac_var'}'` = yes; then
6981   cat >>confdefs.h <<_ACEOF
6982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983 _ACEOF
6984
6985 fi
6986 done
6987
6988
6989
6990 for ac_func in nanosleep nl_langinfo
6991 do
6992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6993 echo "$as_me:$LINENO: checking for $ac_func" >&5
6994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_var+set}\" = set"; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7006 #define $ac_func innocuous_$ac_func
7007
7008 /* System header to define __stub macros and hopefully few prototypes,
7009     which can conflict with char $ac_func (); below.
7010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011     <limits.h> exists even on freestanding compilers.  */
7012
7013 #ifdef __STDC__
7014 # include <limits.h>
7015 #else
7016 # include <assert.h>
7017 #endif
7018
7019 #undef $ac_func
7020
7021 /* Override any gcc2 internal prototype to avoid an error.  */
7022 #ifdef __cplusplus
7023 extern "C"
7024 {
7025 #endif
7026 /* We use char because int might match the return type of a gcc2
7027    builtin and then its argument prototype would still apply.  */
7028 char $ac_func ();
7029 /* The GNU C library defines this for functions which it implements
7030     to always fail with ENOSYS.  Some functions are actually named
7031     something starting with __ and the normal name is an alias.  */
7032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7033 choke me
7034 #else
7035 char (*f) () = $ac_func;
7036 #endif
7037 #ifdef __cplusplus
7038 }
7039 #endif
7040
7041 int
7042 main ()
7043 {
7044 return f != $ac_func;
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051   (eval $ac_link) 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -z "$ac_c_werror_flag"
7059                          || test ! -s conftest.err'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; } &&
7065          { ac_try='test -s conftest$ac_exeext'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; }; then
7071   eval "$as_ac_var=yes"
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 eval "$as_ac_var=no"
7077 fi
7078 rm -f conftest.err conftest.$ac_objext \
7079       conftest$ac_exeext conftest.$ac_ext
7080 fi
7081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7083 if test `eval echo '${'$as_ac_var'}'` = yes; then
7084   cat >>confdefs.h <<_ACEOF
7085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7086 _ACEOF
7087
7088 fi
7089 done
7090
7091
7092 for ac_header in varargs.h
7093 do
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7096   echo "$as_me:$LINENO: checking for $ac_header" >&5
7097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 fi
7101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7103 else
7104   # Is the header compilable?
7105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_c_werror_flag"
7126                          || test ! -s conftest.err'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; } &&
7132          { ac_try='test -s conftest.$ac_objext'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   ac_header_compiler=yes
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_header_compiler=no
7144 fi
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7147 echo "${ECHO_T}$ac_header_compiler" >&6
7148
7149 # Is the header present?
7150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <$ac_header>
7159 _ACEOF
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } >/dev/null; then
7168   if test -s conftest.err; then
7169     ac_cpp_err=$ac_c_preproc_warn_flag
7170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7171   else
7172     ac_cpp_err=
7173   fi
7174 else
7175   ac_cpp_err=yes
7176 fi
7177 if test -z "$ac_cpp_err"; then
7178   ac_header_preproc=yes
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183   ac_header_preproc=no
7184 fi
7185 rm -f conftest.err conftest.$ac_ext
7186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7187 echo "${ECHO_T}$ac_header_preproc" >&6
7188
7189 # So?  What about this header?
7190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7191   yes:no: )
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7196     ac_header_preproc=yes
7197     ;;
7198   no:yes:* )
7199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7211     (
7212       cat <<\_ASBOX
7213 ## ------------------------------------------ ##
7214 ## Report this to the AC_PACKAGE_NAME lists.  ##
7215 ## ------------------------------------------ ##
7216 _ASBOX
7217     ) |
7218       sed "s/^/$as_me: WARNING:     /" >&2
7219     ;;
7220 esac
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   eval "$as_ac_Header=\$ac_header_preproc"
7227 fi
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7230
7231 fi
7232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7233   cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 _ACEOF
7236
7237 fi
7238
7239 done
7240
7241
7242 # End of readline/conio stuff
7243 # -----------------------------------------------------------------------
7244
7245 # -----------------------------------------------------------------------
7246 #  Check for Python support
7247 #
7248 echo "$as_me:$LINENO: checking for Python support" >&5
7249 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7250
7251 # Check whether --with-python or --without-python was given.
7252 if test "${with_python+set}" = set; then
7253   withval="$with_python"
7254
7255   PYTHON_INCDIR=
7256   PYTHON_LIBS=
7257   if test "$withval" != "no"; then
7258      if test "$withval" = "yes"; then
7259         if test -f /usr/include/python2.2/Python.h; then
7260            PYTHON_INCDIR=-I/usr/include/python2.2
7261            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7262         elif test -f /usr/include/python2.3/Python.h; then
7263            PYTHON_INCDIR=-I/usr/include/python2.3
7264            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7265         elif test -f /usr/include/python2.4/Python.h; then
7266            PYTHON_INCDIR=-I/usr/include/python2.4
7267            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7268         elif test -f $prefix/include/Python.h; then
7269            PYTHON_INCDIR=-I$prefix/include
7270            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7271         else
7272            echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7275 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7276    { (exit 1); exit 1; }; }
7277         fi
7278      else
7279         if test -f $withval/Python.h; then
7280            PYTHON_INCDIR=-I$withval
7281            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7282         elif test -f $withval/include/Python.h; then
7283            PYTHON_INCDIR=-I$withval/include
7284            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7285         else
7286            echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6
7288            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7289 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7290    { (exit 1); exit 1; }; }
7291         fi
7292      fi
7293      cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_PYTHON 1
7295 _ACEOF
7296
7297      echo "$as_me:$LINENO: result: yes" >&5
7298 echo "${ECHO_T}yes" >&6
7299      support_python=yes
7300
7301   else
7302      echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304   fi
7305
7306 else
7307
7308   echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7310
7311 fi;
7312
7313
7314
7315
7316 # -------------------------------------------
7317 # check for cdrecord writer location
7318 # get scsibus,target,lun
7319 # -------------------------------------------
7320 CDSTL="3,0,0"
7321 if test ! x$CDRECORD = x ; then
7322    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7323    if test x${CDSTL} = x ; then
7324       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7325    fi
7326    if test x${CDSTL} = x ; then
7327       CDSTL="3,0,0"
7328    fi
7329 fi
7330
7331
7332
7333 # ---------------------------------------------------
7334 # Check for GMP support/directory
7335 # ---------------------------------------------------
7336 #GMP_SRC=
7337 #local_gmp="no"
7338 #AC_ARG_WITH(gmp,
7339 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7340 #  [
7341 #     case "$with_gmp" in
7342 #     no) : ;;
7343 #     yes|*)
7344 #       if test "$with_gmp" != "yes"; then
7345 #         GMP_INC="-I$with_gmp"
7346 #         GMP_LIBS="-lgmp"
7347 #         GMP_LDFLAGS="-L$with_gmp"
7348 #       else
7349 #          with_gmp="/usr/include"
7350 #       fi
7351 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7352 #          [ AC_MSG_RESULT(yes)
7353 #            AC_DEFINE(HAVE_GMP)
7354 #            GMP_LIBS="-lgmp"
7355 #            got_gmp="yes"
7356 #          ],
7357 #          [ AC_MSG_ERROR([*** gmp library missing])
7358 #          ]
7359 #       )
7360 #       ;;
7361 #     esac
7362 #  ],[
7363 #    # check for standard gmp library
7364 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7365 #    [ AC_MSG_RESULT(yes)
7366 #      AC_DEFINE(HAVE_GMP)
7367 #      got_gmp="yes"
7368 #      GMP_INC=
7369 #      GMP_LIBS="-lgmp"
7370 #    ], [
7371 #      # Did not find standard library, so use our own
7372 #      AC_MSG_RESULT(yes)
7373 #      AC_DEFINE(HAVE_GMP)
7374 #      got_gmp="yes"
7375 #      local_gmp="yes"
7376 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7377 #      GMP_LIBS="-lgmp"
7378 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7379 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7380 #    ])
7381 #  ]
7382 #)
7383 #AC_SUBST(GMP_INC)
7384 #AC_SUBST(GMP_LIBS)
7385 #AC_SUBST(GMP_LDFLAGS)
7386 #AC_SUBST(GMP_SRC)
7387
7388 # End of GMP stuff
7389 # -----------------------------------------------------------------------
7390
7391
7392 # ---------------------------------------------------
7393 # Check for CWEB support/directory
7394 # ---------------------------------------------------
7395 #CWEB_SRC=
7396 #CWEB=/bin
7397 #local_cweb="no"
7398 #AC_ARG_WITH(cweb,
7399 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7400 #  [
7401 #     case "$with_cweb" in
7402 #     no) : ;;
7403 #     yes|*)
7404 #       if test "$with_cweb" != "yes"; then
7405 #         CWEB_INC="-I$with_cweb"
7406 #         CWEB_LIBS="-lcweb"
7407 #         CWEB_LDFLAGS="-L$with_cweb"
7408 #       else
7409 #          with_cweb="/usr/include"
7410 #       fi
7411 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7412 #          [ AC_MSG_RESULT(yes)
7413 #            AC_DEFINE(HAVE_CWEB)
7414 #            CWEB_LIBS="-lcweb"
7415 #            got_cweb="yes"
7416 #          ],
7417 #          [ AC_MSG_ERROR([*** cweb library missing])
7418 #          ]
7419 #       )
7420 #       ;;
7421 #     esac
7422 #  ],[
7423 #    # check for standard cweb library
7424 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7425 #    [ AC_MSG_RESULT(yes)
7426 #      AC_DEFINE(HAVE_CWEB)
7427 #      got_cweb="yes"
7428 #      CWEB_INC=
7429 #      CWEB_LIBS="-lcweb"
7430 #    ], [
7431 #      # Did not find starndard library, so use our own
7432 #      AC_MSG_RESULT(yes)
7433 #      AC_DEFINE(HAVE_CWEB)
7434 #      got_cweb="yes"
7435 #      local_cweb="yes"
7436 #      CWEB=${TOP_DIR}/depkgs/cweb
7437 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7438 #      CWEB_LIBS="-lcweb"
7439 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7440 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7441 #    ])
7442 #  ]
7443 #)
7444 #AC_SUBST(CWEB)
7445 #AC_SUBST(CWEB_INC)
7446 #AC_SUBST(CWEB_LIBS)
7447 #AC_SUBST(CWEB_LDFLAGS)
7448 #AC_SUBST(CWEB_SRC)
7449
7450 # End of CWEB stuff
7451 # -----------------------------------------------------------------------
7452
7453 #
7454 # Find where sockets are (especially for Solaris)
7455 # Do this before the TCP Wrappers test since tcp wrappers
7456 # uses the socket library and some linkers are stupid.
7457 #
7458 echo "$as_me:$LINENO: checking for socket" >&5
7459 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7460 if test "${ac_cv_func_socket+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7471 #define socket innocuous_socket
7472
7473 /* System header to define __stub macros and hopefully few prototypes,
7474     which can conflict with char socket (); below.
7475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476     <limits.h> exists even on freestanding compilers.  */
7477
7478 #ifdef __STDC__
7479 # include <limits.h>
7480 #else
7481 # include <assert.h>
7482 #endif
7483
7484 #undef socket
7485
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 {
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492    builtin and then its argument prototype would still apply.  */
7493 char socket ();
7494 /* The GNU C library defines this for functions which it implements
7495     to always fail with ENOSYS.  Some functions are actually named
7496     something starting with __ and the normal name is an alias.  */
7497 #if defined (__stub_socket) || defined (__stub___socket)
7498 choke me
7499 #else
7500 char (*f) () = socket;
7501 #endif
7502 #ifdef __cplusplus
7503 }
7504 #endif
7505
7506 int
7507 main ()
7508 {
7509 return f != socket;
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag"
7524                          || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_func_socket=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_func_socket=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext \
7544       conftest$ac_exeext conftest.$ac_ext
7545 fi
7546 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7547 echo "${ECHO_T}$ac_cv_func_socket" >&6
7548 if test $ac_cv_func_socket = yes; then
7549   echo "$as_me:$LINENO: result: using libc's socket" >&5
7550 echo "${ECHO_T}using libc's socket" >&6
7551 else
7552
7553 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lxnet  $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566
7567 /* Override any gcc2 internal prototype to avoid an error.  */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 /* We use char because int might match the return type of a gcc2
7572    builtin and then its argument prototype would still apply.  */
7573 char socket ();
7574 int
7575 main ()
7576 {
7577 socket ();
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584   (eval $ac_link) 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } &&
7591          { ac_try='test -z "$ac_c_werror_flag"
7592                          || test ! -s conftest.err'
7593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594   (eval $ac_try) 2>&5
7595   ac_status=$?
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); }; } &&
7598          { ac_try='test -s conftest$ac_exeext'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; }; then
7604   ac_cv_lib_xnet_socket=yes
7605 else
7606   echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 ac_cv_lib_xnet_socket=no
7610 fi
7611 rm -f conftest.err conftest.$ac_objext \
7612       conftest$ac_exeext conftest.$ac_ext
7613 LIBS=$ac_check_lib_save_LIBS
7614 fi
7615 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7616 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7617 if test $ac_cv_lib_xnet_socket = yes; then
7618   cat >>confdefs.h <<_ACEOF
7619 #define HAVE_LIBXNET 1
7620 _ACEOF
7621
7622   LIBS="-lxnet $LIBS"
7623
7624 fi
7625
7626
7627 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7628 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7629 if test "${ac_cv_lib_socket_socket+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lsocket  $LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646    builtin and then its argument prototype would still apply.  */
7647 char socket ();
7648 int
7649 main ()
7650 {
7651 socket ();
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658   (eval $ac_link) 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -z "$ac_c_werror_flag"
7666                          || test ! -s conftest.err'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; } &&
7672          { ac_try='test -s conftest$ac_exeext'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; }; then
7678   ac_cv_lib_socket_socket=yes
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_cv_lib_socket_socket=no
7684 fi
7685 rm -f conftest.err conftest.$ac_objext \
7686       conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7688 fi
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7690 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7691 if test $ac_cv_lib_socket_socket = yes; then
7692   cat >>confdefs.h <<_ACEOF
7693 #define HAVE_LIBSOCKET 1
7694 _ACEOF
7695
7696   LIBS="-lsocket $LIBS"
7697
7698 fi
7699
7700
7701 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7702 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7703 if test "${ac_cv_lib_inet_socket+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-linet  $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any gcc2 internal prototype to avoid an error.  */
7716 #ifdef __cplusplus
7717 extern "C"
7718 #endif
7719 /* We use char because int might match the return type of a gcc2
7720    builtin and then its argument prototype would still apply.  */
7721 char socket ();
7722 int
7723 main ()
7724 {
7725 socket ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732   (eval $ac_link) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -z "$ac_c_werror_flag"
7740                          || test ! -s conftest.err'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_cv_lib_inet_socket=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_cv_lib_inet_socket=no
7758 fi
7759 rm -f conftest.err conftest.$ac_objext \
7760       conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7764 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7765 if test $ac_cv_lib_inet_socket = yes; then
7766   cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBINET 1
7768 _ACEOF
7769
7770   LIBS="-linet $LIBS"
7771
7772 fi
7773
7774 fi
7775
7776
7777
7778 # -----------------------------------------------------------
7779 # Check whether user wants TCP wrappers support (default off)
7780 # -----------------------------------------------------------
7781 TCPW_MSG="no"
7782
7783 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7784 if test "${with_tcp_wrappers+set}" = set; then
7785   withval="$with_tcp_wrappers"
7786
7787     if test "x$withval" != "xno" ; then
7788        saved_LIBS="$LIBS"
7789        LIBS="$saved_LIBS -lwrap"
7790        echo "$as_me:$LINENO: checking for libwrap" >&5
7791 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7792        cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h.  */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h.  */
7798  #include <tcpd.h>
7799              int deny_severity = 0;
7800              int allow_severity = 0;
7801              struct request_info *req;
7802 int
7803 main ()
7804 {
7805  hosts_access(req);
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812   (eval $ac_link) 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -z "$ac_c_werror_flag"
7820                          || test ! -s conftest.err'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832
7833             echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835             cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_LIBWRAP 1
7837 _ACEOF
7838
7839             TCPW_MSG="yes"
7840
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845
7846             LIBS="$saved_LIBS -lwrap -lnsl"
7847             cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853  #include <tcpd.h>
7854                  int deny_severity = 0;
7855                  int allow_severity = 0;
7856                  struct request_info *req;
7857 int
7858 main ()
7859 {
7860  hosts_access(req);
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867   (eval $ac_link) 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } &&
7874          { ac_try='test -z "$ac_c_werror_flag"
7875                          || test ! -s conftest.err'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; } &&
7881          { ac_try='test -s conftest$ac_exeext'
7882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883   (eval $ac_try) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887
7888                  echo "$as_me:$LINENO: result: yes" >&5
7889 echo "${ECHO_T}yes" >&6
7890                  cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_LIBWRAP 1
7892 _ACEOF
7893
7894                  TCPW_MSG="yes"
7895
7896 else
7897   echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7901 echo "$as_me: error: *** libwrap missing" >&2;}
7902    { (exit 1); exit 1; }; }
7903
7904 fi
7905 rm -f conftest.err conftest.$ac_objext \
7906       conftest$ac_exeext conftest.$ac_ext
7907
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911     fi
7912
7913
7914 fi;
7915
7916 # ------------------------------------------
7917 # Where to place working dir
7918 # ------------------------------------------
7919 working_dir=`eval echo ${prefix}/var/bacula/working`
7920
7921 # Check whether --with-working-dir or --without-working-dir was given.
7922 if test "${with_working_dir+set}" = set; then
7923   withval="$with_working_dir"
7924
7925        if test "x$withval" != "xno" ; then
7926               working_dir=$withval
7927        fi
7928
7929
7930 fi;
7931
7932
7933
7934
7935 # ------------------------------------------
7936 # Where to place scriptdir (script files)
7937 # ------------------------------------------
7938 scriptdir=`eval echo ${sysconfdir}`
7939
7940 # Check whether --with-scriptdir or --without-scriptdir was given.
7941 if test "${with_scriptdir+set}" = set; then
7942   withval="$with_scriptdir"
7943
7944        if test "x$withval" != "xno" ; then
7945               scriptdir=$withval
7946        fi
7947
7948
7949 fi;
7950
7951
7952
7953
7954 # ------------------------------------------
7955 # Where to send dump email
7956 # ------------------------------------------
7957 dump_email=root@localhost
7958
7959 # Check whether --with-dump-email or --without-dump-email was given.
7960 if test "${with_dump_email+set}" = set; then
7961   withval="$with_dump_email"
7962
7963        if test "x$withval" != "xno" ; then
7964               dump_email=$withval
7965        fi
7966
7967
7968 fi;
7969
7970
7971
7972 # ------------------------------------------
7973 # Where to send job email
7974 # ------------------------------------------
7975 job_email=root@localhost
7976
7977 # Check whether --with-job-email or --without-job-email was given.
7978 if test "${with_job_email+set}" = set; then
7979   withval="$with_job_email"
7980
7981        if test "x$withval" != "xno" ; then
7982               job_email=$withval
7983        fi
7984
7985
7986 fi;
7987
7988
7989
7990 # ------------------------------------------
7991 # Where to find smtp host
7992 # ------------------------------------------
7993 smtp_host=localhost
7994
7995 # Check whether --with-smtp_host or --without-smtp_host was given.
7996 if test "${with_smtp_host+set}" = set; then
7997   withval="$with_smtp_host"
7998
7999        if test "x$withval" != "xno" ; then
8000               smtp_host=$withval
8001        fi
8002
8003
8004 fi;
8005
8006
8007
8008
8009 # ------------------------------------
8010 # Where to place pid files
8011 # ------------------------------------
8012 piddir=/var/run
8013
8014 # Check whether --with-pid-dir or --without-pid-dir was given.
8015 if test "${with_pid_dir+set}" = set; then
8016   withval="$with_pid_dir"
8017
8018         if test "x$withval" != "xno" ; then
8019             piddir=$withval
8020         fi
8021
8022
8023 fi;
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define _PATH_BACULA_PIDDIR "$piddir"
8027 _ACEOF
8028
8029
8030
8031
8032 # ------------------------------------
8033 # Where to place subsys "lock file"
8034 # ------------------------------------
8035 subsysdir=/var/run/subsys
8036
8037 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8038 if test "${with_subsys_dir+set}" = set; then
8039   withval="$with_subsys_dir"
8040
8041         if test "x$withval" != "xno" ; then
8042             subsysdir=$withval
8043         fi
8044
8045
8046 fi;
8047
8048
8049
8050
8051
8052 # ------------------------------------
8053 # Where to start assigning ports
8054 # ------------------------------------
8055 baseport=9101
8056
8057 # Check whether --with-baseport or --without-baseport was given.
8058 if test "${with_baseport+set}" = set; then
8059   withval="$with_baseport"
8060
8061         if test "x$withval" != "xno" ; then
8062              baseport=$withval
8063         fi
8064
8065
8066 fi;
8067
8068
8069 dir_port=`expr $baseport`
8070 fd_port=`expr $baseport + 1`
8071 sd_port=`expr $fd_port + 1`
8072
8073
8074
8075
8076
8077
8078 # ------------------------------------------
8079 # Generate passwords
8080 # ------------------------------------------
8081 dir_password=
8082
8083 # Check whether --with-dir-password or --without-dir-password was given.
8084 if test "${with_dir_password+set}" = set; then
8085   withval="$with_dir_password"
8086
8087        if test "x$withval" != "xno" ; then
8088            dir_password=$withval
8089        fi
8090
8091
8092 fi;
8093
8094 if test "x$dir_password" = "x" ; then
8095    if test "x$OPENSSL" = "xnone" ; then
8096 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8097       key=`autoconf/randpass 33`
8098    else
8099       key=`openssl rand -base64 33`
8100    fi
8101    dir_password=$key
8102 fi
8103
8104 fd_password=
8105
8106 # Check whether --with-fd-password or --without-fd-password was given.
8107 if test "${with_fd_password+set}" = set; then
8108   withval="$with_fd_password"
8109
8110        if test "x$withval" != "xno" ; then
8111            fd_password=$withval
8112        fi
8113
8114
8115 fi;
8116
8117 if test "x$fd_password" = "x" ; then
8118    if test "x$OPENSSL" = "xnone" ; then
8119 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8120       key=`autoconf/randpass 37`
8121    else
8122       key=`openssl rand -base64 33`
8123    fi
8124    fd_password=$key
8125 fi
8126
8127 sd_password=
8128
8129 # Check whether --with-sd-password or --without-sd-password was given.
8130 if test "${with_sd_password+set}" = set; then
8131   withval="$with_sd_password"
8132
8133        if test "x$withval" != "xno" ; then
8134            sd_password=$withval
8135        fi
8136
8137
8138 fi;
8139
8140 if test "x$sd_password" = "x" ; then
8141    if test "x$OPENSSL" = "xnone" ; then
8142 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8143       key=`autoconf/randpass 41`
8144    else
8145       key=`openssl rand -base64 33`
8146    fi
8147    sd_password=$key
8148 fi
8149
8150 mon_dir_password=
8151
8152 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8153 if test "${with_mon_dir_password+set}" = set; then
8154   withval="$with_mon_dir_password"
8155
8156        if test "x$withval" != "xno" ; then
8157            mon_dir_password=$withval
8158        fi
8159
8160
8161 fi;
8162
8163 if test "x$mon_dir_password" = "x" ; then
8164    if test "x$OPENSSL" = "xnone" ; then
8165 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8166       key=`autoconf/randpass 33`
8167    else
8168       key=`openssl rand -base64 33`
8169    fi
8170    mon_dir_password=$key
8171 fi
8172
8173 mon_fd_password=
8174
8175 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8176 if test "${with_mon_fd_password+set}" = set; then
8177   withval="$with_mon_fd_password"
8178
8179        if test "x$withval" != "xno" ; then
8180            mon_fd_password=$withval
8181        fi
8182
8183
8184 fi;
8185
8186 if test "x$mon_fd_password" = "x" ; then
8187    if test "x$OPENSSL" = "xnone" ; then
8188 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8189       key=`autoconf/randpass 37`
8190    else
8191       key=`openssl rand -base64 33`
8192    fi
8193    mon_fd_password=$key
8194 fi
8195
8196 mon_sd_password=
8197
8198 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8199 if test "${with_mon_sd_password+set}" = set; then
8200   withval="$with_mon_sd_password"
8201
8202        if test "x$withval" != "xno" ; then
8203            mon_sd_password=$withval
8204        fi
8205
8206
8207 fi;
8208
8209 if test "x$mon_sd_password" = "x" ; then
8210    if test "x$OPENSSL" = "xnone" ; then
8211 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8212       key=`autoconf/randpass 41`
8213    else
8214       key=`openssl rand -base64 33`
8215    fi
8216    mon_sd_password=$key
8217 fi
8218
8219
8220
8221
8222
8223
8224
8225
8226 # -------------------------------------------------------------------------
8227 #  Set variables for bimagemgr installation
8228 # -------------------------------------------------------------------------
8229 bimagemgr_cgidir=/var/www/cgi-bin
8230
8231 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8232 if test "${with_bimagemgr_cgidir+set}" = set; then
8233   withval="$with_bimagemgr_cgidir"
8234
8235        if test "x$withval" != "xno" ; then
8236            bimagemgr_cgidir=$withval
8237        fi
8238
8239
8240 fi;
8241
8242 bimagemgr_docdir=/var/www/html
8243
8244 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8245 if test "${with_bimagemgr_docdir+set}" = set; then
8246   withval="$with_bimagemgr_docdir"
8247
8248        if test "x$withval" != "xno" ; then
8249            bimagemgr_docdir=$withval
8250        fi
8251
8252
8253 fi;
8254
8255 bimagemgr_binowner=root
8256
8257 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8258 if test "${with_bimagemgr_binowner+set}" = set; then
8259   withval="$with_bimagemgr_binowner"
8260
8261        if test "x$withval" != "xno" ; then
8262            bimagemgr_binowner=$withval
8263        fi
8264
8265
8266 fi;
8267
8268 bimagemgr_bingroup=root
8269
8270 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8271 if test "${with_bimagemgr_bingroup+set}" = set; then
8272   withval="$with_bimagemgr_bingroup"
8273
8274        if test "x$withval" != "xno" ; then
8275            bimagemgr_bingroup=$withval
8276        fi
8277
8278
8279 fi;
8280
8281 bimagemgr_dataowner=apache
8282
8283 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8284 if test "${with_bimagemgr_dataowner+set}" = set; then
8285   withval="$with_bimagemgr_dataowner"
8286
8287        if test "x$withval" != "xno" ; then
8288            bimagemgr_dataowner=$withval
8289        fi
8290
8291
8292 fi;
8293
8294 bimagemgr_datagroup=apache
8295
8296 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8297 if test "${with_bimagemgr_datagroup+set}" = set; then
8298   withval="$with_bimagemgr_datagroup"
8299
8300        if test "x$withval" != "xno" ; then
8301            bimagemgr_datagroup=$withval
8302        fi
8303
8304
8305 fi;
8306
8307
8308
8309
8310
8311
8312
8313
8314 #
8315 # Handle users and groups for each daemon
8316 #
8317 dir_user=
8318
8319 # Check whether --with-dir_user or --without-dir_user was given.
8320 if test "${with_dir_user+set}" = set; then
8321   withval="$with_dir_user"
8322
8323         if test "x$withval" != "x" ; then
8324              dir_user=$withval
8325         fi
8326
8327
8328 fi;
8329
8330 dir_group=
8331
8332 # Check whether --with-dir_group or --without-dir_group was given.
8333 if test "${with_dir_group+set}" = set; then
8334   withval="$with_dir_group"
8335
8336         if test "x$withval" != "x" ; then
8337              dir_group=$withval
8338         fi
8339
8340
8341 fi;
8342
8343 sd_user=
8344
8345 # Check whether --with-sd_user or --without-sd_user was given.
8346 if test "${with_sd_user+set}" = set; then
8347   withval="$with_sd_user"
8348
8349         if test "x$withval" != "x" ; then
8350              sd_user=$withval
8351         fi
8352
8353
8354 fi;
8355
8356 sd_group=
8357
8358 # Check whether --with-sd_group or --without-sd_group was given.
8359 if test "${with_sd_group+set}" = set; then
8360   withval="$with_sd_group"
8361
8362         if test "x$withval" != "x" ; then
8363              sd_group=$withval
8364         fi
8365
8366
8367 fi;
8368
8369 fd_user=
8370
8371 # Check whether --with-fd_user or --without-fd_user was given.
8372 if test "${with_fd_user+set}" = set; then
8373   withval="$with_fd_user"
8374
8375         if test "x$withval" != "x" ; then
8376              fd_user=$withval
8377         fi
8378
8379
8380 fi;
8381
8382 fd_group=
8383
8384 # Check whether --with-fd_group or --without-fd_group was given.
8385 if test "${with_fd_group+set}" = set; then
8386   withval="$with_fd_group"
8387
8388         if test "x$withval" != "x" ; then
8389              fd_group=$withval
8390         fi
8391
8392
8393 fi;
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 #
8406 # allow setting default executable permissions
8407 #
8408 SBINPERM=0754
8409
8410 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8411 if test "${with_sbin_perm+set}" = set; then
8412   withval="$with_sbin_perm"
8413
8414         if test "x$withval" != "x" ; then
8415             SBINPERM=$withval
8416         fi
8417
8418
8419 fi;
8420
8421
8422
8423 # ------------------------------------------------
8424 # Bacula check for various SQL database engines
8425 # ------------------------------------------------
8426
8427 db_found=no
8428 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8429 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8430
8431 # Check whether --with-postgresql or --without-postgresql was given.
8432 if test "${with_postgresql+set}" = set; then
8433   withval="$with_postgresql"
8434
8435   if test "$withval" != "no"; then
8436       if test "$db_found" = "yes"; then
8437           echo "$as_me:$LINENO: result: error" >&5
8438 echo "${ECHO_T}error" >&6
8439           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8440 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8441    { (exit 1); exit 1; }; };
8442       fi
8443       if test "$withval" = "yes"; then
8444           if test -f /usr/local/include/libpq-fe.h; then
8445               POSTGRESQL_INCDIR=/usr/local/include
8446               POSTGRESQL_LIBDIR=/usr/local/lib
8447               POSTGRESQL_BINDIR=/usr/local/bin
8448           elif test -f /usr/include/libpq-fe.h; then
8449               POSTGRESQL_INCDIR=/usr/include
8450               POSTGRESQL_LIBDIR=/usr/lib
8451               POSTGRESQL_BINDIR=/usr/bin
8452           elif test -f /usr/include/pgsql/libpq-fe.h; then
8453               POSTGRESQL_INCDIR=/usr/include/pgsql
8454               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8455               POSTGRESQL_BINDIR=/usr/bin
8456           elif test -f /usr/include/postgresql/libpq-fe.h; then
8457               POSTGRESQL_INCDIR=/usr/include/postgresql
8458               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8459               POSTGRESQL_BINDIR=/usr/bin
8460           else
8461               echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8463               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8464 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8465    { (exit 1); exit 1; }; }
8466           fi
8467       elif test -f $withval/include/libpq-fe.h; then
8468           POSTGRESQL_INCDIR=$withval/include
8469           POSTGRESQL_LIBDIR=$withval/lib
8470           POSTGRESQL_BINDIR=$withval/bin
8471       elif test -f $withval/include/postgresql/libpq-fe.h; then
8472           POSTGRESQL_INCDIR=$withval/include/postgresql
8473           POSTGRESQL_LIBDIR=$withval/lib
8474           POSTGRESQL_BINDIR=$withval/bin
8475       else
8476           echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8478           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8479 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8480    { (exit 1); exit 1; }; }
8481       fi
8482       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8483       echo "$as_me:$LINENO: checking for crypt" >&5
8484 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8485 if test "${ac_cv_func_crypt+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8496 #define crypt innocuous_crypt
8497
8498 /* System header to define __stub macros and hopefully few prototypes,
8499     which can conflict with char crypt (); below.
8500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8501     <limits.h> exists even on freestanding compilers.  */
8502
8503 #ifdef __STDC__
8504 # include <limits.h>
8505 #else
8506 # include <assert.h>
8507 #endif
8508
8509 #undef crypt
8510
8511 /* Override any gcc2 internal prototype to avoid an error.  */
8512 #ifdef __cplusplus
8513 extern "C"
8514 {
8515 #endif
8516 /* We use char because int might match the return type of a gcc2
8517    builtin and then its argument prototype would still apply.  */
8518 char crypt ();
8519 /* The GNU C library defines this for functions which it implements
8520     to always fail with ENOSYS.  Some functions are actually named
8521     something starting with __ and the normal name is an alias.  */
8522 #if defined (__stub_crypt) || defined (__stub___crypt)
8523 choke me
8524 #else
8525 char (*f) () = crypt;
8526 #endif
8527 #ifdef __cplusplus
8528 }
8529 #endif
8530
8531 int
8532 main ()
8533 {
8534 return f != crypt;
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541   (eval $ac_link) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -z "$ac_c_werror_flag"
8549                          || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_func_crypt=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_cv_func_crypt=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8572 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8573 if test $ac_cv_func_crypt = yes; then
8574   :
8575 else
8576   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8577 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8578 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   ac_check_lib_save_LIBS=$LIBS
8582 LIBS="-lcrypt  $LIBS"
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589
8590 /* Override any gcc2 internal prototype to avoid an error.  */
8591 #ifdef __cplusplus
8592 extern "C"
8593 #endif
8594 /* We use char because int might match the return type of a gcc2
8595    builtin and then its argument prototype would still apply.  */
8596 char crypt ();
8597 int
8598 main ()
8599 {
8600 crypt ();
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607   (eval $ac_link) 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } &&
8614          { ac_try='test -z "$ac_c_werror_flag"
8615                          || test ! -s conftest.err'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_lib_crypt_crypt=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_lib_crypt_crypt=no
8633 fi
8634 rm -f conftest.err conftest.$ac_objext \
8635       conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8637 fi
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8639 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8640 if test $ac_cv_lib_crypt_crypt = yes; then
8641   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8642 fi
8643
8644 fi
8645
8646       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8647       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8648       SQL_BINDIR=$POSTGRESQL_BINDIR
8649       cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_POSTGRESQL 1
8651 _ACEOF
8652
8653       echo "$as_me:$LINENO: result: yes" >&5
8654 echo "${ECHO_T}yes" >&6
8655       db_found=yes
8656       support_postgresql=yes
8657       db_name=PostgreSQL
8658       DB_NAME=postgresql
8659   else
8660       echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8662   fi
8663
8664 else
8665
8666   echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8668
8669 fi;
8670
8671
8672
8673
8674
8675
8676
8677 db_found=no
8678 echo "$as_me:$LINENO: checking for MySQL support" >&5
8679 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8680
8681 # Check whether --with-mysql or --without-mysql was given.
8682 if test "${with_mysql+set}" = set; then
8683   withval="$with_mysql"
8684
8685   if test "$withval" != "no"; then
8686         if test "$withval" = "yes"; then
8687                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8688                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8689                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8690                         MYSQL_BINDIR=/usr/local/mysql/bin
8691                 elif test -f /usr/include/mysql/mysql.h; then
8692                         MYSQL_INCDIR=/usr/include/mysql
8693                         MYSQL_LIBDIR=/usr/lib/mysql
8694                         MYSQL_BINDIR=/usr/bin
8695                 elif test -f /usr/include/mysql.h; then
8696                         MYSQL_INCDIR=/usr/include
8697                         MYSQL_LIBDIR=/usr/lib
8698                         MYSQL_BINDIR=/usr/bin
8699                 elif test -f /usr/local/include/mysql/mysql.h; then
8700                         MYSQL_INCDIR=/usr/local/include/mysql
8701                         MYSQL_LIBDIR=/usr/local/lib/mysql
8702                         MYSQL_BINDIR=/usr/local/bin
8703                 elif test -f /usr/local/include/mysql.h; then
8704                         MYSQL_INCDIR=/usr/local/include
8705                         MYSQL_LIBDIR=/usr/local/lib
8706                         MYSQL_BINDIR=/usr/local/bin
8707                 else
8708                    echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6
8710                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8711 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8712    { (exit 1); exit 1; }; }
8713                 fi
8714         else
8715                 if test -f $withval/include/mysql/mysql.h; then
8716                         MYSQL_INCDIR=$withval/include/mysql
8717                         MYSQL_LIBDIR=$withval/lib/mysql
8718                         MYSQL_BINDIR=$withval/bin
8719                 elif test -f $withval/include/mysql.h; then
8720                         MYSQL_INCDIR=$withval/include
8721                         MYSQL_LIBDIR=$withval/lib
8722                         MYSQL_BINDIR=$withval/bin
8723                 else
8724                    echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8727 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8728    { (exit 1); exit 1; }; }
8729                 fi
8730         fi
8731     SQL_INCLUDE=-I$MYSQL_INCDIR
8732     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8733        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8734        cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_THREAD_SAFE_MYSQL 1
8736 _ACEOF
8737
8738     else
8739        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8740     fi
8741     SQL_BINDIR=$MYSQL_BINDIR
8742
8743     cat >>confdefs.h <<\_ACEOF
8744 #define HAVE_MYSQL 1
8745 _ACEOF
8746
8747     echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8749     db_found=yes
8750     support_mysql=yes
8751     db_name=MySQL
8752     DB_NAME=mysql
8753
8754   else
8755         echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8757   fi
8758
8759
8760 fi;
8761
8762
8763 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8764 if test "${with_embedded_mysql+set}" = set; then
8765   withval="$with_embedded_mysql"
8766
8767   if test "$withval" != "no"; then
8768         if test "$withval" = "yes"; then
8769                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8770                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8771                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8772                         MYSQL_BINDIR=/usr/local/mysql/bin
8773                 elif test -f /usr/include/mysql/mysql.h; then
8774                         MYSQL_INCDIR=/usr/include/mysql
8775                         MYSQL_LIBDIR=/usr/lib/mysql
8776                         MYSQL_BINDIR=/usr/bin
8777                 elif test -f /usr/include/mysql.h; then
8778                         MYSQL_INCDIR=/usr/include
8779                         MYSQL_LIBDIR=/usr/lib
8780                         MYSQL_BINDIR=/usr/bin
8781                 elif test -f /usr/local/include/mysql/mysql.h; then
8782                         MYSQL_INCDIR=/usr/local/include/mysql
8783                         MYSQL_LIBDIR=/usr/local/lib/mysql
8784                         MYSQL_BINDIR=/usr/local/bin
8785                 elif test -f /usr/local/include/mysql.h; then
8786                         MYSQL_INCDIR=/usr/local/include
8787                         MYSQL_LIBDIR=/usr/local/lib
8788                         MYSQL_BINDIR=/usr/local/bin
8789                 else
8790                    echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6
8792                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8793 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8794    { (exit 1); exit 1; }; }
8795                 fi
8796         else
8797                 if test -f $withval/include/mysql/mysql.h; then
8798                         MYSQL_INCDIR=$withval/include/mysql
8799                         MYSQL_LIBDIR=$withval/lib/mysql
8800                         MYSQL_BINDIR=$withval/bin
8801                 elif test -f $withval/include/mysql.h; then
8802                         MYSQL_INCDIR=$withval/include
8803                         MYSQL_LIBDIR=$withval/lib
8804                         MYSQL_BINDIR=$withval/bin
8805                 else
8806                    echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8809 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8810    { (exit 1); exit 1; }; }
8811                 fi
8812         fi
8813     SQL_INCLUDE=-I$MYSQL_INCDIR
8814     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8815     SQL_BINDIR=$MYSQL_BINDIR
8816
8817     cat >>confdefs.h <<\_ACEOF
8818 #define HAVE_MYSQL 1
8819 _ACEOF
8820
8821     cat >>confdefs.h <<\_ACEOF
8822 #define HAVE_EMBEDDED_MYSQL 1
8823 _ACEOF
8824
8825     echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6
8827     db_found=yes
8828     support_mysql=yes
8829     db_name=MySQL
8830     DB_NAME=mysql
8831
8832   else
8833         echo "$as_me:$LINENO: result: no" >&5
8834 echo "${ECHO_T}no" >&6
8835   fi
8836
8837
8838 fi;
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 db_found=no
8849 echo "$as_me:$LINENO: checking for SQLite support" >&5
8850 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8851
8852 # Check whether --with-sqlite or --without-sqlite was given.
8853 if test "${with_sqlite+set}" = set; then
8854   withval="$with_sqlite"
8855
8856   if test "$withval" != "no"; then
8857      if test "$withval" = "yes"; then
8858         if test -f /usr/local/include/sqlite.h; then
8859            SQLITE_INCDIR=/usr/local/include
8860            SQLITE_LIBDIR=/usr/local/lib
8861            SQLITE_BINDIR=/usr/local/bin
8862         elif test -f /usr/include/sqlite.h; then
8863            SQLITE_INCDIR=/usr/include
8864            SQLITE_LIBDIR=/usr/lib
8865            SQLITE_BINDIR=/usr/bin
8866         elif test -f $prefix/include/sqlite.h; then
8867            SQLITE_INCDIR=$prefix/include
8868            SQLITE_LIBDIR=$prefix/lib
8869            SQLITE_BINDIR=$prefix/bin
8870         else
8871            echo "$as_me:$LINENO: result: no" >&5
8872 echo "${ECHO_T}no" >&6
8873            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8874 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8875    { (exit 1); exit 1; }; }
8876         fi
8877      else
8878         if test -f $withval/sqlite.h; then
8879            SQLITE_INCDIR=$withval
8880            SQLITE_LIBDIR=$withval
8881            SQLITE_BINDIR=$withval
8882         elif test -f $withval/include/sqlite.h; then
8883            SQLITE_INCDIR=$withval/include
8884            SQLITE_LIBDIR=$withval/lib
8885            SQLITE_BINDIR=$withval/bin
8886         else
8887            echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6
8889            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8890 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8891    { (exit 1); exit 1; }; }
8892         fi
8893      fi
8894      SQL_INCLUDE=-I$SQLITE_INCDIR
8895      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8896      SQL_BINDIR=$SQLITE_BINDIR
8897
8898      cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_SQLITE 1
8900 _ACEOF
8901
8902      echo "$as_me:$LINENO: result: yes" >&5
8903 echo "${ECHO_T}yes" >&6
8904      db_found=yes
8905      support_sqlite=yes
8906      db_name=SQLite
8907      DB_NAME=sqlite
8908
8909   else
8910      echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912   fi
8913
8914 else
8915
8916   echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8918
8919 fi;
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929 cat >>confdefs.h <<\_ACEOF
8930 #define PROTOTYPES 1
8931 _ACEOF
8932
8933
8934 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8935     if test -z "$CCOPTS"; then
8936         CCOPTS='-g -O2 -Wall'
8937     fi
8938     CFLAGS="$CCOPTS"
8939 fi
8940
8941
8942
8943
8944 largefile_support="no"
8945
8946    # Check whether --enable-largefile or --disable-largefile was given.
8947 if test "${enable_largefile+set}" = set; then
8948   enableval="$enable_largefile"
8949
8950 fi;
8951    if test "$enable_largefile" != no; then
8952      if test -n "$ac_tool_prefix"; then
8953   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8954 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8955 echo "$as_me:$LINENO: checking for $ac_word" >&5
8956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957 if test "${ac_cv_prog_GETCONF+set}" = set; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960   if test -n "$GETCONF"; then
8961   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966   IFS=$as_save_IFS
8967   test -z "$as_dir" && as_dir=.
8968   for ac_exec_ext in '' $ac_executable_extensions; do
8969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8972     break 2
8973   fi
8974 done
8975 done
8976
8977 fi
8978 fi
8979 GETCONF=$ac_cv_prog_GETCONF
8980 if test -n "$GETCONF"; then
8981   echo "$as_me:$LINENO: result: $GETCONF" >&5
8982 echo "${ECHO_T}$GETCONF" >&6
8983 else
8984   echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8986 fi
8987
8988 fi
8989 if test -z "$ac_cv_prog_GETCONF"; then
8990   ac_ct_GETCONF=$GETCONF
8991   # Extract the first word of "getconf", so it can be a program name with args.
8992 set dummy getconf; ac_word=$2
8993 echo "$as_me:$LINENO: checking for $ac_word" >&5
8994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8995 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   if test -n "$ac_ct_GETCONF"; then
8999   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9003 do
9004   IFS=$as_save_IFS
9005   test -z "$as_dir" && as_dir=.
9006   for ac_exec_ext in '' $ac_executable_extensions; do
9007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9008     ac_cv_prog_ac_ct_GETCONF="getconf"
9009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9010     break 2
9011   fi
9012 done
9013 done
9014
9015 fi
9016 fi
9017 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9018 if test -n "$ac_ct_GETCONF"; then
9019   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9020 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9021 else
9022   echo "$as_me:$LINENO: result: no" >&5
9023 echo "${ECHO_T}no" >&6
9024 fi
9025
9026   GETCONF=$ac_ct_GETCONF
9027 else
9028   GETCONF="$ac_cv_prog_GETCONF"
9029 fi
9030
9031      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9032 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9033 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9037         ac_cv_sys_largefile_CFLAGS=no
9038         case "$host_os" in
9039            # IRIX 6.2 and later require cc -n32.
9040            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9041              if test "$GCC" != yes; then
9042                ac_cv_sys_largefile_CFLAGS=-n32
9043              fi
9044              ac_save_CC="$CC"
9045              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9046              cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052
9053 int
9054 main ()
9055 {
9056
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063   (eval $ac_link) 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } &&
9070          { ac_try='test -z "$ac_c_werror_flag"
9071                          || test ! -s conftest.err'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; } &&
9077          { ac_try='test -s conftest$ac_exeext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   :
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_cv_sys_largefile_CFLAGS=no
9089 fi
9090 rm -f conftest.err conftest.$ac_objext \
9091       conftest$ac_exeext conftest.$ac_ext
9092              CC="$ac_save_CC"
9093            esac
9094       }
9095 fi
9096 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9097 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9098      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9099 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9100 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9104         ac_cv_sys_largefile_LDFLAGS=no
9105
9106       }
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9109 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9110      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9111 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9112 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9116         ac_cv_sys_largefile_LIBS=no
9117
9118       }
9119 fi
9120 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9121 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9122
9123      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9124        case "$ac_flag" in
9125        no) ;;
9126        -D_FILE_OFFSET_BITS=*) ;;
9127        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9128        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9129        -D?* | -I?*)
9130          case "$ac_flag" in
9131    no) ;;
9132    ?*)
9133      case "$CPPFLAGS" in
9134      '') CPPFLAGS="$ac_flag" ;;
9135      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9136      esac ;;
9137    esac ;;
9138        *)
9139          case "$ac_flag" in
9140    no) ;;
9141    ?*)
9142      case "$CFLAGS" in
9143      '') CFLAGS="$ac_flag" ;;
9144      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9145      esac ;;
9146    esac ;;
9147        esac
9148      done
9149      case "$ac_cv_sys_largefile_LDFLAGS" in
9150    no) ;;
9151    ?*)
9152      case "$LDFLAGS" in
9153      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9154      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9155      esac ;;
9156    esac
9157      case "$ac_cv_sys_largefile_LIBS" in
9158    no) ;;
9159    ?*)
9160      case "$LIBS" in
9161      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9162      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9163      esac ;;
9164    esac
9165      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9166 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9167 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   ac_cv_sys_file_offset_bits=no
9171       ac_cv_sys_file_offset_bits=64
9172       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9173         case "$ac_flag" in
9174         -D_FILE_OFFSET_BITS)
9175           ac_cv_sys_file_offset_bits=1 ;;
9176         -D_FILE_OFFSET_BITS=*)
9177           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9178         esac
9179       done
9180
9181 fi
9182 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9184    if test "$ac_cv_sys_file_offset_bits" != no; then
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9188 _ACEOF
9189
9190    fi
9191      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9192 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9193 if test "${ac_cv_sys_largefile_source+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   ac_cv_sys_largefile_source=no
9197       ac_cv_sys_largefile_source=1
9198       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9199         case "$ac_flag" in
9200         -D_LARGEFILE_SOURCE)
9201           ac_cv_sys_largefile_source=1 ;;
9202         -D_LARGEFILE_SOURCE=*)
9203           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9204         esac
9205       done
9206
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9209 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9210    if test "$ac_cv_sys_largefile_source" != no; then
9211
9212 cat >>confdefs.h <<_ACEOF
9213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9214 _ACEOF
9215
9216    fi
9217      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9218 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9219 if test "${ac_cv_sys_large_files+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   ac_cv_sys_large_files=no
9223       ac_cv_sys_large_files=1
9224       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9225         case "$ac_flag" in
9226         -D_LARGE_FILES)
9227           ac_cv_sys_large_files=1 ;;
9228         -D_LARGE_FILES=*)
9229           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9230         esac
9231       done
9232
9233 fi
9234 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9235 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9236    if test "$ac_cv_sys_large_files" != no; then
9237
9238 cat >>confdefs.h <<_ACEOF
9239 #define _LARGE_FILES $ac_cv_sys_large_files
9240 _ACEOF
9241
9242    fi
9243    fi
9244
9245
9246
9247 echo "$as_me:$LINENO: checking for X" >&5
9248 echo $ECHO_N "checking for X... $ECHO_C" >&6
9249
9250
9251 # Check whether --with-x or --without-x was given.
9252 if test "${with_x+set}" = set; then
9253   withval="$with_x"
9254
9255 fi;
9256 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9257 if test "x$with_x" = xno; then
9258   # The user explicitly disabled X.
9259   have_x=disabled
9260 else
9261   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9262     # Both variables are already set.
9263     have_x=yes
9264   else
9265     if test "${ac_cv_have_x+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   # One or both of the vars are not set, and there is no cached value.
9269 ac_x_includes=no ac_x_libraries=no
9270 rm -fr conftest.dir
9271 if mkdir conftest.dir; then
9272   cd conftest.dir
9273   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9274   cat >Imakefile <<'_ACEOF'
9275 acfindx:
9276         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9277 _ACEOF
9278   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9279     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9280     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9281     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9282     for ac_extension in a so sl; do
9283       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9284          test -f $ac_im_libdir/libX11.$ac_extension; then
9285         ac_im_usrlibdir=$ac_im_libdir; break
9286       fi
9287     done
9288     # Screen out bogus values from the imake configuration.  They are
9289     # bogus both because they are the default anyway, and because
9290     # using them would break gcc on systems where it needs fixed includes.
9291     case $ac_im_incroot in
9292         /usr/include) ;;
9293         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9294     esac
9295     case $ac_im_usrlibdir in
9296         /usr/lib | /lib) ;;
9297         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9298     esac
9299   fi
9300   cd ..
9301   rm -fr conftest.dir
9302 fi
9303
9304 # Standard set of common directories for X headers.
9305 # Check X11 before X11Rn because it is often a symlink to the current release.
9306 ac_x_header_dirs='
9307 /usr/X11/include
9308 /usr/X11R6/include
9309 /usr/X11R5/include
9310 /usr/X11R4/include
9311
9312 /usr/include/X11
9313 /usr/include/X11R6
9314 /usr/include/X11R5
9315 /usr/include/X11R4
9316
9317 /usr/local/X11/include
9318 /usr/local/X11R6/include
9319 /usr/local/X11R5/include
9320 /usr/local/X11R4/include
9321
9322 /usr/local/include/X11
9323 /usr/local/include/X11R6
9324 /usr/local/include/X11R5
9325 /usr/local/include/X11R4
9326
9327 /usr/X386/include
9328 /usr/x386/include
9329 /usr/XFree86/include/X11
9330
9331 /usr/include
9332 /usr/local/include
9333 /usr/unsupported/include
9334 /usr/athena/include
9335 /usr/local/x11r5/include
9336 /usr/lpp/Xamples/include
9337
9338 /usr/openwin/include
9339 /usr/openwin/share/include'
9340
9341 if test "$ac_x_includes" = no; then
9342   # Guess where to find include files, by looking for Intrinsic.h.
9343   # First, try using that file with no special directory specified.
9344   cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 #include <X11/Intrinsic.h>
9351 _ACEOF
9352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9354   ac_status=$?
9355   grep -v '^ *+' conftest.er1 >conftest.err
9356   rm -f conftest.er1
9357   cat conftest.err >&5
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } >/dev/null; then
9360   if test -s conftest.err; then
9361     ac_cpp_err=$ac_c_preproc_warn_flag
9362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9363   else
9364     ac_cpp_err=
9365   fi
9366 else
9367   ac_cpp_err=yes
9368 fi
9369 if test -z "$ac_cpp_err"; then
9370   # We can compile using X headers with no special include directory.
9371 ac_x_includes=
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376   for ac_dir in $ac_x_header_dirs; do
9377   if test -r "$ac_dir/X11/Intrinsic.h"; then
9378     ac_x_includes=$ac_dir
9379     break
9380   fi
9381 done
9382 fi
9383 rm -f conftest.err conftest.$ac_ext
9384 fi # $ac_x_includes = no
9385
9386 if test "$ac_x_libraries" = no; then
9387   # Check for the libraries.
9388   # See if we find them without any special options.
9389   # Don't add to $LIBS permanently.
9390   ac_save_LIBS=$LIBS
9391   LIBS="-lXt $LIBS"
9392   cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 #include <X11/Intrinsic.h>
9399 int
9400 main ()
9401 {
9402 XtMalloc (0)
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>conftest.er1
9410   ac_status=$?
9411   grep -v '^ *+' conftest.er1 >conftest.err
9412   rm -f conftest.er1
9413   cat conftest.err >&5
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } &&
9416          { ac_try='test -z "$ac_c_werror_flag"
9417                          || test ! -s conftest.err'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; } &&
9423          { ac_try='test -s conftest$ac_exeext'
9424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425   (eval $ac_try) 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); }; }; then
9429   LIBS=$ac_save_LIBS
9430 # We can link X programs with no special library path.
9431 ac_x_libraries=
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 LIBS=$ac_save_LIBS
9437 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9438 do
9439   # Don't even attempt the hair of trying to link an X program!
9440   for ac_extension in a so sl; do
9441     if test -r $ac_dir/libXt.$ac_extension; then
9442       ac_x_libraries=$ac_dir
9443       break 2
9444     fi
9445   done
9446 done
9447 fi
9448 rm -f conftest.err conftest.$ac_objext \
9449       conftest$ac_exeext conftest.$ac_ext
9450 fi # $ac_x_libraries = no
9451
9452 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9453   # Didn't find X anywhere.  Cache the known absence of X.
9454   ac_cv_have_x="have_x=no"
9455 else
9456   # Record where we found X for the cache.
9457   ac_cv_have_x="have_x=yes \
9458                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9459 fi
9460 fi
9461
9462   fi
9463   eval "$ac_cv_have_x"
9464 fi # $with_x != no
9465
9466 if test "$have_x" != yes; then
9467   echo "$as_me:$LINENO: result: $have_x" >&5
9468 echo "${ECHO_T}$have_x" >&6
9469   no_x=yes
9470 else
9471   # If each of the values was on the command line, it overrides each guess.
9472   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9473   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9474   # Update the cache value to reflect the command line values.
9475   ac_cv_have_x="have_x=yes \
9476                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9477   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9478 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9479 fi
9480
9481 if test "$no_x" = yes; then
9482   # Not all programs may use this symbol, but it does not hurt to define it.
9483
9484 cat >>confdefs.h <<\_ACEOF
9485 #define X_DISPLAY_MISSING 1
9486 _ACEOF
9487
9488   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9489 else
9490   if test -n "$x_includes"; then
9491     X_CFLAGS="$X_CFLAGS -I$x_includes"
9492   fi
9493
9494   # It would also be nice to do this for all -L options, not just this one.
9495   if test -n "$x_libraries"; then
9496     X_LIBS="$X_LIBS -L$x_libraries"
9497     # For Solaris; some versions of Sun CC require a space after -R and
9498     # others require no space.  Words are not sufficient . . . .
9499     case `(uname -sr) 2>/dev/null` in
9500     "SunOS 5"*)
9501       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9502 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9503       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9504       cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510
9511 int
9512 main ()
9513 {
9514
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521   (eval $ac_link) 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } &&
9528          { ac_try='test -z "$ac_c_werror_flag"
9529                          || test ! -s conftest.err'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_R_nospace=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_R_nospace=no
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549       conftest$ac_exeext conftest.$ac_ext
9550       if test $ac_R_nospace = yes; then
9551         echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9553         X_LIBS="$X_LIBS -R$x_libraries"
9554       else
9555         LIBS="$ac_xsave_LIBS -R $x_libraries"
9556         cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562
9563 int
9564 main ()
9565 {
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573   (eval $ac_link) 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } &&
9580          { ac_try='test -z "$ac_c_werror_flag"
9581                          || test ! -s conftest.err'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest$ac_exeext'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   ac_R_space=yes
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 ac_R_space=no
9599 fi
9600 rm -f conftest.err conftest.$ac_objext \
9601       conftest$ac_exeext conftest.$ac_ext
9602         if test $ac_R_space = yes; then
9603           echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6
9605           X_LIBS="$X_LIBS -R $x_libraries"
9606         else
9607           echo "$as_me:$LINENO: result: neither works" >&5
9608 echo "${ECHO_T}neither works" >&6
9609         fi
9610       fi
9611       LIBS=$ac_xsave_LIBS
9612     esac
9613   fi
9614
9615   # Check for system-dependent libraries X programs must link with.
9616   # Do this before checking for the system-independent R6 libraries
9617   # (-lICE), since we may need -lsocket or whatever for X linking.
9618
9619   if test "$ISC" = yes; then
9620     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9621   else
9622     # Martyn Johnson says this is needed for Ultrix, if the X
9623     # libraries were built with DECnet support.  And Karl Berry says
9624     # the Alpha needs dnet_stub (dnet does not exist).
9625     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9626     cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632
9633 /* Override any gcc2 internal prototype to avoid an error.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 /* We use char because int might match the return type of a gcc2
9638    builtin and then its argument prototype would still apply.  */
9639 char XOpenDisplay ();
9640 int
9641 main ()
9642 {
9643 XOpenDisplay ();
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650   (eval $ac_link) 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } &&
9657          { ac_try='test -z "$ac_c_werror_flag"
9658                          || test ! -s conftest.err'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; } &&
9664          { ac_try='test -s conftest$ac_exeext'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }; then
9670   :
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9676 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9677 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   ac_check_lib_save_LIBS=$LIBS
9681 LIBS="-ldnet  $LIBS"
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h.  */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h.  */
9688
9689 /* Override any gcc2 internal prototype to avoid an error.  */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 /* We use char because int might match the return type of a gcc2
9694    builtin and then its argument prototype would still apply.  */
9695 char dnet_ntoa ();
9696 int
9697 main ()
9698 {
9699 dnet_ntoa ();
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706   (eval $ac_link) 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -z "$ac_c_werror_flag"
9714                          || test ! -s conftest.err'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; } &&
9720          { ac_try='test -s conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_lib_dnet_dnet_ntoa=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_cv_lib_dnet_dnet_ntoa=no
9732 fi
9733 rm -f conftest.err conftest.$ac_objext \
9734       conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9738 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9739 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9740   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9741 fi
9742
9743     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9744       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9745 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9746 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldnet_stub  $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763    builtin and then its argument prototype would still apply.  */
9764 char dnet_ntoa ();
9765 int
9766 main ()
9767 {
9768 dnet_ntoa ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag"
9783                          || test ! -s conftest.err'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_cv_lib_dnet_stub_dnet_ntoa=no
9801 fi
9802 rm -f conftest.err conftest.$ac_objext \
9803       conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9807 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9808 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9809   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9810 fi
9811
9812     fi
9813 fi
9814 rm -f conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816     LIBS="$ac_xsave_LIBS"
9817
9818     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9819     # to get the SysV transport functions.
9820     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9821     # needs -lnsl.
9822     # The nsl library prevents programs from opening the X display
9823     # on Irix 5.2, according to T.E. Dickey.
9824     # The functions gethostbyname, getservbyname, and inet_addr are
9825     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9826     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9827 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9828 if test "${ac_cv_func_gethostbyname+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9839 #define gethostbyname innocuous_gethostbyname
9840
9841 /* System header to define __stub macros and hopefully few prototypes,
9842     which can conflict with char gethostbyname (); below.
9843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844     <limits.h> exists even on freestanding compilers.  */
9845
9846 #ifdef __STDC__
9847 # include <limits.h>
9848 #else
9849 # include <assert.h>
9850 #endif
9851
9852 #undef gethostbyname
9853
9854 /* Override any gcc2 internal prototype to avoid an error.  */
9855 #ifdef __cplusplus
9856 extern "C"
9857 {
9858 #endif
9859 /* We use char because int might match the return type of a gcc2
9860    builtin and then its argument prototype would still apply.  */
9861 char gethostbyname ();
9862 /* The GNU C library defines this for functions which it implements
9863     to always fail with ENOSYS.  Some functions are actually named
9864     something starting with __ and the normal name is an alias.  */
9865 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9866 choke me
9867 #else
9868 char (*f) () = gethostbyname;
9869 #endif
9870 #ifdef __cplusplus
9871 }
9872 #endif
9873
9874 int
9875 main ()
9876 {
9877 return f != gethostbyname;
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884   (eval $ac_link) 2>conftest.er1
9885   ac_status=$?
9886   grep -v '^ *+' conftest.er1 >conftest.err
9887   rm -f conftest.er1
9888   cat conftest.err >&5
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); } &&
9891          { ac_try='test -z "$ac_c_werror_flag"
9892                          || test ! -s conftest.err'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; } &&
9898          { ac_try='test -s conftest$ac_exeext'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; }; then
9904   ac_cv_func_gethostbyname=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_cv_func_gethostbyname=no
9910 fi
9911 rm -f conftest.err conftest.$ac_objext \
9912       conftest$ac_exeext conftest.$ac_ext
9913 fi
9914 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9915 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9916
9917     if test $ac_cv_func_gethostbyname = no; then
9918       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9919 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9920 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-lnsl  $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 /* Override any gcc2 internal prototype to avoid an error.  */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 /* We use char because int might match the return type of a gcc2
9937    builtin and then its argument prototype would still apply.  */
9938 char gethostbyname ();
9939 int
9940 main ()
9941 {
9942 gethostbyname ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949   (eval $ac_link) 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -z "$ac_c_werror_flag"
9957                          || test ! -s conftest.err'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_lib_nsl_gethostbyname=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_cv_lib_nsl_gethostbyname=no
9975 fi
9976 rm -f conftest.err conftest.$ac_objext \
9977       conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9981 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9982 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9983   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9984 fi
9985
9986       if test $ac_cv_lib_nsl_gethostbyname = no; then
9987         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9988 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9989 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-lbsd  $LIBS"
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000
10001 /* Override any gcc2 internal prototype to avoid an error.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006    builtin and then its argument prototype would still apply.  */
10007 char gethostbyname ();
10008 int
10009 main ()
10010 {
10011 gethostbyname ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018   (eval $ac_link) 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -z "$ac_c_werror_flag"
10026                          || test ! -s conftest.err'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_lib_bsd_gethostbyname=yes
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_lib_bsd_gethostbyname=no
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10050 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10051 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10052   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10053 fi
10054
10055       fi
10056     fi
10057
10058     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10059     # socket/setsockopt and other routines are undefined under SCO ODT
10060     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10061     # on later versions), says Simon Leinen: it contains gethostby*
10062     # variants that don't use the name server (or something).  -lsocket
10063     # must be given before -lnsl if both are needed.  We assume that
10064     # if connect needs -lnsl, so does gethostbyname.
10065     echo "$as_me:$LINENO: checking for connect" >&5
10066 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10067 if test "${ac_cv_func_connect+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10078 #define connect innocuous_connect
10079
10080 /* System header to define __stub macros and hopefully few prototypes,
10081     which can conflict with char connect (); below.
10082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083     <limits.h> exists even on freestanding compilers.  */
10084
10085 #ifdef __STDC__
10086 # include <limits.h>
10087 #else
10088 # include <assert.h>
10089 #endif
10090
10091 #undef connect
10092
10093 /* Override any gcc2 internal prototype to avoid an error.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 {
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char connect ();
10101 /* The GNU C library defines this for functions which it implements
10102     to always fail with ENOSYS.  Some functions are actually named
10103     something starting with __ and the normal name is an alias.  */
10104 #if defined (__stub_connect) || defined (__stub___connect)
10105 choke me
10106 #else
10107 char (*f) () = connect;
10108 #endif
10109 #ifdef __cplusplus
10110 }
10111 #endif
10112
10113 int
10114 main ()
10115 {
10116 return f != connect;
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123   (eval $ac_link) 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -z "$ac_c_werror_flag"
10131                          || test ! -s conftest.err'
10132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133   (eval $ac_try) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; } &&
10137          { ac_try='test -s conftest$ac_exeext'
10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139   (eval $ac_try) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; }; then
10143   ac_cv_func_connect=yes
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ac_cv_func_connect=no
10149 fi
10150 rm -f conftest.err conftest.$ac_objext \
10151       conftest$ac_exeext conftest.$ac_ext
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10154 echo "${ECHO_T}$ac_cv_func_connect" >&6
10155
10156     if test $ac_cv_func_connect = no; then
10157       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10158 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10159 if test "${ac_cv_lib_socket_connect+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170
10171 /* Override any gcc2 internal prototype to avoid an error.  */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 /* We use char because int might match the return type of a gcc2
10176    builtin and then its argument prototype would still apply.  */
10177 char connect ();
10178 int
10179 main ()
10180 {
10181 connect ();
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest$ac_exeext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_cv_lib_socket_connect=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_lib_socket_connect=no
10214 fi
10215 rm -f conftest.err conftest.$ac_objext \
10216       conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10220 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10221 if test $ac_cv_lib_socket_connect = yes; then
10222   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10223 fi
10224
10225     fi
10226
10227     # Guillermo Gomez says -lposix is necessary on A/UX.
10228     echo "$as_me:$LINENO: checking for remove" >&5
10229 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10230 if test "${ac_cv_func_remove+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10241 #define remove innocuous_remove
10242
10243 /* System header to define __stub macros and hopefully few prototypes,
10244     which can conflict with char remove (); below.
10245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246     <limits.h> exists even on freestanding compilers.  */
10247
10248 #ifdef __STDC__
10249 # include <limits.h>
10250 #else
10251 # include <assert.h>
10252 #endif
10253
10254 #undef remove
10255
10256 /* Override any gcc2 internal prototype to avoid an error.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 {
10260 #endif
10261 /* We use char because int might match the return type of a gcc2
10262    builtin and then its argument prototype would still apply.  */
10263 char remove ();
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined (__stub_remove) || defined (__stub___remove)
10268 choke me
10269 #else
10270 char (*f) () = remove;
10271 #endif
10272 #ifdef __cplusplus
10273 }
10274 #endif
10275
10276 int
10277 main ()
10278 {
10279 return f != remove;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286   (eval $ac_link) 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag"
10294                          || test ! -s conftest.err'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; } &&
10300          { ac_try='test -s conftest$ac_exeext'
10301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302   (eval $ac_try) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   ac_cv_func_remove=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ac_cv_func_remove=no
10312 fi
10313 rm -f conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315 fi
10316 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10317 echo "${ECHO_T}$ac_cv_func_remove" >&6
10318
10319     if test $ac_cv_func_remove = no; then
10320       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10321 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10322 if test "${ac_cv_lib_posix_remove+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lposix  $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333
10334 /* Override any gcc2 internal prototype to avoid an error.  */
10335 #ifdef __cplusplus
10336 extern "C"
10337 #endif
10338 /* We use char because int might match the return type of a gcc2
10339    builtin and then its argument prototype would still apply.  */
10340 char remove ();
10341 int
10342 main ()
10343 {
10344 remove ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -z "$ac_c_werror_flag"
10359                          || test ! -s conftest.err'
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); }; } &&
10365          { ac_try='test -s conftest$ac_exeext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_lib_posix_remove=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_posix_remove=no
10377 fi
10378 rm -f conftest.err conftest.$ac_objext \
10379       conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10383 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10384 if test $ac_cv_lib_posix_remove = yes; then
10385   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10386 fi
10387
10388     fi
10389
10390     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10391     echo "$as_me:$LINENO: checking for shmat" >&5
10392 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10393 if test "${ac_cv_func_shmat+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h.  */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h.  */
10402 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10404 #define shmat innocuous_shmat
10405
10406 /* System header to define __stub macros and hopefully few prototypes,
10407     which can conflict with char shmat (); below.
10408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409     <limits.h> exists even on freestanding compilers.  */
10410
10411 #ifdef __STDC__
10412 # include <limits.h>
10413 #else
10414 # include <assert.h>
10415 #endif
10416
10417 #undef shmat
10418
10419 /* Override any gcc2 internal prototype to avoid an error.  */
10420 #ifdef __cplusplus
10421 extern "C"
10422 {
10423 #endif
10424 /* We use char because int might match the return type of a gcc2
10425    builtin and then its argument prototype would still apply.  */
10426 char shmat ();
10427 /* The GNU C library defines this for functions which it implements
10428     to always fail with ENOSYS.  Some functions are actually named
10429     something starting with __ and the normal name is an alias.  */
10430 #if defined (__stub_shmat) || defined (__stub___shmat)
10431 choke me
10432 #else
10433 char (*f) () = shmat;
10434 #endif
10435 #ifdef __cplusplus
10436 }
10437 #endif
10438
10439 int
10440 main ()
10441 {
10442 return f != shmat;
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449   (eval $ac_link) 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -z "$ac_c_werror_flag"
10457                          || test ! -s conftest.err'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; } &&
10463          { ac_try='test -s conftest$ac_exeext'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   ac_cv_func_shmat=yes
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_func_shmat=no
10475 fi
10476 rm -f conftest.err conftest.$ac_objext \
10477       conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10480 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10481
10482     if test $ac_cv_func_shmat = no; then
10483       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10484 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10485 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lipc  $LIBS"
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h.  */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h.  */
10496
10497 /* Override any gcc2 internal prototype to avoid an error.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 /* We use char because int might match the return type of a gcc2
10502    builtin and then its argument prototype would still apply.  */
10503 char shmat ();
10504 int
10505 main ()
10506 {
10507 shmat ();
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514   (eval $ac_link) 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_c_werror_flag"
10522                          || test ! -s conftest.err'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest$ac_exeext'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534   ac_cv_lib_ipc_shmat=yes
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ac_cv_lib_ipc_shmat=no
10540 fi
10541 rm -f conftest.err conftest.$ac_objext \
10542       conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10544 fi
10545 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10546 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10547 if test $ac_cv_lib_ipc_shmat = yes; then
10548   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10549 fi
10550
10551     fi
10552   fi
10553
10554   # Check for libraries that X11R6 Xt/Xaw programs need.
10555   ac_save_LDFLAGS=$LDFLAGS
10556   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10557   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10558   # check for ICE first), but we must link in the order -lSM -lICE or
10559   # we get undefined symbols.  So assume we have SM if we have ICE.
10560   # These have to be linked with before -lX11, unlike the other
10561   # libraries we check for below, so use a different variable.
10562   # John Interrante, Karl Berry
10563   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10564 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10565 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h.  */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h.  */
10576
10577 /* Override any gcc2 internal prototype to avoid an error.  */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 /* We use char because int might match the return type of a gcc2
10582    builtin and then its argument prototype would still apply.  */
10583 char IceConnectionNumber ();
10584 int
10585 main ()
10586 {
10587 IceConnectionNumber ();
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594   (eval $ac_link) 2>conftest.er1
10595   ac_status=$?
10596   grep -v '^ *+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } &&
10601          { ac_try='test -z "$ac_c_werror_flag"
10602                          || test ! -s conftest.err'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_lib_ICE_IceConnectionNumber=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_cv_lib_ICE_IceConnectionNumber=no
10620 fi
10621 rm -f conftest.err conftest.$ac_objext \
10622       conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10626 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10627 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10628   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10629 fi
10630
10631   LDFLAGS=$ac_save_LDFLAGS
10632
10633 fi
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663 for ac_header in \
10664         assert.h \
10665         fcntl.h \
10666         grp.h \
10667         pwd.h \
10668         libc.h \
10669         limits.h \
10670         stdarg.h \
10671         stdlib.h \
10672         stdint.h \
10673         string.h \
10674         termios.h \
10675         termcap.h \
10676         term.h \
10677         unistd.h \
10678         sys/bitypes.h \
10679         sys/byteorder.h \
10680         sys/ioctl.h \
10681         sys/select.h \
10682         sys/sockio.h \
10683         sys/time.h \
10684         sys/socket.h \
10685         arpa/nameser.h \
10686         resolv.h \
10687         mtio.h \
10688         sys/mtio.h \
10689         sys/tape.h \
10690         regex.h \
10691
10692 do
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10695   echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 fi
10700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10702 else
10703   # Is the header compilable?
10704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10706 cat >conftest.$ac_ext <<_ACEOF
10707 /* confdefs.h.  */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h.  */
10712 $ac_includes_default
10713 #include <$ac_header>
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717   (eval $ac_compile) 2>conftest.er1
10718   ac_status=$?
10719   grep -v '^ *+' conftest.er1 >conftest.err
10720   rm -f conftest.er1
10721   cat conftest.err >&5
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -z "$ac_c_werror_flag"
10725                          || test ! -s conftest.err'
10726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727   (eval $ac_try) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); }; } &&
10731          { ac_try='test -s conftest.$ac_objext'
10732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733   (eval $ac_try) 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); }; }; then
10737   ac_header_compiler=yes
10738 else
10739   echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ac_header_compiler=no
10743 fi
10744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10746 echo "${ECHO_T}$ac_header_compiler" >&6
10747
10748 # Is the header present?
10749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 #include <$ac_header>
10758 _ACEOF
10759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } >/dev/null; then
10767   if test -s conftest.err; then
10768     ac_cpp_err=$ac_c_preproc_warn_flag
10769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10770   else
10771     ac_cpp_err=
10772   fi
10773 else
10774   ac_cpp_err=yes
10775 fi
10776 if test -z "$ac_cpp_err"; then
10777   ac_header_preproc=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782   ac_header_preproc=no
10783 fi
10784 rm -f conftest.err conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10786 echo "${ECHO_T}$ac_header_preproc" >&6
10787
10788 # So?  What about this header?
10789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10790   yes:no: )
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10795     ac_header_preproc=yes
10796     ;;
10797   no:yes:* )
10798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10810     (
10811       cat <<\_ASBOX
10812 ## ------------------------------------------ ##
10813 ## Report this to the AC_PACKAGE_NAME lists.  ##
10814 ## ------------------------------------------ ##
10815 _ASBOX
10816     ) |
10817       sed "s/^/$as_me: WARNING:     /" >&2
10818     ;;
10819 esac
10820 echo "$as_me:$LINENO: checking for $ac_header" >&5
10821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   eval "$as_ac_Header=\$ac_header_preproc"
10826 fi
10827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10829
10830 fi
10831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10832   cat >>confdefs.h <<_ACEOF
10833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10834 _ACEOF
10835
10836 fi
10837
10838 done
10839
10840 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10842 if test "${ac_cv_header_stdc+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 #include <stdlib.h>
10852 #include <stdarg.h>
10853 #include <string.h>
10854 #include <float.h>
10855
10856 int
10857 main ()
10858 {
10859
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866   (eval $ac_compile) 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } &&
10873          { ac_try='test -z "$ac_c_werror_flag"
10874                          || test ! -s conftest.err'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; } &&
10880          { ac_try='test -s conftest.$ac_objext'
10881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882   (eval $ac_try) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   ac_cv_header_stdc=yes
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_cv_header_stdc=no
10892 fi
10893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10894
10895 if test $ac_cv_header_stdc = yes; then
10896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10897   cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 #include <string.h>
10904
10905 _ACEOF
10906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10907   $EGREP "memchr" >/dev/null 2>&1; then
10908   :
10909 else
10910   ac_cv_header_stdc=no
10911 fi
10912 rm -f conftest*
10913
10914 fi
10915
10916 if test $ac_cv_header_stdc = yes; then
10917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10918   cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924 #include <stdlib.h>
10925
10926 _ACEOF
10927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10928   $EGREP "free" >/dev/null 2>&1; then
10929   :
10930 else
10931   ac_cv_header_stdc=no
10932 fi
10933 rm -f conftest*
10934
10935 fi
10936
10937 if test $ac_cv_header_stdc = yes; then
10938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10939   if test "$cross_compiling" = yes; then
10940   :
10941 else
10942   cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948 #include <ctype.h>
10949 #if ((' ' & 0x0FF) == 0x020)
10950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10952 #else
10953 # define ISLOWER(c) \
10954                    (('a' <= (c) && (c) <= 'i') \
10955                      || ('j' <= (c) && (c) <= 'r') \
10956                      || ('s' <= (c) && (c) <= 'z'))
10957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10958 #endif
10959
10960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10961 int
10962 main ()
10963 {
10964   int i;
10965   for (i = 0; i < 256; i++)
10966     if (XOR (islower (i), ISLOWER (i))
10967         || toupper (i) != TOUPPER (i))
10968       exit(2);
10969   exit (0);
10970 }
10971 _ACEOF
10972 rm -f conftest$ac_exeext
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974   (eval $ac_link) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   :
10984 else
10985   echo "$as_me: program exited with status $ac_status" >&5
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 ( exit $ac_status )
10990 ac_cv_header_stdc=no
10991 fi
10992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10993 fi
10994 fi
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10997 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10998 if test $ac_cv_header_stdc = yes; then
10999
11000 cat >>confdefs.h <<\_ACEOF
11001 #define STDC_HEADERS 1
11002 _ACEOF
11003
11004 fi
11005
11006 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11007 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11008 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11009   echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011   cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <sys/types.h>
11018 int
11019 main ()
11020 {
11021 return makedev(0, 0);
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028   (eval $ac_link) 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } &&
11035          { ac_try='test -z "$ac_c_werror_flag"
11036                          || test ! -s conftest.err'
11037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038   (eval $ac_try) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; } &&
11042          { ac_try='test -s conftest$ac_exeext'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }; then
11048   ac_cv_header_sys_types_h_makedev=yes
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_header_sys_types_h_makedev=no
11054 fi
11055 rm -f conftest.err conftest.$ac_objext \
11056       conftest$ac_exeext conftest.$ac_ext
11057
11058 fi
11059 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11060 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11061
11062 if test $ac_cv_header_sys_types_h_makedev = no; then
11063 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11064   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11065 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11066 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 fi
11069 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11070 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11071 else
11072   # Is the header compilable?
11073 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11074 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081 $ac_includes_default
11082 #include <sys/mkdev.h>
11083 _ACEOF
11084 rm -f conftest.$ac_objext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11086   (eval $ac_compile) 2>conftest.er1
11087   ac_status=$?
11088   grep -v '^ *+' conftest.er1 >conftest.err
11089   rm -f conftest.er1
11090   cat conftest.err >&5
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } &&
11093          { ac_try='test -z "$ac_c_werror_flag"
11094                          || test ! -s conftest.err'
11095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096   (eval $ac_try) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; } &&
11100          { ac_try='test -s conftest.$ac_objext'
11101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102   (eval $ac_try) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; }; then
11106   ac_header_compiler=yes
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111 ac_header_compiler=no
11112 fi
11113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11116
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11119 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 #include <sys/mkdev.h>
11127 _ACEOF
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130   ac_status=$?
11131   grep -v '^ *+' conftest.er1 >conftest.err
11132   rm -f conftest.er1
11133   cat conftest.err >&5
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } >/dev/null; then
11136   if test -s conftest.err; then
11137     ac_cpp_err=$ac_c_preproc_warn_flag
11138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139   else
11140     ac_cpp_err=
11141   fi
11142 else
11143   ac_cpp_err=yes
11144 fi
11145 if test -z "$ac_cpp_err"; then
11146   ac_header_preproc=yes
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151   ac_header_preproc=no
11152 fi
11153 rm -f conftest.err conftest.$ac_ext
11154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11155 echo "${ECHO_T}$ac_header_preproc" >&6
11156
11157 # So?  What about this header?
11158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11159   yes:no: )
11160     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11161 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11162     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11163 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11164     ac_header_preproc=yes
11165     ;;
11166   no:yes:* )
11167     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11168 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11169     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11170 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11171     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11172 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11174 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11175     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11176 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11177     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11178 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11179     (
11180       cat <<\_ASBOX
11181 ## ------------------------------------------ ##
11182 ## Report this to the AC_PACKAGE_NAME lists.  ##
11183 ## ------------------------------------------ ##
11184 _ASBOX
11185     ) |
11186       sed "s/^/$as_me: WARNING:     /" >&2
11187     ;;
11188 esac
11189 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11190 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11191 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11195 fi
11196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11197 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11198
11199 fi
11200 if test $ac_cv_header_sys_mkdev_h = yes; then
11201
11202 cat >>confdefs.h <<\_ACEOF
11203 #define MAJOR_IN_MKDEV 1
11204 _ACEOF
11205
11206 fi
11207
11208
11209
11210   if test $ac_cv_header_sys_mkdev_h = no; then
11211     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11212   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11213 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11214 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11218 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11219 else
11220   # Is the header compilable?
11221 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11222 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 $ac_includes_default
11230 #include <sys/sysmacros.h>
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234   (eval $ac_compile) 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } &&
11241          { ac_try='test -z "$ac_c_werror_flag"
11242                          || test ! -s conftest.err'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; } &&
11248          { ac_try='test -s conftest.$ac_objext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   ac_header_compiler=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 ac_header_compiler=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263 echo "${ECHO_T}$ac_header_compiler" >&6
11264
11265 # Is the header present?
11266 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11267 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274 #include <sys/sysmacros.h>
11275 _ACEOF
11276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11278   ac_status=$?
11279   grep -v '^ *+' conftest.er1 >conftest.err
11280   rm -f conftest.er1
11281   cat conftest.err >&5
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } >/dev/null; then
11284   if test -s conftest.err; then
11285     ac_cpp_err=$ac_c_preproc_warn_flag
11286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287   else
11288     ac_cpp_err=
11289   fi
11290 else
11291   ac_cpp_err=yes
11292 fi
11293 if test -z "$ac_cpp_err"; then
11294   ac_header_preproc=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299   ac_header_preproc=no
11300 fi
11301 rm -f conftest.err conftest.$ac_ext
11302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6
11304
11305 # So?  What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307   yes:no: )
11308     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11312     ac_header_preproc=yes
11313     ;;
11314   no:yes:* )
11315     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11317     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11321     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11327     (
11328       cat <<\_ASBOX
11329 ## ------------------------------------------ ##
11330 ## Report this to the AC_PACKAGE_NAME lists.  ##
11331 ## ------------------------------------------ ##
11332 _ASBOX
11333     ) |
11334       sed "s/^/$as_me: WARNING:     /" >&2
11335     ;;
11336 esac
11337 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11338 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11339 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11343 fi
11344 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11345 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11346
11347 fi
11348 if test $ac_cv_header_sys_sysmacros_h = yes; then
11349
11350 cat >>confdefs.h <<\_ACEOF
11351 #define MAJOR_IN_SYSMACROS 1
11352 _ACEOF
11353
11354 fi
11355
11356
11357   fi
11358 fi
11359
11360
11361
11362
11363
11364
11365 ac_header_dirent=no
11366 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11367   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11368 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11369 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h.  */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h.  */
11379 #include <sys/types.h>
11380 #include <$ac_hdr>
11381
11382 int
11383 main ()
11384 {
11385 if ((DIR *) 0)
11386 return 0;
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag"
11401                          || test ! -s conftest.err'
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); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   eval "$as_ac_Header=yes"
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 eval "$as_ac_Header=no"
11419 fi
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425   cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11427 _ACEOF
11428
11429 ac_header_dirent=$ac_hdr; break
11430 fi
11431
11432 done
11433 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11434 if test $ac_header_dirent = dirent.h; then
11435   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11436 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11437 if test "${ac_cv_search_opendir+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   ac_func_search_save_LIBS=$LIBS
11441 ac_cv_search_opendir=no
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448
11449 /* Override any gcc2 internal prototype to avoid an error.  */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 /* We use char because int might match the return type of a gcc2
11454    builtin and then its argument prototype would still apply.  */
11455 char opendir ();
11456 int
11457 main ()
11458 {
11459 opendir ();
11460   ;
11461   return 0;
11462 }
11463 _ACEOF
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11466   (eval $ac_link) 2>conftest.er1
11467   ac_status=$?
11468   grep -v '^ *+' conftest.er1 >conftest.err
11469   rm -f conftest.er1
11470   cat conftest.err >&5
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -z "$ac_c_werror_flag"
11474                          || test ! -s conftest.err'
11475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476   (eval $ac_try) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; } &&
11480          { ac_try='test -s conftest$ac_exeext'
11481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482   (eval $ac_try) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; }; then
11486   ac_cv_search_opendir="none required"
11487 else
11488   echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 fi
11492 rm -f conftest.err conftest.$ac_objext \
11493       conftest$ac_exeext conftest.$ac_ext
11494 if test "$ac_cv_search_opendir" = no; then
11495   for ac_lib in dir; do
11496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11497     cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503
11504 /* Override any gcc2 internal prototype to avoid an error.  */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 /* We use char because int might match the return type of a gcc2
11509    builtin and then its argument prototype would still apply.  */
11510 char opendir ();
11511 int
11512 main ()
11513 {
11514 opendir ();
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521   (eval $ac_link) 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_c_werror_flag"
11529                          || test ! -s conftest.err'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest$ac_exeext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ac_cv_search_opendir="-l$ac_lib"
11542 break
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 fi
11548 rm -f conftest.err conftest.$ac_objext \
11549       conftest$ac_exeext conftest.$ac_ext
11550   done
11551 fi
11552 LIBS=$ac_func_search_save_LIBS
11553 fi
11554 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11555 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11556 if test "$ac_cv_search_opendir" != no; then
11557   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11558
11559 fi
11560
11561 else
11562   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11564 if test "${ac_cv_search_opendir+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   ac_func_search_save_LIBS=$LIBS
11568 ac_cv_search_opendir=no
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581    builtin and then its argument prototype would still apply.  */
11582 char opendir ();
11583 int
11584 main ()
11585 {
11586 opendir ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -z "$ac_c_werror_flag"
11601                          || test ! -s conftest.err'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest$ac_exeext'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; }; then
11613   ac_cv_search_opendir="none required"
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 fi
11619 rm -f conftest.err conftest.$ac_objext \
11620       conftest$ac_exeext conftest.$ac_ext
11621 if test "$ac_cv_search_opendir" = no; then
11622   for ac_lib in x; do
11623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11624     cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h.  */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h.  */
11630
11631 /* Override any gcc2 internal prototype to avoid an error.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 /* We use char because int might match the return type of a gcc2
11636    builtin and then its argument prototype would still apply.  */
11637 char opendir ();
11638 int
11639 main ()
11640 {
11641 opendir ();
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648   (eval $ac_link) 2>conftest.er1
11649   ac_status=$?
11650   grep -v '^ *+' conftest.er1 >conftest.err
11651   rm -f conftest.er1
11652   cat conftest.err >&5
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); } &&
11655          { ac_try='test -z "$ac_c_werror_flag"
11656                          || test ! -s conftest.err'
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); }; } &&
11662          { ac_try='test -s conftest$ac_exeext'
11663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664   (eval $ac_try) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; }; then
11668   ac_cv_search_opendir="-l$ac_lib"
11669 break
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 fi
11675 rm -f conftest.err conftest.$ac_objext \
11676       conftest$ac_exeext conftest.$ac_ext
11677   done
11678 fi
11679 LIBS=$ac_func_search_save_LIBS
11680 fi
11681 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11682 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11683 if test "$ac_cv_search_opendir" != no; then
11684   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11685
11686 fi
11687
11688 fi
11689
11690 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11691 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11692 if test "${ac_cv_header_stat_broken+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #include <sys/types.h>
11702 #include <sys/stat.h>
11703
11704 #if defined(S_ISBLK) && defined(S_IFDIR)
11705 # if S_ISBLK (S_IFDIR)
11706 You lose.
11707 # endif
11708 #endif
11709
11710 #if defined(S_ISBLK) && defined(S_IFCHR)
11711 # if S_ISBLK (S_IFCHR)
11712 You lose.
11713 # endif
11714 #endif
11715
11716 #if defined(S_ISLNK) && defined(S_IFREG)
11717 # if S_ISLNK (S_IFREG)
11718 You lose.
11719 # endif
11720 #endif
11721
11722 #if defined(S_ISSOCK) && defined(S_IFREG)
11723 # if S_ISSOCK (S_IFREG)
11724 You lose.
11725 # endif
11726 #endif
11727
11728 _ACEOF
11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730   $EGREP "You lose" >/dev/null 2>&1; then
11731   ac_cv_header_stat_broken=yes
11732 else
11733   ac_cv_header_stat_broken=no
11734 fi
11735 rm -f conftest*
11736
11737 fi
11738 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11739 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11740 if test $ac_cv_header_stat_broken = yes; then
11741
11742 cat >>confdefs.h <<\_ACEOF
11743 #define STAT_MACROS_BROKEN 1
11744 _ACEOF
11745
11746 fi
11747
11748 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11749 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11750 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753   cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <sys/types.h>
11760 #include <sys/wait.h>
11761 #ifndef WEXITSTATUS
11762 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11763 #endif
11764 #ifndef WIFEXITED
11765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11766 #endif
11767
11768 int
11769 main ()
11770 {
11771   int s;
11772   wait (&s);
11773   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11780   (eval $ac_compile) 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_c_werror_flag"
11788                          || test ! -s conftest.err'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest.$ac_objext'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   ac_cv_header_sys_wait_h=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_cv_header_sys_wait_h=no
11806 fi
11807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11808 fi
11809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11810 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11811 if test $ac_cv_header_sys_wait_h = yes; then
11812
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_SYS_WAIT_H 1
11815 _ACEOF
11816
11817 fi
11818
11819 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11820 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11821 if test "${ac_cv_header_time+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 #include <sys/types.h>
11831 #include <sys/time.h>
11832 #include <time.h>
11833
11834 int
11835 main ()
11836 {
11837 if ((struct tm *) 0)
11838 return 0;
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845   (eval $ac_compile) 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -z "$ac_c_werror_flag"
11853                          || test ! -s conftest.err'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; } &&
11859          { ac_try='test -s conftest.$ac_objext'
11860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861   (eval $ac_try) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; }; then
11865   ac_cv_header_time=yes
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_cv_header_time=no
11871 fi
11872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11873 fi
11874 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11875 echo "${ECHO_T}$ac_cv_header_time" >&6
11876 if test $ac_cv_header_time = yes; then
11877
11878 cat >>confdefs.h <<\_ACEOF
11879 #define TIME_WITH_SYS_TIME 1
11880 _ACEOF
11881
11882 fi
11883
11884
11885 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11886 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11887 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 $ac_includes_default
11897 int
11898 main ()
11899 {
11900 static struct stat ac_aggr;
11901 if (ac_aggr.st_blksize)
11902 return 0;
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909   (eval $ac_compile) 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag"
11917                          || test ! -s conftest.err'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest.$ac_objext'
11924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925   (eval $ac_try) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); }; }; then
11929   ac_cv_member_struct_stat_st_blksize=yes
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940 $ac_includes_default
11941 int
11942 main ()
11943 {
11944 static struct stat ac_aggr;
11945 if (sizeof ac_aggr.st_blksize)
11946 return 0;
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953   (eval $ac_compile) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_c_werror_flag"
11961                          || test ! -s conftest.err'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   ac_cv_member_struct_stat_st_blksize=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_cv_member_struct_stat_st_blksize=no
11979 fi
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11986 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11987
11988 cat >>confdefs.h <<_ACEOF
11989 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11990 _ACEOF
11991
11992
11993 cat >>confdefs.h <<\_ACEOF
11994 #define HAVE_ST_BLKSIZE 1
11995 _ACEOF
11996
11997 fi
11998
11999
12000 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12001 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12002 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 $ac_includes_default
12012 int
12013 main ()
12014 {
12015 static struct stat ac_aggr;
12016 if (ac_aggr.st_blocks)
12017 return 0;
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -z "$ac_c_werror_flag"
12032                          || test ! -s conftest.err'
12033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034   (eval $ac_try) 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; } &&
12038          { ac_try='test -s conftest.$ac_objext'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   ac_cv_member_struct_stat_st_blocks=yes
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055 $ac_includes_default
12056 int
12057 main ()
12058 {
12059 static struct stat ac_aggr;
12060 if (sizeof ac_aggr.st_blocks)
12061 return 0;
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068   (eval $ac_compile) 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -z "$ac_c_werror_flag"
12076                          || test ! -s conftest.err'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; } &&
12082          { ac_try='test -s conftest.$ac_objext'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_cv_member_struct_stat_st_blocks=yes
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_cv_member_struct_stat_st_blocks=no
12094 fi
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12096 fi
12097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12100 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12101 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12105 _ACEOF
12106
12107
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_ST_BLOCKS 1
12110 _ACEOF
12111
12112 else
12113   case $LIBOBJS in
12114     "fileblocks.$ac_objext"   | \
12115   *" fileblocks.$ac_objext"   | \
12116     "fileblocks.$ac_objext "* | \
12117   *" fileblocks.$ac_objext "* ) ;;
12118   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12119 esac
12120
12121 fi
12122
12123
12124 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12125 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12126 if test "${ac_cv_struct_tm+set}" = set; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129   cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h.  */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h.  */
12135 #include <sys/types.h>
12136 #include <time.h>
12137
12138 int
12139 main ()
12140 {
12141 struct tm *tp; tp->tm_sec;
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12148   (eval $ac_compile) 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag"
12156                          || test ! -s conftest.err'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; } &&
12162          { ac_try='test -s conftest.$ac_objext'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; }; then
12168   ac_cv_struct_tm=time.h
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_cv_struct_tm=sys/time.h
12174 fi
12175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176 fi
12177 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12178 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12179 if test $ac_cv_struct_tm = sys/time.h; then
12180
12181 cat >>confdefs.h <<\_ACEOF
12182 #define TM_IN_SYS_TIME 1
12183 _ACEOF
12184
12185 fi
12186
12187 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12188 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12189 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198 #include <sys/types.h>
12199 #include <$ac_cv_struct_tm>
12200
12201
12202 int
12203 main ()
12204 {
12205 static struct tm ac_aggr;
12206 if (ac_aggr.tm_zone)
12207 return 0;
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214   (eval $ac_compile) 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } &&
12221          { ac_try='test -z "$ac_c_werror_flag"
12222                          || test ! -s conftest.err'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   ac_cv_member_struct_tm_tm_zone=yes
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 #include <sys/types.h>
12246 #include <$ac_cv_struct_tm>
12247
12248
12249 int
12250 main ()
12251 {
12252 static struct tm ac_aggr;
12253 if (sizeof ac_aggr.tm_zone)
12254 return 0;
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261   (eval $ac_compile) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_c_werror_flag"
12269                          || test ! -s conftest.err'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest.$ac_objext'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   ac_cv_member_struct_tm_tm_zone=yes
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 ac_cv_member_struct_tm_tm_zone=no
12287 fi
12288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289 fi
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291 fi
12292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12293 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12294 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12295
12296 cat >>confdefs.h <<_ACEOF
12297 #define HAVE_STRUCT_TM_TM_ZONE 1
12298 _ACEOF
12299
12300
12301 fi
12302
12303 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12304
12305 cat >>confdefs.h <<\_ACEOF
12306 #define HAVE_TM_ZONE 1
12307 _ACEOF
12308
12309 else
12310   echo "$as_me:$LINENO: checking for tzname" >&5
12311 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12312 if test "${ac_cv_var_tzname+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321 #include <time.h>
12322 #ifndef tzname /* For SGI.  */
12323 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12324 #endif
12325
12326 int
12327 main ()
12328 {
12329 atoi(*tzname);
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336   (eval $ac_link) 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } &&
12343          { ac_try='test -z "$ac_c_werror_flag"
12344                          || test ! -s conftest.err'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; } &&
12350          { ac_try='test -s conftest$ac_exeext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   ac_cv_var_tzname=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 ac_cv_var_tzname=no
12362 fi
12363 rm -f conftest.err conftest.$ac_objext \
12364       conftest$ac_exeext conftest.$ac_ext
12365 fi
12366 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12367 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12368   if test $ac_cv_var_tzname = yes; then
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_TZNAME 1
12372 _ACEOF
12373
12374   fi
12375 fi
12376
12377
12378 echo "$as_me:$LINENO: checking for utime.h" >&5
12379 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12380 if test "${ba_cv_header_utime_h+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389
12390 #include <sys/types.h>
12391 #include <utime.h>
12392 int
12393 main ()
12394 {
12395 struct utimbuf foo
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402   (eval $ac_compile) 2>conftest.er1
12403   ac_status=$?
12404   grep -v '^ *+' conftest.er1 >conftest.err
12405   rm -f conftest.er1
12406   cat conftest.err >&5
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -z "$ac_c_werror_flag"
12410                          || test ! -s conftest.err'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; } &&
12416          { ac_try='test -s conftest.$ac_objext'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   ba_cv_header_utime_h=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427 ba_cv_header_utime_h=no
12428 fi
12429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12430 fi
12431 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12432 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12433 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_UTIME_H 1
12435 _ACEOF
12436
12437
12438 echo "$as_me:$LINENO: checking for socklen_t" >&5
12439 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12440 if test "${ba_cv_header_socklen_t+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449
12450 #include <sys/types.h>
12451 #include <sys/socket.h>
12452 int
12453 main ()
12454 {
12455 socklen_t x
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462   (eval $ac_compile) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   ba_cv_header_socklen_t=yes
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 ba_cv_header_socklen_t=no
12488 fi
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12492 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12493 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_SOCKLEN_T 1
12495 _ACEOF
12496
12497
12498 echo "$as_me:$LINENO: checking for bigendian" >&5
12499 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12500 if test "${ba_cv_bigendian+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   if test "$cross_compiling" = yes; then
12504   ba_cv_bigendian=no
12505 else
12506   cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12513 _ACEOF
12514 rm -f conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516   (eval $ac_link) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   ba_cv_bigendian=yes
12526 else
12527   echo "$as_me: program exited with status $ac_status" >&5
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ( exit $ac_status )
12532 ba_cv_bigendian=no
12533 fi
12534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12535 fi
12536 fi
12537 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12538 echo "${ECHO_T}$ba_cv_bigendian" >&6
12539 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12540 #define HAVE_BIGENDIAN 1
12541 _ACEOF
12542
12543
12544
12545 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12546 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12547 if test "${ac_cv_c_const+set}" = set; then
12548   echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550   cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h.  */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560 /* FIXME: Include the comments suggested by Paul. */
12561 #ifndef __cplusplus
12562   /* Ultrix mips cc rejects this.  */
12563   typedef int charset[2];
12564   const charset x;
12565   /* SunOS 4.1.1 cc rejects this.  */
12566   char const *const *ccp;
12567   char **p;
12568   /* NEC SVR4.0.2 mips cc rejects this.  */
12569   struct point {int x, y;};
12570   static struct point const zero = {0,0};
12571   /* AIX XL C 1.02.0.0 rejects this.
12572      It does not let you subtract one const X* pointer from another in
12573      an arm of an if-expression whose if-part is not a constant
12574      expression */
12575   const char *g = "string";
12576   ccp = &g + (g ? g-g : 0);
12577   /* HPUX 7.0 cc rejects these. */
12578   ++ccp;
12579   p = (char**) ccp;
12580   ccp = (char const *const *) p;
12581   { /* SCO 3.2v4 cc rejects this.  */
12582     char *t;
12583     char const *s = 0 ? (char *) 0 : (char const *) 0;
12584
12585     *t++ = 0;
12586   }
12587   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12588     int x[] = {25, 17};
12589     const int *foo = &x[0];
12590     ++foo;
12591   }
12592   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12593     typedef const int *iptr;
12594     iptr p = 0;
12595     ++p;
12596   }
12597   { /* AIX XL C 1.02.0.0 rejects this saying
12598        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12599     struct s { int j; const int *ap[3]; };
12600     struct s *b; b->j = 5;
12601   }
12602   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12603     const int foo = 10;
12604   }
12605 #endif
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613   (eval $ac_compile) 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_c_werror_flag"
12621                          || test ! -s conftest.err'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; } &&
12627          { ac_try='test -s conftest.$ac_objext'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   ac_cv_c_const=yes
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 ac_cv_c_const=no
12639 fi
12640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12643 echo "${ECHO_T}$ac_cv_c_const" >&6
12644 if test $ac_cv_c_const = no; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define const
12648 _ACEOF
12649
12650 fi
12651
12652
12653
12654 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12655 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12656 fstype=no
12657 # The order of these tests is important.
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 #include <sys/statvfs.h>
12665 #include <sys/fstyp.h>
12666 _ACEOF
12667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } >/dev/null; then
12675   if test -s conftest.err; then
12676     ac_cpp_err=$ac_c_preproc_warn_flag
12677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12678   else
12679     ac_cpp_err=
12680   fi
12681 else
12682   ac_cpp_err=yes
12683 fi
12684 if test -z "$ac_cpp_err"; then
12685   cat >>confdefs.h <<\_ACEOF
12686 #define FSTYPE_STATVFS 1
12687 _ACEOF
12688  fstype=SVR4
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693
12694 fi
12695 rm -f conftest.err conftest.$ac_ext
12696 if test $fstype = no; then
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 #include <sys/statfs.h>
12704 #include <sys/fstyp.h>
12705 _ACEOF
12706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } >/dev/null; then
12714   if test -s conftest.err; then
12715     ac_cpp_err=$ac_c_preproc_warn_flag
12716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12717   else
12718     ac_cpp_err=
12719   fi
12720 else
12721   ac_cpp_err=yes
12722 fi
12723 if test -z "$ac_cpp_err"; then
12724   cat >>confdefs.h <<\_ACEOF
12725 #define FSTYPE_USG_STATFS 1
12726 _ACEOF
12727  fstype=SVR3
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732
12733 fi
12734 rm -f conftest.err conftest.$ac_ext
12735 fi
12736 if test $fstype = no; then
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743 #include <sys/statfs.h>
12744 #include <sys/vmount.h>
12745 _ACEOF
12746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } >/dev/null; then
12754   if test -s conftest.err; then
12755     ac_cpp_err=$ac_c_preproc_warn_flag
12756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12757   else
12758     ac_cpp_err=
12759   fi
12760 else
12761   ac_cpp_err=yes
12762 fi
12763 if test -z "$ac_cpp_err"; then
12764   cat >>confdefs.h <<\_ACEOF
12765 #define FSTYPE_AIX_STATFS 1
12766 _ACEOF
12767  fstype=AIX
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772
12773 fi
12774 rm -f conftest.err conftest.$ac_ext
12775 fi
12776 if test $fstype = no; then
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783 #include <mntent.h>
12784 _ACEOF
12785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } >/dev/null; then
12793   if test -s conftest.err; then
12794     ac_cpp_err=$ac_c_preproc_warn_flag
12795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12796   else
12797     ac_cpp_err=
12798   fi
12799 else
12800   ac_cpp_err=yes
12801 fi
12802 if test -z "$ac_cpp_err"; then
12803   cat >>confdefs.h <<\_ACEOF
12804 #define FSTYPE_MNTENT 1
12805 _ACEOF
12806  fstype=4.3BSD
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
12812 fi
12813 rm -f conftest.err conftest.$ac_ext
12814 fi
12815 if test $fstype = no; then
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 #include <sys/mount.h>
12823
12824 _ACEOF
12825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12826   $EGREP "f_type;" >/dev/null 2>&1; then
12827   cat >>confdefs.h <<\_ACEOF
12828 #define FSTYPE_STATFS 1
12829 _ACEOF
12830  fstype=4.4BSD/OSF1
12831 fi
12832 rm -f conftest*
12833
12834 fi
12835 if test $fstype = no; then
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 #include <sys/mount.h>
12843 #include <sys/fs_types.h>
12844 _ACEOF
12845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12847   ac_status=$?
12848   grep -v '^ *+' conftest.er1 >conftest.err
12849   rm -f conftest.er1
12850   cat conftest.err >&5
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } >/dev/null; then
12853   if test -s conftest.err; then
12854     ac_cpp_err=$ac_c_preproc_warn_flag
12855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12856   else
12857     ac_cpp_err=
12858   fi
12859 else
12860   ac_cpp_err=yes
12861 fi
12862 if test -z "$ac_cpp_err"; then
12863   cat >>confdefs.h <<\_ACEOF
12864 #define FSTYPE_GETMNT 1
12865 _ACEOF
12866  fstype=Ultrix
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871
12872 fi
12873 rm -f conftest.err conftest.$ac_ext
12874 fi
12875 echo "$as_me:$LINENO: result: $fstype" >&5
12876 echo "${ECHO_T}$fstype" >&6
12877
12878 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12880 if test "${ac_cv_type_signal+set}" = set; then
12881   echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883   cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h.  */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h.  */
12889 #include <sys/types.h>
12890 #include <signal.h>
12891 #ifdef signal
12892 # undef signal
12893 #endif
12894 #ifdef __cplusplus
12895 extern "C" void (*signal (int, void (*)(int)))(int);
12896 #else
12897 void (*signal ()) ();
12898 #endif
12899
12900 int
12901 main ()
12902 {
12903 int i;
12904   ;
12905   return 0;
12906 }
12907 _ACEOF
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910   (eval $ac_compile) 2>conftest.er1
12911   ac_status=$?
12912   grep -v '^ *+' conftest.er1 >conftest.err
12913   rm -f conftest.er1
12914   cat conftest.err >&5
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } &&
12917          { ac_try='test -z "$ac_c_werror_flag"
12918                          || test ! -s conftest.err'
12919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920   (eval $ac_try) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; } &&
12924          { ac_try='test -s conftest.$ac_objext'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; }; then
12930   ac_cv_type_signal=void
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12934
12935 ac_cv_type_signal=int
12936 fi
12937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12938 fi
12939 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12940 echo "${ECHO_T}$ac_cv_type_signal" >&6
12941
12942 cat >>confdefs.h <<_ACEOF
12943 #define RETSIGTYPE $ac_cv_type_signal
12944 _ACEOF
12945
12946
12947
12948 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12949 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12950 if test "${bash_cv_signal_vintage+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 #include <signal.h>
12961 int
12962 main ()
12963 {
12964
12965     sigset_t ss;
12966     struct sigaction sa;
12967     sigemptyset(&ss); sigsuspend(&ss);
12968     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12969     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977   (eval $ac_link) 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } &&
12984          { ac_try='test -z "$ac_c_werror_flag"
12985                          || test ! -s conftest.err'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; } &&
12991          { ac_try='test -s conftest$ac_exeext'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   bash_cv_signal_vintage=posix
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002
13003     cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 #include <signal.h>
13010 int
13011 main ()
13012 {
13013
13014         int mask = sigmask(SIGINT);
13015         sigsetmask(mask); sigblock(mask); sigpause(mask);
13016
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023   (eval $ac_link) 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -z "$ac_c_werror_flag"
13031                          || test ! -s conftest.err'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; } &&
13037          { ac_try='test -s conftest$ac_exeext'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; }; then
13043   bash_cv_signal_vintage=4.2bsd
13044 else
13045   echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048
13049       cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055
13056         #include <signal.h>
13057         RETSIGTYPE foo() { }
13058 int
13059 main ()
13060 {
13061
13062                 int mask = sigmask(SIGINT);
13063                 sigset(SIGINT, foo); sigrelse(SIGINT);
13064                 sighold(SIGINT); sigpause(SIGINT);
13065
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13072   (eval $ac_link) 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag"
13080                          || test ! -s conftest.err'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088   (eval $ac_try) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; }; then
13092   bash_cv_signal_vintage=svr3
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 bash_cv_signal_vintage=v7
13098
13099 fi
13100 rm -f conftest.err conftest.$ac_objext \
13101       conftest$ac_exeext conftest.$ac_ext
13102
13103 fi
13104 rm -f conftest.err conftest.$ac_objext \
13105       conftest$ac_exeext conftest.$ac_ext
13106
13107 fi
13108 rm -f conftest.err conftest.$ac_objext \
13109       conftest$ac_exeext conftest.$ac_ext
13110
13111 fi
13112
13113 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13114 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13115 if test "$bash_cv_signal_vintage" = posix; then
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_POSIX_SIGNALS 1
13118 _ACEOF
13119
13120 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_BSD_SIGNALS 1
13123 _ACEOF
13124
13125 elif test "$bash_cv_signal_vintage" = svr3; then
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_USG_SIGHOLD 1
13128 _ACEOF
13129
13130 fi
13131
13132 echo "$as_me:$LINENO: checking for mode_t" >&5
13133 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13134 if test "${ac_cv_type_mode_t+set}" = set; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137   cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143 $ac_includes_default
13144 int
13145 main ()
13146 {
13147 if ((mode_t *) 0)
13148   return 0;
13149 if (sizeof (mode_t))
13150   return 0;
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157   (eval $ac_compile) 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_c_werror_flag"
13165                          || test ! -s conftest.err'
13166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167   (eval $ac_try) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); }; } &&
13171          { ac_try='test -s conftest.$ac_objext'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   ac_cv_type_mode_t=yes
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_type_mode_t=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13187 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13188 if test $ac_cv_type_mode_t = yes; then
13189   :
13190 else
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define mode_t int
13194 _ACEOF
13195
13196 fi
13197
13198 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13199 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13200 if test "${ac_cv_type_uid_t+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 #include <sys/types.h>
13210
13211 _ACEOF
13212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213   $EGREP "uid_t" >/dev/null 2>&1; then
13214   ac_cv_type_uid_t=yes
13215 else
13216   ac_cv_type_uid_t=no
13217 fi
13218 rm -f conftest*
13219
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13222 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13223 if test $ac_cv_type_uid_t = no; then
13224
13225 cat >>confdefs.h <<\_ACEOF
13226 #define uid_t int
13227 _ACEOF
13228
13229
13230 cat >>confdefs.h <<\_ACEOF
13231 #define gid_t int
13232 _ACEOF
13233
13234 fi
13235
13236 echo "$as_me:$LINENO: checking for size_t" >&5
13237 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13238 if test "${ac_cv_type_size_t+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 $ac_includes_default
13248 int
13249 main ()
13250 {
13251 if ((size_t *) 0)
13252   return 0;
13253 if (sizeof (size_t))
13254   return 0;
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261   (eval $ac_compile) 2>conftest.er1
13262   ac_status=$?
13263   grep -v '^ *+' conftest.er1 >conftest.err
13264   rm -f conftest.er1
13265   cat conftest.err >&5
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); } &&
13268          { ac_try='test -z "$ac_c_werror_flag"
13269                          || test ! -s conftest.err'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; } &&
13275          { ac_try='test -s conftest.$ac_objext'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   ac_cv_type_size_t=yes
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 ac_cv_type_size_t=no
13287 fi
13288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289 fi
13290 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13291 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13292 if test $ac_cv_type_size_t = yes; then
13293   :
13294 else
13295
13296 cat >>confdefs.h <<_ACEOF
13297 #define size_t unsigned
13298 _ACEOF
13299
13300 fi
13301
13302 echo "$as_me:$LINENO: checking for pid_t" >&5
13303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13304 if test "${ac_cv_type_pid_t+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 $ac_includes_default
13314 int
13315 main ()
13316 {
13317 if ((pid_t *) 0)
13318   return 0;
13319 if (sizeof (pid_t))
13320   return 0;
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327   (eval $ac_compile) 2>conftest.er1
13328   ac_status=$?
13329   grep -v '^ *+' conftest.er1 >conftest.err
13330   rm -f conftest.er1
13331   cat conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } &&
13334          { ac_try='test -z "$ac_c_werror_flag"
13335                          || test ! -s conftest.err'
13336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337   (eval $ac_try) 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; } &&
13341          { ac_try='test -s conftest.$ac_objext'
13342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343   (eval $ac_try) 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; }; then
13347   ac_cv_type_pid_t=yes
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_cv_type_pid_t=no
13353 fi
13354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13355 fi
13356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13358 if test $ac_cv_type_pid_t = yes; then
13359   :
13360 else
13361
13362 cat >>confdefs.h <<_ACEOF
13363 #define pid_t int
13364 _ACEOF
13365
13366 fi
13367
13368 echo "$as_me:$LINENO: checking for off_t" >&5
13369 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13370 if test "${ac_cv_type_off_t+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379 $ac_includes_default
13380 int
13381 main ()
13382 {
13383 if ((off_t *) 0)
13384   return 0;
13385 if (sizeof (off_t))
13386   return 0;
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393   (eval $ac_compile) 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } &&
13400          { ac_try='test -z "$ac_c_werror_flag"
13401                          || test ! -s conftest.err'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; } &&
13407          { ac_try='test -s conftest.$ac_objext'
13408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409   (eval $ac_try) 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; }; then
13413   ac_cv_type_off_t=yes
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418 ac_cv_type_off_t=no
13419 fi
13420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13421 fi
13422 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13423 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13424 if test $ac_cv_type_off_t = yes; then
13425   :
13426 else
13427
13428 cat >>confdefs.h <<_ACEOF
13429 #define off_t long
13430 _ACEOF
13431
13432 fi
13433
13434 echo "$as_me:$LINENO: checking for ino_t" >&5
13435 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13436 if test "${ac_cv_type_ino_t+set}" = set; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439   cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h.  */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h.  */
13445 $ac_includes_default
13446 int
13447 main ()
13448 {
13449 if ((ino_t *) 0)
13450   return 0;
13451 if (sizeof (ino_t))
13452   return 0;
13453   ;
13454   return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459   (eval $ac_compile) 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -z "$ac_c_werror_flag"
13467                          || test ! -s conftest.err'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_cv_type_ino_t=yes
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 ac_cv_type_ino_t=no
13485 fi
13486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487 fi
13488 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13489 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13490 if test $ac_cv_type_ino_t = yes; then
13491   :
13492 else
13493
13494 cat >>confdefs.h <<_ACEOF
13495 #define ino_t unsigned long
13496 _ACEOF
13497
13498 fi
13499
13500 echo "$as_me:$LINENO: checking for dev_t" >&5
13501 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13502 if test "${ac_cv_type_dev_t+set}" = set; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 $ac_includes_default
13512 int
13513 main ()
13514 {
13515 if ((dev_t *) 0)
13516   return 0;
13517 if (sizeof (dev_t))
13518   return 0;
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -z "$ac_c_werror_flag"
13533                          || test ! -s conftest.err'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest.$ac_objext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   ac_cv_type_dev_t=yes
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 ac_cv_type_dev_t=no
13551 fi
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553 fi
13554 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13555 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13556 if test $ac_cv_type_dev_t = yes; then
13557   :
13558 else
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define dev_t unsigned long
13562 _ACEOF
13563
13564 fi
13565
13566 echo "$as_me:$LINENO: checking for daddr_t" >&5
13567 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13568 if test "${ac_cv_type_daddr_t+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577 $ac_includes_default
13578 int
13579 main ()
13580 {
13581 if ((daddr_t *) 0)
13582   return 0;
13583 if (sizeof (daddr_t))
13584   return 0;
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591   (eval $ac_compile) 2>conftest.er1
13592   ac_status=$?
13593   grep -v '^ *+' conftest.er1 >conftest.err
13594   rm -f conftest.er1
13595   cat conftest.err >&5
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } &&
13598          { ac_try='test -z "$ac_c_werror_flag"
13599                          || test ! -s conftest.err'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest.$ac_objext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   ac_cv_type_daddr_t=yes
13612 else
13613   echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ac_cv_type_daddr_t=no
13617 fi
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619 fi
13620 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13621 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13622 if test $ac_cv_type_daddr_t = yes; then
13623   :
13624 else
13625
13626 cat >>confdefs.h <<_ACEOF
13627 #define daddr_t long
13628 _ACEOF
13629
13630 fi
13631
13632 echo "$as_me:$LINENO: checking for major_t" >&5
13633 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13634 if test "${ac_cv_type_major_t+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643 $ac_includes_default
13644 int
13645 main ()
13646 {
13647 if ((major_t *) 0)
13648   return 0;
13649 if (sizeof (major_t))
13650   return 0;
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657   (eval $ac_compile) 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -z "$ac_c_werror_flag"
13665                          || test ! -s conftest.err'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest.$ac_objext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_type_major_t=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_cv_type_major_t=no
13683 fi
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13687 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13688 if test $ac_cv_type_major_t = yes; then
13689   :
13690 else
13691
13692 cat >>confdefs.h <<_ACEOF
13693 #define major_t int
13694 _ACEOF
13695
13696 fi
13697
13698 echo "$as_me:$LINENO: checking for minor_t" >&5
13699 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13700 if test "${ac_cv_type_minor_t+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 int
13711 main ()
13712 {
13713 if ((minor_t *) 0)
13714   return 0;
13715 if (sizeof (minor_t))
13716   return 0;
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_c_werror_flag"
13731                          || test ! -s conftest.err'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_cv_type_minor_t=yes
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_cv_type_minor_t=no
13749 fi
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751 fi
13752 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13753 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13754 if test $ac_cv_type_minor_t = yes; then
13755   :
13756 else
13757
13758 cat >>confdefs.h <<_ACEOF
13759 #define minor_t int
13760 _ACEOF
13761
13762 fi
13763
13764 echo "$as_me:$LINENO: checking for ssize_t" >&5
13765 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13766 if test "${ac_cv_type_ssize_t+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 $ac_includes_default
13776 int
13777 main ()
13778 {
13779 if ((ssize_t *) 0)
13780   return 0;
13781 if (sizeof (ssize_t))
13782   return 0;
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789   (eval $ac_compile) 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -z "$ac_c_werror_flag"
13797                          || test ! -s conftest.err'
13798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799   (eval $ac_try) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_cv_type_ssize_t=yes
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_cv_type_ssize_t=no
13815 fi
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13819 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13820 if test $ac_cv_type_ssize_t = yes; then
13821   :
13822 else
13823
13824 cat >>confdefs.h <<_ACEOF
13825 #define ssize_t int
13826 _ACEOF
13827
13828 fi
13829
13830 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13831 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13832 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 $ac_includes_default
13842 int
13843 main ()
13844 {
13845 static struct stat ac_aggr;
13846 if (ac_aggr.st_blocks)
13847 return 0;
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854   (eval $ac_compile) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag"
13862                          || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_member_struct_stat_st_blocks=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885 $ac_includes_default
13886 int
13887 main ()
13888 {
13889 static struct stat ac_aggr;
13890 if (sizeof ac_aggr.st_blocks)
13891 return 0;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898   (eval $ac_compile) 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -z "$ac_c_werror_flag"
13906                          || test ! -s conftest.err'
13907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908   (eval $ac_try) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; } &&
13912          { ac_try='test -s conftest.$ac_objext'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_member_struct_stat_st_blocks=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923 ac_cv_member_struct_stat_st_blocks=no
13924 fi
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928 fi
13929 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13930 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13931 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13935 _ACEOF
13936
13937
13938 cat >>confdefs.h <<\_ACEOF
13939 #define HAVE_ST_BLOCKS 1
13940 _ACEOF
13941
13942 else
13943   case $LIBOBJS in
13944     "fileblocks.$ac_objext"   | \
13945   *" fileblocks.$ac_objext"   | \
13946     "fileblocks.$ac_objext "* | \
13947   *" fileblocks.$ac_objext "* ) ;;
13948   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13949 esac
13950
13951 fi
13952
13953
13954
13955 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13956 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13957 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960   cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966 $ac_includes_default
13967 int
13968 main ()
13969 {
13970 static struct stat ac_aggr;
13971 if (ac_aggr.st_rdev)
13972 return 0;
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13979   (eval $ac_compile) 2>conftest.er1
13980   ac_status=$?
13981   grep -v '^ *+' conftest.er1 >conftest.err
13982   rm -f conftest.er1
13983   cat conftest.err >&5
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); } &&
13986          { ac_try='test -z "$ac_c_werror_flag"
13987                          || test ! -s conftest.err'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; } &&
13993          { ac_try='test -s conftest.$ac_objext'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; }; then
13999   ac_cv_member_struct_stat_st_rdev=yes
14000 else
14001   echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 $ac_includes_default
14011 int
14012 main ()
14013 {
14014 static struct stat ac_aggr;
14015 if (sizeof ac_aggr.st_rdev)
14016 return 0;
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag"
14031                          || test ! -s conftest.err'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest.$ac_objext'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }; then
14043   ac_cv_member_struct_stat_st_rdev=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 ac_cv_member_struct_stat_st_rdev=no
14049 fi
14050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14051 fi
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14055 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14056 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14057
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_STRUCT_STAT_ST_RDEV 1
14060 _ACEOF
14061
14062
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_ST_RDEV 1
14065 _ACEOF
14066
14067 fi
14068
14069
14070 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14071 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14072 if test "${ac_cv_struct_tm+set}" = set; then
14073   echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075   cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h.  */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h.  */
14081 #include <sys/types.h>
14082 #include <time.h>
14083
14084 int
14085 main ()
14086 {
14087 struct tm *tp; tp->tm_sec;
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094   (eval $ac_compile) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag"
14102                          || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest.$ac_objext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   ac_cv_struct_tm=time.h
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_cv_struct_tm=sys/time.h
14120 fi
14121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122 fi
14123 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14124 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14125 if test $ac_cv_struct_tm = sys/time.h; then
14126
14127 cat >>confdefs.h <<\_ACEOF
14128 #define TM_IN_SYS_TIME 1
14129 _ACEOF
14130
14131 fi
14132
14133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14135 if test "${ac_cv_c_const+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144
14145 int
14146 main ()
14147 {
14148 /* FIXME: Include the comments suggested by Paul. */
14149 #ifndef __cplusplus
14150   /* Ultrix mips cc rejects this.  */
14151   typedef int charset[2];
14152   const charset x;
14153   /* SunOS 4.1.1 cc rejects this.  */
14154   char const *const *ccp;
14155   char **p;
14156   /* NEC SVR4.0.2 mips cc rejects this.  */
14157   struct point {int x, y;};
14158   static struct point const zero = {0,0};
14159   /* AIX XL C 1.02.0.0 rejects this.
14160      It does not let you subtract one const X* pointer from another in
14161      an arm of an if-expression whose if-part is not a constant
14162      expression */
14163   const char *g = "string";
14164   ccp = &g + (g ? g-g : 0);
14165   /* HPUX 7.0 cc rejects these. */
14166   ++ccp;
14167   p = (char**) ccp;
14168   ccp = (char const *const *) p;
14169   { /* SCO 3.2v4 cc rejects this.  */
14170     char *t;
14171     char const *s = 0 ? (char *) 0 : (char const *) 0;
14172
14173     *t++ = 0;
14174   }
14175   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14176     int x[] = {25, 17};
14177     const int *foo = &x[0];
14178     ++foo;
14179   }
14180   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14181     typedef const int *iptr;
14182     iptr p = 0;
14183     ++p;
14184   }
14185   { /* AIX XL C 1.02.0.0 rejects this saying
14186        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14187     struct s { int j; const int *ap[3]; };
14188     struct s *b; b->j = 5;
14189   }
14190   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14191     const int foo = 10;
14192   }
14193 #endif
14194
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201   (eval $ac_compile) 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag"
14209                          || test ! -s conftest.err'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; } &&
14215          { ac_try='test -s conftest.$ac_objext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   ac_cv_c_const=yes
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 ac_cv_c_const=no
14227 fi
14228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14231 echo "${ECHO_T}$ac_cv_c_const" >&6
14232 if test $ac_cv_c_const = no; then
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define const
14236 _ACEOF
14237
14238 fi
14239
14240
14241
14242 echo "$as_me:$LINENO: checking for char" >&5
14243 echo $ECHO_N "checking for char... $ECHO_C" >&6
14244 if test "${ac_cv_type_char+set}" = set; then
14245   echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247   cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253 $ac_includes_default
14254 int
14255 main ()
14256 {
14257 if ((char *) 0)
14258   return 0;
14259 if (sizeof (char))
14260   return 0;
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } &&
14274          { ac_try='test -z "$ac_c_werror_flag"
14275                          || test ! -s conftest.err'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   ac_cv_type_char=yes
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_cv_type_char=no
14293 fi
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14295 fi
14296 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14297 echo "${ECHO_T}$ac_cv_type_char" >&6
14298
14299 echo "$as_me:$LINENO: checking size of char" >&5
14300 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14301 if test "${ac_cv_sizeof_char+set}" = set; then
14302   echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304   if test "$ac_cv_type_char" = yes; then
14305   # The cast to unsigned long works around a bug in the HP C Compiler
14306   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14307   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14308   # This bug is HP SR number 8606223364.
14309   if test "$cross_compiling" = yes; then
14310   # Depending upon the size, compute the lo and hi bounds.
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 $ac_includes_default
14318 int
14319 main ()
14320 {
14321 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14322 test_array [0] = 0
14323
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag"
14338                          || test ! -s conftest.err'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest.$ac_objext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   ac_lo=0 ac_mid=0
14351   while :; do
14352     cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358 $ac_includes_default
14359 int
14360 main ()
14361 {
14362 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14363 test_array [0] = 0
14364
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14371   (eval $ac_compile) 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_c_werror_flag"
14379                          || test ! -s conftest.err'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; } &&
14385          { ac_try='test -s conftest.$ac_objext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   ac_hi=$ac_mid; break
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_lo=`expr $ac_mid + 1`
14397                     if test $ac_lo -le $ac_mid; then
14398                       ac_lo= ac_hi=
14399                       break
14400                     fi
14401                     ac_mid=`expr 2 '*' $ac_mid + 1`
14402 fi
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404   done
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 $ac_includes_default
14416 int
14417 main ()
14418 {
14419 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14420 test_array [0] = 0
14421
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428   (eval $ac_compile) 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag"
14436                          || test ! -s conftest.err'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; } &&
14442          { ac_try='test -s conftest.$ac_objext'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; }; then
14448   ac_hi=-1 ac_mid=-1
14449   while :; do
14450     cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14461 test_array [0] = 0
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag"
14477                          || test ! -s conftest.err'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   ac_lo=$ac_mid; break
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_hi=`expr '(' $ac_mid ')' - 1`
14495                        if test $ac_mid -le $ac_hi; then
14496                          ac_lo= ac_hi=
14497                          break
14498                        fi
14499                        ac_mid=`expr 2 '*' $ac_mid`
14500 fi
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502   done
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_lo= ac_hi=
14508 fi
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14512 # Binary search between lo and hi bounds.
14513 while test "x$ac_lo" != "x$ac_hi"; do
14514   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 $ac_includes_default
14522 int
14523 main ()
14524 {
14525 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14526 test_array [0] = 0
14527
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534   (eval $ac_compile) 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag"
14542                          || test ! -s conftest.err'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_hi=$ac_mid
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_lo=`expr '(' $ac_mid ')' + 1`
14560 fi
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562 done
14563 case $ac_lo in
14564 ?*) ac_cv_sizeof_char=$ac_lo;;
14565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14566 See \`config.log' for more details." >&5
14567 echo "$as_me: error: cannot compute sizeof (char), 77
14568 See \`config.log' for more details." >&2;}
14569    { (exit 1); exit 1; }; } ;;
14570 esac
14571 else
14572   if test "$cross_compiling" = yes; then
14573   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot run test program while cross compiling
14576 See \`config.log' for more details." >&2;}
14577    { (exit 1); exit 1; }; }
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585 $ac_includes_default
14586 long longval () { return (long) (sizeof (char)); }
14587 unsigned long ulongval () { return (long) (sizeof (char)); }
14588 #include <stdio.h>
14589 #include <stdlib.h>
14590 int
14591 main ()
14592 {
14593
14594   FILE *f = fopen ("conftest.val", "w");
14595   if (! f)
14596     exit (1);
14597   if (((long) (sizeof (char))) < 0)
14598     {
14599       long i = longval ();
14600       if (i != ((long) (sizeof (char))))
14601         exit (1);
14602       fprintf (f, "%ld\n", i);
14603     }
14604   else
14605     {
14606       unsigned long i = ulongval ();
14607       if (i != ((long) (sizeof (char))))
14608         exit (1);
14609       fprintf (f, "%lu\n", i);
14610     }
14611   exit (ferror (f) || fclose (f) != 0);
14612
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 rm -f conftest$ac_exeext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14619   (eval $ac_link) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_cv_sizeof_char=`cat conftest.val`
14629 else
14630   echo "$as_me: program exited with status $ac_status" >&5
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ( exit $ac_status )
14635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14636 See \`config.log' for more details." >&5
14637 echo "$as_me: error: cannot compute sizeof (char), 77
14638 See \`config.log' for more details." >&2;}
14639    { (exit 1); exit 1; }; }
14640 fi
14641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 fi
14644 rm -f conftest.val
14645 else
14646   ac_cv_sizeof_char=0
14647 fi
14648 fi
14649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14650 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14651 cat >>confdefs.h <<_ACEOF
14652 #define SIZEOF_CHAR $ac_cv_sizeof_char
14653 _ACEOF
14654
14655
14656 echo "$as_me:$LINENO: checking for short int" >&5
14657 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14658 if test "${ac_cv_type_short_int+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 $ac_includes_default
14668 int
14669 main ()
14670 {
14671 if ((short int *) 0)
14672   return 0;
14673 if (sizeof (short int))
14674   return 0;
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 rm -f conftest.$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681   (eval $ac_compile) 2>conftest.er1
14682   ac_status=$?
14683   grep -v '^ *+' conftest.er1 >conftest.err
14684   rm -f conftest.er1
14685   cat conftest.err >&5
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } &&
14688          { ac_try='test -z "$ac_c_werror_flag"
14689                          || test ! -s conftest.err'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; } &&
14695          { ac_try='test -s conftest.$ac_objext'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_cv_type_short_int=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 ac_cv_type_short_int=no
14707 fi
14708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14709 fi
14710 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14711 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14712
14713 echo "$as_me:$LINENO: checking size of short int" >&5
14714 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14715 if test "${ac_cv_sizeof_short_int+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   if test "$ac_cv_type_short_int" = yes; then
14719   # The cast to unsigned long works around a bug in the HP C Compiler
14720   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14721   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14722   # This bug is HP SR number 8606223364.
14723   if test "$cross_compiling" = yes; then
14724   # Depending upon the size, compute the lo and hi bounds.
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h.  */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h.  */
14731 $ac_includes_default
14732 int
14733 main ()
14734 {
14735 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14736 test_array [0] = 0
14737
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744   (eval $ac_compile) 2>conftest.er1
14745   ac_status=$?
14746   grep -v '^ *+' conftest.er1 >conftest.err
14747   rm -f conftest.er1
14748   cat conftest.err >&5
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } &&
14751          { ac_try='test -z "$ac_c_werror_flag"
14752                          || test ! -s conftest.err'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_lo=0 ac_mid=0
14765   while :; do
14766     cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 $ac_includes_default
14773 int
14774 main ()
14775 {
14776 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14777 test_array [0] = 0
14778
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785   (eval $ac_compile) 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -z "$ac_c_werror_flag"
14793                          || test ! -s conftest.err'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; } &&
14799          { ac_try='test -s conftest.$ac_objext'
14800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801   (eval $ac_try) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   ac_hi=$ac_mid; break
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 ac_lo=`expr $ac_mid + 1`
14811                     if test $ac_lo -le $ac_mid; then
14812                       ac_lo= ac_hi=
14813                       break
14814                     fi
14815                     ac_mid=`expr 2 '*' $ac_mid + 1`
14816 fi
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818   done
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h.  */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h.  */
14829 $ac_includes_default
14830 int
14831 main ()
14832 {
14833 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14834 test_array [0] = 0
14835
14836   ;
14837   return 0;
14838 }
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842   (eval $ac_compile) 2>conftest.er1
14843   ac_status=$?
14844   grep -v '^ *+' conftest.er1 >conftest.err
14845   rm -f conftest.er1
14846   cat conftest.err >&5
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); } &&
14849          { ac_try='test -z "$ac_c_werror_flag"
14850                          || test ! -s conftest.err'
14851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852   (eval $ac_try) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; } &&
14856          { ac_try='test -s conftest.$ac_objext'
14857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858   (eval $ac_try) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862   ac_hi=-1 ac_mid=-1
14863   while :; do
14864     cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h.  */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h.  */
14870 $ac_includes_default
14871 int
14872 main ()
14873 {
14874 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14875 test_array [0] = 0
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883   (eval $ac_compile) 2>conftest.er1
14884   ac_status=$?
14885   grep -v '^ *+' conftest.er1 >conftest.err
14886   rm -f conftest.er1
14887   cat conftest.err >&5
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -z "$ac_c_werror_flag"
14891                          || test ! -s conftest.err'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_lo=$ac_mid; break
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 ac_hi=`expr '(' $ac_mid ')' - 1`
14909                        if test $ac_mid -le $ac_hi; then
14910                          ac_lo= ac_hi=
14911                          break
14912                        fi
14913                        ac_mid=`expr 2 '*' $ac_mid`
14914 fi
14915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14916   done
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_lo= ac_hi=
14922 fi
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14924 fi
14925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14926 # Binary search between lo and hi bounds.
14927 while test "x$ac_lo" != "x$ac_hi"; do
14928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14929   cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 int
14937 main ()
14938 {
14939 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14940 test_array [0] = 0
14941
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948   (eval $ac_compile) 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } &&
14955          { ac_try='test -z "$ac_c_werror_flag"
14956                          || test ! -s conftest.err'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; } &&
14962          { ac_try='test -s conftest.$ac_objext'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }; then
14968   ac_hi=$ac_mid
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 ac_lo=`expr '(' $ac_mid ')' + 1`
14974 fi
14975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14976 done
14977 case $ac_lo in
14978 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14980 See \`config.log' for more details." >&5
14981 echo "$as_me: error: cannot compute sizeof (short int), 77
14982 See \`config.log' for more details." >&2;}
14983    { (exit 1); exit 1; }; } ;;
14984 esac
14985 else
14986   if test "$cross_compiling" = yes; then
14987   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14988 See \`config.log' for more details." >&5
14989 echo "$as_me: error: cannot run test program while cross compiling
14990 See \`config.log' for more details." >&2;}
14991    { (exit 1); exit 1; }; }
14992 else
14993   cat >conftest.$ac_ext <<_ACEOF
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 long longval () { return (long) (sizeof (short int)); }
15001 unsigned long ulongval () { return (long) (sizeof (short int)); }
15002 #include <stdio.h>
15003 #include <stdlib.h>
15004 int
15005 main ()
15006 {
15007
15008   FILE *f = fopen ("conftest.val", "w");
15009   if (! f)
15010     exit (1);
15011   if (((long) (sizeof (short int))) < 0)
15012     {
15013       long i = longval ();
15014       if (i != ((long) (sizeof (short int))))
15015         exit (1);
15016       fprintf (f, "%ld\n", i);
15017     }
15018   else
15019     {
15020       unsigned long i = ulongval ();
15021       if (i != ((long) (sizeof (short int))))
15022         exit (1);
15023       fprintf (f, "%lu\n", i);
15024     }
15025   exit (ferror (f) || fclose (f) != 0);
15026
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033   (eval $ac_link) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042   ac_cv_sizeof_short_int=`cat conftest.val`
15043 else
15044   echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ( exit $ac_status )
15049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15050 See \`config.log' for more details." >&5
15051 echo "$as_me: error: cannot compute sizeof (short int), 77
15052 See \`config.log' for more details." >&2;}
15053    { (exit 1); exit 1; }; }
15054 fi
15055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15056 fi
15057 fi
15058 rm -f conftest.val
15059 else
15060   ac_cv_sizeof_short_int=0
15061 fi
15062 fi
15063 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15064 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15065 cat >>confdefs.h <<_ACEOF
15066 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15067 _ACEOF
15068
15069
15070 echo "$as_me:$LINENO: checking for int" >&5
15071 echo $ECHO_N "checking for int... $ECHO_C" >&6
15072 if test "${ac_cv_type_int+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 $ac_includes_default
15082 int
15083 main ()
15084 {
15085 if ((int *) 0)
15086   return 0;
15087 if (sizeof (int))
15088   return 0;
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095   (eval $ac_compile) 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -z "$ac_c_werror_flag"
15103                          || test ! -s conftest.err'
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); }; } &&
15109          { ac_try='test -s conftest.$ac_objext'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115   ac_cv_type_int=yes
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_cv_type_int=no
15121 fi
15122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15123 fi
15124 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15125 echo "${ECHO_T}$ac_cv_type_int" >&6
15126
15127 echo "$as_me:$LINENO: checking size of int" >&5
15128 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15129 if test "${ac_cv_sizeof_int+set}" = set; then
15130   echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132   if test "$ac_cv_type_int" = yes; then
15133   # The cast to unsigned long works around a bug in the HP C Compiler
15134   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15135   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15136   # This bug is HP SR number 8606223364.
15137   if test "$cross_compiling" = yes; then
15138   # Depending upon the size, compute the lo and hi bounds.
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145 $ac_includes_default
15146 int
15147 main ()
15148 {
15149 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15150 test_array [0] = 0
15151
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158   (eval $ac_compile) 2>conftest.er1
15159   ac_status=$?
15160   grep -v '^ *+' conftest.er1 >conftest.err
15161   rm -f conftest.er1
15162   cat conftest.err >&5
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } &&
15165          { ac_try='test -z "$ac_c_werror_flag"
15166                          || test ! -s conftest.err'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; } &&
15172          { ac_try='test -s conftest.$ac_objext'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; }; then
15178   ac_lo=0 ac_mid=0
15179   while :; do
15180     cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186 $ac_includes_default
15187 int
15188 main ()
15189 {
15190 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15191 test_array [0] = 0
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199   (eval $ac_compile) 2>conftest.er1
15200   ac_status=$?
15201   grep -v '^ *+' conftest.er1 >conftest.err
15202   rm -f conftest.er1
15203   cat conftest.err >&5
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } &&
15206          { ac_try='test -z "$ac_c_werror_flag"
15207                          || test ! -s conftest.err'
15208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209   (eval $ac_try) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; } &&
15213          { ac_try='test -s conftest.$ac_objext'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219   ac_hi=$ac_mid; break
15220 else
15221   echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_lo=`expr $ac_mid + 1`
15225                     if test $ac_lo -le $ac_mid; then
15226                       ac_lo= ac_hi=
15227                       break
15228                     fi
15229                     ac_mid=`expr 2 '*' $ac_mid + 1`
15230 fi
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232   done
15233 else
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 cat >conftest.$ac_ext <<_ACEOF
15238 /* confdefs.h.  */
15239 _ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h.  */
15243 $ac_includes_default
15244 int
15245 main ()
15246 {
15247 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15248 test_array [0] = 0
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256   (eval $ac_compile) 2>conftest.er1
15257   ac_status=$?
15258   grep -v '^ *+' conftest.er1 >conftest.err
15259   rm -f conftest.er1
15260   cat conftest.err >&5
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } &&
15263          { ac_try='test -z "$ac_c_werror_flag"
15264                          || test ! -s conftest.err'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; } &&
15270          { ac_try='test -s conftest.$ac_objext'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; }; then
15276   ac_hi=-1 ac_mid=-1
15277   while :; do
15278     cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 $ac_includes_default
15285 int
15286 main ()
15287 {
15288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15289 test_array [0] = 0
15290
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297   (eval $ac_compile) 2>conftest.er1
15298   ac_status=$?
15299   grep -v '^ *+' conftest.er1 >conftest.err
15300   rm -f conftest.er1
15301   cat conftest.err >&5
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } &&
15304          { ac_try='test -z "$ac_c_werror_flag"
15305                          || test ! -s conftest.err'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; } &&
15311          { ac_try='test -s conftest.$ac_objext'
15312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313   (eval $ac_try) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); }; }; then
15317   ac_lo=$ac_mid; break
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_hi=`expr '(' $ac_mid ')' - 1`
15323                        if test $ac_mid -le $ac_hi; then
15324                          ac_lo= ac_hi=
15325                          break
15326                        fi
15327                        ac_mid=`expr 2 '*' $ac_mid`
15328 fi
15329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15330   done
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_lo= ac_hi=
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15340 # Binary search between lo and hi bounds.
15341 while test "x$ac_lo" != "x$ac_hi"; do
15342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15343   cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h.  */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h.  */
15349 $ac_includes_default
15350 int
15351 main ()
15352 {
15353 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15354 test_array [0] = 0
15355
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362   (eval $ac_compile) 2>conftest.er1
15363   ac_status=$?
15364   grep -v '^ *+' conftest.er1 >conftest.err
15365   rm -f conftest.er1
15366   cat conftest.err >&5
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } &&
15369          { ac_try='test -z "$ac_c_werror_flag"
15370                          || test ! -s conftest.err'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; } &&
15376          { ac_try='test -s conftest.$ac_objext'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; }; then
15382   ac_hi=$ac_mid
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_lo=`expr '(' $ac_mid ')' + 1`
15388 fi
15389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15390 done
15391 case $ac_lo in
15392 ?*) ac_cv_sizeof_int=$ac_lo;;
15393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15394 See \`config.log' for more details." >&5
15395 echo "$as_me: error: cannot compute sizeof (int), 77
15396 See \`config.log' for more details." >&2;}
15397    { (exit 1); exit 1; }; } ;;
15398 esac
15399 else
15400   if test "$cross_compiling" = yes; then
15401   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15402 See \`config.log' for more details." >&5
15403 echo "$as_me: error: cannot run test program while cross compiling
15404 See \`config.log' for more details." >&2;}
15405    { (exit 1); exit 1; }; }
15406 else
15407   cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h.  */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h.  */
15413 $ac_includes_default
15414 long longval () { return (long) (sizeof (int)); }
15415 unsigned long ulongval () { return (long) (sizeof (int)); }
15416 #include <stdio.h>
15417 #include <stdlib.h>
15418 int
15419 main ()
15420 {
15421
15422   FILE *f = fopen ("conftest.val", "w");
15423   if (! f)
15424     exit (1);
15425   if (((long) (sizeof (int))) < 0)
15426     {
15427       long i = longval ();
15428       if (i != ((long) (sizeof (int))))
15429         exit (1);
15430       fprintf (f, "%ld\n", i);
15431     }
15432   else
15433     {
15434       unsigned long i = ulongval ();
15435       if (i != ((long) (sizeof (int))))
15436         exit (1);
15437       fprintf (f, "%lu\n", i);
15438     }
15439   exit (ferror (f) || fclose (f) != 0);
15440
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447   (eval $ac_link) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }; then
15456   ac_cv_sizeof_int=`cat conftest.val`
15457 else
15458   echo "$as_me: program exited with status $ac_status" >&5
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ( exit $ac_status )
15463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15464 See \`config.log' for more details." >&5
15465 echo "$as_me: error: cannot compute sizeof (int), 77
15466 See \`config.log' for more details." >&2;}
15467    { (exit 1); exit 1; }; }
15468 fi
15469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15470 fi
15471 fi
15472 rm -f conftest.val
15473 else
15474   ac_cv_sizeof_int=0
15475 fi
15476 fi
15477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15478 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15479 cat >>confdefs.h <<_ACEOF
15480 #define SIZEOF_INT $ac_cv_sizeof_int
15481 _ACEOF
15482
15483
15484 echo "$as_me:$LINENO: checking for long int" >&5
15485 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15486 if test "${ac_cv_type_long_int+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h.  */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h.  */
15495 $ac_includes_default
15496 int
15497 main ()
15498 {
15499 if ((long int *) 0)
15500   return 0;
15501 if (sizeof (long int))
15502   return 0;
15503   ;
15504   return 0;
15505 }
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509   (eval $ac_compile) 2>conftest.er1
15510   ac_status=$?
15511   grep -v '^ *+' conftest.er1 >conftest.err
15512   rm -f conftest.er1
15513   cat conftest.err >&5
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); } &&
15516          { ac_try='test -z "$ac_c_werror_flag"
15517                          || test ! -s conftest.err'
15518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519   (eval $ac_try) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); }; } &&
15523          { ac_try='test -s conftest.$ac_objext'
15524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525   (eval $ac_try) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   ac_cv_type_long_int=yes
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 ac_cv_type_long_int=no
15535 fi
15536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15537 fi
15538 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15539 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15540
15541 echo "$as_me:$LINENO: checking size of long int" >&5
15542 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15543 if test "${ac_cv_sizeof_long_int+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   if test "$ac_cv_type_long_int" = yes; then
15547   # The cast to unsigned long works around a bug in the HP C Compiler
15548   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15549   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15550   # This bug is HP SR number 8606223364.
15551   if test "$cross_compiling" = yes; then
15552   # Depending upon the size, compute the lo and hi bounds.
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 $ac_includes_default
15560 int
15561 main ()
15562 {
15563 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15564 test_array [0] = 0
15565
15566   ;
15567   return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572   (eval $ac_compile) 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -z "$ac_c_werror_flag"
15580                          || test ! -s conftest.err'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; } &&
15586          { ac_try='test -s conftest.$ac_objext'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592   ac_lo=0 ac_mid=0
15593   while :; do
15594     cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 $ac_includes_default
15601 int
15602 main ()
15603 {
15604 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15605 test_array [0] = 0
15606
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613   (eval $ac_compile) 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag"
15621                          || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest.$ac_objext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   ac_hi=$ac_mid; break
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 ac_lo=`expr $ac_mid + 1`
15639                     if test $ac_lo -le $ac_mid; then
15640                       ac_lo= ac_hi=
15641                       break
15642                     fi
15643                     ac_mid=`expr 2 '*' $ac_mid + 1`
15644 fi
15645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646   done
15647 else
15648   echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15650
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657 $ac_includes_default
15658 int
15659 main ()
15660 {
15661 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15662 test_array [0] = 0
15663
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670   (eval $ac_compile) 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -z "$ac_c_werror_flag"
15678                          || test ! -s conftest.err'
15679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680   (eval $ac_try) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; } &&
15684          { ac_try='test -s conftest.$ac_objext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_hi=-1 ac_mid=-1
15691   while :; do
15692     cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 $ac_includes_default
15699 int
15700 main ()
15701 {
15702 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15703 test_array [0] = 0
15704
15705   ;
15706   return 0;
15707 }
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711   (eval $ac_compile) 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } &&
15718          { ac_try='test -z "$ac_c_werror_flag"
15719                          || test ! -s conftest.err'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; } &&
15725          { ac_try='test -s conftest.$ac_objext'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; }; then
15731   ac_lo=$ac_mid; break
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736 ac_hi=`expr '(' $ac_mid ')' - 1`
15737                        if test $ac_mid -le $ac_hi; then
15738                          ac_lo= ac_hi=
15739                          break
15740                        fi
15741                        ac_mid=`expr 2 '*' $ac_mid`
15742 fi
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15744   done
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_lo= ac_hi=
15750 fi
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 # Binary search between lo and hi bounds.
15755 while test "x$ac_lo" != "x$ac_hi"; do
15756   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15757   cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 int
15765 main ()
15766 {
15767 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15768 test_array [0] = 0
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776   (eval $ac_compile) 2>conftest.er1
15777   ac_status=$?
15778   grep -v '^ *+' conftest.er1 >conftest.err
15779   rm -f conftest.er1
15780   cat conftest.err >&5
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -z "$ac_c_werror_flag"
15784                          || test ! -s conftest.err'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   ac_hi=$ac_mid
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801 ac_lo=`expr '(' $ac_mid ')' + 1`
15802 fi
15803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15804 done
15805 case $ac_lo in
15806 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15807 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15808 See \`config.log' for more details." >&5
15809 echo "$as_me: error: cannot compute sizeof (long int), 77
15810 See \`config.log' for more details." >&2;}
15811    { (exit 1); exit 1; }; } ;;
15812 esac
15813 else
15814   if test "$cross_compiling" = yes; then
15815   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15816 See \`config.log' for more details." >&5
15817 echo "$as_me: error: cannot run test program while cross compiling
15818 See \`config.log' for more details." >&2;}
15819    { (exit 1); exit 1; }; }
15820 else
15821   cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h.  */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h.  */
15827 $ac_includes_default
15828 long longval () { return (long) (sizeof (long int)); }
15829 unsigned long ulongval () { return (long) (sizeof (long int)); }
15830 #include <stdio.h>
15831 #include <stdlib.h>
15832 int
15833 main ()
15834 {
15835
15836   FILE *f = fopen ("conftest.val", "w");
15837   if (! f)
15838     exit (1);
15839   if (((long) (sizeof (long int))) < 0)
15840     {
15841       long i = longval ();
15842       if (i != ((long) (sizeof (long int))))
15843         exit (1);
15844       fprintf (f, "%ld\n", i);
15845     }
15846   else
15847     {
15848       unsigned long i = ulongval ();
15849       if (i != ((long) (sizeof (long int))))
15850         exit (1);
15851       fprintf (f, "%lu\n", i);
15852     }
15853   exit (ferror (f) || fclose (f) != 0);
15854
15855   ;
15856   return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest$ac_exeext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15861   (eval $ac_link) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866   (eval $ac_try) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; }; then
15870   ac_cv_sizeof_long_int=`cat conftest.val`
15871 else
15872   echo "$as_me: program exited with status $ac_status" >&5
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 ( exit $ac_status )
15877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15878 See \`config.log' for more details." >&5
15879 echo "$as_me: error: cannot compute sizeof (long int), 77
15880 See \`config.log' for more details." >&2;}
15881    { (exit 1); exit 1; }; }
15882 fi
15883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 fi
15886 rm -f conftest.val
15887 else
15888   ac_cv_sizeof_long_int=0
15889 fi
15890 fi
15891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15892 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15893 cat >>confdefs.h <<_ACEOF
15894 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15895 _ACEOF
15896
15897
15898 echo "$as_me:$LINENO: checking for long long int" >&5
15899 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15900 if test "${ac_cv_type_long_long_int+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909 $ac_includes_default
15910 int
15911 main ()
15912 {
15913 if ((long long int *) 0)
15914   return 0;
15915 if (sizeof (long long int))
15916   return 0;
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923   (eval $ac_compile) 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag"
15931                          || test ! -s conftest.err'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest.$ac_objext'
15938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939   (eval $ac_try) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943   ac_cv_type_long_long_int=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948 ac_cv_type_long_long_int=no
15949 fi
15950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15951 fi
15952 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15953 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15954
15955 echo "$as_me:$LINENO: checking size of long long int" >&5
15956 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15957 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960   if test "$ac_cv_type_long_long_int" = yes; then
15961   # The cast to unsigned long works around a bug in the HP C Compiler
15962   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15963   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15964   # This bug is HP SR number 8606223364.
15965   if test "$cross_compiling" = yes; then
15966   # Depending upon the size, compute the lo and hi bounds.
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h.  */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h.  */
15973 $ac_includes_default
15974 int
15975 main ()
15976 {
15977 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15978 test_array [0] = 0
15979
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986   (eval $ac_compile) 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } &&
15993          { ac_try='test -z "$ac_c_werror_flag"
15994                          || test ! -s conftest.err'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; } &&
16000          { ac_try='test -s conftest.$ac_objext'
16001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002   (eval $ac_try) 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }; }; then
16006   ac_lo=0 ac_mid=0
16007   while :; do
16008     cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 $ac_includes_default
16015 int
16016 main ()
16017 {
16018 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16019 test_array [0] = 0
16020
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027   (eval $ac_compile) 2>conftest.er1
16028   ac_status=$?
16029   grep -v '^ *+' conftest.er1 >conftest.err
16030   rm -f conftest.er1
16031   cat conftest.err >&5
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } &&
16034          { ac_try='test -z "$ac_c_werror_flag"
16035                          || test ! -s conftest.err'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; } &&
16041          { ac_try='test -s conftest.$ac_objext'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   ac_hi=$ac_mid; break
16048 else
16049   echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_lo=`expr $ac_mid + 1`
16053                     if test $ac_lo -le $ac_mid; then
16054                       ac_lo= ac_hi=
16055                       break
16056                     fi
16057                     ac_mid=`expr 2 '*' $ac_mid + 1`
16058 fi
16059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060   done
16061 else
16062   echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h.  */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h.  */
16071 $ac_includes_default
16072 int
16073 main ()
16074 {
16075 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16076 test_array [0] = 0
16077
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084   (eval $ac_compile) 2>conftest.er1
16085   ac_status=$?
16086   grep -v '^ *+' conftest.er1 >conftest.err
16087   rm -f conftest.er1
16088   cat conftest.err >&5
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } &&
16091          { ac_try='test -z "$ac_c_werror_flag"
16092                          || test ! -s conftest.err'
16093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094   (eval $ac_try) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; } &&
16098          { ac_try='test -s conftest.$ac_objext'
16099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100   (eval $ac_try) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; }; then
16104   ac_hi=-1 ac_mid=-1
16105   while :; do
16106     cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112 $ac_includes_default
16113 int
16114 main ()
16115 {
16116 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16117 test_array [0] = 0
16118
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125   (eval $ac_compile) 2>conftest.er1
16126   ac_status=$?
16127   grep -v '^ *+' conftest.er1 >conftest.err
16128   rm -f conftest.er1
16129   cat conftest.err >&5
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); } &&
16132          { ac_try='test -z "$ac_c_werror_flag"
16133                          || test ! -s conftest.err'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; } &&
16139          { ac_try='test -s conftest.$ac_objext'
16140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141   (eval $ac_try) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); }; }; then
16145   ac_lo=$ac_mid; break
16146 else
16147   echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ac_hi=`expr '(' $ac_mid ')' - 1`
16151                        if test $ac_mid -le $ac_hi; then
16152                          ac_lo= ac_hi=
16153                          break
16154                        fi
16155                        ac_mid=`expr 2 '*' $ac_mid`
16156 fi
16157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16158   done
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_lo= ac_hi=
16164 fi
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166 fi
16167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 # Binary search between lo and hi bounds.
16169 while test "x$ac_lo" != "x$ac_hi"; do
16170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16171   cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 $ac_includes_default
16178 int
16179 main ()
16180 {
16181 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16182 test_array [0] = 0
16183
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190   (eval $ac_compile) 2>conftest.er1
16191   ac_status=$?
16192   grep -v '^ *+' conftest.er1 >conftest.err
16193   rm -f conftest.er1
16194   cat conftest.err >&5
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); } &&
16197          { ac_try='test -z "$ac_c_werror_flag"
16198                          || test ! -s conftest.err'
16199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200   (eval $ac_try) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; } &&
16204          { ac_try='test -s conftest.$ac_objext'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_hi=$ac_mid
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_lo=`expr '(' $ac_mid ')' + 1`
16216 fi
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16218 done
16219 case $ac_lo in
16220 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16222 See \`config.log' for more details." >&5
16223 echo "$as_me: error: cannot compute sizeof (long long int), 77
16224 See \`config.log' for more details." >&2;}
16225    { (exit 1); exit 1; }; } ;;
16226 esac
16227 else
16228   if test "$cross_compiling" = yes; then
16229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16230 See \`config.log' for more details." >&5
16231 echo "$as_me: error: cannot run test program while cross compiling
16232 See \`config.log' for more details." >&2;}
16233    { (exit 1); exit 1; }; }
16234 else
16235   cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 $ac_includes_default
16242 long longval () { return (long) (sizeof (long long int)); }
16243 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16244 #include <stdio.h>
16245 #include <stdlib.h>
16246 int
16247 main ()
16248 {
16249
16250   FILE *f = fopen ("conftest.val", "w");
16251   if (! f)
16252     exit (1);
16253   if (((long) (sizeof (long long int))) < 0)
16254     {
16255       long i = longval ();
16256       if (i != ((long) (sizeof (long long int))))
16257         exit (1);
16258       fprintf (f, "%ld\n", i);
16259     }
16260   else
16261     {
16262       unsigned long i = ulongval ();
16263       if (i != ((long) (sizeof (long long int))))
16264         exit (1);
16265       fprintf (f, "%lu\n", i);
16266     }
16267   exit (ferror (f) || fclose (f) != 0);
16268
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275   (eval $ac_link) 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280   (eval $ac_try) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; }; then
16284   ac_cv_sizeof_long_long_int=`cat conftest.val`
16285 else
16286   echo "$as_me: program exited with status $ac_status" >&5
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 ( exit $ac_status )
16291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16292 See \`config.log' for more details." >&5
16293 echo "$as_me: error: cannot compute sizeof (long long int), 77
16294 See \`config.log' for more details." >&2;}
16295    { (exit 1); exit 1; }; }
16296 fi
16297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16298 fi
16299 fi
16300 rm -f conftest.val
16301 else
16302   ac_cv_sizeof_long_long_int=0
16303 fi
16304 fi
16305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16306 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16307 cat >>confdefs.h <<_ACEOF
16308 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16309 _ACEOF
16310
16311
16312 echo "$as_me:$LINENO: checking for int *" >&5
16313 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16314 if test "${ac_cv_type_int_p+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 $ac_includes_default
16324 int
16325 main ()
16326 {
16327 if ((int * *) 0)
16328   return 0;
16329 if (sizeof (int *))
16330   return 0;
16331   ;
16332   return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337   (eval $ac_compile) 2>conftest.er1
16338   ac_status=$?
16339   grep -v '^ *+' conftest.er1 >conftest.err
16340   rm -f conftest.er1
16341   cat conftest.err >&5
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } &&
16344          { ac_try='test -z "$ac_c_werror_flag"
16345                          || test ! -s conftest.err'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; } &&
16351          { ac_try='test -s conftest.$ac_objext'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357   ac_cv_type_int_p=yes
16358 else
16359   echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 ac_cv_type_int_p=no
16363 fi
16364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16365 fi
16366 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16367 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16368
16369 echo "$as_me:$LINENO: checking size of int *" >&5
16370 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16371 if test "${ac_cv_sizeof_int_p+set}" = set; then
16372   echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374   if test "$ac_cv_type_int_p" = yes; then
16375   # The cast to unsigned long works around a bug in the HP C Compiler
16376   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16377   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16378   # This bug is HP SR number 8606223364.
16379   if test "$cross_compiling" = yes; then
16380   # Depending upon the size, compute the lo and hi bounds.
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h.  */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h.  */
16387 $ac_includes_default
16388 int
16389 main ()
16390 {
16391 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16392 test_array [0] = 0
16393
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400   (eval $ac_compile) 2>conftest.er1
16401   ac_status=$?
16402   grep -v '^ *+' conftest.er1 >conftest.err
16403   rm -f conftest.er1
16404   cat conftest.err >&5
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } &&
16407          { ac_try='test -z "$ac_c_werror_flag"
16408                          || test ! -s conftest.err'
16409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410   (eval $ac_try) 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; } &&
16414          { ac_try='test -s conftest.$ac_objext'
16415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416   (eval $ac_try) 2>&5
16417   ac_status=$?
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); }; }; then
16420   ac_lo=0 ac_mid=0
16421   while :; do
16422     cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 $ac_includes_default
16429 int
16430 main ()
16431 {
16432 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16433 test_array [0] = 0
16434
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441   (eval $ac_compile) 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -z "$ac_c_werror_flag"
16449                          || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest.$ac_objext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   ac_hi=$ac_mid; break
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 ac_lo=`expr $ac_mid + 1`
16467                     if test $ac_lo -le $ac_mid; then
16468                       ac_lo= ac_hi=
16469                       break
16470                     fi
16471                     ac_mid=`expr 2 '*' $ac_mid + 1`
16472 fi
16473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474   done
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h.  */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h.  */
16485 $ac_includes_default
16486 int
16487 main ()
16488 {
16489 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16490 test_array [0] = 0
16491
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 rm -f conftest.$ac_objext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16498   (eval $ac_compile) 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_c_werror_flag"
16506                          || test ! -s conftest.err'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; } &&
16512          { ac_try='test -s conftest.$ac_objext'
16513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514   (eval $ac_try) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518   ac_hi=-1 ac_mid=-1
16519   while :; do
16520     cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526 $ac_includes_default
16527 int
16528 main ()
16529 {
16530 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16531 test_array [0] = 0
16532
16533   ;
16534   return 0;
16535 }
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539   (eval $ac_compile) 2>conftest.er1
16540   ac_status=$?
16541   grep -v '^ *+' conftest.er1 >conftest.err
16542   rm -f conftest.er1
16543   cat conftest.err >&5
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } &&
16546          { ac_try='test -z "$ac_c_werror_flag"
16547                          || test ! -s conftest.err'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; } &&
16553          { ac_try='test -s conftest.$ac_objext'
16554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555   (eval $ac_try) 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); }; }; then
16559   ac_lo=$ac_mid; break
16560 else
16561   echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ac_hi=`expr '(' $ac_mid ')' - 1`
16565                        if test $ac_mid -le $ac_hi; then
16566                          ac_lo= ac_hi=
16567                          break
16568                        fi
16569                        ac_mid=`expr 2 '*' $ac_mid`
16570 fi
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16572   done
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_lo= ac_hi=
16578 fi
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582 # Binary search between lo and hi bounds.
16583 while test "x$ac_lo" != "x$ac_hi"; do
16584   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16585   cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h.  */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h.  */
16591 $ac_includes_default
16592 int
16593 main ()
16594 {
16595 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16596 test_array [0] = 0
16597
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16604   (eval $ac_compile) 2>conftest.er1
16605   ac_status=$?
16606   grep -v '^ *+' conftest.er1 >conftest.err
16607   rm -f conftest.er1
16608   cat conftest.err >&5
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -z "$ac_c_werror_flag"
16612                          || test ! -s conftest.err'
16613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614   (eval $ac_try) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; } &&
16618          { ac_try='test -s conftest.$ac_objext'
16619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620   (eval $ac_try) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; }; then
16624   ac_hi=$ac_mid
16625 else
16626   echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 ac_lo=`expr '(' $ac_mid ')' + 1`
16630 fi
16631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16632 done
16633 case $ac_lo in
16634 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16636 See \`config.log' for more details." >&5
16637 echo "$as_me: error: cannot compute sizeof (int *), 77
16638 See \`config.log' for more details." >&2;}
16639    { (exit 1); exit 1; }; } ;;
16640 esac
16641 else
16642   if test "$cross_compiling" = yes; then
16643   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16644 See \`config.log' for more details." >&5
16645 echo "$as_me: error: cannot run test program while cross compiling
16646 See \`config.log' for more details." >&2;}
16647    { (exit 1); exit 1; }; }
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 $ac_includes_default
16656 long longval () { return (long) (sizeof (int *)); }
16657 unsigned long ulongval () { return (long) (sizeof (int *)); }
16658 #include <stdio.h>
16659 #include <stdlib.h>
16660 int
16661 main ()
16662 {
16663
16664   FILE *f = fopen ("conftest.val", "w");
16665   if (! f)
16666     exit (1);
16667   if (((long) (sizeof (int *))) < 0)
16668     {
16669       long i = longval ();
16670       if (i != ((long) (sizeof (int *))))
16671         exit (1);
16672       fprintf (f, "%ld\n", i);
16673     }
16674   else
16675     {
16676       unsigned long i = ulongval ();
16677       if (i != ((long) (sizeof (int *))))
16678         exit (1);
16679       fprintf (f, "%lu\n", i);
16680     }
16681   exit (ferror (f) || fclose (f) != 0);
16682
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest$ac_exeext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16689   (eval $ac_link) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694   (eval $ac_try) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698   ac_cv_sizeof_int_p=`cat conftest.val`
16699 else
16700   echo "$as_me: program exited with status $ac_status" >&5
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704 ( exit $ac_status )
16705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16706 See \`config.log' for more details." >&5
16707 echo "$as_me: error: cannot compute sizeof (int *), 77
16708 See \`config.log' for more details." >&2;}
16709    { (exit 1); exit 1; }; }
16710 fi
16711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16712 fi
16713 fi
16714 rm -f conftest.val
16715 else
16716   ac_cv_sizeof_int_p=0
16717 fi
16718 fi
16719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16720 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16721 cat >>confdefs.h <<_ACEOF
16722 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16723 _ACEOF
16724
16725
16726
16727 # Check for sys/types.h types
16728 echo "$as_me:$LINENO: checking for u_int type" >&5
16729 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16730 if test "${ac_cv_have_u_int+set}" = set; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733
16734     cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740  #include <sys/types.h>
16741 int
16742 main ()
16743 {
16744  u_int a; a = 1;
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751   (eval $ac_compile) 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } &&
16758          { ac_try='test -z "$ac_c_werror_flag"
16759                          || test ! -s conftest.err'
16760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761   (eval $ac_try) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; } &&
16765          { ac_try='test -s conftest.$ac_objext'
16766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767   (eval $ac_try) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771    ac_cv_have_u_int="yes"
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776  ac_cv_have_u_int="no"
16777
16778 fi
16779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16780
16781 fi
16782 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16783 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16784 if test "x$ac_cv_have_u_int" = "xyes" ; then
16785    cat >>confdefs.h <<\_ACEOF
16786 #define HAVE_U_INT 1
16787 _ACEOF
16788
16789    have_u_int=1
16790 fi
16791
16792 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16793 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16794 if test "${ac_cv_have_intmax_t+set}" = set; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797
16798    cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804  #include <sys/types.h>
16805 int
16806 main ()
16807 {
16808  intmax_t a; a = 1;
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815   (eval $ac_compile) 2>conftest.er1
16816   ac_status=$?
16817   grep -v '^ *+' conftest.er1 >conftest.err
16818   rm -f conftest.er1
16819   cat conftest.err >&5
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } &&
16822          { ac_try='test -z "$ac_c_werror_flag"
16823                          || test ! -s conftest.err'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest.$ac_objext'
16830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831   (eval $ac_try) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; }; then
16835    ac_cv_have_intmax_t="yes"
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840
16841          cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847  #include <stdint.h>
16848 int
16849 main ()
16850 {
16851  intmax_t a; a = 1;
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858   (eval $ac_compile) 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag"
16866                          || test ! -s conftest.err'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; } &&
16872          { ac_try='test -s conftest.$ac_objext'
16873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874   (eval $ac_try) 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; }; then
16878    ac_cv_have_intmax_t="yes"
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883  ac_cv_have_intmax_t="no"
16884
16885 fi
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887
16888
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891
16892
16893 fi
16894 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16895 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16896 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16897    cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_INTMAX_T 1
16899 _ACEOF
16900
16901    have_intmax_t=1
16902 fi
16903
16904
16905 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16906 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16907 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910
16911    cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917  #include <sys/types.h>
16918 int
16919 main ()
16920 {
16921  u_intmax_t a; a = 1;
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16928   (eval $ac_compile) 2>conftest.er1
16929   ac_status=$?
16930   grep -v '^ *+' conftest.er1 >conftest.err
16931   rm -f conftest.er1
16932   cat conftest.err >&5
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); } &&
16935          { ac_try='test -z "$ac_c_werror_flag"
16936                          || test ! -s conftest.err'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest.$ac_objext'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948    ac_cv_have_u_intmax_t="yes"
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953
16954          cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960  #include <stdint.h>
16961 int
16962 main ()
16963 {
16964  u_intmax_t a; a = 1;
16965   ;
16966   return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16971   (eval $ac_compile) 2>conftest.er1
16972   ac_status=$?
16973   grep -v '^ *+' conftest.er1 >conftest.err
16974   rm -f conftest.er1
16975   cat conftest.err >&5
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); } &&
16978          { ac_try='test -z "$ac_c_werror_flag"
16979                          || test ! -s conftest.err'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; } &&
16985          { ac_try='test -s conftest.$ac_objext'
16986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987   (eval $ac_try) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991    ac_cv_have_u_intmax_t="yes"
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996  ac_cv_have_u_intmax_t="no"
16997
16998 fi
16999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17000
17001
17002 fi
17003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17004
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17007 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17008 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17009    cat >>confdefs.h <<\_ACEOF
17010 #define HAVE_U_INTMAX_T 1
17011 _ACEOF
17012
17013    have_u_intmax_t=1
17014 fi
17015
17016
17017 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17018 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17019 if test "${ac_cv_have_intxx_t+set}" = set; then
17020   echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022
17023    cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h.  */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h.  */
17029  #include <sys/types.h>
17030 int
17031 main ()
17032 {
17033  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17034   ;
17035   return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040   (eval $ac_compile) 2>conftest.er1
17041   ac_status=$?
17042   grep -v '^ *+' conftest.er1 >conftest.err
17043   rm -f conftest.er1
17044   cat conftest.err >&5
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -z "$ac_c_werror_flag"
17048                          || test ! -s conftest.err'
17049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050   (eval $ac_try) 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest.$ac_objext'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060    ac_cv_have_intxx_t="yes"
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065  ac_cv_have_intxx_t="no"
17066
17067 fi
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17069
17070 fi
17071 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17072 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17073 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17074    cat >>confdefs.h <<\_ACEOF
17075 #define HAVE_INTXX_T 1
17076 _ACEOF
17077
17078    have_intxx_t=1
17079 fi
17080
17081 echo "$as_me:$LINENO: checking for int64_t type" >&5
17082 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17083 if test "${ac_cv_have_int64_t+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086
17087    cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h.  */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h.  */
17093  #include <sys/types.h>
17094 int
17095 main ()
17096 {
17097  int64_t a; a = 1;
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104   (eval $ac_compile) 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -z "$ac_c_werror_flag"
17112                          || test ! -s conftest.err'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest.$ac_objext'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124    ac_cv_have_int64_t="yes"
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129  ac_cv_have_int64_t="no"
17130
17131 fi
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17133
17134 fi
17135 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17136 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17137 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17138    cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_INT64_T 1
17140 _ACEOF
17141
17142    have_int64_t=1
17143 fi
17144
17145 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17146 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17147 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150
17151    cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157  #include <sys/types.h>
17158 int
17159 main ()
17160 {
17161  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17168   (eval $ac_compile) 2>conftest.er1
17169   ac_status=$?
17170   grep -v '^ *+' conftest.er1 >conftest.err
17171   rm -f conftest.er1
17172   cat conftest.err >&5
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } &&
17175          { ac_try='test -z "$ac_c_werror_flag"
17176                          || test ! -s conftest.err'
17177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178   (eval $ac_try) 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; } &&
17182          { ac_try='test -s conftest.$ac_objext'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; }; then
17188    ac_cv_have_u_intxx_t="yes"
17189 else
17190   echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193  ac_cv_have_u_intxx_t="no"
17194
17195 fi
17196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17197
17198 fi
17199 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17200 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17201 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17202    cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_U_INTXX_T 1
17204 _ACEOF
17205
17206    have_u_intxx_t=1
17207 fi
17208
17209 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17210 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17211 if test "${ac_cv_have_u_int64_t+set}" = set; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214
17215    cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221  #include <sys/types.h>
17222 int
17223 main ()
17224 {
17225  u_int64_t a; a = 1;
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232   (eval $ac_compile) 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -z "$ac_c_werror_flag"
17240                          || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest.$ac_objext'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252    ac_cv_have_u_int64_t="yes"
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257  ac_cv_have_u_int64_t="no"
17258
17259 fi
17260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17261
17262 fi
17263 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17264 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17265 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17266    cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_U_INT64_T 1
17268 _ACEOF
17269
17270    have_u_int64_t=1
17271 fi
17272
17273 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17274            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17275 then
17276    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17277 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17278    cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284  #include <sys/bitypes.h>
17285 int
17286 main ()
17287 {
17288  int8_t a; int16_t b; int32_t c;
17289         u_int8_t e; u_int16_t f; u_int32_t g;
17290         a = b = c = e = f = g = 1;
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17297   (eval $ac_compile) 2>conftest.er1
17298   ac_status=$?
17299   grep -v '^ *+' conftest.er1 >conftest.err
17300   rm -f conftest.er1
17301   cat conftest.err >&5
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -z "$ac_c_werror_flag"
17305                          || test ! -s conftest.err'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest.$ac_objext'
17312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313   (eval $ac_try) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317    cat >>confdefs.h <<\_ACEOF
17318 #define HAVE_U_INTXX_T 1
17319 _ACEOF
17320
17321         cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_INTXX_T 1
17323 _ACEOF
17324
17325         cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_SYS_BITYPES_H 1
17327 _ACEOF
17328
17329         echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335  echo "$as_me:$LINENO: result: no" >&5
17336 echo "${ECHO_T}no" >&6
17337
17338 fi
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340 fi
17341
17342 if test -z "$have_u_intxx_t" ; then
17343    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17344 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17345 if test "${ac_cv_have_uintxx_t+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348
17349       cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355  #include <sys/types.h>
17356 int
17357 main ()
17358 {
17359  uint8_t a; uint16_t b;
17360            uint32_t c; a = b = c = 1;
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17367   (eval $ac_compile) 2>conftest.er1
17368   ac_status=$?
17369   grep -v '^ *+' conftest.er1 >conftest.err
17370   rm -f conftest.er1
17371   cat conftest.err >&5
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } &&
17374          { ac_try='test -z "$ac_c_werror_flag"
17375                          || test ! -s conftest.err'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest.$ac_objext'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387    ac_cv_have_uintxx_t="yes"
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392  ac_cv_have_uintxx_t="no"
17393
17394 fi
17395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17396
17397 fi
17398 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17399 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17400    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17401       cat >>confdefs.h <<\_ACEOF
17402 #define HAVE_UINTXX_T 1
17403 _ACEOF
17404
17405    fi
17406 fi
17407
17408 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17409           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17410 then
17411    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17412 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17413    cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h.  */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h.  */
17419  #include <sys/bitypes.h>
17420 int
17421 main ()
17422 {
17423  int64_t a; u_int64_t b;
17424        a = b = 1;
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431   (eval $ac_compile) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_c_werror_flag"
17439                          || test ! -s conftest.err'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; } &&
17445          { ac_try='test -s conftest.$ac_objext'
17446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447   (eval $ac_try) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451    cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_U_INT64_T 1
17453 _ACEOF
17454
17455        cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_INT64_T 1
17457 _ACEOF
17458
17459        echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465  echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17467
17468 fi
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470 fi
17471
17472 if (test -z "$have_uintxx_t" && \
17473           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17474 then
17475    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17476 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17477    cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483  #include <sys/bitypes.h>
17484 int
17485 main ()
17486 {
17487  uint8_t a; uint16_t b;
17488           uint32_t c; a = b = c = 1;
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495   (eval $ac_compile) 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } &&
17502          { ac_try='test -z "$ac_c_werror_flag"
17503                          || test ! -s conftest.err'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; } &&
17509          { ac_try='test -s conftest.$ac_objext'
17510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511   (eval $ac_try) 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; }; then
17515    cat >>confdefs.h <<\_ACEOF
17516 #define HAVE_UINTXX_T 1
17517 _ACEOF
17518
17519        echo "$as_me:$LINENO: result: yes" >&5
17520 echo "${ECHO_T}yes" >&6
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525  echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17527
17528 fi
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530
17531 fi
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549 for ac_func in \
17550         fork \
17551         getcwd \
17552         gethostname \
17553         getpid \
17554         gettimeofday \
17555         setpgid \
17556         setpgrp \
17557         setsid \
17558         signal \
17559         strerror \
17560         strncmp \
17561         strncpy \
17562         vfprintf \
17563
17564 do
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_var+set}\" = set"; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   cat >conftest.$ac_ext <<_ACEOF
17572 /* confdefs.h.  */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h.  */
17577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17579 #define $ac_func innocuous_$ac_func
17580
17581 /* System header to define __stub macros and hopefully few prototypes,
17582     which can conflict with char $ac_func (); below.
17583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584     <limits.h> exists even on freestanding compilers.  */
17585
17586 #ifdef __STDC__
17587 # include <limits.h>
17588 #else
17589 # include <assert.h>
17590 #endif
17591
17592 #undef $ac_func
17593
17594 /* Override any gcc2 internal prototype to avoid an error.  */
17595 #ifdef __cplusplus
17596 extern "C"
17597 {
17598 #endif
17599 /* We use char because int might match the return type of a gcc2
17600    builtin and then its argument prototype would still apply.  */
17601 char $ac_func ();
17602 /* The GNU C library defines this for functions which it implements
17603     to always fail with ENOSYS.  Some functions are actually named
17604     something starting with __ and the normal name is an alias.  */
17605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17606 choke me
17607 #else
17608 char (*f) () = $ac_func;
17609 #endif
17610 #ifdef __cplusplus
17611 }
17612 #endif
17613
17614 int
17615 main ()
17616 {
17617 return f != $ac_func;
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624   (eval $ac_link) 2>conftest.er1
17625   ac_status=$?
17626   grep -v '^ *+' conftest.er1 >conftest.err
17627   rm -f conftest.er1
17628   cat conftest.err >&5
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); } &&
17631          { ac_try='test -z "$ac_c_werror_flag"
17632                          || test ! -s conftest.err'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; } &&
17638          { ac_try='test -s conftest$ac_exeext'
17639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640   (eval $ac_try) 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   eval "$as_ac_var=yes"
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 eval "$as_ac_var=no"
17650 fi
17651 rm -f conftest.err conftest.$ac_objext \
17652       conftest$ac_exeext conftest.$ac_ext
17653 fi
17654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657   cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17659 _ACEOF
17660
17661 else
17662   echo 'configure: cannot find needed function.'; exit 1
17663
17664 fi
17665 done
17666
17667
17668
17669 for ac_func in fchdir
17670 do
17671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17672 echo "$as_me:$LINENO: checking for $ac_func" >&5
17673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17674 if eval "test \"\${$as_ac_var+set}\" = set"; then
17675   echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677   cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h.  */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h.  */
17683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17685 #define $ac_func innocuous_$ac_func
17686
17687 /* System header to define __stub macros and hopefully few prototypes,
17688     which can conflict with char $ac_func (); below.
17689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17690     <limits.h> exists even on freestanding compilers.  */
17691
17692 #ifdef __STDC__
17693 # include <limits.h>
17694 #else
17695 # include <assert.h>
17696 #endif
17697
17698 #undef $ac_func
17699
17700 /* Override any gcc2 internal prototype to avoid an error.  */
17701 #ifdef __cplusplus
17702 extern "C"
17703 {
17704 #endif
17705 /* We use char because int might match the return type of a gcc2
17706    builtin and then its argument prototype would still apply.  */
17707 char $ac_func ();
17708 /* The GNU C library defines this for functions which it implements
17709     to always fail with ENOSYS.  Some functions are actually named
17710     something starting with __ and the normal name is an alias.  */
17711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17712 choke me
17713 #else
17714 char (*f) () = $ac_func;
17715 #endif
17716 #ifdef __cplusplus
17717 }
17718 #endif
17719
17720 int
17721 main ()
17722 {
17723 return f != $ac_func;
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730   (eval $ac_link) 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_c_werror_flag"
17738                          || test ! -s conftest.err'
17739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740   (eval $ac_try) 2>&5
17741   ac_status=$?
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); }; } &&
17744          { ac_try='test -s conftest$ac_exeext'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; }; then
17750   eval "$as_ac_var=yes"
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 eval "$as_ac_var=no"
17756 fi
17757 rm -f conftest.err conftest.$ac_objext \
17758       conftest$ac_exeext conftest.$ac_ext
17759 fi
17760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17762 if test `eval echo '${'$as_ac_var'}'` = yes; then
17763   cat >>confdefs.h <<_ACEOF
17764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17765 _ACEOF
17766  cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_FCHDIR 1
17768 _ACEOF
17769
17770 fi
17771 done
17772
17773
17774 for ac_func in strtoll
17775 do
17776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17777 echo "$as_me:$LINENO: checking for $ac_func" >&5
17778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17779 if eval "test \"\${$as_ac_var+set}\" = set"; then
17780   echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782   cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17790 #define $ac_func innocuous_$ac_func
17791
17792 /* System header to define __stub macros and hopefully few prototypes,
17793     which can conflict with char $ac_func (); below.
17794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17795     <limits.h> exists even on freestanding compilers.  */
17796
17797 #ifdef __STDC__
17798 # include <limits.h>
17799 #else
17800 # include <assert.h>
17801 #endif
17802
17803 #undef $ac_func
17804
17805 /* Override any gcc2 internal prototype to avoid an error.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 {
17809 #endif
17810 /* We use char because int might match the return type of a gcc2
17811    builtin and then its argument prototype would still apply.  */
17812 char $ac_func ();
17813 /* The GNU C library defines this for functions which it implements
17814     to always fail with ENOSYS.  Some functions are actually named
17815     something starting with __ and the normal name is an alias.  */
17816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17817 choke me
17818 #else
17819 char (*f) () = $ac_func;
17820 #endif
17821 #ifdef __cplusplus
17822 }
17823 #endif
17824
17825 int
17826 main ()
17827 {
17828 return f != $ac_func;
17829   ;
17830   return 0;
17831 }
17832 _ACEOF
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835   (eval $ac_link) 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } &&
17842          { ac_try='test -z "$ac_c_werror_flag"
17843                          || test ! -s conftest.err'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; } &&
17849          { ac_try='test -s conftest$ac_exeext'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; }; then
17855   eval "$as_ac_var=yes"
17856 else
17857   echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 eval "$as_ac_var=no"
17861 fi
17862 rm -f conftest.err conftest.$ac_objext \
17863       conftest$ac_exeext conftest.$ac_ext
17864 fi
17865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17867 if test `eval echo '${'$as_ac_var'}'` = yes; then
17868   cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17870 _ACEOF
17871  cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_STRTOLL 1
17873 _ACEOF
17874
17875 fi
17876 done
17877
17878
17879
17880 for ac_func in chflags
17881 do
17882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17883 echo "$as_me:$LINENO: checking for $ac_func" >&5
17884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_var+set}\" = set"; then
17886   echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888   cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17896 #define $ac_func innocuous_$ac_func
17897
17898 /* System header to define __stub macros and hopefully few prototypes,
17899     which can conflict with char $ac_func (); below.
17900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17901     <limits.h> exists even on freestanding compilers.  */
17902
17903 #ifdef __STDC__
17904 # include <limits.h>
17905 #else
17906 # include <assert.h>
17907 #endif
17908
17909 #undef $ac_func
17910
17911 /* Override any gcc2 internal prototype to avoid an error.  */
17912 #ifdef __cplusplus
17913 extern "C"
17914 {
17915 #endif
17916 /* We use char because int might match the return type of a gcc2
17917    builtin and then its argument prototype would still apply.  */
17918 char $ac_func ();
17919 /* The GNU C library defines this for functions which it implements
17920     to always fail with ENOSYS.  Some functions are actually named
17921     something starting with __ and the normal name is an alias.  */
17922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17923 choke me
17924 #else
17925 char (*f) () = $ac_func;
17926 #endif
17927 #ifdef __cplusplus
17928 }
17929 #endif
17930
17931 int
17932 main ()
17933 {
17934 return f != $ac_func;
17935   ;
17936   return 0;
17937 }
17938 _ACEOF
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941   (eval $ac_link) 2>conftest.er1
17942   ac_status=$?
17943   grep -v '^ *+' conftest.er1 >conftest.err
17944   rm -f conftest.er1
17945   cat conftest.err >&5
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } &&
17948          { ac_try='test -z "$ac_c_werror_flag"
17949                          || test ! -s conftest.err'
17950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951   (eval $ac_try) 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; } &&
17955          { ac_try='test -s conftest$ac_exeext'
17956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957   (eval $ac_try) 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; }; then
17961   eval "$as_ac_var=yes"
17962 else
17963   echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 eval "$as_ac_var=no"
17967 fi
17968 rm -f conftest.err conftest.$ac_objext \
17969       conftest$ac_exeext conftest.$ac_ext
17970 fi
17971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974   cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17976 _ACEOF
17977
17978 fi
17979 done
17980
17981
17982
17983
17984
17985
17986 for ac_func in snprintf vsnprintf gethostid getdomainname
17987 do
17988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17989 echo "$as_me:$LINENO: checking for $ac_func" >&5
17990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17991 if eval "test \"\${$as_ac_var+set}\" = set"; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994   cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18002 #define $ac_func innocuous_$ac_func
18003
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
18009 #ifdef __STDC__
18010 # include <limits.h>
18011 #else
18012 # include <assert.h>
18013 #endif
18014
18015 #undef $ac_func
18016
18017 /* Override any gcc2 internal prototype to avoid an error.  */
18018 #ifdef __cplusplus
18019 extern "C"
18020 {
18021 #endif
18022 /* We use char because int might match the return type of a gcc2
18023    builtin and then its argument prototype would still apply.  */
18024 char $ac_func ();
18025 /* The GNU C library defines this for functions which it implements
18026     to always fail with ENOSYS.  Some functions are actually named
18027     something starting with __ and the normal name is an alias.  */
18028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18029 choke me
18030 #else
18031 char (*f) () = $ac_func;
18032 #endif
18033 #ifdef __cplusplus
18034 }
18035 #endif
18036
18037 int
18038 main ()
18039 {
18040 return f != $ac_func;
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047   (eval $ac_link) 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } &&
18054          { ac_try='test -z "$ac_c_werror_flag"
18055                          || test ! -s conftest.err'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; } &&
18061          { ac_try='test -s conftest$ac_exeext'
18062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063   (eval $ac_try) 2>&5
18064   ac_status=$?
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); }; }; then
18067   eval "$as_ac_var=yes"
18068 else
18069   echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 eval "$as_ac_var=no"
18073 fi
18074 rm -f conftest.err conftest.$ac_objext \
18075       conftest$ac_exeext conftest.$ac_ext
18076 fi
18077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18079 if test `eval echo '${'$as_ac_var'}'` = yes; then
18080   cat >>confdefs.h <<_ACEOF
18081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18082 _ACEOF
18083
18084 fi
18085 done
18086
18087
18088
18089
18090
18091
18092 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18093 do
18094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18095 echo "$as_me:$LINENO: checking for $ac_func" >&5
18096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18097 if eval "test \"\${$as_ac_var+set}\" = set"; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18108 #define $ac_func innocuous_$ac_func
18109
18110 /* System header to define __stub macros and hopefully few prototypes,
18111     which can conflict with char $ac_func (); below.
18112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113     <limits.h> exists even on freestanding compilers.  */
18114
18115 #ifdef __STDC__
18116 # include <limits.h>
18117 #else
18118 # include <assert.h>
18119 #endif
18120
18121 #undef $ac_func
18122
18123 /* Override any gcc2 internal prototype to avoid an error.  */
18124 #ifdef __cplusplus
18125 extern "C"
18126 {
18127 #endif
18128 /* We use char because int might match the return type of a gcc2
18129    builtin and then its argument prototype would still apply.  */
18130 char $ac_func ();
18131 /* The GNU C library defines this for functions which it implements
18132     to always fail with ENOSYS.  Some functions are actually named
18133     something starting with __ and the normal name is an alias.  */
18134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18135 choke me
18136 #else
18137 char (*f) () = $ac_func;
18138 #endif
18139 #ifdef __cplusplus
18140 }
18141 #endif
18142
18143 int
18144 main ()
18145 {
18146 return f != $ac_func;
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153   (eval $ac_link) 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag"
18161                          || test ! -s conftest.err'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; } &&
18167          { ac_try='test -s conftest$ac_exeext'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   eval "$as_ac_var=yes"
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 eval "$as_ac_var=no"
18179 fi
18180 rm -f conftest.err conftest.$ac_objext \
18181       conftest$ac_exeext conftest.$ac_ext
18182 fi
18183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18185 if test `eval echo '${'$as_ac_var'}'` = yes; then
18186   cat >>confdefs.h <<_ACEOF
18187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18188 _ACEOF
18189
18190 fi
18191 done
18192
18193
18194 # If resolver functions are not in libc check for -lnsl or -lresolv.
18195 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18196 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18197 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18208 #define gethostbyname_r innocuous_gethostbyname_r
18209
18210 /* System header to define __stub macros and hopefully few prototypes,
18211     which can conflict with char gethostbyname_r (); below.
18212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213     <limits.h> exists even on freestanding compilers.  */
18214
18215 #ifdef __STDC__
18216 # include <limits.h>
18217 #else
18218 # include <assert.h>
18219 #endif
18220
18221 #undef gethostbyname_r
18222
18223 /* Override any gcc2 internal prototype to avoid an error.  */
18224 #ifdef __cplusplus
18225 extern "C"
18226 {
18227 #endif
18228 /* We use char because int might match the return type of a gcc2
18229    builtin and then its argument prototype would still apply.  */
18230 char gethostbyname_r ();
18231 /* The GNU C library defines this for functions which it implements
18232     to always fail with ENOSYS.  Some functions are actually named
18233     something starting with __ and the normal name is an alias.  */
18234 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18235 choke me
18236 #else
18237 char (*f) () = gethostbyname_r;
18238 #endif
18239 #ifdef __cplusplus
18240 }
18241 #endif
18242
18243 int
18244 main ()
18245 {
18246 return f != gethostbyname_r;
18247   ;
18248   return 0;
18249 }
18250 _ACEOF
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253   (eval $ac_link) 2>conftest.er1
18254   ac_status=$?
18255   grep -v '^ *+' conftest.er1 >conftest.err
18256   rm -f conftest.er1
18257   cat conftest.err >&5
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); } &&
18260          { ac_try='test -z "$ac_c_werror_flag"
18261                          || test ! -s conftest.err'
18262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263   (eval $ac_try) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; } &&
18267          { ac_try='test -s conftest$ac_exeext'
18268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269   (eval $ac_try) 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; }; then
18273   ac_cv_func_gethostbyname_r=yes
18274 else
18275   echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 ac_cv_func_gethostbyname_r=no
18279 fi
18280 rm -f conftest.err conftest.$ac_objext \
18281       conftest$ac_exeext conftest.$ac_ext
18282 fi
18283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18284 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18285 if test $ac_cv_func_gethostbyname_r = yes; then
18286   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18287 echo "${ECHO_T}using libc's resolver" >&6
18288 else
18289
18290 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18291 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18292 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18293   echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295   ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-lnsl  $LIBS"
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h.  */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h.  */
18303
18304 /* Override any gcc2 internal prototype to avoid an error.  */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 /* We use char because int might match the return type of a gcc2
18309    builtin and then its argument prototype would still apply.  */
18310 char gethostbyname_r ();
18311 int
18312 main ()
18313 {
18314 gethostbyname_r ();
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321   (eval $ac_link) 2>conftest.er1
18322   ac_status=$?
18323   grep -v '^ *+' conftest.er1 >conftest.err
18324   rm -f conftest.er1
18325   cat conftest.err >&5
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } &&
18328          { ac_try='test -z "$ac_c_werror_flag"
18329                          || test ! -s conftest.err'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest$ac_exeext'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_cv_lib_nsl_gethostbyname_r=yes
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 ac_cv_lib_nsl_gethostbyname_r=no
18347 fi
18348 rm -f conftest.err conftest.$ac_objext \
18349       conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18353 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18354 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18355   cat >>confdefs.h <<_ACEOF
18356 #define HAVE_LIBNSL 1
18357 _ACEOF
18358
18359   LIBS="-lnsl $LIBS"
18360
18361 fi
18362
18363
18364 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18365 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18366 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lresolv  $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377
18378 /* Override any gcc2 internal prototype to avoid an error.  */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 /* We use char because int might match the return type of a gcc2
18383    builtin and then its argument prototype would still apply.  */
18384 char gethostbyname_r ();
18385 int
18386 main ()
18387 {
18388 gethostbyname_r ();
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395   (eval $ac_link) 2>conftest.er1
18396   ac_status=$?
18397   grep -v '^ *+' conftest.er1 >conftest.err
18398   rm -f conftest.er1
18399   cat conftest.err >&5
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); } &&
18402          { ac_try='test -z "$ac_c_werror_flag"
18403                          || test ! -s conftest.err'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; } &&
18409          { ac_try='test -s conftest$ac_exeext'
18410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411   (eval $ac_try) 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; }; then
18415   ac_cv_lib_resolv_gethostbyname_r=yes
18416 else
18417   echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 ac_cv_lib_resolv_gethostbyname_r=no
18421 fi
18422 rm -f conftest.err conftest.$ac_objext \
18423       conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18425 fi
18426 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18427 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18428 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18429   cat >>confdefs.h <<_ACEOF
18430 #define HAVE_LIBRESOLV 1
18431 _ACEOF
18432
18433   LIBS="-lresolv $LIBS"
18434
18435 fi
18436
18437 fi
18438
18439
18440
18441
18442
18443 for ac_func in inet_pton
18444 do
18445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18446 echo "$as_me:$LINENO: checking for $ac_func" >&5
18447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_var+set}\" = set"; then
18449   echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451   cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h.  */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h.  */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18459 #define $ac_func innocuous_$ac_func
18460
18461 /* System header to define __stub macros and hopefully few prototypes,
18462     which can conflict with char $ac_func (); below.
18463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464     <limits.h> exists even on freestanding compilers.  */
18465
18466 #ifdef __STDC__
18467 # include <limits.h>
18468 #else
18469 # include <assert.h>
18470 #endif
18471
18472 #undef $ac_func
18473
18474 /* Override any gcc2 internal prototype to avoid an error.  */
18475 #ifdef __cplusplus
18476 extern "C"
18477 {
18478 #endif
18479 /* We use char because int might match the return type of a gcc2
18480    builtin and then its argument prototype would still apply.  */
18481 char $ac_func ();
18482 /* The GNU C library defines this for functions which it implements
18483     to always fail with ENOSYS.  Some functions are actually named
18484     something starting with __ and the normal name is an alias.  */
18485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18486 choke me
18487 #else
18488 char (*f) () = $ac_func;
18489 #endif
18490 #ifdef __cplusplus
18491 }
18492 #endif
18493
18494 int
18495 main ()
18496 {
18497 return f != $ac_func;
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504   (eval $ac_link) 2>conftest.er1
18505   ac_status=$?
18506   grep -v '^ *+' conftest.er1 >conftest.err
18507   rm -f conftest.er1
18508   cat conftest.err >&5
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); } &&
18511          { ac_try='test -z "$ac_c_werror_flag"
18512                          || test ! -s conftest.err'
18513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514   (eval $ac_try) 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } &&
18518          { ac_try='test -s conftest$ac_exeext'
18519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520   (eval $ac_try) 2>&5
18521   ac_status=$?
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); }; }; then
18524   eval "$as_ac_var=yes"
18525 else
18526   echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529 eval "$as_ac_var=no"
18530 fi
18531 rm -f conftest.err conftest.$ac_objext \
18532       conftest$ac_exeext conftest.$ac_ext
18533 fi
18534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18536 if test `eval echo '${'$as_ac_var'}'` = yes; then
18537   cat >>confdefs.h <<_ACEOF
18538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18539 _ACEOF
18540  cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_INET_PTON 1
18542 _ACEOF
18543
18544 fi
18545 done
18546
18547
18548 for ac_func in inet_ntop
18549 do
18550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18551 echo "$as_me:$LINENO: checking for $ac_func" >&5
18552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18553 if eval "test \"\${$as_ac_var+set}\" = set"; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556   cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18564 #define $ac_func innocuous_$ac_func
18565
18566 /* System header to define __stub macros and hopefully few prototypes,
18567     which can conflict with char $ac_func (); below.
18568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18569     <limits.h> exists even on freestanding compilers.  */
18570
18571 #ifdef __STDC__
18572 # include <limits.h>
18573 #else
18574 # include <assert.h>
18575 #endif
18576
18577 #undef $ac_func
18578
18579 /* Override any gcc2 internal prototype to avoid an error.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 {
18583 #endif
18584 /* We use char because int might match the return type of a gcc2
18585    builtin and then its argument prototype would still apply.  */
18586 char $ac_func ();
18587 /* The GNU C library defines this for functions which it implements
18588     to always fail with ENOSYS.  Some functions are actually named
18589     something starting with __ and the normal name is an alias.  */
18590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18591 choke me
18592 #else
18593 char (*f) () = $ac_func;
18594 #endif
18595 #ifdef __cplusplus
18596 }
18597 #endif
18598
18599 int
18600 main ()
18601 {
18602 return f != $ac_func;
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609   (eval $ac_link) 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } &&
18616          { ac_try='test -z "$ac_c_werror_flag"
18617                          || test ! -s conftest.err'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; } &&
18623          { ac_try='test -s conftest$ac_exeext'
18624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   eval "$as_ac_var=yes"
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 eval "$as_ac_var=no"
18635 fi
18636 rm -f conftest.err conftest.$ac_objext \
18637       conftest$ac_exeext conftest.$ac_ext
18638 fi
18639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18641 if test `eval echo '${'$as_ac_var'}'` = yes; then
18642   cat >>confdefs.h <<_ACEOF
18643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18644 _ACEOF
18645  cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_INET_NTOP 1
18647 _ACEOF
18648
18649 fi
18650 done
18651
18652
18653 for ac_func in gethostbyname2
18654 do
18655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18656 echo "$as_me:$LINENO: checking for $ac_func" >&5
18657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18658 if eval "test \"\${$as_ac_var+set}\" = set"; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661   cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18669 #define $ac_func innocuous_$ac_func
18670
18671 /* System header to define __stub macros and hopefully few prototypes,
18672     which can conflict with char $ac_func (); below.
18673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18674     <limits.h> exists even on freestanding compilers.  */
18675
18676 #ifdef __STDC__
18677 # include <limits.h>
18678 #else
18679 # include <assert.h>
18680 #endif
18681
18682 #undef $ac_func
18683
18684 /* Override any gcc2 internal prototype to avoid an error.  */
18685 #ifdef __cplusplus
18686 extern "C"
18687 {
18688 #endif
18689 /* We use char because int might match the return type of a gcc2
18690    builtin and then its argument prototype would still apply.  */
18691 char $ac_func ();
18692 /* The GNU C library defines this for functions which it implements
18693     to always fail with ENOSYS.  Some functions are actually named
18694     something starting with __ and the normal name is an alias.  */
18695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18696 choke me
18697 #else
18698 char (*f) () = $ac_func;
18699 #endif
18700 #ifdef __cplusplus
18701 }
18702 #endif
18703
18704 int
18705 main ()
18706 {
18707 return f != $ac_func;
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714   (eval $ac_link) 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -z "$ac_c_werror_flag"
18722                          || test ! -s conftest.err'
18723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724   (eval $ac_try) 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; } &&
18728          { ac_try='test -s conftest$ac_exeext'
18729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730   (eval $ac_try) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   eval "$as_ac_var=yes"
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 eval "$as_ac_var=no"
18740 fi
18741 rm -f conftest.err conftest.$ac_objext \
18742       conftest$ac_exeext conftest.$ac_ext
18743 fi
18744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18746 if test `eval echo '${'$as_ac_var'}'` = yes; then
18747   cat >>confdefs.h <<_ACEOF
18748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18749 _ACEOF
18750  cat >>confdefs.h <<\_ACEOF
18751 #define HAVE_GETHOSTBYNAME2 1
18752 _ACEOF
18753
18754 fi
18755 done
18756
18757
18758 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18759 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18760 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18761   echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763   cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769 #include <sys/socket.h>
18770 int
18771 main ()
18772 {
18773 struct sockaddr s; s.sa_len;
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780   (eval $ac_compile) 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -z "$ac_c_werror_flag"
18788                          || test ! -s conftest.err'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } &&
18794          { ac_try='test -s conftest.$ac_objext'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; }; then
18800   ac_cv_struct_sockaddr_sa_len=yes
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_cv_struct_sockaddr_sa_len=no
18806 fi
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18808 fi
18809 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18810 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18811
18812  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18813
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE_SA_LEN 1
18816 _ACEOF
18817
18818  fi
18819
18820
18821 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18822 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18823 if test "${ac_cv_ipv6_support+set}" = set; then
18824   echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826   cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h.  */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h.  */
18832  #include <sys/types.h>
18833 #include <sys/socket.h>
18834 #include <netinet/in.h>
18835 int
18836 main ()
18837 {
18838 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18839  0;
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18846   (eval $ac_link) 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -z "$ac_c_werror_flag"
18854                          || test ! -s conftest.err'
18855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856   (eval $ac_try) 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; } &&
18860          { ac_try='test -s conftest$ac_exeext'
18861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862   (eval $ac_try) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; }; then
18866   ac_cv_ipv6_support=yes
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871 ac_cv_ipv6_support=no
18872 fi
18873 rm -f conftest.err conftest.$ac_objext \
18874       conftest$ac_exeext conftest.$ac_ext
18875 fi
18876 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18877 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18878
18879 if test "$ac_cv_ipv6_support" = yes; then
18880
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_IPV6 1
18883 _ACEOF
18884
18885 fi
18886
18887
18888
18889
18890 for ac_func in strftime
18891 do
18892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893 echo "$as_me:$LINENO: checking for $ac_func" >&5
18894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18895 if eval "test \"\${$as_ac_var+set}\" = set"; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18906 #define $ac_func innocuous_$ac_func
18907
18908 /* System header to define __stub macros and hopefully few prototypes,
18909     which can conflict with char $ac_func (); below.
18910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911     <limits.h> exists even on freestanding compilers.  */
18912
18913 #ifdef __STDC__
18914 # include <limits.h>
18915 #else
18916 # include <assert.h>
18917 #endif
18918
18919 #undef $ac_func
18920
18921 /* Override any gcc2 internal prototype to avoid an error.  */
18922 #ifdef __cplusplus
18923 extern "C"
18924 {
18925 #endif
18926 /* We use char because int might match the return type of a gcc2
18927    builtin and then its argument prototype would still apply.  */
18928 char $ac_func ();
18929 /* The GNU C library defines this for functions which it implements
18930     to always fail with ENOSYS.  Some functions are actually named
18931     something starting with __ and the normal name is an alias.  */
18932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18933 choke me
18934 #else
18935 char (*f) () = $ac_func;
18936 #endif
18937 #ifdef __cplusplus
18938 }
18939 #endif
18940
18941 int
18942 main ()
18943 {
18944 return f != $ac_func;
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18951   (eval $ac_link) 2>conftest.er1
18952   ac_status=$?
18953   grep -v '^ *+' conftest.er1 >conftest.err
18954   rm -f conftest.er1
18955   cat conftest.err >&5
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); } &&
18958          { ac_try='test -z "$ac_c_werror_flag"
18959                          || test ! -s conftest.err'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; } &&
18965          { ac_try='test -s conftest$ac_exeext'
18966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967   (eval $ac_try) 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; }; then
18971   eval "$as_ac_var=yes"
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 eval "$as_ac_var=no"
18977 fi
18978 rm -f conftest.err conftest.$ac_objext \
18979       conftest$ac_exeext conftest.$ac_ext
18980 fi
18981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18983 if test `eval echo '${'$as_ac_var'}'` = yes; then
18984   cat >>confdefs.h <<_ACEOF
18985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18986 _ACEOF
18987
18988 else
18989   # strftime is in -lintl on SCO UNIX.
18990 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18991 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995   ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lintl  $LIBS"
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003
19004 /* Override any gcc2 internal prototype to avoid an error.  */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 /* We use char because int might match the return type of a gcc2
19009    builtin and then its argument prototype would still apply.  */
19010 char strftime ();
19011 int
19012 main ()
19013 {
19014 strftime ();
19015   ;
19016   return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021   (eval $ac_link) 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } &&
19028          { ac_try='test -z "$ac_c_werror_flag"
19029                          || test ! -s conftest.err'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; } &&
19035          { ac_try='test -s conftest$ac_exeext'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; }; then
19041   ac_cv_lib_intl_strftime=yes
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 ac_cv_lib_intl_strftime=no
19047 fi
19048 rm -f conftest.err conftest.$ac_objext \
19049       conftest$ac_exeext conftest.$ac_ext
19050 LIBS=$ac_check_lib_save_LIBS
19051 fi
19052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19053 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19054 if test $ac_cv_lib_intl_strftime = yes; then
19055   cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_STRFTIME 1
19057 _ACEOF
19058
19059 LIBS="-lintl $LIBS"
19060 fi
19061
19062 fi
19063 done
19064
19065
19066 for ac_func in vprintf
19067 do
19068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19069 echo "$as_me:$LINENO: checking for $ac_func" >&5
19070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19071 if eval "test \"\${$as_ac_var+set}\" = set"; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074   cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19082 #define $ac_func innocuous_$ac_func
19083
19084 /* System header to define __stub macros and hopefully few prototypes,
19085     which can conflict with char $ac_func (); below.
19086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19087     <limits.h> exists even on freestanding compilers.  */
19088
19089 #ifdef __STDC__
19090 # include <limits.h>
19091 #else
19092 # include <assert.h>
19093 #endif
19094
19095 #undef $ac_func
19096
19097 /* Override any gcc2 internal prototype to avoid an error.  */
19098 #ifdef __cplusplus
19099 extern "C"
19100 {
19101 #endif
19102 /* We use char because int might match the return type of a gcc2
19103    builtin and then its argument prototype would still apply.  */
19104 char $ac_func ();
19105 /* The GNU C library defines this for functions which it implements
19106     to always fail with ENOSYS.  Some functions are actually named
19107     something starting with __ and the normal name is an alias.  */
19108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19109 choke me
19110 #else
19111 char (*f) () = $ac_func;
19112 #endif
19113 #ifdef __cplusplus
19114 }
19115 #endif
19116
19117 int
19118 main ()
19119 {
19120 return f != $ac_func;
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127   (eval $ac_link) 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -z "$ac_c_werror_flag"
19135                          || test ! -s conftest.err'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; } &&
19141          { ac_try='test -s conftest$ac_exeext'
19142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143   (eval $ac_try) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; }; then
19147   eval "$as_ac_var=yes"
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 eval "$as_ac_var=no"
19153 fi
19154 rm -f conftest.err conftest.$ac_objext \
19155       conftest$ac_exeext conftest.$ac_ext
19156 fi
19157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19159 if test `eval echo '${'$as_ac_var'}'` = yes; then
19160   cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19162 _ACEOF
19163
19164 echo "$as_me:$LINENO: checking for _doprnt" >&5
19165 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19166 if test "${ac_cv_func__doprnt+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19177 #define _doprnt innocuous__doprnt
19178
19179 /* System header to define __stub macros and hopefully few prototypes,
19180     which can conflict with char _doprnt (); below.
19181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182     <limits.h> exists even on freestanding compilers.  */
19183
19184 #ifdef __STDC__
19185 # include <limits.h>
19186 #else
19187 # include <assert.h>
19188 #endif
19189
19190 #undef _doprnt
19191
19192 /* Override any gcc2 internal prototype to avoid an error.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 {
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198    builtin and then its argument prototype would still apply.  */
19199 char _doprnt ();
19200 /* The GNU C library defines this for functions which it implements
19201     to always fail with ENOSYS.  Some functions are actually named
19202     something starting with __ and the normal name is an alias.  */
19203 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19204 choke me
19205 #else
19206 char (*f) () = _doprnt;
19207 #endif
19208 #ifdef __cplusplus
19209 }
19210 #endif
19211
19212 int
19213 main ()
19214 {
19215 return f != _doprnt;
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222   (eval $ac_link) 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_c_werror_flag"
19230                          || test ! -s conftest.err'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; } &&
19236          { ac_try='test -s conftest$ac_exeext'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; }; then
19242   ac_cv_func__doprnt=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_cv_func__doprnt=no
19248 fi
19249 rm -f conftest.err conftest.$ac_objext \
19250       conftest$ac_exeext conftest.$ac_ext
19251 fi
19252 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19254 if test $ac_cv_func__doprnt = yes; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_DOPRNT 1
19258 _ACEOF
19259
19260 fi
19261
19262 fi
19263 done
19264
19265
19266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19267 # for constant arguments.  Useless!
19268 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19269 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19270 if test "${ac_cv_working_alloca_h+set}" = set; then
19271   echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273   cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h.  */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h.  */
19279 #include <alloca.h>
19280 int
19281 main ()
19282 {
19283 char *p = (char *) alloca (2 * sizeof (int));
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290   (eval $ac_link) 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } &&
19297          { ac_try='test -z "$ac_c_werror_flag"
19298                          || test ! -s conftest.err'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; } &&
19304          { ac_try='test -s conftest$ac_exeext'
19305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306   (eval $ac_try) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_working_alloca_h=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_working_alloca_h=no
19316 fi
19317 rm -f conftest.err conftest.$ac_objext \
19318       conftest$ac_exeext conftest.$ac_ext
19319 fi
19320 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19321 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19322 if test $ac_cv_working_alloca_h = yes; then
19323
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE_ALLOCA_H 1
19326 _ACEOF
19327
19328 fi
19329
19330 echo "$as_me:$LINENO: checking for alloca" >&5
19331 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19332 if test "${ac_cv_func_alloca_works+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 #ifdef __GNUC__
19342 # define alloca __builtin_alloca
19343 #else
19344 # ifdef _MSC_VER
19345 #  include <malloc.h>
19346 #  define alloca _alloca
19347 # else
19348 #  if HAVE_ALLOCA_H
19349 #   include <alloca.h>
19350 #  else
19351 #   ifdef _AIX
19352  #pragma alloca
19353 #   else
19354 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19355 char *alloca ();
19356 #    endif
19357 #   endif
19358 #  endif
19359 # endif
19360 #endif
19361
19362 int
19363 main ()
19364 {
19365 char *p = (char *) alloca (1);
19366   ;
19367   return 0;
19368 }
19369 _ACEOF
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372   (eval $ac_link) 2>conftest.er1
19373   ac_status=$?
19374   grep -v '^ *+' conftest.er1 >conftest.err
19375   rm -f conftest.er1
19376   cat conftest.err >&5
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); } &&
19379          { ac_try='test -z "$ac_c_werror_flag"
19380                          || test ! -s conftest.err'
19381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest$ac_exeext'
19387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388   (eval $ac_try) 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_func_alloca_works=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_func_alloca_works=no
19398 fi
19399 rm -f conftest.err conftest.$ac_objext \
19400       conftest$ac_exeext conftest.$ac_ext
19401 fi
19402 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19403 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19404
19405 if test $ac_cv_func_alloca_works = yes; then
19406
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ALLOCA 1
19409 _ACEOF
19410
19411 else
19412   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19413 # that cause trouble.  Some versions do not even contain alloca or
19414 # contain a buggy version.  If you still want to use their alloca,
19415 # use ar to extract alloca.o from them instead of compiling alloca.c.
19416
19417 ALLOCA=alloca.$ac_objext
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define C_ALLOCA 1
19421 _ACEOF
19422
19423
19424 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19425 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19426 if test "${ac_cv_os_cray+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429   cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h.  */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h.  */
19435 #if defined(CRAY) && ! defined(CRAY2)
19436 webecray
19437 #else
19438 wenotbecray
19439 #endif
19440
19441 _ACEOF
19442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19443   $EGREP "webecray" >/dev/null 2>&1; then
19444   ac_cv_os_cray=yes
19445 else
19446   ac_cv_os_cray=no
19447 fi
19448 rm -f conftest*
19449
19450 fi
19451 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19452 echo "${ECHO_T}$ac_cv_os_cray" >&6
19453 if test $ac_cv_os_cray = yes; then
19454   for ac_func in _getb67 GETB67 getb67; do
19455     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19456 echo "$as_me:$LINENO: checking for $ac_func" >&5
19457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19458 if eval "test \"\${$as_ac_var+set}\" = set"; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19469 #define $ac_func innocuous_$ac_func
19470
19471 /* System header to define __stub macros and hopefully few prototypes,
19472     which can conflict with char $ac_func (); below.
19473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19474     <limits.h> exists even on freestanding compilers.  */
19475
19476 #ifdef __STDC__
19477 # include <limits.h>
19478 #else
19479 # include <assert.h>
19480 #endif
19481
19482 #undef $ac_func
19483
19484 /* Override any gcc2 internal prototype to avoid an error.  */
19485 #ifdef __cplusplus
19486 extern "C"
19487 {
19488 #endif
19489 /* We use char because int might match the return type of a gcc2
19490    builtin and then its argument prototype would still apply.  */
19491 char $ac_func ();
19492 /* The GNU C library defines this for functions which it implements
19493     to always fail with ENOSYS.  Some functions are actually named
19494     something starting with __ and the normal name is an alias.  */
19495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19496 choke me
19497 #else
19498 char (*f) () = $ac_func;
19499 #endif
19500 #ifdef __cplusplus
19501 }
19502 #endif
19503
19504 int
19505 main ()
19506 {
19507 return f != $ac_func;
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514   (eval $ac_link) 2>conftest.er1
19515   ac_status=$?
19516   grep -v '^ *+' conftest.er1 >conftest.err
19517   rm -f conftest.er1
19518   cat conftest.err >&5
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); } &&
19521          { ac_try='test -z "$ac_c_werror_flag"
19522                          || test ! -s conftest.err'
19523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524   (eval $ac_try) 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; } &&
19528          { ac_try='test -s conftest$ac_exeext'
19529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530   (eval $ac_try) 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); }; }; then
19534   eval "$as_ac_var=yes"
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539 eval "$as_ac_var=no"
19540 fi
19541 rm -f conftest.err conftest.$ac_objext \
19542       conftest$ac_exeext conftest.$ac_ext
19543 fi
19544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19546 if test `eval echo '${'$as_ac_var'}'` = yes; then
19547
19548 cat >>confdefs.h <<_ACEOF
19549 #define CRAY_STACKSEG_END $ac_func
19550 _ACEOF
19551
19552     break
19553 fi
19554
19555   done
19556 fi
19557
19558 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19559 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19560 if test "${ac_cv_c_stack_direction+set}" = set; then
19561   echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563   if test "$cross_compiling" = yes; then
19564   ac_cv_c_stack_direction=0
19565 else
19566   cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572 int
19573 find_stack_direction ()
19574 {
19575   static char *addr = 0;
19576   auto char dummy;
19577   if (addr == 0)
19578     {
19579       addr = &dummy;
19580       return find_stack_direction ();
19581     }
19582   else
19583     return (&dummy > addr) ? 1 : -1;
19584 }
19585
19586 int
19587 main ()
19588 {
19589   exit (find_stack_direction () < 0);
19590 }
19591 _ACEOF
19592 rm -f conftest$ac_exeext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594   (eval $ac_link) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599   (eval $ac_try) 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; }; then
19603   ac_cv_c_stack_direction=1
19604 else
19605   echo "$as_me: program exited with status $ac_status" >&5
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ( exit $ac_status )
19610 ac_cv_c_stack_direction=-1
19611 fi
19612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19613 fi
19614 fi
19615 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19617
19618 cat >>confdefs.h <<_ACEOF
19619 #define STACK_DIRECTION $ac_cv_c_stack_direction
19620 _ACEOF
19621
19622
19623 fi
19624
19625 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19626 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19627 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19628 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19629   echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631   ac_check_lib_save_LIBS=$LIBS
19632 LIBS="-lsun  $LIBS"
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639
19640 /* Override any gcc2 internal prototype to avoid an error.  */
19641 #ifdef __cplusplus
19642 extern "C"
19643 #endif
19644 /* We use char because int might match the return type of a gcc2
19645    builtin and then its argument prototype would still apply.  */
19646 char getmntent ();
19647 int
19648 main ()
19649 {
19650 getmntent ();
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext conftest$ac_exeext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19657   (eval $ac_link) 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } &&
19664          { ac_try='test -z "$ac_c_werror_flag"
19665                          || test ! -s conftest.err'
19666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667   (eval $ac_try) 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; } &&
19671          { ac_try='test -s conftest$ac_exeext'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677   ac_cv_lib_sun_getmntent=yes
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 ac_cv_lib_sun_getmntent=no
19683 fi
19684 rm -f conftest.err conftest.$ac_objext \
19685       conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19687 fi
19688 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19689 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19690 if test $ac_cv_lib_sun_getmntent = yes; then
19691   LIBS="-lsun $LIBS"
19692 else
19693   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19694 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19695 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   ac_check_lib_save_LIBS=$LIBS
19699 LIBS="-lseq  $LIBS"
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706
19707 /* Override any gcc2 internal prototype to avoid an error.  */
19708 #ifdef __cplusplus
19709 extern "C"
19710 #endif
19711 /* We use char because int might match the return type of a gcc2
19712    builtin and then its argument prototype would still apply.  */
19713 char getmntent ();
19714 int
19715 main ()
19716 {
19717 getmntent ();
19718   ;
19719   return 0;
19720 }
19721 _ACEOF
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19724   (eval $ac_link) 2>conftest.er1
19725   ac_status=$?
19726   grep -v '^ *+' conftest.er1 >conftest.err
19727   rm -f conftest.er1
19728   cat conftest.err >&5
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); } &&
19731          { ac_try='test -z "$ac_c_werror_flag"
19732                          || test ! -s conftest.err'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; } &&
19738          { ac_try='test -s conftest$ac_exeext'
19739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740   (eval $ac_try) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   ac_cv_lib_seq_getmntent=yes
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749 ac_cv_lib_seq_getmntent=no
19750 fi
19751 rm -f conftest.err conftest.$ac_objext \
19752       conftest$ac_exeext conftest.$ac_ext
19753 LIBS=$ac_check_lib_save_LIBS
19754 fi
19755 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19756 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19757 if test $ac_cv_lib_seq_getmntent = yes; then
19758   LIBS="-lseq $LIBS"
19759 else
19760   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19761 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19762 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   ac_check_lib_save_LIBS=$LIBS
19766 LIBS="-lgen  $LIBS"
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773
19774 /* Override any gcc2 internal prototype to avoid an error.  */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 /* We use char because int might match the return type of a gcc2
19779    builtin and then its argument prototype would still apply.  */
19780 char getmntent ();
19781 int
19782 main ()
19783 {
19784 getmntent ();
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791   (eval $ac_link) 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } &&
19798          { ac_try='test -z "$ac_c_werror_flag"
19799                          || test ! -s conftest.err'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest$ac_exeext'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_lib_gen_getmntent=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ac_cv_lib_gen_getmntent=no
19817 fi
19818 rm -f conftest.err conftest.$ac_objext \
19819       conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19821 fi
19822 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19823 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19824 if test $ac_cv_lib_gen_getmntent = yes; then
19825   LIBS="-lgen $LIBS"
19826 fi
19827
19828 fi
19829
19830 fi
19831
19832
19833 for ac_func in getmntent
19834 do
19835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19836 echo "$as_me:$LINENO: checking for $ac_func" >&5
19837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_var+set}\" = set"; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19849 #define $ac_func innocuous_$ac_func
19850
19851 /* System header to define __stub macros and hopefully few prototypes,
19852     which can conflict with char $ac_func (); below.
19853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19854     <limits.h> exists even on freestanding compilers.  */
19855
19856 #ifdef __STDC__
19857 # include <limits.h>
19858 #else
19859 # include <assert.h>
19860 #endif
19861
19862 #undef $ac_func
19863
19864 /* Override any gcc2 internal prototype to avoid an error.  */
19865 #ifdef __cplusplus
19866 extern "C"
19867 {
19868 #endif
19869 /* We use char because int might match the return type of a gcc2
19870    builtin and then its argument prototype would still apply.  */
19871 char $ac_func ();
19872 /* The GNU C library defines this for functions which it implements
19873     to always fail with ENOSYS.  Some functions are actually named
19874     something starting with __ and the normal name is an alias.  */
19875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19876 choke me
19877 #else
19878 char (*f) () = $ac_func;
19879 #endif
19880 #ifdef __cplusplus
19881 }
19882 #endif
19883
19884 int
19885 main ()
19886 {
19887 return f != $ac_func;
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19894   (eval $ac_link) 2>conftest.er1
19895   ac_status=$?
19896   grep -v '^ *+' conftest.er1 >conftest.err
19897   rm -f conftest.er1
19898   cat conftest.err >&5
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); } &&
19901          { ac_try='test -z "$ac_c_werror_flag"
19902                          || test ! -s conftest.err'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; } &&
19908          { ac_try='test -s conftest$ac_exeext'
19909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910   (eval $ac_try) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; }; then
19914   eval "$as_ac_var=yes"
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 eval "$as_ac_var=no"
19920 fi
19921 rm -f conftest.err conftest.$ac_objext \
19922       conftest$ac_exeext conftest.$ac_ext
19923 fi
19924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19926 if test `eval echo '${'$as_ac_var'}'` = yes; then
19927   cat >>confdefs.h <<_ACEOF
19928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19929 _ACEOF
19930
19931 fi
19932 done
19933
19934
19935 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19936 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19937 if test "${ac_cv_func_closedir_void+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   if test "$cross_compiling" = yes; then
19941   ac_cv_func_closedir_void=yes
19942 else
19943   cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19949 $ac_includes_default
19950 #include <$ac_header_dirent>
19951 #ifndef __cplusplus
19952 int closedir ();
19953 #endif
19954
19955 int
19956 main ()
19957 {
19958 exit (closedir (opendir (".")) != 0);
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest$ac_exeext
19964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19965   (eval $ac_link) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970   (eval $ac_try) 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); }; }; then
19974   ac_cv_func_closedir_void=no
19975 else
19976   echo "$as_me: program exited with status $ac_status" >&5
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ( exit $ac_status )
19981 ac_cv_func_closedir_void=yes
19982 fi
19983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19984 fi
19985 fi
19986 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19987 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19988 if test $ac_cv_func_closedir_void = yes; then
19989
19990 cat >>confdefs.h <<\_ACEOF
19991 #define CLOSEDIR_VOID 1
19992 _ACEOF
19993
19994 fi
19995
19996 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19997 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19998 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   if test "$cross_compiling" = yes; then
20002   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20003 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20004    { (exit 1); exit 1; }; }
20005 else
20006   cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 #if HAVE_UNISTD_H
20013 # include <unistd.h>
20014 #endif
20015
20016 int
20017 main ()
20018 {
20019 /* If this system has a BSD-style setpgrp which takes arguments,
20020   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20021   exit successfully. */
20022   exit (setpgrp (1,1) == -1 ? 0 : 1);
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest$ac_exeext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20029   (eval $ac_link) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034   (eval $ac_try) 2>&5
20035   ac_status=$?
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); }; }; then
20038   ac_cv_func_setpgrp_void=no
20039 else
20040   echo "$as_me: program exited with status $ac_status" >&5
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ( exit $ac_status )
20045 ac_cv_func_setpgrp_void=yes
20046 fi
20047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20048 fi
20049 fi
20050 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20051 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20052 if test $ac_cv_func_setpgrp_void = yes; then
20053
20054 cat >>confdefs.h <<\_ACEOF
20055 #define SETPGRP_VOID 1
20056 _ACEOF
20057
20058 fi
20059                       # AC_FUNC_FNMATCH    dnl use local version
20060
20061
20062 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20063 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20064 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20065   echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067   ac_check_lib_save_LIBS=$LIBS
20068 LIBS="-lxpg4  $LIBS"
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075
20076 /* Override any gcc2 internal prototype to avoid an error.  */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 /* We use char because int might match the return type of a gcc2
20081    builtin and then its argument prototype would still apply.  */
20082 char setlocale ();
20083 int
20084 main ()
20085 {
20086 setlocale ();
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext conftest$ac_exeext
20092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20093   (eval $ac_link) 2>conftest.er1
20094   ac_status=$?
20095   grep -v '^ *+' conftest.er1 >conftest.err
20096   rm -f conftest.er1
20097   cat conftest.err >&5
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } &&
20100          { ac_try='test -z "$ac_c_werror_flag"
20101                          || test ! -s conftest.err'
20102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103   (eval $ac_try) 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); }; } &&
20107          { ac_try='test -s conftest$ac_exeext'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   ac_cv_lib_xpg4_setlocale=yes
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ac_cv_lib_xpg4_setlocale=no
20119 fi
20120 rm -f conftest.err conftest.$ac_objext \
20121       conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20123 fi
20124 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20125 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20126 if test $ac_cv_lib_xpg4_setlocale = yes; then
20127   LIBS="$LIBS -lxpg4"
20128 fi
20129
20130
20131
20132
20133 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20134 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20135 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lsun  $LIBS"
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146
20147 /* Override any gcc2 internal prototype to avoid an error.  */
20148 #ifdef __cplusplus
20149 extern "C"
20150 #endif
20151 /* We use char because int might match the return type of a gcc2
20152    builtin and then its argument prototype would still apply.  */
20153 char getpwnam ();
20154 int
20155 main ()
20156 {
20157 getpwnam ();
20158   ;
20159   return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20164   (eval $ac_link) 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } &&
20171          { ac_try='test -z "$ac_c_werror_flag"
20172                          || test ! -s conftest.err'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; } &&
20178          { ac_try='test -s conftest$ac_exeext'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   ac_cv_lib_sun_getpwnam=yes
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ac_cv_lib_sun_getpwnam=no
20190 fi
20191 rm -f conftest.err conftest.$ac_objext \
20192       conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20194 fi
20195 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20196 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20197 if test $ac_cv_lib_sun_getpwnam = yes; then
20198   cat >>confdefs.h <<_ACEOF
20199 #define HAVE_LIBSUN 1
20200 _ACEOF
20201
20202   LIBS="-lsun $LIBS"
20203
20204 fi
20205
20206
20207
20208 for ac_header in zlib.h
20209 do
20210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20212   echo "$as_me:$LINENO: checking for $ac_header" >&5
20213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20215   echo $ECHO_N "(cached) $ECHO_C" >&6
20216 fi
20217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20219 else
20220   # Is the header compilable?
20221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229 $ac_includes_default
20230 #include <$ac_header>
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234   (eval $ac_compile) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_c_werror_flag"
20242                          || test ! -s conftest.err'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest.$ac_objext'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; }; then
20254   ac_header_compiler=yes
20255 else
20256   echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ac_header_compiler=no
20260 fi
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20263 echo "${ECHO_T}$ac_header_compiler" >&6
20264
20265 # Is the header present?
20266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 #include <$ac_header>
20275 _ACEOF
20276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20278   ac_status=$?
20279   grep -v '^ *+' conftest.er1 >conftest.err
20280   rm -f conftest.er1
20281   cat conftest.err >&5
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } >/dev/null; then
20284   if test -s conftest.err; then
20285     ac_cpp_err=$ac_c_preproc_warn_flag
20286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20287   else
20288     ac_cpp_err=
20289   fi
20290 else
20291   ac_cpp_err=yes
20292 fi
20293 if test -z "$ac_cpp_err"; then
20294   ac_header_preproc=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299   ac_header_preproc=no
20300 fi
20301 rm -f conftest.err conftest.$ac_ext
20302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20303 echo "${ECHO_T}$ac_header_preproc" >&6
20304
20305 # So?  What about this header?
20306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20307   yes:no: )
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20312     ac_header_preproc=yes
20313     ;;
20314   no:yes:* )
20315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20327     (
20328       cat <<\_ASBOX
20329 ## ------------------------------------------ ##
20330 ## Report this to the AC_PACKAGE_NAME lists.  ##
20331 ## ------------------------------------------ ##
20332 _ASBOX
20333     ) |
20334       sed "s/^/$as_me: WARNING:     /" >&2
20335     ;;
20336 esac
20337 echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340   echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342   eval "$as_ac_Header=\$ac_header_preproc"
20343 fi
20344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20346
20347 fi
20348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20349   cat >>confdefs.h <<_ACEOF
20350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20351 _ACEOF
20352
20353 fi
20354
20355 done
20356
20357 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20358 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20359 if test "${ac_cv_lib_z_deflate+set}" = set; then
20360   echo $ECHO_N "(cached) $ECHO_C" >&6
20361 else
20362   ac_check_lib_save_LIBS=$LIBS
20363 LIBS="-lz  $LIBS"
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370
20371 /* Override any gcc2 internal prototype to avoid an error.  */
20372 #ifdef __cplusplus
20373 extern "C"
20374 #endif
20375 /* We use char because int might match the return type of a gcc2
20376    builtin and then its argument prototype would still apply.  */
20377 char deflate ();
20378 int
20379 main ()
20380 {
20381 deflate ();
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388   (eval $ac_link) 2>conftest.er1
20389   ac_status=$?
20390   grep -v '^ *+' conftest.er1 >conftest.err
20391   rm -f conftest.er1
20392   cat conftest.err >&5
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } &&
20395          { ac_try='test -z "$ac_c_werror_flag"
20396                          || test ! -s conftest.err'
20397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398   (eval $ac_try) 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); }; } &&
20402          { ac_try='test -s conftest$ac_exeext'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_cv_lib_z_deflate=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_lib_z_deflate=no
20414 fi
20415 rm -f conftest.err conftest.$ac_objext \
20416       conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20418 fi
20419 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20420 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20421 if test $ac_cv_lib_z_deflate = yes; then
20422   FDLIBS="-lz"
20423 fi
20424
20425 have_zlib=no
20426 if test x$FDLIBS = x-lz; then
20427   cat >>confdefs.h <<\_ACEOF
20428 #define HAVE_LIBZ 1
20429 _ACEOF
20430
20431   have_zlib=yes
20432 fi
20433
20434 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20435   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20436 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20437 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 fi
20440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20441 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20442 else
20443   # Is the header compilable?
20444 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20445 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453 #include <sys/acl.h>
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457   (eval $ac_compile) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_header_compiler=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_header_compiler=no
20483 fi
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20486 echo "${ECHO_T}$ac_header_compiler" >&6
20487
20488 # Is the header present?
20489 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20490 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 #include <sys/acl.h>
20498 _ACEOF
20499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } >/dev/null; then
20507   if test -s conftest.err; then
20508     ac_cpp_err=$ac_c_preproc_warn_flag
20509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20510   else
20511     ac_cpp_err=
20512   fi
20513 else
20514   ac_cpp_err=yes
20515 fi
20516 if test -z "$ac_cpp_err"; then
20517   ac_header_preproc=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522   ac_header_preproc=no
20523 fi
20524 rm -f conftest.err conftest.$ac_ext
20525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6
20527
20528 # So?  What about this header?
20529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20530   yes:no: )
20531     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20534 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20535     ac_header_preproc=yes
20536     ;;
20537   no:yes:* )
20538     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20539 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20541 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20542     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20543 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20545 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20546     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20549 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20550     (
20551       cat <<\_ASBOX
20552 ## ------------------------------------------ ##
20553 ## Report this to the AC_PACKAGE_NAME lists.  ##
20554 ## ------------------------------------------ ##
20555 _ASBOX
20556     ) |
20557       sed "s/^/$as_me: WARNING:     /" >&2
20558     ;;
20559 esac
20560 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20561 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20562 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565   ac_cv_header_sys_acl_h=$ac_header_preproc
20566 fi
20567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20568 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20569
20570 fi
20571
20572
20573 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20574 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20575 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578   ac_check_lib_save_LIBS=$LIBS
20579 LIBS="-lacl  $LIBS"
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h.  */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h.  */
20586
20587 /* Override any gcc2 internal prototype to avoid an error.  */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 /* We use char because int might match the return type of a gcc2
20592    builtin and then its argument prototype would still apply.  */
20593 char acl_get_file ();
20594 int
20595 main ()
20596 {
20597 acl_get_file ();
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604   (eval $ac_link) 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_c_werror_flag"
20612                          || test ! -s conftest.err'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest$ac_exeext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ac_cv_lib_acl_acl_get_file=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_lib_acl_acl_get_file=no
20630 fi
20631 rm -f conftest.err conftest.$ac_objext \
20632       conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20634 fi
20635 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20636 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20637 if test $ac_cv_lib_acl_acl_get_file = yes; then
20638   FDLIBS="-lacl $FDLIBS"
20639 fi
20640
20641 have_acl=no
20642 if test $ac_cv_lib_acl_acl_get_file = yes; then
20643    cat >>confdefs.h <<\_ACEOF
20644 #define HAVE_ACL 1
20645 _ACEOF
20646
20647    have_acl=yes
20648 fi
20649
20650 PTHREAD_LIB=""
20651 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20652 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20653 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656   ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lpthread  $LIBS"
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664
20665 /* Override any gcc2 internal prototype to avoid an error.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 /* We use char because int might match the return type of a gcc2
20670    builtin and then its argument prototype would still apply.  */
20671 char pthread_create ();
20672 int
20673 main ()
20674 {
20675 pthread_create ();
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682   (eval $ac_link) 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } &&
20689          { ac_try='test -z "$ac_c_werror_flag"
20690                          || test ! -s conftest.err'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; } &&
20696          { ac_try='test -s conftest$ac_exeext'
20697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698   (eval $ac_try) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; }; then
20702   ac_cv_lib_pthread_pthread_create=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ac_cv_lib_pthread_pthread_create=no
20708 fi
20709 rm -f conftest.err conftest.$ac_objext \
20710       conftest$ac_exeext conftest.$ac_ext
20711 LIBS=$ac_check_lib_save_LIBS
20712 fi
20713 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20714 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20715 if test $ac_cv_lib_pthread_pthread_create = yes; then
20716   PTHREAD_LIB="-lpthread"
20717 else
20718   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20719 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20720 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723   ac_check_lib_save_LIBS=$LIBS
20724 LIBS="-lpthreads  $LIBS"
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731
20732 /* Override any gcc2 internal prototype to avoid an error.  */
20733 #ifdef __cplusplus
20734 extern "C"
20735 #endif
20736 /* We use char because int might match the return type of a gcc2
20737    builtin and then its argument prototype would still apply.  */
20738 char pthread_create ();
20739 int
20740 main ()
20741 {
20742 pthread_create ();
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749   (eval $ac_link) 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } &&
20756          { ac_try='test -z "$ac_c_werror_flag"
20757                          || test ! -s conftest.err'
20758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759   (eval $ac_try) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; } &&
20763          { ac_try='test -s conftest$ac_exeext'
20764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765   (eval $ac_try) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; }; then
20769   ac_cv_lib_pthreads_pthread_create=yes
20770 else
20771   echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 ac_cv_lib_pthreads_pthread_create=no
20775 fi
20776 rm -f conftest.err conftest.$ac_objext \
20777       conftest$ac_exeext conftest.$ac_ext
20778 LIBS=$ac_check_lib_save_LIBS
20779 fi
20780 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20781 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20782 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20783   PTHREAD_LIB="-lpthreads"
20784 else
20785   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20786 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20787 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   ac_check_lib_save_LIBS=$LIBS
20791 LIBS="-lc_r  $LIBS"
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798
20799 /* Override any gcc2 internal prototype to avoid an error.  */
20800 #ifdef __cplusplus
20801 extern "C"
20802 #endif
20803 /* We use char because int might match the return type of a gcc2
20804    builtin and then its argument prototype would still apply.  */
20805 char pthread_create ();
20806 int
20807 main ()
20808 {
20809 pthread_create ();
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816   (eval $ac_link) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"
20824                          || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest$ac_exeext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_lib_c_r_pthread_create=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 ac_cv_lib_c_r_pthread_create=no
20842 fi
20843 rm -f conftest.err conftest.$ac_objext \
20844       conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20846 fi
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20848 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20849 if test $ac_cv_lib_c_r_pthread_create = yes; then
20850   PTHREAD_LIB="-lc_r"
20851 else
20852   echo "$as_me:$LINENO: checking for pthread_create" >&5
20853 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20854 if test "${ac_cv_func_pthread_create+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857   cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20865 #define pthread_create innocuous_pthread_create
20866
20867 /* System header to define __stub macros and hopefully few prototypes,
20868     which can conflict with char pthread_create (); below.
20869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20870     <limits.h> exists even on freestanding compilers.  */
20871
20872 #ifdef __STDC__
20873 # include <limits.h>
20874 #else
20875 # include <assert.h>
20876 #endif
20877
20878 #undef pthread_create
20879
20880 /* Override any gcc2 internal prototype to avoid an error.  */
20881 #ifdef __cplusplus
20882 extern "C"
20883 {
20884 #endif
20885 /* We use char because int might match the return type of a gcc2
20886    builtin and then its argument prototype would still apply.  */
20887 char pthread_create ();
20888 /* The GNU C library defines this for functions which it implements
20889     to always fail with ENOSYS.  Some functions are actually named
20890     something starting with __ and the normal name is an alias.  */
20891 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20892 choke me
20893 #else
20894 char (*f) () = pthread_create;
20895 #endif
20896 #ifdef __cplusplus
20897 }
20898 #endif
20899
20900 int
20901 main ()
20902 {
20903 return f != pthread_create;
20904   ;
20905   return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910   (eval $ac_link) 2>conftest.er1
20911   ac_status=$?
20912   grep -v '^ *+' conftest.er1 >conftest.err
20913   rm -f conftest.er1
20914   cat conftest.err >&5
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } &&
20917          { ac_try='test -z "$ac_c_werror_flag"
20918                          || test ! -s conftest.err'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; } &&
20924          { ac_try='test -s conftest$ac_exeext'
20925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926   (eval $ac_try) 2>&5
20927   ac_status=$?
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); }; }; then
20930   ac_cv_func_pthread_create=yes
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935 ac_cv_func_pthread_create=no
20936 fi
20937 rm -f conftest.err conftest.$ac_objext \
20938       conftest$ac_exeext conftest.$ac_ext
20939 fi
20940 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20941 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20942
20943
20944 fi
20945
20946
20947 fi
20948
20949
20950 fi
20951
20952
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define FDLIBS 1
20956 _ACEOF
20957
20958
20959
20960 CFLAGS=${CFLAGS--O}
20961 LDFLAGS=${LDFLAGS--O}
20962 DB_LIBS="${SQL_LFLAGS}"
20963
20964 CPPFLAGS="$CPPFLAGS"
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979 OBJLIST=
20980
20981
20982 lld="lld"
20983 llu="llu"
20984
20985 WCFLAGS=
20986 WLDFLAGS=
20987
20988 #
20989 # Finally we set appropriate distribution specific
20990 #  variables and defaults
20991 #
20992 # PFILES are platform specific files
20993 PFILES="platforms/Makefile"
20994 PSCMD="ps -e"
20995 WIN32=
20996 MACOSX=
20997 hostname=`uname -n | cut -d '.' -f 1`
20998 case "$DISTNAME" in
20999 aix)
21000         DISTVER=`uname -r`
21001         PSCMD="ps -e -o pid,comm"
21002         PFILES="${PFILES} \
21003            platforms/aix/Makefile"
21004         TAPEDRIVE="/dev/rmt0.1"
21005   ;;
21006 alpha)
21007         DISTVER=`uname -r`
21008         PTHREAD_LIB="-lpthread -lexc"
21009         if test "${CC}" = "gcc" ; then
21010            lld="lld"
21011            llu="llu"
21012         else
21013            lld="ld"
21014            llu="lu"
21015         fi
21016         TAPEDRIVE="/dev/nrmt0"
21017   ;;
21018 bsdi)
21019         DISTVER=`uname -a |awk '{print $3}'`
21020         TAPEDRIVE="/dev/nrmt0"
21021         PTHREAD_LIB="-pthread"
21022         CFLAGS="${CFLAGS} -pthread"
21023         PSCMD="ps -x -o pid,command"
21024         lld="qd"
21025         llu="qu"
21026         PFILES="${PFILES} \
21027             platforms/bsdi/Makefile \
21028             platforms/bsdi/bacula-fd \
21029             platforms/bsdi/bacula-sd \
21030             platforms/bsdi/bacula-dir"
21031         largefile_support="yes"
21032   ;;
21033 cygwin)
21034         DISTVER=`uname -a |awk '{print $3}'`
21035         TAPEDRIVE="/dev/nrst0"
21036         WIN32=win32
21037         WCFLAGS="-mwindows"
21038         WLDFLAGS="-mwindows"
21039   ;;
21040 darwin)
21041         DISTVER=`uname -r`
21042         TAPEDRIVE="/dev/nst0"
21043         PSCMD="ps -e -o pid,command"
21044         MACOSX=macosx
21045         PFILES="${PFILES} \
21046            platforms/darwin/Makefile"
21047   ;;
21048 debian)
21049         DISTVER=`cat /etc/debian_version`
21050         TAPEDRIVE="/dev/nrst0"
21051         PSCMD="ps -e -o pid,command"
21052   ;;
21053 freebsd)
21054         DISTVER=`uname -a |awk '{print $3}'`
21055         VER=`echo $DISTVER | cut -c 1`
21056         if test x$VER = x4 ; then
21057            PTHREAD_LIB="-pthread"
21058            CFLAGS="${CFLAGS} -pthread"
21059         fi
21060         lld="qd"
21061         llu="qu"
21062         TAPEDRIVE="/dev/nrsa0"
21063         PSCMD="ps -x -o pid,command"
21064         PFILES="${PFILES} \
21065             platforms/freebsd/Makefile \
21066             platforms/freebsd/bacula-fd \
21067             platforms/freebsd/bacula-sd \
21068             platforms/freebsd/bacula-dir"
21069         largefile_support="yes"
21070   ;;
21071 hpux)
21072         PSCMD="UNIX95=1 ps -e -o pid,comm"
21073         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21074         DISTVER=`uname -r`
21075         TAPEDRIVE="/dev/rmt/0hnb"
21076   ;;
21077 irix)
21078         DISTVER=`uname -r`
21079         TAPEDRIVE="/dev/rmt/0cbn"
21080         PSCMD="ps -e -o pid,comm"
21081         PFILES="${PFILES} \
21082             platforms/irix/Makefile \
21083             platforms/irix/bacula-fd \
21084             platforms/irix/bacula-sd \
21085             platforms/irix/bacula-dir"
21086   ;;
21087 netbsd)
21088         DISTVER=`uname -a |awk '{print $3}'`
21089         lld="qd"
21090         llu="qu"
21091         TAPEDRIVE="/dev/nrst0"
21092         PSCMD="ps -a -o pid,command"
21093         PTHREAD_LIB="-pthread"
21094         CFLAGS="${CFLAGS} -pthread"
21095   ;;
21096 openbsd)
21097         DISTVER=`uname -a |awk '{print $3}'`
21098         lld="qd"
21099         llu="qu"
21100         TAPEDRIVE="/dev/nrst0"
21101         PSCMD="ps -ax -o pid,command"
21102         PTHREAD_LIB="-pthread"
21103         CFLAGS="${CFLAGS} -pthread"
21104         PFILES="${PFILES} \
21105             platforms/openbsd/Makefile \
21106             platforms/openbsd/bacula-fd \
21107             platforms/openbsd/bacula-sd \
21108             platforms/openbsd/bacula-dir"
21109   ;;
21110 redhat)
21111         if test -f /etc/whitebox-release ; then
21112            f=/etc/whitebox-release
21113         else
21114            f=/etc/redhat-release
21115         fi
21116         if test `cat $f | grep release |\
21117                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21118            DISTVER="Enterprise "`cat $f | grep release |\
21119                     cut -f 6 -d ' '`
21120         else
21121             DISTVER=`cat /etc/redhat-release | grep release |\
21122                      cut -f 5 -d ' '`
21123         fi
21124         TAPEDRIVE="/dev/nst0"
21125         PSCMD="ps -e -o pid,command"
21126         PFILES="${PFILES} \
21127             platforms/redhat/Makefile \
21128             platforms/redhat/bacula-fd \
21129             platforms/redhat/bacula-sd \
21130             platforms/redhat/bacula-dir \
21131             platforms/redhat/bacula.spec \
21132             "
21133         hostname=`hostname -s`
21134   ;;
21135 mandrake)
21136         DISTVER=`cat /etc/mandrake-release | grep release |\
21137            cut -f 5 -d ' '`
21138         TAPEDRIVE="/dev/nst0"
21139         PSCMD="ps -e -o pid,command"
21140         PFILES="${PFILES} \
21141             platforms/mandrake/Makefile \
21142             platforms/mandrake/bacula-fd \
21143             platforms/mandrake/bacula-sd \
21144             platforms/mandrake/bacula-dir \
21145             platforms/mandrake/bacula.spec \
21146             "
21147   ;;
21148 gentoo)
21149         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21150         TAPEDRIVE="/dev/nst0"
21151         PSCMD="ps -e -o pid,command"
21152         PFILES="${PFILES} \
21153             platforms/gentoo/Makefile \
21154          platforms/gentoo/bacula-init \
21155             platforms/gentoo/bacula-fd \
21156             platforms/gentoo/bacula-sd \
21157             platforms/gentoo/bacula-dir"
21158   ;;
21159 slackware)
21160         DISTVER=`cat /etc/slackware-version`
21161         TAPEDRIVE="/dev/nst0"
21162         PSCMD="ps -e -o pid,command"
21163         PFILES="${PFILES} \
21164             platforms/slackware/Makefile \
21165             platforms/slackware/rc.bacula-fd \
21166             platforms/slackware/rc.bacula-sd \
21167             platforms/slackware/rc.bacula-dir\
21168             platforms/slackware/functions.bacula"
21169   ;;
21170 solaris)
21171         DISTVER=`uname -r`
21172         TAPEDRIVE="/dev/rmt/0cbn"
21173         PSCMD="ps -e -o pid,comm"
21174         PFILES="${PFILES} \
21175             platforms/solaris/Makefile \
21176             platforms/solaris/bacula-fd \
21177             platforms/solaris/bacula-sd \
21178             platforms/solaris/bacula-dir"
21179         if test x$DISTVER = x5.6 ; then
21180             cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_OLD_SOCKOPT 1
21182 _ACEOF
21183
21184         fi
21185   ;;
21186 suse)
21187         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21188             cut -f 3 -d ' '`
21189         TAPEDRIVE="/dev/nst0"
21190         PSCMD="ps -e -o pid,command"
21191         PFILES="${PFILES} \
21192             platforms/suse/Makefile \
21193             platforms/suse/bacula-fd \
21194             platforms/suse/bacula-sd \
21195             platforms/suse/bacula-dir \
21196             platforms/suse/bacula \
21197             platforms/suse/bacula.spec"
21198   ;;
21199 suse5)
21200         DISTNAME=suse
21201         DISTVER=5.x
21202         TAPEDRIVE="/dev/nst0"
21203         PSCMD="ps -e -o pid,command"
21204         PFILES="${PFILES} \
21205             platforms/suse/Makefile \
21206             platforms/suse/bacula-fd \
21207             platforms/suse/bacula-sd \
21208             platforms/suse/bacula-dir"
21209   ;;
21210 unknown)
21211         DISTVER=unknown
21212         TAPEDRIVE="/dev/nst0"
21213   ;;
21214 *)
21215   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21216   ;;
21217 esac
21218
21219
21220
21221 LIBS="$PTHREAD_LIB $LIBS"
21222
21223 cat >>confdefs.h <<_ACEOF
21224 #define lld "$lld"
21225 _ACEOF
21226
21227 cat >>confdefs.h <<_ACEOF
21228 #define llu "$llu"
21229 _ACEOF
21230
21231
21232
21233
21234
21235
21236
21237
21238 MCOMMON=./autoconf/Make.common
21239
21240
21241 if test "x${subsysdir}" = "x${sbindir}" ; then
21242    echo " "
21243    echo " "
21244    echo "You have set both --sbindir and --with-subsys-dir"
21245    echo "  equal to: ${subsysdir} "
21246    echo "This is not permitted. Please reconfigure."
21247    echo " "
21248    echo "Aborting configuration ..."
21249    echo " "
21250    echo " "
21251    exit 1
21252 fi
21253
21254                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 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"
21255           ac_config_commands="$ac_config_commands default"
21256 cat >confcache <<\_ACEOF
21257 # This file is a shell script that caches the results of configure
21258 # tests run on this system so they can be shared between configure
21259 # scripts and configure runs, see configure's option --config-cache.
21260 # It is not useful on other systems.  If it contains results you don't
21261 # want to keep, you may remove or edit it.
21262 #
21263 # config.status only pays attention to the cache file if you give it
21264 # the --recheck option to rerun configure.
21265 #
21266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21268 # following values.
21269
21270 _ACEOF
21271
21272 # The following way of writing the cache mishandles newlines in values,
21273 # but we know of no workaround that is simple, portable, and efficient.
21274 # So, don't put newlines in cache variables' values.
21275 # Ultrix sh set writes to stderr and can't be redirected directly,
21276 # and sets the high bit in the cache file unless we assign to the vars.
21277 {
21278   (set) 2>&1 |
21279     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21280     *ac_space=\ *)
21281       # `set' does not quote correctly, so add quotes (double-quote
21282       # substitution turns \\\\ into \\, and sed turns \\ into \).
21283       sed -n \
21284         "s/'/'\\\\''/g;
21285           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21286       ;;
21287     *)
21288       # `set' quotes correctly as required by POSIX, so do not add quotes.
21289       sed -n \
21290         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21291       ;;
21292     esac;
21293 } |
21294   sed '
21295      t clear
21296      : clear
21297      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21298      t end
21299      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21300      : end' >>confcache
21301 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21302   if test -w $cache_file; then
21303     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21304     cat confcache >$cache_file
21305   else
21306     echo "not updating unwritable cache $cache_file"
21307   fi
21308 fi
21309 rm -f confcache
21310
21311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21312 # Let make expand exec_prefix.
21313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21314
21315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21317 # trailing colons and then remove the whole line if VPATH becomes empty
21318 # (actually we leave an empty line to preserve line numbers).
21319 if test "x$srcdir" = x.; then
21320   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21321 s/:*\$(srcdir):*/:/;
21322 s/:*\${srcdir}:*/:/;
21323 s/:*@srcdir@:*/:/;
21324 s/^\([^=]*=[     ]*\):*/\1/;
21325 s/:*$//;
21326 s/^[^=]*=[       ]*$//;
21327 }'
21328 fi
21329
21330 DEFS=-DHAVE_CONFIG_H
21331
21332 ac_libobjs=
21333 ac_ltlibobjs=
21334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21335   # 1. Remove the extension, and $U if already installed.
21336   ac_i=`echo "$ac_i" |
21337          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21338   # 2. Add them.
21339   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21340   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21341 done
21342 LIBOBJS=$ac_libobjs
21343
21344 LTLIBOBJS=$ac_ltlibobjs
21345
21346
21347
21348 : ${CONFIG_STATUS=./config.status}
21349 ac_clean_files_save=$ac_clean_files
21350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21351 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21352 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21353 cat >$CONFIG_STATUS <<_ACEOF
21354 #! $SHELL
21355 # Generated by $as_me.
21356 # Run this file to recreate the current configuration.
21357 # Compiler output produced by configure, useful for debugging
21358 # configure, is in config.log if it exists.
21359
21360 debug=false
21361 ac_cs_recheck=false
21362 ac_cs_silent=false
21363 SHELL=\${CONFIG_SHELL-$SHELL}
21364 _ACEOF
21365
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21367 ## --------------------- ##
21368 ## M4sh Initialization.  ##
21369 ## --------------------- ##
21370
21371 # Be Bourne compatible
21372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21373   emulate sh
21374   NULLCMD=:
21375   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21376   # is contrary to our usage.  Disable this feature.
21377   alias -g '${1+"$@"}'='"$@"'
21378 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21379   set -o posix
21380 fi
21381 DUALCASE=1; export DUALCASE # for MKS sh
21382
21383 # Support unset when possible.
21384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21385   as_unset=unset
21386 else
21387   as_unset=false
21388 fi
21389
21390
21391 # Work around bugs in pre-3.0 UWIN ksh.
21392 $as_unset ENV MAIL MAILPATH
21393 PS1='$ '
21394 PS2='> '
21395 PS4='+ '
21396
21397 # NLS nuisances.
21398 for as_var in \
21399   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21400   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21401   LC_TELEPHONE LC_TIME
21402 do
21403   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21404     eval $as_var=C; export $as_var
21405   else
21406     $as_unset $as_var
21407   fi
21408 done
21409
21410 # Required to use basename.
21411 if expr a : '\(a\)' >/dev/null 2>&1; then
21412   as_expr=expr
21413 else
21414   as_expr=false
21415 fi
21416
21417 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21418   as_basename=basename
21419 else
21420   as_basename=false
21421 fi
21422
21423
21424 # Name of the executable.
21425 as_me=`$as_basename "$0" ||
21426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21427          X"$0" : 'X\(//\)$' \| \
21428          X"$0" : 'X\(/\)$' \| \
21429          .     : '\(.\)' 2>/dev/null ||
21430 echo X/"$0" |
21431     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21432           /^X\/\(\/\/\)$/{ s//\1/; q; }
21433           /^X\/\(\/\).*/{ s//\1/; q; }
21434           s/.*/./; q'`
21435
21436
21437 # PATH needs CR, and LINENO needs CR and PATH.
21438 # Avoid depending upon Character Ranges.
21439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21442 as_cr_digits='0123456789'
21443 as_cr_alnum=$as_cr_Letters$as_cr_digits
21444
21445 # The user is always right.
21446 if test "${PATH_SEPARATOR+set}" != set; then
21447   echo "#! /bin/sh" >conf$$.sh
21448   echo  "exit 0"   >>conf$$.sh
21449   chmod +x conf$$.sh
21450   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21451     PATH_SEPARATOR=';'
21452   else
21453     PATH_SEPARATOR=:
21454   fi
21455   rm -f conf$$.sh
21456 fi
21457
21458
21459   as_lineno_1=$LINENO
21460   as_lineno_2=$LINENO
21461   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21462   test "x$as_lineno_1" != "x$as_lineno_2" &&
21463   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21464   # Find who we are.  Look in the path if we contain no path at all
21465   # relative or not.
21466   case $0 in
21467     *[\\/]* ) as_myself=$0 ;;
21468     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21469 for as_dir in $PATH
21470 do
21471   IFS=$as_save_IFS
21472   test -z "$as_dir" && as_dir=.
21473   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21474 done
21475
21476        ;;
21477   esac
21478   # We did not find ourselves, most probably we were run as `sh COMMAND'
21479   # in which case we are not to be found in the path.
21480   if test "x$as_myself" = x; then
21481     as_myself=$0
21482   fi
21483   if test ! -f "$as_myself"; then
21484     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21485 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21486    { (exit 1); exit 1; }; }
21487   fi
21488   case $CONFIG_SHELL in
21489   '')
21490     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21491 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21492 do
21493   IFS=$as_save_IFS
21494   test -z "$as_dir" && as_dir=.
21495   for as_base in sh bash ksh sh5; do
21496          case $as_dir in
21497          /*)
21498            if ("$as_dir/$as_base" -c '
21499   as_lineno_1=$LINENO
21500   as_lineno_2=$LINENO
21501   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21502   test "x$as_lineno_1" != "x$as_lineno_2" &&
21503   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21504              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21505              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21506              CONFIG_SHELL=$as_dir/$as_base
21507              export CONFIG_SHELL
21508              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21509            fi;;
21510          esac
21511        done
21512 done
21513 ;;
21514   esac
21515
21516   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21517   # uniformly replaced by the line number.  The first 'sed' inserts a
21518   # line-number line before each line; the second 'sed' does the real
21519   # work.  The second script uses 'N' to pair each line-number line
21520   # with the numbered line, and appends trailing '-' during
21521   # substitution so that $LINENO is not a special case at line end.
21522   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21523   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21524   sed '=' <$as_myself |
21525     sed '
21526       N
21527       s,$,-,
21528       : loop
21529       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21530       t loop
21531       s,-$,,
21532       s,^['$as_cr_digits']*\n,,
21533     ' >$as_me.lineno &&
21534   chmod +x $as_me.lineno ||
21535     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21536 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21537    { (exit 1); exit 1; }; }
21538
21539   # Don't try to exec as it changes $[0], causing all sort of problems
21540   # (the dirname of $[0] is not the place where we might find the
21541   # original and so on.  Autoconf is especially sensible to this).
21542   . ./$as_me.lineno
21543   # Exit status is that of the last command.
21544   exit
21545 }
21546
21547
21548 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21549   *c*,-n*) ECHO_N= ECHO_C='
21550 ' ECHO_T='      ' ;;
21551   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21552   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21553 esac
21554
21555 if expr a : '\(a\)' >/dev/null 2>&1; then
21556   as_expr=expr
21557 else
21558   as_expr=false
21559 fi
21560
21561 rm -f conf$$ conf$$.exe conf$$.file
21562 echo >conf$$.file
21563 if ln -s conf$$.file conf$$ 2>/dev/null; then
21564   # We could just check for DJGPP; but this test a) works b) is more generic
21565   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21566   if test -f conf$$.exe; then
21567     # Don't use ln at all; we don't have any links
21568     as_ln_s='cp -p'
21569   else
21570     as_ln_s='ln -s'
21571   fi
21572 elif ln conf$$.file conf$$ 2>/dev/null; then
21573   as_ln_s=ln
21574 else
21575   as_ln_s='cp -p'
21576 fi
21577 rm -f conf$$ conf$$.exe conf$$.file
21578
21579 if mkdir -p . 2>/dev/null; then
21580   as_mkdir_p=:
21581 else
21582   test -d ./-p && rmdir ./-p
21583   as_mkdir_p=false
21584 fi
21585
21586 as_executable_p="test -f"
21587
21588 # Sed expression to map a string onto a valid CPP name.
21589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21590
21591 # Sed expression to map a string onto a valid variable name.
21592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21593
21594
21595 # IFS
21596 # We need space, tab and new line, in precisely that order.
21597 as_nl='
21598 '
21599 IFS="   $as_nl"
21600
21601 # CDPATH.
21602 $as_unset CDPATH
21603
21604 exec 6>&1
21605
21606 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21607 # report actual input values of CONFIG_FILES etc. instead of their
21608 # values after options handling.  Logging --version etc. is OK.
21609 exec 5>>config.log
21610 {
21611   echo
21612   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21613 ## Running $as_me. ##
21614 _ASBOX
21615 } >&5
21616 cat >&5 <<_CSEOF
21617
21618 This file was extended by $as_me, which was
21619 generated by GNU Autoconf 2.59.  Invocation command line was
21620
21621   CONFIG_FILES    = $CONFIG_FILES
21622   CONFIG_HEADERS  = $CONFIG_HEADERS
21623   CONFIG_LINKS    = $CONFIG_LINKS
21624   CONFIG_COMMANDS = $CONFIG_COMMANDS
21625   $ $0 $@
21626
21627 _CSEOF
21628 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21629 echo >&5
21630 _ACEOF
21631
21632 # Files that config.status was made for.
21633 if test -n "$ac_config_files"; then
21634   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21635 fi
21636
21637 if test -n "$ac_config_headers"; then
21638   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21639 fi
21640
21641 if test -n "$ac_config_links"; then
21642   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21643 fi
21644
21645 if test -n "$ac_config_commands"; then
21646   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21647 fi
21648
21649 cat >>$CONFIG_STATUS <<\_ACEOF
21650
21651 ac_cs_usage="\
21652 \`$as_me' instantiates files from templates according to the
21653 current configuration.
21654
21655 Usage: $0 [OPTIONS] [FILE]...
21656
21657   -h, --help       print this help, then exit
21658   -V, --version    print version number, then exit
21659   -q, --quiet      do not print progress messages
21660   -d, --debug      don't remove temporary files
21661       --recheck    update $as_me by reconfiguring in the same conditions
21662   --file=FILE[:TEMPLATE]
21663                    instantiate the configuration file FILE
21664   --header=FILE[:TEMPLATE]
21665                    instantiate the configuration header FILE
21666
21667 Configuration files:
21668 $config_files
21669
21670 Configuration headers:
21671 $config_headers
21672
21673 Configuration commands:
21674 $config_commands
21675
21676 Report bugs to <bug-autoconf@gnu.org>."
21677 _ACEOF
21678
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 ac_cs_version="\\
21681 config.status
21682 configured by $0, generated by GNU Autoconf 2.59,
21683   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21684
21685 Copyright (C) 2003 Free Software Foundation, Inc.
21686 This config.status script is free software; the Free Software Foundation
21687 gives unlimited permission to copy, distribute and modify it."
21688 srcdir=$srcdir
21689 INSTALL="$INSTALL"
21690 _ACEOF
21691
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 # If no file are specified by the user, then we need to provide default
21694 # value.  By we need to know if files were specified by the user.
21695 ac_need_defaults=:
21696 while test $# != 0
21697 do
21698   case $1 in
21699   --*=*)
21700     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21701     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21702     ac_shift=:
21703     ;;
21704   -*)
21705     ac_option=$1
21706     ac_optarg=$2
21707     ac_shift=shift
21708     ;;
21709   *) # This is not an option, so the user has probably given explicit
21710      # arguments.
21711      ac_option=$1
21712      ac_need_defaults=false;;
21713   esac
21714
21715   case $ac_option in
21716   # Handling of the options.
21717 _ACEOF
21718 cat >>$CONFIG_STATUS <<\_ACEOF
21719   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21720     ac_cs_recheck=: ;;
21721   --version | --vers* | -V )
21722     echo "$ac_cs_version"; exit 0 ;;
21723   --he | --h)
21724     # Conflict between --help and --header
21725     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21726 Try \`$0 --help' for more information." >&5
21727 echo "$as_me: error: ambiguous option: $1
21728 Try \`$0 --help' for more information." >&2;}
21729    { (exit 1); exit 1; }; };;
21730   --help | --hel | -h )
21731     echo "$ac_cs_usage"; exit 0 ;;
21732   --debug | --d* | -d )
21733     debug=: ;;
21734   --file | --fil | --fi | --f )
21735     $ac_shift
21736     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21737     ac_need_defaults=false;;
21738   --header | --heade | --head | --hea )
21739     $ac_shift
21740     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21741     ac_need_defaults=false;;
21742   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21743   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21744     ac_cs_silent=: ;;
21745
21746   # This is an error.
21747   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21748 Try \`$0 --help' for more information." >&5
21749 echo "$as_me: error: unrecognized option: $1
21750 Try \`$0 --help' for more information." >&2;}
21751    { (exit 1); exit 1; }; } ;;
21752
21753   *) ac_config_targets="$ac_config_targets $1" ;;
21754
21755   esac
21756   shift
21757 done
21758
21759 ac_configure_extra_args=
21760
21761 if $ac_cs_silent; then
21762   exec 6>/dev/null
21763   ac_configure_extra_args="$ac_configure_extra_args --silent"
21764 fi
21765
21766 _ACEOF
21767 cat >>$CONFIG_STATUS <<_ACEOF
21768 if \$ac_cs_recheck; then
21769   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21770   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21771 fi
21772
21773 _ACEOF
21774
21775
21776
21777
21778
21779 cat >>$CONFIG_STATUS <<\_ACEOF
21780 for ac_config_target in $ac_config_targets
21781 do
21782   case "$ac_config_target" in
21783   # Handling of arguments.
21784   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21785   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21786   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21787   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21788   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21789   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21790   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21791   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21792   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21793   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21794   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21795   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21796   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21797   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21798   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21799   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21800   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21801   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21802   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21803   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21804   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21805   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21806   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21807   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21808   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21809   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21810   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21811   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21812   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21813   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21814   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21815   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21816   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21817   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21818   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21819   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21820   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21821   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21822   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21823   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21824   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21825   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21826   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21827   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21828   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21829   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21830   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21831   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21832   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21833   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21834   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21835   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21836   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21837   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21838   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21839   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21840   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21841   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21842   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21843   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21844   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21845   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21846   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21847   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21848   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21849   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21850   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21851   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21852   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21853   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21854   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21855   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21856   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21857   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21858   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21859   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21860   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21861   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21862   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21863   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21864   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21865   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21866   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21867   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21868   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21869   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21870   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21871   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21872   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21873   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21874   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21875   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21876   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21877   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
21878   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
21879   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21880   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21881   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21882   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21883 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21884    { (exit 1); exit 1; }; };;
21885   esac
21886 done
21887
21888 # If the user did not use the arguments to specify the items to instantiate,
21889 # then the envvar interface is used.  Set only those that are not.
21890 # We use the long form for the default assignment because of an extremely
21891 # bizarre bug on SunOS 4.1.3.
21892 if $ac_need_defaults; then
21893   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21894   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21895   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21896 fi
21897
21898 # Have a temporary directory for convenience.  Make it in the build tree
21899 # simply because there is no reason to put it here, and in addition,
21900 # creating and moving files from /tmp can sometimes cause problems.
21901 # Create a temporary directory, and hook for its removal unless debugging.
21902 $debug ||
21903 {
21904   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21905   trap '{ (exit 1); exit 1; }' 1 2 13 15
21906 }
21907
21908 # Create a (secure) tmp directory for tmp files.
21909
21910 {
21911   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21912   test -n "$tmp" && test -d "$tmp"
21913 }  ||
21914 {
21915   tmp=./confstat$$-$RANDOM
21916   (umask 077 && mkdir $tmp)
21917 } ||
21918 {
21919    echo "$me: cannot create a temporary directory in ." >&2
21920    { (exit 1); exit 1; }
21921 }
21922
21923 _ACEOF
21924
21925 cat >>$CONFIG_STATUS <<_ACEOF
21926
21927 #
21928 # CONFIG_FILES section.
21929 #
21930
21931 # No need to generate the scripts if there are no CONFIG_FILES.
21932 # This happens for instance when ./config.status config.h
21933 if test -n "\$CONFIG_FILES"; then
21934   # Protect against being on the right side of a sed subst in config.status.
21935   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21936    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21937 s,@SHELL@,$SHELL,;t t
21938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21944 s,@exec_prefix@,$exec_prefix,;t t
21945 s,@prefix@,$prefix,;t t
21946 s,@program_transform_name@,$program_transform_name,;t t
21947 s,@bindir@,$bindir,;t t
21948 s,@sbindir@,$sbindir,;t t
21949 s,@libexecdir@,$libexecdir,;t t
21950 s,@datadir@,$datadir,;t t
21951 s,@sysconfdir@,$sysconfdir,;t t
21952 s,@sharedstatedir@,$sharedstatedir,;t t
21953 s,@localstatedir@,$localstatedir,;t t
21954 s,@libdir@,$libdir,;t t
21955 s,@includedir@,$includedir,;t t
21956 s,@oldincludedir@,$oldincludedir,;t t
21957 s,@infodir@,$infodir,;t t
21958 s,@mandir@,$mandir,;t t
21959 s,@build_alias@,$build_alias,;t t
21960 s,@host_alias@,$host_alias,;t t
21961 s,@target_alias@,$target_alias,;t t
21962 s,@DEFS@,$DEFS,;t t
21963 s,@ECHO_C@,$ECHO_C,;t t
21964 s,@ECHO_N@,$ECHO_N,;t t
21965 s,@ECHO_T@,$ECHO_T,;t t
21966 s,@LIBS@,$LIBS,;t t
21967 s,@BUILD_DIR@,$BUILD_DIR,;t t
21968 s,@TRUEPRG@,$TRUEPRG,;t t
21969 s,@FALSEPRG@,$FALSEPRG,;t t
21970 s,@VERSION@,$VERSION,;t t
21971 s,@DATE@,$DATE,;t t
21972 s,@LSMDATE@,$LSMDATE,;t t
21973 s,@CC@,$CC,;t t
21974 s,@CFLAGS@,$CFLAGS,;t t
21975 s,@LDFLAGS@,$LDFLAGS,;t t
21976 s,@CPPFLAGS@,$CPPFLAGS,;t t
21977 s,@ac_ct_CC@,$ac_ct_CC,;t t
21978 s,@EXEEXT@,$EXEEXT,;t t
21979 s,@OBJEXT@,$OBJEXT,;t t
21980 s,@CXX@,$CXX,;t t
21981 s,@CXXFLAGS@,$CXXFLAGS,;t t
21982 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21983 s,@CPP@,$CPP,;t t
21984 s,@EGREP@,$EGREP,;t t
21985 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21986 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21987 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21988 s,@RANLIB@,$RANLIB,;t t
21989 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21990 s,@MV@,$MV,;t t
21991 s,@RM@,$RM,;t t
21992 s,@CP@,$CP,;t t
21993 s,@SED@,$SED,;t t
21994 s,@AWK@,$AWK,;t t
21995 s,@ECHO@,$ECHO,;t t
21996 s,@CMP@,$CMP,;t t
21997 s,@TBL@,$TBL,;t t
21998 s,@AR@,$AR,;t t
21999 s,@OPENSSL@,$OPENSSL,;t t
22000 s,@MTX@,$MTX,;t t
22001 s,@PKGCONFIG@,$PKGCONFIG,;t t
22002 s,@WXCONFIG@,$WXCONFIG,;t t
22003 s,@CDRECORD@,$CDRECORD,;t t
22004 s,@PIDOF@,$PIDOF,;t t
22005 s,@ARFLAGS@,$ARFLAGS,;t t
22006 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22007 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22008 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22009 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22010 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22011 s,@build@,$build,;t t
22012 s,@build_cpu@,$build_cpu,;t t
22013 s,@build_vendor@,$build_vendor,;t t
22014 s,@build_os@,$build_os,;t t
22015 s,@host@,$host,;t t
22016 s,@host_cpu@,$host_cpu,;t t
22017 s,@host_vendor@,$host_vendor,;t t
22018 s,@host_os@,$host_os,;t t
22019 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22020 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22021 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22022 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22023 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22024 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22025 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22026 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22027 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22028 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22029 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22030 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22031 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22032 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22033 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22034 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22035 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22036 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22037 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22038 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22039 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22040 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22041 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22042 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22043 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22044 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22045 s,@MSGFMT@,$MSGFMT,;t t
22046 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22047 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22048 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22049 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22050 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22051 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22052 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22053 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22054 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22055 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22056 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22057 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22058 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22059 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22060 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22061 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22062 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22063 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22064 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22065 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22066 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22067 s,@GNOME_DIR@,$GNOME_DIR,;t t
22068 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22069 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22070 s,@WX_DIR@,$WX_DIR,;t t
22071 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22072 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22073 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22074 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22075 s,@STATIC_FD@,$STATIC_FD,;t t
22076 s,@STATIC_SD@,$STATIC_SD,;t t
22077 s,@STATIC_DIR@,$STATIC_DIR,;t t
22078 s,@STATIC_CONS@,$STATIC_CONS,;t t
22079 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22080 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22081 s,@ALL_DIRS@,$ALL_DIRS,;t t
22082 s,@CONS_INC@,$CONS_INC,;t t
22083 s,@CONS_OBJ@,$CONS_OBJ,;t t
22084 s,@CONS_SRC@,$CONS_SRC,;t t
22085 s,@CONS_LIBS@,$CONS_LIBS,;t t
22086 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22087 s,@READLINE_SRC@,$READLINE_SRC,;t t
22088 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22089 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22090 s,@CDSTL@,$CDSTL,;t t
22091 s,@working_dir@,$working_dir,;t t
22092 s,@scriptdir@,$scriptdir,;t t
22093 s,@dump_email@,$dump_email,;t t
22094 s,@job_email@,$job_email,;t t
22095 s,@smtp_host@,$smtp_host,;t t
22096 s,@piddir@,$piddir,;t t
22097 s,@subsysdir@,$subsysdir,;t t
22098 s,@baseport@,$baseport,;t t
22099 s,@dir_port@,$dir_port,;t t
22100 s,@fd_port@,$fd_port,;t t
22101 s,@sd_port@,$sd_port,;t t
22102 s,@dir_password@,$dir_password,;t t
22103 s,@fd_password@,$fd_password,;t t
22104 s,@sd_password@,$sd_password,;t t
22105 s,@mon_dir_password@,$mon_dir_password,;t t
22106 s,@mon_fd_password@,$mon_fd_password,;t t
22107 s,@mon_sd_password@,$mon_sd_password,;t t
22108 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22109 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22110 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22111 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22112 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22113 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22114 s,@dir_user@,$dir_user,;t t
22115 s,@dir_group@,$dir_group,;t t
22116 s,@sd_user@,$sd_user,;t t
22117 s,@sd_group@,$sd_group,;t t
22118 s,@fd_user@,$fd_user,;t t
22119 s,@fd_group@,$fd_group,;t t
22120 s,@SBINPERM@,$SBINPERM,;t t
22121 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22122 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22123 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22124 s,@cats@,$cats,;t t
22125 s,@DB_NAME@,$DB_NAME,;t t
22126 s,@GETCONF@,$GETCONF,;t t
22127 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22128 s,@X_CFLAGS@,$X_CFLAGS,;t t
22129 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22130 s,@X_LIBS@,$X_LIBS,;t t
22131 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22132 s,@LIBOBJS@,$LIBOBJS,;t t
22133 s,@ALLOCA@,$ALLOCA,;t t
22134 s,@FDLIBS@,$FDLIBS,;t t
22135 s,@DEBUG@,$DEBUG,;t t
22136 s,@DINCLUDE@,$DINCLUDE,;t t
22137 s,@DLIB@,$DLIB,;t t
22138 s,@DB_LIBS@,$DB_LIBS,;t t
22139 s,@WCFLAGS@,$WCFLAGS,;t t
22140 s,@WLDFLAGS@,$WLDFLAGS,;t t
22141 s,@OBJLIST@,$OBJLIST,;t t
22142 s,@hostname@,$hostname,;t t
22143 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22144 s,@PSCMD@,$PSCMD,;t t
22145 s,@WIN32@,$WIN32,;t t
22146 s,@MACOSX@,$MACOSX,;t t
22147 s,@DISTNAME@,$DISTNAME,;t t
22148 s,@DISTVER@,$DISTVER,;t t
22149 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22150 /@MCOMMON@/r $MCOMMON
22151 s,@MCOMMON@,,;t t
22152 CEOF
22153
22154 _ACEOF
22155
22156   cat >>$CONFIG_STATUS <<\_ACEOF
22157   # Split the substitutions into bite-sized pieces for seds with
22158   # small command number limits, like on Digital OSF/1 and HP-UX.
22159   ac_max_sed_lines=48
22160   ac_sed_frag=1 # Number of current file.
22161   ac_beg=1 # First line for current file.
22162   ac_end=$ac_max_sed_lines # Line after last line for current file.
22163   ac_more_lines=:
22164   ac_sed_cmds=
22165   while $ac_more_lines; do
22166     if test $ac_beg -gt 1; then
22167       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22168     else
22169       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22170     fi
22171     if test ! -s $tmp/subs.frag; then
22172       ac_more_lines=false
22173     else
22174       # The purpose of the label and of the branching condition is to
22175       # speed up the sed processing (if there are no `@' at all, there
22176       # is no need to browse any of the substitutions).
22177       # These are the two extra sed commands mentioned above.
22178       (echo ':t
22179   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22180       if test -z "$ac_sed_cmds"; then
22181         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22182       else
22183         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22184       fi
22185       ac_sed_frag=`expr $ac_sed_frag + 1`
22186       ac_beg=$ac_end
22187       ac_end=`expr $ac_end + $ac_max_sed_lines`
22188     fi
22189   done
22190   if test -z "$ac_sed_cmds"; then
22191     ac_sed_cmds=cat
22192   fi
22193 fi # test -n "$CONFIG_FILES"
22194
22195 _ACEOF
22196 cat >>$CONFIG_STATUS <<\_ACEOF
22197 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22198   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22199   case $ac_file in
22200   - | *:- | *:-:* ) # input from stdin
22201         cat >$tmp/stdin
22202         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22203         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22204   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22205         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22206   * )   ac_file_in=$ac_file.in ;;
22207   esac
22208
22209   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22210   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212          X"$ac_file" : 'X\(//\)[^/]' \| \
22213          X"$ac_file" : 'X\(//\)$' \| \
22214          X"$ac_file" : 'X\(/\)' \| \
22215          .     : '\(.\)' 2>/dev/null ||
22216 echo X"$ac_file" |
22217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22219           /^X\(\/\/\)$/{ s//\1/; q; }
22220           /^X\(\/\).*/{ s//\1/; q; }
22221           s/.*/./; q'`
22222   { if $as_mkdir_p; then
22223     mkdir -p "$ac_dir"
22224   else
22225     as_dir="$ac_dir"
22226     as_dirs=
22227     while test ! -d "$as_dir"; do
22228       as_dirs="$as_dir $as_dirs"
22229       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22231          X"$as_dir" : 'X\(//\)[^/]' \| \
22232          X"$as_dir" : 'X\(//\)$' \| \
22233          X"$as_dir" : 'X\(/\)' \| \
22234          .     : '\(.\)' 2>/dev/null ||
22235 echo X"$as_dir" |
22236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22237           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22238           /^X\(\/\/\)$/{ s//\1/; q; }
22239           /^X\(\/\).*/{ s//\1/; q; }
22240           s/.*/./; q'`
22241     done
22242     test ! -n "$as_dirs" || mkdir $as_dirs
22243   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22244 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22245    { (exit 1); exit 1; }; }; }
22246
22247   ac_builddir=.
22248
22249 if test "$ac_dir" != .; then
22250   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22251   # A "../" for each directory in $ac_dir_suffix.
22252   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22253 else
22254   ac_dir_suffix= ac_top_builddir=
22255 fi
22256
22257 case $srcdir in
22258   .)  # No --srcdir option.  We are building in place.
22259     ac_srcdir=.
22260     if test -z "$ac_top_builddir"; then
22261        ac_top_srcdir=.
22262     else
22263        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22264     fi ;;
22265   [\\/]* | ?:[\\/]* )  # Absolute path.
22266     ac_srcdir=$srcdir$ac_dir_suffix;
22267     ac_top_srcdir=$srcdir ;;
22268   *) # Relative path.
22269     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22270     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22271 esac
22272
22273 # Do not use `cd foo && pwd` to compute absolute paths, because
22274 # the directories may not exist.
22275 case `pwd` in
22276 .) ac_abs_builddir="$ac_dir";;
22277 *)
22278   case "$ac_dir" in
22279   .) ac_abs_builddir=`pwd`;;
22280   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22281   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22282   esac;;
22283 esac
22284 case $ac_abs_builddir in
22285 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22286 *)
22287   case ${ac_top_builddir}. in
22288   .) ac_abs_top_builddir=$ac_abs_builddir;;
22289   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22290   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22291   esac;;
22292 esac
22293 case $ac_abs_builddir in
22294 .) ac_abs_srcdir=$ac_srcdir;;
22295 *)
22296   case $ac_srcdir in
22297   .) ac_abs_srcdir=$ac_abs_builddir;;
22298   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22299   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22300   esac;;
22301 esac
22302 case $ac_abs_builddir in
22303 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22304 *)
22305   case $ac_top_srcdir in
22306   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22307   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22308   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22309   esac;;
22310 esac
22311
22312
22313   case $INSTALL in
22314   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22315   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22316   esac
22317
22318   if test x"$ac_file" != x-; then
22319     { echo "$as_me:$LINENO: creating $ac_file" >&5
22320 echo "$as_me: creating $ac_file" >&6;}
22321     rm -f "$ac_file"
22322   fi
22323   # Let's still pretend it is `configure' which instantiates (i.e., don't
22324   # use $as_me), people would be surprised to read:
22325   #    /* config.h.  Generated by config.status.  */
22326   if test x"$ac_file" = x-; then
22327     configure_input=
22328   else
22329     configure_input="$ac_file.  "
22330   fi
22331   configure_input=$configure_input"Generated from `echo $ac_file_in |
22332                                      sed 's,.*/,,'` by configure."
22333
22334   # First look for the input files in the build tree, otherwise in the
22335   # src tree.
22336   ac_file_inputs=`IFS=:
22337     for f in $ac_file_in; do
22338       case $f in
22339       -) echo $tmp/stdin ;;
22340       [\\/$]*)
22341          # Absolute (can't be DOS-style, as IFS=:)
22342          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22343 echo "$as_me: error: cannot find input file: $f" >&2;}
22344    { (exit 1); exit 1; }; }
22345          echo "$f";;
22346       *) # Relative
22347          if test -f "$f"; then
22348            # Build tree
22349            echo "$f"
22350          elif test -f "$srcdir/$f"; then
22351            # Source tree
22352            echo "$srcdir/$f"
22353          else
22354            # /dev/null tree
22355            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22356 echo "$as_me: error: cannot find input file: $f" >&2;}
22357    { (exit 1); exit 1; }; }
22358          fi;;
22359       esac
22360     done` || { (exit 1); exit 1; }
22361 _ACEOF
22362 cat >>$CONFIG_STATUS <<_ACEOF
22363   sed "$ac_vpsub
22364 $extrasub
22365 _ACEOF
22366 cat >>$CONFIG_STATUS <<\_ACEOF
22367 :t
22368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22369 s,@configure_input@,$configure_input,;t t
22370 s,@srcdir@,$ac_srcdir,;t t
22371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22372 s,@top_srcdir@,$ac_top_srcdir,;t t
22373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22374 s,@builddir@,$ac_builddir,;t t
22375 s,@abs_builddir@,$ac_abs_builddir,;t t
22376 s,@top_builddir@,$ac_top_builddir,;t t
22377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22378 s,@INSTALL@,$ac_INSTALL,;t t
22379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22380   rm -f $tmp/stdin
22381   if test x"$ac_file" != x-; then
22382     mv $tmp/out $ac_file
22383   else
22384     cat $tmp/out
22385     rm -f $tmp/out
22386   fi
22387
22388 done
22389 _ACEOF
22390 cat >>$CONFIG_STATUS <<\_ACEOF
22391
22392 #
22393 # CONFIG_HEADER section.
22394 #
22395
22396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22398 #
22399 # ac_d sets the value in "#define NAME VALUE" lines.
22400 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22401 ac_dB='[         ].*$,\1#\2'
22402 ac_dC=' '
22403 ac_dD=',;t'
22404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22405 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22406 ac_uB='$,\1#\2define\3'
22407 ac_uC=' '
22408 ac_uD=',;t'
22409
22410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22411   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22412   case $ac_file in
22413   - | *:- | *:-:* ) # input from stdin
22414         cat >$tmp/stdin
22415         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22416         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22417   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22418         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22419   * )   ac_file_in=$ac_file.in ;;
22420   esac
22421
22422   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22423 echo "$as_me: creating $ac_file" >&6;}
22424
22425   # First look for the input files in the build tree, otherwise in the
22426   # src tree.
22427   ac_file_inputs=`IFS=:
22428     for f in $ac_file_in; do
22429       case $f in
22430       -) echo $tmp/stdin ;;
22431       [\\/$]*)
22432          # Absolute (can't be DOS-style, as IFS=:)
22433          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22434 echo "$as_me: error: cannot find input file: $f" >&2;}
22435    { (exit 1); exit 1; }; }
22436          # Do quote $f, to prevent DOS paths from being IFS'd.
22437          echo "$f";;
22438       *) # Relative
22439          if test -f "$f"; then
22440            # Build tree
22441            echo "$f"
22442          elif test -f "$srcdir/$f"; then
22443            # Source tree
22444            echo "$srcdir/$f"
22445          else
22446            # /dev/null tree
22447            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22448 echo "$as_me: error: cannot find input file: $f" >&2;}
22449    { (exit 1); exit 1; }; }
22450          fi;;
22451       esac
22452     done` || { (exit 1); exit 1; }
22453   # Remove the trailing spaces.
22454   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22455
22456 _ACEOF
22457
22458 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22459 # `conftest.undefs', that substitutes the proper values into
22460 # config.h.in to produce config.h.  The first handles `#define'
22461 # templates, and the second `#undef' templates.
22462 # And first: Protect against being on the right side of a sed subst in
22463 # config.status.  Protect against being in an unquoted here document
22464 # in config.status.
22465 rm -f conftest.defines conftest.undefs
22466 # Using a here document instead of a string reduces the quoting nightmare.
22467 # Putting comments in sed scripts is not portable.
22468 #
22469 # `end' is used to avoid that the second main sed command (meant for
22470 # 0-ary CPP macros) applies to n-ary macro definitions.
22471 # See the Autoconf documentation for `clear'.
22472 cat >confdef2sed.sed <<\_ACEOF
22473 s/[\\&,]/\\&/g
22474 s,[\\$`],\\&,g
22475 t clear
22476 : clear
22477 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22478 t end
22479 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22480 : end
22481 _ACEOF
22482 # If some macros were called several times there might be several times
22483 # the same #defines, which is useless.  Nevertheless, we may not want to
22484 # sort them, since we want the *last* AC-DEFINE to be honored.
22485 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22486 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22487 rm -f confdef2sed.sed
22488
22489 # This sed command replaces #undef with comments.  This is necessary, for
22490 # example, in the case of _POSIX_SOURCE, which is predefined and required
22491 # on some systems where configure will not decide to define it.
22492 cat >>conftest.undefs <<\_ACEOF
22493 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22494 _ACEOF
22495
22496 # Break up conftest.defines because some shells have a limit on the size
22497 # of here documents, and old seds have small limits too (100 cmds).
22498 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22499 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22500 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22501 echo '  :' >>$CONFIG_STATUS
22502 rm -f conftest.tail
22503 while grep . conftest.defines >/dev/null
22504 do
22505   # Write a limited-size here document to $tmp/defines.sed.
22506   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22507   # Speed up: don't consider the non `#define' lines.
22508   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22509   # Work around the forget-to-reset-the-flag bug.
22510   echo 't clr' >>$CONFIG_STATUS
22511   echo ': clr' >>$CONFIG_STATUS
22512   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22513   echo 'CEOF
22514   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22515   rm -f $tmp/in
22516   mv $tmp/out $tmp/in
22517 ' >>$CONFIG_STATUS
22518   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22519   rm -f conftest.defines
22520   mv conftest.tail conftest.defines
22521 done
22522 rm -f conftest.defines
22523 echo '  fi # grep' >>$CONFIG_STATUS
22524 echo >>$CONFIG_STATUS
22525
22526 # Break up conftest.undefs because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22529 rm -f conftest.tail
22530 while grep . conftest.undefs >/dev/null
22531 do
22532   # Write a limited-size here document to $tmp/undefs.sed.
22533   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22534   # Speed up: don't consider the non `#undef'
22535   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22536   # Work around the forget-to-reset-the-flag bug.
22537   echo 't clr' >>$CONFIG_STATUS
22538   echo ': clr' >>$CONFIG_STATUS
22539   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22540   echo 'CEOF
22541   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22542   rm -f $tmp/in
22543   mv $tmp/out $tmp/in
22544 ' >>$CONFIG_STATUS
22545   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22546   rm -f conftest.undefs
22547   mv conftest.tail conftest.undefs
22548 done
22549 rm -f conftest.undefs
22550
22551 cat >>$CONFIG_STATUS <<\_ACEOF
22552   # Let's still pretend it is `configure' which instantiates (i.e., don't
22553   # use $as_me), people would be surprised to read:
22554   #    /* config.h.  Generated by config.status.  */
22555   if test x"$ac_file" = x-; then
22556     echo "/* Generated by configure.  */" >$tmp/config.h
22557   else
22558     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22559   fi
22560   cat $tmp/in >>$tmp/config.h
22561   rm -f $tmp/in
22562   if test x"$ac_file" != x-; then
22563     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22564       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22565 echo "$as_me: $ac_file is unchanged" >&6;}
22566     else
22567       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569          X"$ac_file" : 'X\(//\)[^/]' \| \
22570          X"$ac_file" : 'X\(//\)$' \| \
22571          X"$ac_file" : 'X\(/\)' \| \
22572          .     : '\(.\)' 2>/dev/null ||
22573 echo X"$ac_file" |
22574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22576           /^X\(\/\/\)$/{ s//\1/; q; }
22577           /^X\(\/\).*/{ s//\1/; q; }
22578           s/.*/./; q'`
22579       { if $as_mkdir_p; then
22580     mkdir -p "$ac_dir"
22581   else
22582     as_dir="$ac_dir"
22583     as_dirs=
22584     while test ! -d "$as_dir"; do
22585       as_dirs="$as_dir $as_dirs"
22586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22588          X"$as_dir" : 'X\(//\)[^/]' \| \
22589          X"$as_dir" : 'X\(//\)$' \| \
22590          X"$as_dir" : 'X\(/\)' \| \
22591          .     : '\(.\)' 2>/dev/null ||
22592 echo X"$as_dir" |
22593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22595           /^X\(\/\/\)$/{ s//\1/; q; }
22596           /^X\(\/\).*/{ s//\1/; q; }
22597           s/.*/./; q'`
22598     done
22599     test ! -n "$as_dirs" || mkdir $as_dirs
22600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22602    { (exit 1); exit 1; }; }; }
22603
22604       rm -f $ac_file
22605       mv $tmp/config.h $ac_file
22606     fi
22607   else
22608     cat $tmp/config.h
22609     rm -f $tmp/config.h
22610   fi
22611 done
22612 _ACEOF
22613 cat >>$CONFIG_STATUS <<\_ACEOF
22614
22615 #
22616 # CONFIG_COMMANDS section.
22617 #
22618 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22619   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22620   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22621   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22622 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623          X"$ac_dest" : 'X\(//\)[^/]' \| \
22624          X"$ac_dest" : 'X\(//\)$' \| \
22625          X"$ac_dest" : 'X\(/\)' \| \
22626          .     : '\(.\)' 2>/dev/null ||
22627 echo X"$ac_dest" |
22628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22630           /^X\(\/\/\)$/{ s//\1/; q; }
22631           /^X\(\/\).*/{ s//\1/; q; }
22632           s/.*/./; q'`
22633   { if $as_mkdir_p; then
22634     mkdir -p "$ac_dir"
22635   else
22636     as_dir="$ac_dir"
22637     as_dirs=
22638     while test ! -d "$as_dir"; do
22639       as_dirs="$as_dir $as_dirs"
22640       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22642          X"$as_dir" : 'X\(//\)[^/]' \| \
22643          X"$as_dir" : 'X\(//\)$' \| \
22644          X"$as_dir" : 'X\(/\)' \| \
22645          .     : '\(.\)' 2>/dev/null ||
22646 echo X"$as_dir" |
22647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22649           /^X\(\/\/\)$/{ s//\1/; q; }
22650           /^X\(\/\).*/{ s//\1/; q; }
22651           s/.*/./; q'`
22652     done
22653     test ! -n "$as_dirs" || mkdir $as_dirs
22654   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22656    { (exit 1); exit 1; }; }; }
22657
22658   ac_builddir=.
22659
22660 if test "$ac_dir" != .; then
22661   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22662   # A "../" for each directory in $ac_dir_suffix.
22663   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22664 else
22665   ac_dir_suffix= ac_top_builddir=
22666 fi
22667
22668 case $srcdir in
22669   .)  # No --srcdir option.  We are building in place.
22670     ac_srcdir=.
22671     if test -z "$ac_top_builddir"; then
22672        ac_top_srcdir=.
22673     else
22674        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22675     fi ;;
22676   [\\/]* | ?:[\\/]* )  # Absolute path.
22677     ac_srcdir=$srcdir$ac_dir_suffix;
22678     ac_top_srcdir=$srcdir ;;
22679   *) # Relative path.
22680     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22681     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22682 esac
22683
22684 # Do not use `cd foo && pwd` to compute absolute paths, because
22685 # the directories may not exist.
22686 case `pwd` in
22687 .) ac_abs_builddir="$ac_dir";;
22688 *)
22689   case "$ac_dir" in
22690   .) ac_abs_builddir=`pwd`;;
22691   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22692   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22693   esac;;
22694 esac
22695 case $ac_abs_builddir in
22696 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22697 *)
22698   case ${ac_top_builddir}. in
22699   .) ac_abs_top_builddir=$ac_abs_builddir;;
22700   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22701   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22702   esac;;
22703 esac
22704 case $ac_abs_builddir in
22705 .) ac_abs_srcdir=$ac_srcdir;;
22706 *)
22707   case $ac_srcdir in
22708   .) ac_abs_srcdir=$ac_abs_builddir;;
22709   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22710   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22711   esac;;
22712 esac
22713 case $ac_abs_builddir in
22714 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22715 *)
22716   case $ac_top_srcdir in
22717   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22718   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22719   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22720   esac;;
22721 esac
22722
22723
22724   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22725 echo "$as_me: executing $ac_dest commands" >&6;}
22726   case $ac_dest in
22727     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22728  ;;
22729   esac
22730 done
22731 _ACEOF
22732
22733 cat >>$CONFIG_STATUS <<\_ACEOF
22734
22735 { (exit 0); exit 0; }
22736 _ACEOF
22737 chmod +x $CONFIG_STATUS
22738 ac_clean_files=$ac_clean_files_save
22739
22740
22741 # configure is writing to config.log, and then calls config.status.
22742 # config.status does its own redirection, appending to config.log.
22743 # Unfortunately, on DOS this fails, as config.log is still kept open
22744 # by configure, so config.status won't be able to write to it; its
22745 # output is simply discarded.  So we exec the FD to /dev/null,
22746 # effectively closing config.log, so it can be properly (re)opened and
22747 # appended to by config.status.  When coming back to configure, we
22748 # need to make the FD available again.
22749 if test "$no_create" != yes; then
22750   ac_cs_success=:
22751   ac_config_status_args=
22752   test "$silent" = yes &&
22753     ac_config_status_args="$ac_config_status_args --quiet"
22754   exec 5>/dev/null
22755   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22756   exec 5>>config.log
22757   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22758   # would make configure fail if this is the last instruction.
22759   $ac_cs_success || { (exit 1); exit 1; }
22760 fi
22761
22762
22763 cd scripts
22764 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22765 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22766 cd ..
22767
22768 c=src/cats
22769
22770 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22771 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22772
22773 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22774 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22775
22776 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22777 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22778
22779 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22780 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22781
22782 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22783 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22784
22785 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22786 chmod 755 $c/sqlite
22787 chmod 755 $c/mysql
22788
22789 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22790    largefile_support="yes"
22791 fi
22792
22793 #
22794 # A whole lot of hand springs to get the compiler version.
22795 #  This is because gcc changed the output in version 3.0
22796 #
22797 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22798 if test "x${CCVERSION}" = "x" ; then
22799   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22800 fi
22801 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22802 if test x"${CXXVERSION}" = x ; then
22803   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22804 fi
22805
22806 if test "x${subsysdir}" = "x${sbindir}" ; then
22807    echo " "
22808    echo " "
22809    echo "You have set --sbindir and --with-subsys-dir"
22810    echo "  both equal to: ${subsysdir} "
22811    echo "  This is not permitted. Please reconfigure."
22812    echo " "
22813    echo "Aborting configuration ..."
22814    echo " "
22815    echo " "
22816    exit 1
22817 fi
22818
22819 if test "x${db_name}" = "xInternal" ; then
22820    echo " "
22821    echo " "
22822    echo "You have not specified either --enable-client-only or one of the"
22823    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
22824    echo "  This is not permitted. Please reconfigure."
22825    echo " "
22826    echo "Aborting the configuration ..."
22827    echo " "
22828    echo " "
22829    exit 1
22830 fi
22831
22832 echo "
22833 Configuration on `date`:
22834
22835   Host:                       $host -- ${DISTNAME} ${DISTVER}
22836   Bacula version:             ${VERSION} (${DATE})
22837   Source code location:       ${srcdir}
22838   Install binaries:           ${sbindir}
22839   Install config files:       ${sysconfdir}
22840   Scripts directory:          ${scriptdir}
22841   Working directory:          ${working_dir}
22842   PID directory:              ${piddir}
22843   Subsys directory:           ${subsysdir}
22844   C Compiler:                 ${CC} ${CCVERSION}
22845   C++ Compiler:               ${CXX} ${CXXVERSION}
22846   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22847   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22848   Libraries:                  ${LIBS}
22849   Statically Linked Tools:    ${support_static_tools}
22850   Statically Linked FD:       ${support_static_fd}
22851   Statically Linked SD:       ${support_static_sd}
22852   Statically Linked DIR:      ${support_static_dir}
22853   Statically Linked CONS:     ${support_static_cons}
22854   Database type:              ${db_name}
22855   Database lib:               ${DB_LIBS}
22856
22857   Job Output Email:           ${job_email}
22858   Traceback Email:            ${dump_email}
22859   SMTP Host Address:          ${smtp_host}
22860
22861   Director Port:              ${dir_port}
22862   File daemon Port:           ${fd_port}
22863   Storage daemon Port:        ${sd_port}
22864
22865   Director User:              ${dir_user}
22866   Director Group:             ${dir_group}
22867   Storage Daemon User:        ${sd_user}
22868   Storage DaemonGroup:        ${sd_group}
22869   File Daemon User:           ${fd_user}
22870   File Daemon Group:          ${fd_group}
22871
22872   SQL binaries Directory      ${SQL_BINDIR}
22873
22874   Large file support:         $largefile_support
22875   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22876   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22877   TCP Wrappers support:       ${TCPW_MSG}
22878   ZLIB support:               ${have_zlib}
22879   enable-smartalloc:          ${support_smartalloc}
22880   enable-gnome:               ${support_gnome} ${gnome_version}
22881   enable-wx-console:          ${support_wx_console}
22882   enable-tray-monitor:        ${support_tray_monitor}
22883   client-only:                ${build_client_only}
22884   ACL support:                ${have_acl}
22885   Python support:             ${support_python} ${PYTHON_LIBS}
22886
22887   " > config.out
22888
22889 cat config.out
22890
22891 # old stuff
22892 # cweb support:               ${got_cweb} ${CWEB_SRC}
22893 # gmp support:                ${got_gmp} ${GMP_SRC}