]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
This commit was manufactured by cvs2svn to create 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 ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK 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 SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_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 DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS 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 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402 ac_aux_dir=
1403 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1404   if test -f $ac_dir/install-sh; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/install-sh -c"
1407     break
1408   elif test -f $ac_dir/install.sh; then
1409     ac_aux_dir=$ac_dir
1410     ac_install_sh="$ac_aux_dir/install.sh -c"
1411     break
1412   elif test -f $ac_dir/shtool; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/shtool install -c"
1415     break
1416   fi
1417 done
1418 if test -z "$ac_aux_dir"; then
1419   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426
1427           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1428
1429
1430
1431
1432
1433 for ac_prog in true
1434 do
1435   # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   case $TRUEPRG in
1443   [\\/]* | ?:[\\/]*)
1444   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1445   ;;
1446   *)
1447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461   ;;
1462 esac
1463 fi
1464 TRUEPRG=$ac_cv_path_TRUEPRG
1465
1466 if test -n "$TRUEPRG"; then
1467   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1468 echo "${ECHO_T}$TRUEPRG" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   test -n "$TRUEPRG" && break
1475 done
1476 test -n "$TRUEPRG" || TRUEPRG=":"
1477
1478 for ac_prog in false
1479 do
1480   # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   case $FALSEPRG in
1488   [\\/]* | ?:[\\/]*)
1489   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1490   ;;
1491   *)
1492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495   IFS=$as_save_IFS
1496   test -z "$as_dir" && as_dir=.
1497   for ac_exec_ext in '' $ac_executable_extensions; do
1498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501     break 2
1502   fi
1503 done
1504 done
1505
1506   ;;
1507 esac
1508 fi
1509 FALSEPRG=$ac_cv_path_FALSEPRG
1510
1511 if test -n "$FALSEPRG"; then
1512   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1513 echo "${ECHO_T}$FALSEPRG" >&6
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519   test -n "$FALSEPRG" && break
1520 done
1521 test -n "$FALSEPRG" || FALSEPRG=":"
1522
1523
1524 #AC_CANONICAL_HOST
1525
1526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 echo "configuring for bacula $VERSION ($DATE)"
1530
1531
1532
1533 ac_ext=c
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 if test -n "$ac_tool_prefix"; then
1539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$CC"; then
1547   ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$ac_cv_prog_CC"; then
1576   ac_ct_CC=$CC
1577   # Extract the first word of "gcc", so it can be a program name with args.
1578 set dummy gcc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$ac_ct_CC"; then
1585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   for ac_exec_ext in '' $ac_executable_extensions; do
1593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594     ac_cv_prog_ac_ct_CC="gcc"
1595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596     break 2
1597   fi
1598 done
1599 done
1600
1601 fi
1602 fi
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1607 else
1608   echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612   CC=$ac_ct_CC
1613 else
1614   CC="$ac_cv_prog_CC"
1615 fi
1616
1617 if test -z "$CC"; then
1618   if test -n "$ac_tool_prefix"; then
1619   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     ac_cv_prog_CC="${ac_tool_prefix}cc"
1637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647   echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$ac_cv_prog_CC"; then
1656   ac_ct_CC=$CC
1657   # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$ac_ct_CC"; then
1665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_ac_ct_CC="cc"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692   CC=$ac_ct_CC
1693 else
1694   CC="$ac_cv_prog_CC"
1695 fi
1696
1697 fi
1698 if test -z "$CC"; then
1699   # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$CC"; then
1707   ac_cv_prog_CC="$CC" # Let the user override the test.
1708 else
1709   ac_prog_rejected=no
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   for ac_exec_ext in '' $ac_executable_extensions; do
1716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718        ac_prog_rejected=yes
1719        continue
1720      fi
1721     ac_cv_prog_CC="cc"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 if test $ac_prog_rejected = yes; then
1729   # We found a bogon in the path, so make sure we never use it.
1730   set dummy $ac_cv_prog_CC
1731   shift
1732   if test $# != 0; then
1733     # We chose a different compiler from the bogus one.
1734     # However, it has the same basename, so the bogon will be chosen
1735     # first if we set CC to just the basename; use the full file name.
1736     shift
1737     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1738   fi
1739 fi
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$CC"; then
1753   if test -n "$ac_tool_prefix"; then
1754   for ac_prog in cl
1755   do
1756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$CC"; then
1764   ac_cv_prog_CC="$CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 CC=$ac_cv_prog_CC
1783 if test -n "$CC"; then
1784   echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791     test -n "$CC" && break
1792   done
1793 fi
1794 if test -z "$CC"; then
1795   ac_ct_CC=$CC
1796   for ac_prog in cl
1797 do
1798   # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$ac_ct_CC"; then
1806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_ac_ct_CC="$ac_prog"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833   test -n "$ac_ct_CC" && break
1834 done
1835
1836   CC=$ac_ct_CC
1837 fi
1838
1839 fi
1840
1841
1842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&2;}
1846    { (exit 1); exit 1; }; }
1847
1848 # Provide some information about the compiler.
1849 echo "$as_me:$LINENO:" \
1850      "checking for C compiler version" >&5
1851 ac_compiler=`set X $ac_compile; echo $2`
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1853   (eval $ac_compiler --version </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1858   (eval $ac_compiler -v </dev/null >&5) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1863   (eval $ac_compiler -V </dev/null >&5) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }
1867
1868 cat >conftest.$ac_ext <<_ACEOF
1869 /* confdefs.h.  */
1870 _ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h.  */
1874
1875 int
1876 main ()
1877 {
1878
1879   ;
1880   return 0;
1881 }
1882 _ACEOF
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1887 # of exeext.
1888 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892   (eval $ac_link_default) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; then
1896   # Find the output, starting from the most likely.  This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1898 # resort.
1899
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 ac_cv_exeext=
1903 # b.out is created by i960 compilers.
1904 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 do
1906   test -f "$ac_file" || continue
1907   case $ac_file in
1908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1909         ;;
1910     conftest.$ac_ext )
1911         # This is the source file.
1912         ;;
1913     [ab].out )
1914         # We found the default executable, but exeext='' is most
1915         # certainly right.
1916         break;;
1917     *.* )
1918         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919         # FIXME: I believe we export ac_cv_exeext for Libtool,
1920         # but it would be cool to find out if it's true.  Does anybody
1921         # maintain Libtool? --akim.
1922         export ac_cv_exeext
1923         break;;
1924     * )
1925         break;;
1926   esac
1927 done
1928 else
1929   echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&2;}
1936    { (exit 77); exit 77; }; }
1937 fi
1938
1939 ac_exeext=$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_file" >&5
1941 echo "${ECHO_T}$ac_file" >&6
1942
1943 # Check the compiler produces executables we can run.  If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948 # If not cross compiling, check that we can run a simple program.
1949 if test "$cross_compiling" != yes; then
1950   if { ac_try='./$ac_file'
1951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1952   (eval $ac_try) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; }; then
1956     cross_compiling=no
1957   else
1958     if test "$cross_compiling" = maybe; then
1959         cross_compiling=yes
1960     else
1961         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&5
1964 echo "$as_me: error: cannot run C compiled programs.
1965 If you meant to cross compile, use \`--host'.
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968     fi
1969   fi
1970 fi
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1973
1974 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run.  If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1982
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986   (eval $ac_link) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; then
1990   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 # `rm'.
1994 for ac_file in conftest.exe conftest conftest.*; do
1995   test -f "$ac_file" || continue
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1998     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999           export ac_cv_exeext
2000           break;;
2001     * ) break;;
2002   esac
2003 done
2004 else
2005   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2015
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2018 ac_exeext=$EXEEXT
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h.  */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h.  */
2030
2031 int
2032 main ()
2033 {
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041   (eval $ac_compile) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }; then
2045   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046   case $ac_file in
2047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2048     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2049        break;;
2050   esac
2051 done
2052 else
2053   echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2068 ac_objext=$OBJEXT
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h.  */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h.  */
2080
2081 int
2082 main ()
2083 {
2084 #ifndef __GNUC__
2085        choke me
2086 #endif
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>conftest.er1
2095   ac_status=$?
2096   grep -v '^ *+' conftest.er1 >conftest.err
2097   rm -f conftest.er1
2098   cat conftest.err >&5
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -z "$ac_c_werror_flag"
2102                          || test ! -s conftest.err'
2103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104   (eval $ac_try) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }; } &&
2108          { ac_try='test -s conftest.$ac_objext'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; }; then
2114   ac_compiler_gnu=yes
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 ac_compiler_gnu=no
2120 fi
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2123
2124 fi
2125 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2127 GCC=`test $ac_compiler_gnu = yes && echo yes`
2128 ac_test_CFLAGS=${CFLAGS+set}
2129 ac_save_CFLAGS=$CFLAGS
2130 CFLAGS="-g"
2131 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_g+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153   (eval $ac_compile) 2>conftest.er1
2154   ac_status=$?
2155   grep -v '^ *+' conftest.er1 >conftest.err
2156   rm -f conftest.er1
2157   cat conftest.err >&5
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); } &&
2160          { ac_try='test -z "$ac_c_werror_flag"
2161                          || test ! -s conftest.err'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; } &&
2167          { ac_try='test -s conftest.$ac_objext'
2168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169   (eval $ac_try) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; }; then
2173   ac_cv_prog_cc_g=yes
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 ac_cv_prog_cc_g=no
2179 fi
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2184 if test "$ac_test_CFLAGS" = set; then
2185   CFLAGS=$ac_save_CFLAGS
2186 elif test $ac_cv_prog_cc_g = yes; then
2187   if test "$GCC" = yes; then
2188     CFLAGS="-g -O2"
2189   else
2190     CFLAGS="-g"
2191   fi
2192 else
2193   if test "$GCC" = yes; then
2194     CFLAGS="-O2"
2195   else
2196     CFLAGS=
2197   fi
2198 fi
2199 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2200 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   ac_cv_prog_cc_stdc=no
2205 ac_save_CC=$CC
2206 cat >conftest.$ac_ext <<_ACEOF
2207 /* confdefs.h.  */
2208 _ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h.  */
2212 #include <stdarg.h>
2213 #include <stdio.h>
2214 #include <sys/types.h>
2215 #include <sys/stat.h>
2216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2217 struct buf { int x; };
2218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2219 static char *e (p, i)
2220      char **p;
2221      int i;
2222 {
2223   return p[i];
2224 }
2225 static char *f (char * (*g) (char **, int), char **p, ...)
2226 {
2227   char *s;
2228   va_list v;
2229   va_start (v,p);
2230   s = g (p, va_arg (v,int));
2231   va_end (v);
2232   return s;
2233 }
2234
2235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2236    function prototypes and stuff, but not '\xHH' hex character constants.
2237    These don't provoke an error unfortunately, instead are silently treated
2238    as 'x'.  The following induces an error, until -std1 is added to get
2239    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2240    array size at least.  It's necessary to write '\x00'==0 to get something
2241    that's true only with -std1.  */
2242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243
2244 int test (int i, double x);
2245 struct s1 {int (*f) (int a);};
2246 struct s2 {int (*f) (double a);};
2247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2248 int argc;
2249 char **argv;
2250 int
2251 main ()
2252 {
2253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 # Don't try gcc -ansi; that turns off useful extensions and
2259 # breaks some systems' header files.
2260 # AIX                   -qlanglvl=ansi
2261 # Ultrix and OSF/1      -std1
2262 # HP-UX 10.20 and later -Ae
2263 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2264 # SVR4                  -Xc -D__EXTENSIONS__
2265 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 do
2267   CC="$ac_save_CC $ac_arg"
2268   rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>conftest.er1
2271   ac_status=$?
2272   grep -v '^ *+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -z "$ac_c_werror_flag"
2278                          || test ! -s conftest.err'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   ac_cv_prog_cc_stdc=$ac_arg
2291 break
2292 else
2293   echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 fi
2297 rm -f conftest.err conftest.$ac_objext
2298 done
2299 rm -f conftest.$ac_ext conftest.$ac_objext
2300 CC=$ac_save_CC
2301
2302 fi
2303
2304 case "x$ac_cv_prog_cc_stdc" in
2305   x|xno)
2306     echo "$as_me:$LINENO: result: none needed" >&5
2307 echo "${ECHO_T}none needed" >&6 ;;
2308   *)
2309     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2311     CC="$CC $ac_cv_prog_cc_stdc" ;;
2312 esac
2313
2314 # Some people use a C++ compiler to compile C.  Since we use `exit',
2315 # in C++ we need to declare it.  In case someone uses the same compiler
2316 # for both compiling C and C++ we need to have the C++ compiler decide
2317 # the declaration of exit, since it's the most demanding environment.
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #ifndef __cplusplus
2320   choke me
2321 #endif
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } &&
2332          { ac_try='test -z "$ac_c_werror_flag"
2333                          || test ! -s conftest.err'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   for ac_declaration in \
2346    '' \
2347    'extern "C" void std::exit (int) throw (); using std::exit;' \
2348    'extern "C" void std::exit (int); using std::exit;' \
2349    'extern "C" void exit (int) throw ();' \
2350    'extern "C" void exit (int);' \
2351    'void exit (int);'
2352 do
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359 $ac_declaration
2360 #include <stdlib.h>
2361 int
2362 main ()
2363 {
2364 exit (42);
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 continue
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399   cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h.  */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h.  */
2405 $ac_declaration
2406 int
2407 main ()
2408 {
2409 exit (42);
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416   (eval $ac_compile) 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_c_werror_flag"
2424                          || test ! -s conftest.err'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   break
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 done
2444 rm -f conftest*
2445 if test -n "$ac_declaration"; then
2446   echo '#ifdef __cplusplus' >>confdefs.h
2447   echo $ac_declaration      >>confdefs.h
2448   echo '#endif'             >>confdefs.h
2449 fi
2450
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 fi
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463 ac_ext=cc
2464 ac_cpp='$CXXCPP $CPPFLAGS'
2465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2468 if test -n "$ac_tool_prefix"; then
2469   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470   do
2471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CXX+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   if test -n "$CXX"; then
2479   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494
2495 fi
2496 fi
2497 CXX=$ac_cv_prog_CXX
2498 if test -n "$CXX"; then
2499   echo "$as_me:$LINENO: result: $CXX" >&5
2500 echo "${ECHO_T}$CXX" >&6
2501 else
2502   echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506     test -n "$CXX" && break
2507   done
2508 fi
2509 if test -z "$CXX"; then
2510   ac_ct_CXX=$CXX
2511   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 do
2513   # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$ac_ct_CXX"; then
2521   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530     ac_cv_prog_ac_ct_CXX="$ac_prog"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536
2537 fi
2538 fi
2539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2540 if test -n "$ac_ct_CXX"; then
2541   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2542 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 else
2544   echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2546 fi
2547
2548   test -n "$ac_ct_CXX" && break
2549 done
2550 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2551
2552   CXX=$ac_ct_CXX
2553 fi
2554
2555
2556 # Provide some information about the compiler.
2557 echo "$as_me:$LINENO:" \
2558      "checking for C++ compiler version" >&5
2559 ac_compiler=`set X $ac_compile; echo $2`
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2561   (eval $ac_compiler --version </dev/null >&5) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2566   (eval $ac_compiler -v </dev/null >&5) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }
2570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2571   (eval $ac_compiler -V </dev/null >&5) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }
2575
2576 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587
2588 int
2589 main ()
2590 {
2591 #ifndef __GNUC__
2592        choke me
2593 #endif
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_cxx_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   ac_compiler_gnu=yes
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 ac_compiler_gnu=no
2627 fi
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2630
2631 fi
2632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2634 GXX=`test $ac_compiler_gnu = yes && echo yes`
2635 ac_test_CXXFLAGS=${CXXFLAGS+set}
2636 ac_save_CXXFLAGS=$CXXFLAGS
2637 CXXFLAGS="-g"
2638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2640 if test "${ac_cv_prog_cxx_g+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660   (eval $ac_compile) 2>conftest.er1
2661   ac_status=$?
2662   grep -v '^ *+' conftest.er1 >conftest.err
2663   rm -f conftest.er1
2664   cat conftest.err >&5
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); } &&
2667          { ac_try='test -z "$ac_cxx_werror_flag"
2668                          || test ! -s conftest.err'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; } &&
2674          { ac_try='test -s conftest.$ac_objext'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; }; then
2680   ac_cv_prog_cxx_g=yes
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 ac_cv_prog_cxx_g=no
2686 fi
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2691 if test "$ac_test_CXXFLAGS" = set; then
2692   CXXFLAGS=$ac_save_CXXFLAGS
2693 elif test $ac_cv_prog_cxx_g = yes; then
2694   if test "$GXX" = yes; then
2695     CXXFLAGS="-g -O2"
2696   else
2697     CXXFLAGS="-g"
2698   fi
2699 else
2700   if test "$GXX" = yes; then
2701     CXXFLAGS="-O2"
2702   else
2703     CXXFLAGS=
2704   fi
2705 fi
2706 for ac_declaration in \
2707    '' \
2708    'extern "C" void std::exit (int) throw (); using std::exit;' \
2709    'extern "C" void std::exit (int); using std::exit;' \
2710    'extern "C" void exit (int) throw ();' \
2711    'extern "C" void exit (int);' \
2712    'void exit (int);'
2713 do
2714   cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720 $ac_declaration
2721 #include <stdlib.h>
2722 int
2723 main ()
2724 {
2725 exit (42);
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_cxx_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 continue
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760   cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 $ac_declaration
2767 int
2768 main ()
2769 {
2770 exit (42);
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777   (eval $ac_compile) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_cxx_werror_flag"
2785                          || test ! -s conftest.err'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } &&
2791          { ac_try='test -s conftest.$ac_objext'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797   break
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 rm -f conftest*
2806 if test -n "$ac_declaration"; then
2807   echo '#ifdef __cplusplus' >>confdefs.h
2808   echo $ac_declaration      >>confdefs.h
2809   echo '#endif'             >>confdefs.h
2810 fi
2811
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817
2818 if test "x$CC" != xcc; then
2819   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2820 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 else
2822   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2823 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 fi
2825 set dummy $CC; ac_cc=`echo $2 |
2826                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2827 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836
2837 int
2838 main ()
2839 {
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 # Make sure it works both with $CC and with simple cc.
2846 # We do the test twice because some compilers refuse to overwrite an
2847 # existing .o file with -o, though they will create one.
2848 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2849 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } &&
2854    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); };
2859 then
2860   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2861   if test "x$CC" != xcc; then
2862     # Test first that cc exists at all.
2863     if { ac_try='cc -c conftest.$ac_ext >&5'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2870       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } &&
2875          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); };
2880       then
2881         # cc works too.
2882         :
2883       else
2884         # cc exists but doesn't like -o.
2885         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2886       fi
2887     fi
2888   fi
2889 else
2890   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2891 fi
2892 rm -f conftest*
2893
2894 fi
2895 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2896   echo "$as_me:$LINENO: result: yes" >&5
2897 echo "${ECHO_T}yes" >&6
2898 else
2899   echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901
2902 cat >>confdefs.h <<\_ACEOF
2903 #define NO_MINUS_C_MINUS_O 1
2904 _ACEOF
2905
2906 fi
2907
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2915 # On Suns, sometimes $CPP names a directory.
2916 if test -n "$CPP" && test -d "$CPP"; then
2917   CPP=
2918 fi
2919 if test -z "$CPP"; then
2920   if test "${ac_cv_prog_CPP+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923       # Double quotes because CPP needs to be expanded
2924     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2925     do
2926       ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #ifdef __STDC__
2942 # include <limits.h>
2943 #else
2944 # include <assert.h>
2945 #endif
2946                      Syntax error
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   :
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Broken: fails on valid input.
2972 continue
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether non-existent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #include <ac_nonexistent.h>
2985 _ACEOF
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988   ac_status=$?
2989   grep -v '^ *+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
2991   cat conftest.err >&5
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); } >/dev/null; then
2994   if test -s conftest.err; then
2995     ac_cpp_err=$ac_c_preproc_warn_flag
2996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997   else
2998     ac_cpp_err=
2999   fi
3000 else
3001   ac_cpp_err=yes
3002 fi
3003 if test -z "$ac_cpp_err"; then
3004   # Broken: success on invalid input.
3005 continue
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010   # Passes both tests.
3011 ac_preproc_ok=:
3012 break
3013 fi
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   break
3021 fi
3022
3023     done
3024     ac_cv_prog_CPP=$CPP
3025
3026 fi
3027   CPP=$ac_cv_prog_CPP
3028 else
3029   ac_cv_prog_CPP=$CPP
3030 fi
3031 echo "$as_me:$LINENO: result: $CPP" >&5
3032 echo "${ECHO_T}$CPP" >&6
3033 ac_preproc_ok=false
3034 for ac_c_preproc_warn_flag in '' yes
3035 do
3036   # Use a header file that comes with gcc, so configuring glibc
3037   # with a fresh cross-compiler works.
3038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039   # <limits.h> exists even on freestanding compilers.
3040   # On the NeXT, cc -E runs the code through the compiler's parser,
3041   # not just through cpp. "Syntax error" is here to catch this case.
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 #ifdef __STDC__
3049 # include <limits.h>
3050 #else
3051 # include <assert.h>
3052 #endif
3053                      Syntax error
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   :
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078   # Broken: fails on valid input.
3079 continue
3080 fi
3081 rm -f conftest.err conftest.$ac_ext
3082
3083   # OK, works on sane cases.  Now check whether non-existent headers
3084   # can be detected and how.
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091 #include <ac_nonexistent.h>
3092 _ACEOF
3093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } >/dev/null; then
3101   if test -s conftest.err; then
3102     ac_cpp_err=$ac_c_preproc_warn_flag
3103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104   else
3105     ac_cpp_err=
3106   fi
3107 else
3108   ac_cpp_err=yes
3109 fi
3110 if test -z "$ac_cpp_err"; then
3111   # Broken: success on invalid input.
3112 continue
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117   # Passes both tests.
3118 ac_preproc_ok=:
3119 break
3120 fi
3121 rm -f conftest.err conftest.$ac_ext
3122
3123 done
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then
3127   :
3128 else
3129   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&2;}
3133    { (exit 1); exit 1; }; }
3134 fi
3135
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143 echo "$as_me:$LINENO: checking for egrep" >&5
3144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3145 if test "${ac_cv_prog_egrep+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3149     then ac_cv_prog_egrep='grep -E'
3150     else ac_cv_prog_egrep='egrep'
3151     fi
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3155  EGREP=$ac_cv_prog_egrep
3156
3157
3158 if test $ac_cv_c_compiler_gnu = yes; then
3159     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3160 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3161 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164     ac_pattern="Autoconf.*'x'"
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #include <sgtty.h>
3172 Autoconf TIOCGETP
3173 _ACEOF
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3176   ac_cv_prog_gcc_traditional=yes
3177 else
3178   ac_cv_prog_gcc_traditional=no
3179 fi
3180 rm -f conftest*
3181
3182
3183   if test $ac_cv_prog_gcc_traditional = no; then
3184     cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <termio.h>
3191 Autoconf TCGETA
3192 _ACEOF
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3195   ac_cv_prog_gcc_traditional=yes
3196 fi
3197 rm -f conftest*
3198
3199   fi
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3202 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3203   if test $ac_cv_prog_gcc_traditional = yes; then
3204     CC="$CC -traditional"
3205   fi
3206 fi
3207
3208 if test "x$CC" = xgcc; then
3209    cat >>confdefs.h <<\_ACEOF
3210 #define HAVE_GCC 1
3211 _ACEOF
3212
3213 fi
3214 # Extract the first word of "$CXX", so it can be a program name with args.
3215 set dummy $CXX; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_CXX+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $CXX in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3241   ;;
3242 esac
3243 fi
3244 CXX=$ac_cv_path_CXX
3245
3246 if test -n "$CXX"; then
3247   echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 if test ! -e $CXX; then
3255    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3256 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 # Find a good install program.  We prefer a C program (faster),
3261 # so one script is as good as another.  But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3266 # AIX /bin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # OS/2's system install, which has a completely different semantic
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284   # Account for people who put trailing slashes in PATH elements.
3285 case $as_dir/ in
3286   ./ | .// | /cC/* | \
3287   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3289   /usr/ucb/* ) ;;
3290   *)
3291     # OSF1 and SCO ODT 3.0 have their own names for install.
3292     # Don't use installbsd from OSF since it installs stuff as root
3293     # by default.
3294     for ac_prog in ginstall scoinst install; do
3295       for ac_exec_ext in '' $ac_executable_extensions; do
3296         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297           if test $ac_prog = install &&
3298             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299             # AIX install.  It has an incompatible calling convention.
3300             :
3301           elif test $ac_prog = install &&
3302             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303             # program-specific install script used by HP pwplus--don't use.
3304             :
3305           else
3306             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307             break 3
3308           fi
3309         fi
3310       done
3311     done
3312     ;;
3313 esac
3314 done
3315
3316
3317 fi
3318   if test "${ac_cv_path_install+set}" = set; then
3319     INSTALL=$ac_cv_path_install
3320   else
3321     # As a last resort, use the slow shell script.  We don't cache a
3322     # path for INSTALL within a source directory, because that will
3323     # break other packages using the cache if that directory is
3324     # removed, or if the path is relative.
3325     INSTALL=$ac_install_sh
3326   fi
3327 fi
3328 echo "$as_me:$LINENO: result: $INSTALL" >&5
3329 echo "${ECHO_T}$INSTALL" >&6
3330
3331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3332 # It thinks the first close brace ends the variable substitution.
3333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334
3335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336
3337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338
3339 if test -n "$ac_tool_prefix"; then
3340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_RANLIB+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   if test -n "$RANLIB"; then
3348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364 fi
3365 fi
3366 RANLIB=$ac_cv_prog_RANLIB
3367 if test -n "$RANLIB"; then
3368   echo "$as_me:$LINENO: result: $RANLIB" >&5
3369 echo "${ECHO_T}$RANLIB" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 fi
3376 if test -z "$ac_cv_prog_RANLIB"; then
3377   ac_ct_RANLIB=$RANLIB
3378   # Extract the first word of "ranlib", so it can be a program name with args.
3379 set dummy ranlib; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   if test -n "$ac_ct_RANLIB"; then
3386   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393   for ac_exec_ext in '' $ac_executable_extensions; do
3394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395     ac_cv_prog_ac_ct_RANLIB="ranlib"
3396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400 done
3401
3402   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3403 fi
3404 fi
3405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3406 if test -n "$ac_ct_RANLIB"; then
3407   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   RANLIB=$ac_ct_RANLIB
3415 else
3416   RANLIB="$ac_cv_prog_RANLIB"
3417 fi
3418
3419 # Extract the first word of "mv", so it can be a program name with args.
3420 set dummy mv; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_path_MV+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   case $MV in
3427   [\\/]* | ?:[\\/]*)
3428   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3429   ;;
3430   *)
3431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3446   ;;
3447 esac
3448 fi
3449 MV=$ac_cv_path_MV
3450
3451 if test -n "$MV"; then
3452   echo "$as_me:$LINENO: result: $MV" >&5
3453 echo "${ECHO_T}$MV" >&6
3454 else
3455   echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 fi
3458
3459 # Extract the first word of "rm", so it can be a program name with args.
3460 set dummy rm; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_RM+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   case $RM in
3467   [\\/]* | ?:[\\/]*)
3468   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3469   ;;
3470   *)
3471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484
3485   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3486   ;;
3487 esac
3488 fi
3489 RM=$ac_cv_path_RM
3490
3491 if test -n "$RM"; then
3492   echo "$as_me:$LINENO: result: $RM" >&5
3493 echo "${ECHO_T}$RM" >&6
3494 else
3495   echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3497 fi
3498
3499 # Extract the first word of "cp", so it can be a program name with args.
3500 set dummy cp; ac_word=$2
3501 echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_path_CP+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   case $CP in
3507   [\\/]* | ?:[\\/]*)
3508   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3509   ;;
3510   *)
3511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516   for ac_exec_ext in '' $ac_executable_extensions; do
3517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523 done
3524
3525   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3526   ;;
3527 esac
3528 fi
3529 CP=$ac_cv_path_CP
3530
3531 if test -n "$CP"; then
3532   echo "$as_me:$LINENO: result: $CP" >&5
3533 echo "${ECHO_T}$CP" >&6
3534 else
3535   echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 fi
3538
3539 # Extract the first word of "sed", so it can be a program name with args.
3540 set dummy sed; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_path_SED+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   case $SED in
3547   [\\/]* | ?:[\\/]*)
3548   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3549   ;;
3550   *)
3551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556   for ac_exec_ext in '' $ac_executable_extensions; do
3557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563 done
3564
3565   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3566   ;;
3567 esac
3568 fi
3569 SED=$ac_cv_path_SED
3570
3571 if test -n "$SED"; then
3572   echo "$as_me:$LINENO: result: $SED" >&5
3573 echo "${ECHO_T}$SED" >&6
3574 else
3575   echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578
3579 # Extract the first word of "echo", so it can be a program name with args.
3580 set dummy echo; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_path_ECHO+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   case $ECHO in
3587   [\\/]* | ?:[\\/]*)
3588   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3589   ;;
3590   *)
3591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596   for ac_exec_ext in '' $ac_executable_extensions; do
3597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603 done
3604
3605   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3606   ;;
3607 esac
3608 fi
3609 ECHO=$ac_cv_path_ECHO
3610
3611 if test -n "$ECHO"; then
3612   echo "$as_me:$LINENO: result: $ECHO" >&5
3613 echo "${ECHO_T}$ECHO" >&6
3614 else
3615   echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3617 fi
3618
3619 # Extract the first word of "cmp", so it can be a program name with args.
3620 set dummy cmp; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_path_CMP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   case $CMP in
3627   [\\/]* | ?:[\\/]*)
3628   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3629   ;;
3630   *)
3631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636   for ac_exec_ext in '' $ac_executable_extensions; do
3637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643 done
3644
3645   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3646   ;;
3647 esac
3648 fi
3649 CMP=$ac_cv_path_CMP
3650
3651 if test -n "$CMP"; then
3652   echo "$as_me:$LINENO: result: $CMP" >&5
3653 echo "${ECHO_T}$CMP" >&6
3654 else
3655   echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 fi
3658
3659 # Extract the first word of "tbl", so it can be a program name with args.
3660 set dummy tbl; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_path_TBL+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   case $TBL in
3667   [\\/]* | ?:[\\/]*)
3668   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3669   ;;
3670   *)
3671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676   for ac_exec_ext in '' $ac_executable_extensions; do
3677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680     break 2
3681   fi
3682 done
3683 done
3684
3685   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3686   ;;
3687 esac
3688 fi
3689 TBL=$ac_cv_path_TBL
3690
3691 if test -n "$TBL"; then
3692   echo "$as_me:$LINENO: result: $TBL" >&5
3693 echo "${ECHO_T}$TBL" >&6
3694 else
3695   echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3697 fi
3698
3699 # Extract the first word of "ar", so it can be a program name with args.
3700 set dummy ar; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_path_AR+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   case $AR in
3707   [\\/]* | ?:[\\/]*)
3708   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3709   ;;
3710   *)
3711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723 done
3724
3725   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3726   ;;
3727 esac
3728 fi
3729 AR=$ac_cv_path_AR
3730
3731 if test -n "$AR"; then
3732   echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3734 else
3735   echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3737 fi
3738
3739 # Extract the first word of "openssl", so it can be a program name with args.
3740 set dummy openssl; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_path_OPENSSL+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   case $OPENSSL in
3747   [\\/]* | ?:[\\/]*)
3748   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3749   ;;
3750   *)
3751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756   for ac_exec_ext in '' $ac_executable_extensions; do
3757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763 done
3764
3765   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3766   ;;
3767 esac
3768 fi
3769 OPENSSL=$ac_cv_path_OPENSSL
3770
3771 if test -n "$OPENSSL"; then
3772   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3773 echo "${ECHO_T}$OPENSSL" >&6
3774 else
3775   echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3777 fi
3778
3779 # Extract the first word of "mtx", so it can be a program name with args.
3780 set dummy mtx; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_path_MTX+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   case $MTX in
3787   [\\/]* | ?:[\\/]*)
3788   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3789   ;;
3790   *)
3791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796   for ac_exec_ext in '' $ac_executable_extensions; do
3797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800     break 2
3801   fi
3802 done
3803 done
3804
3805   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3806   ;;
3807 esac
3808 fi
3809 MTX=$ac_cv_path_MTX
3810
3811 if test -n "$MTX"; then
3812   echo "$as_me:$LINENO: result: $MTX" >&5
3813 echo "${ECHO_T}$MTX" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819 # Extract the first word of "dd", so it can be a program name with args.
3820 set dummy dd; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_path_DD+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   case $DD in
3827   [\\/]* | ?:[\\/]*)
3828   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3829   ;;
3830   *)
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843 done
3844
3845   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3846   ;;
3847 esac
3848 fi
3849 DD=$ac_cv_path_DD
3850
3851 if test -n "$DD"; then
3852   echo "$as_me:$LINENO: result: $DD" >&5
3853 echo "${ECHO_T}$DD" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859 # Extract the first word of "mkisofs", so it can be a program name with args.
3860 set dummy mkisofs; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_MKISOFS+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   case $MKISOFS in
3867   [\\/]* | ?:[\\/]*)
3868   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3869   ;;
3870   *)
3871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3886   ;;
3887 esac
3888 fi
3889 MKISOFS=$ac_cv_path_MKISOFS
3890
3891 if test -n "$MKISOFS"; then
3892   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3893 echo "${ECHO_T}$MKISOFS" >&6
3894 else
3895   echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897 fi
3898
3899 # Extract the first word of "python", so it can be a program name with args.
3900 set dummy python; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_PYTHON+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   case $PYTHON in
3907   [\\/]* | ?:[\\/]*)
3908   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3909   ;;
3910   *)
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923 done
3924
3925   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3926   ;;
3927 esac
3928 fi
3929 PYTHON=$ac_cv_path_PYTHON
3930
3931 if test -n "$PYTHON"; then
3932   echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3934 else
3935   echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939 # Extract the first word of "growisofs", so it can be a program name with args.
3940 set dummy growisofs; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   case $GROWISOFS in
3947   [\\/]* | ?:[\\/]*)
3948   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3949   ;;
3950   *)
3951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956   for ac_exec_ext in '' $ac_executable_extensions; do
3957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960     break 2
3961   fi
3962 done
3963 done
3964
3965   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3966   ;;
3967 esac
3968 fi
3969 GROWISOFS=$ac_cv_path_GROWISOFS
3970
3971 if test -n "$GROWISOFS"; then
3972   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3973 echo "${ECHO_T}$GROWISOFS" >&6
3974 else
3975   echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3977 fi
3978
3979 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3980 set dummy dvd+rw-mediainfo; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   case $DVDRWMEDIAINFO in
3987   [\\/]* | ?:[\\/]*)
3988   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3989   ;;
3990   *)
3991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996   for ac_exec_ext in '' $ac_executable_extensions; do
3997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003 done
4004
4005   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4006   ;;
4007 esac
4008 fi
4009 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4010
4011 if test -n "$DVDRWMEDIAINFO"; then
4012   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4013 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4014 else
4015   echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017 fi
4018
4019 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4020 set dummy dvd+rw-format; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $DVDRWFORMAT in
4027   [\\/]* | ?:[\\/]*)
4028   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4029   ;;
4030   *)
4031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043 done
4044
4045   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4046   ;;
4047 esac
4048 fi
4049 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4050
4051 if test -n "$DVDRWFORMAT"; then
4052   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4053 echo "${ECHO_T}$DVDRWFORMAT" >&6
4054 else
4055   echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4057 fi
4058
4059 # Extract the first word of "pkg-config", so it can be a program name with args.
4060 set dummy pkg-config; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   case $PKGCONFIG in
4067   [\\/]* | ?:[\\/]*)
4068   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4069   ;;
4070   *)
4071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_exec_ext in '' $ac_executable_extensions; do
4077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080     break 2
4081   fi
4082 done
4083 done
4084
4085   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4086   ;;
4087 esac
4088 fi
4089 PKGCONFIG=$ac_cv_path_PKGCONFIG
4090
4091 if test -n "$PKGCONFIG"; then
4092   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4093 echo "${ECHO_T}$PKGCONFIG" >&6
4094 else
4095   echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097 fi
4098
4099
4100 if test "x$WXCONFIG" = x; then
4101   WXCONFIG=wx-config
4102 fi
4103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4104 set dummy ${WXCONFIG}; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $WXCONFIG in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4130   ;;
4131 esac
4132 fi
4133 WXCONFIG=$ac_cv_path_WXCONFIG
4134
4135 if test -n "$WXCONFIG"; then
4136   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4137 echo "${ECHO_T}$WXCONFIG" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143
4144 # Extract the first word of "cdrecord", so it can be a program name with args.
4145 set dummy cdrecord; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_path_CDRECORD+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   case $CDRECORD in
4152   [\\/]* | ?:[\\/]*)
4153   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4154   ;;
4155   *)
4156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159   IFS=$as_save_IFS
4160   test -z "$as_dir" && as_dir=.
4161   for ac_exec_ext in '' $ac_executable_extensions; do
4162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165     break 2
4166   fi
4167 done
4168 done
4169
4170   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4171   ;;
4172 esac
4173 fi
4174 CDRECORD=$ac_cv_path_CDRECORD
4175
4176 if test -n "$CDRECORD"; then
4177   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4178 echo "${ECHO_T}$CDRECORD" >&6
4179 else
4180   echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 fi
4183
4184 # Extract the first word of "pidof", so it can be a program name with args.
4185 set dummy pidof; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_PIDOF+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   case $PIDOF in
4192   [\\/]* | ?:[\\/]*)
4193   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4194   ;;
4195   *)
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4211   ;;
4212 esac
4213 fi
4214 PIDOF=$ac_cv_path_PIDOF
4215
4216 if test -n "$PIDOF"; then
4217   echo "$as_me:$LINENO: result: $PIDOF" >&5
4218 echo "${ECHO_T}$PIDOF" >&6
4219 else
4220   echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222 fi
4223
4224 for ac_prog in gawk mawk nawk awk
4225 do
4226   # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_AWK+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   if test -n "$AWK"; then
4234   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241   for ac_exec_ext in '' $ac_executable_extensions; do
4242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243     ac_cv_prog_AWK="$ac_prog"
4244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248 done
4249
4250 fi
4251 fi
4252 AWK=$ac_cv_prog_AWK
4253 if test -n "$AWK"; then
4254   echo "$as_me:$LINENO: result: $AWK" >&5
4255 echo "${ECHO_T}$AWK" >&6
4256 else
4257   echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4259 fi
4260
4261   test -n "$AWK" && break
4262 done
4263
4264 # Some AWK programs fail, so test it and warn the user
4265 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4266       { if ((prog == $2) || (("(" prog ")") == $2) ||
4267            (("" prog "") == $2) ||
4268            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4269 else
4270   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4271    The regex engine of $AWK is too broken to be used you
4272    might want to install GNU AWK.
4273    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4274 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275    The regex engine of $AWK is too broken to be used you
4276    might want to install GNU AWK.
4277    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4278    { (exit 1); exit 1; }; }
4279 fi
4280 THE_AWK=$AWK
4281 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4282 set dummy $THE_AWK; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_AWK+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   case $AWK in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4308   ;;
4309 esac
4310 fi
4311 AWK=$ac_cv_path_AWK
4312
4313 if test -n "$AWK"; then
4314   echo "$as_me:$LINENO: result: $AWK" >&5
4315 echo "${ECHO_T}$AWK" >&6
4316 else
4317   echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 test -n "$ARFLAG" || ARFLAGS="cr"
4323
4324
4325 MAKE_SHELL=/bin/sh
4326
4327
4328
4329
4330
4331
4332
4333 # Make sure we can run config.sub.
4334 $ac_config_sub sun4 >/dev/null 2>&1 ||
4335   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4336 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4337    { (exit 1); exit 1; }; }
4338
4339 echo "$as_me:$LINENO: checking build system type" >&5
4340 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4341 if test "${ac_cv_build+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_cv_build_alias=$build_alias
4345 test -z "$ac_cv_build_alias" &&
4346   ac_cv_build_alias=`$ac_config_guess`
4347 test -z "$ac_cv_build_alias" &&
4348   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4350    { (exit 1); exit 1; }; }
4351 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4352   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4353 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4354    { (exit 1); exit 1; }; }
4355
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4358 echo "${ECHO_T}$ac_cv_build" >&6
4359 build=$ac_cv_build
4360 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4361 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4362 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4363
4364
4365
4366 echo "$as_me:$LINENO: checking host system type" >&5
4367 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4368 if test "${ac_cv_host+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   ac_cv_host_alias=$host_alias
4372 test -z "$ac_cv_host_alias" &&
4373   ac_cv_host_alias=$ac_cv_build_alias
4374 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4375   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4376 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4377    { (exit 1); exit 1; }; }
4378
4379 fi
4380 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4381 echo "${ECHO_T}$ac_cv_host" >&6
4382 host=$ac_cv_host
4383 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4384 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4385 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4386
4387
4388 case $host_os in
4389   *cygwin* ) CYGWIN=yes;;
4390          * ) CYGWIN=no;;
4391 esac
4392
4393 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4394 then
4395
4396
4397 if $TRUEPRG; then
4398   HAVE_SUN_OS_TRUE=
4399   HAVE_SUN_OS_FALSE='#'
4400 else
4401   HAVE_SUN_OS_TRUE='#'
4402   HAVE_SUN_OS_FALSE=
4403 fi
4404         cat >>confdefs.h <<\_ACEOF
4405 #define HAVE_SUN_OS 1
4406 _ACEOF
4407
4408 else
4409
4410
4411 if $FALSEPRG; then
4412   HAVE_SUN_OS_TRUE=
4413   HAVE_SUN_OS_FALSE='#'
4414 else
4415   HAVE_SUN_OS_TRUE='#'
4416   HAVE_SUN_OS_FALSE=
4417 fi
4418 fi
4419
4420 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4421 then
4422
4423
4424 if $TRUEPRG; then
4425   HAVE_OSF1_OS_TRUE=
4426   HAVE_OSF1_OS_FALSE='#'
4427 else
4428   HAVE_OSF1_OS_TRUE='#'
4429   HAVE_OSF1_OS_FALSE=
4430 fi
4431         cat >>confdefs.h <<\_ACEOF
4432 #define HAVE_OSF1_OS 1
4433 _ACEOF
4434
4435 else
4436
4437
4438 if $FALSEPRG; then
4439   HAVE_OSF1_OS_TRUE=
4440   HAVE_OSF1_OS_FALSE='#'
4441 else
4442   HAVE_OSF1_OS_TRUE='#'
4443   HAVE_OSF1_OS_FALSE=
4444 fi
4445 fi
4446
4447 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4448 then
4449
4450
4451 if $TRUEPRG; then
4452   HAVE_AIX_OS_TRUE=
4453   HAVE_AIX_OS_FALSE='#'
4454 else
4455   HAVE_AIX_OS_TRUE='#'
4456   HAVE_AIX_OS_FALSE=
4457 fi
4458         cat >>confdefs.h <<\_ACEOF
4459 #define HAVE_AIX_OS 1
4460 _ACEOF
4461
4462 else
4463
4464
4465 if $FALSEPRG; then
4466   HAVE_AIX_OS_TRUE=
4467   HAVE_AIX_OS_FALSE='#'
4468 else
4469   HAVE_AIX_OS_TRUE='#'
4470   HAVE_AIX_OS_FALSE=
4471 fi
4472 fi
4473
4474 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4475 then
4476
4477
4478 if $TRUEPRG; then
4479   HAVE_HPUX_OS_TRUE=
4480   HAVE_HPUX_OS_FALSE='#'
4481 else
4482   HAVE_HPUX_OS_TRUE='#'
4483   HAVE_HPUX_OS_FALSE=
4484 fi
4485         cat >>confdefs.h <<\_ACEOF
4486 #define HAVE_HPUX_OS 1
4487 _ACEOF
4488
4489 else
4490
4491
4492 if $FALSEPRG; then
4493   HAVE_HPUX_OS_TRUE=
4494   HAVE_HPUX_OS_FALSE='#'
4495 else
4496   HAVE_HPUX_OS_TRUE='#'
4497   HAVE_HPUX_OS_FALSE=
4498 fi
4499 fi
4500
4501 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4502 then
4503
4504
4505 if $TRUEPRG; then
4506   HAVE_LINUX_OS_TRUE=
4507   HAVE_LINUX_OS_FALSE='#'
4508 else
4509   HAVE_LINUX_OS_TRUE='#'
4510   HAVE_LINUX_OS_FALSE=
4511 fi
4512         cat >>confdefs.h <<\_ACEOF
4513 #define HAVE_LINUX_OS 1
4514 _ACEOF
4515
4516 else
4517
4518
4519 if $FALSEPRG; then
4520   HAVE_LINUX_OS_TRUE=
4521   HAVE_LINUX_OS_FALSE='#'
4522 else
4523   HAVE_LINUX_OS_TRUE='#'
4524   HAVE_LINUX_OS_FALSE=
4525 fi
4526 fi
4527
4528 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4529 then
4530
4531
4532 if $TRUEPRG; then
4533   HAVE_FREEBSD_OS_TRUE=
4534   HAVE_FREEBSD_OS_FALSE='#'
4535 else
4536   HAVE_FREEBSD_OS_TRUE='#'
4537   HAVE_FREEBSD_OS_FALSE=
4538 fi
4539         cat >>confdefs.h <<\_ACEOF
4540 #define HAVE_FREEBSD_OS 1
4541 _ACEOF
4542
4543 else
4544
4545
4546 if $FALSEPRG; then
4547   HAVE_FREEBSD_OS_TRUE=
4548   HAVE_FREEBSD_OS_FALSE='#'
4549 else
4550   HAVE_FREEBSD_OS_TRUE='#'
4551   HAVE_FREEBSD_OS_FALSE=
4552 fi
4553 fi
4554
4555 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4556 then
4557
4558
4559 if $TRUEPRG; then
4560   HAVE_NETBSD_OS_TRUE=
4561   HAVE_NETBSD_OS_FALSE='#'
4562 else
4563   HAVE_NETBSD_OS_TRUE='#'
4564   HAVE_NETBSD_OS_FALSE=
4565 fi
4566         cat >>confdefs.h <<\_ACEOF
4567 #define HAVE_NETBSD_OS 1
4568 _ACEOF
4569
4570 else
4571
4572
4573 if $FALSEPRG; then
4574   HAVE_NETBSD_OS_TRUE=
4575   HAVE_NETBSD_OS_FALSE='#'
4576 else
4577   HAVE_NETBSD_OS_TRUE='#'
4578   HAVE_NETBSD_OS_FALSE=
4579 fi
4580 fi
4581
4582 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4583 then
4584
4585
4586 if $TRUEPRG; then
4587   HAVE_OPENBSD_OS_TRUE=
4588   HAVE_OPENBSD_OS_FALSE='#'
4589 else
4590   HAVE_OPENBSD_OS_TRUE='#'
4591   HAVE_OPENBSD_OS_FALSE=
4592 fi
4593         cat >>confdefs.h <<\_ACEOF
4594 #define HAVE_OPENBSD_OS 1
4595 _ACEOF
4596
4597 else
4598
4599
4600 if $FALSEPRG; then
4601   HAVE_OPENBSD_OS_TRUE=
4602   HAVE_OPENBSD_OS_FALSE='#'
4603 else
4604   HAVE_OPENBSD_OS_TRUE='#'
4605   HAVE_OPENBSD_OS_FALSE=
4606 fi
4607 fi
4608
4609 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4610 then
4611
4612
4613 if $TRUEPRG; then
4614   HAVE_BSDI_OS_TRUE=
4615   HAVE_BSDI_OS_FALSE='#'
4616 else
4617   HAVE_BSDI_OS_TRUE='#'
4618   HAVE_BSDI_OS_FALSE=
4619 fi
4620         cat >>confdefs.h <<\_ACEOF
4621 #define HAVE_BSDI_OS 1
4622 _ACEOF
4623
4624 else
4625
4626
4627 if $FALSEPRG; then
4628   HAVE_BSDI_OS_TRUE=
4629   HAVE_BSDI_OS_FALSE='#'
4630 else
4631   HAVE_BSDI_OS_TRUE='#'
4632   HAVE_BSDI_OS_FALSE=
4633 fi
4634 fi
4635
4636 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4637 then
4638
4639
4640 if $TRUEPRG; then
4641   HAVE_SGI_OS_TRUE=
4642   HAVE_SGI_OS_FALSE='#'
4643 else
4644   HAVE_SGI_OS_TRUE='#'
4645   HAVE_SGI_OS_FALSE=
4646 fi
4647         cat >>confdefs.h <<\_ACEOF
4648 #define HAVE_SGI_OS 1
4649 _ACEOF
4650
4651 else
4652
4653
4654 if $FALSEPRG; then
4655   HAVE_SGI_OS_TRUE=
4656   HAVE_SGI_OS_FALSE='#'
4657 else
4658   HAVE_SGI_OS_TRUE='#'
4659   HAVE_SGI_OS_FALSE=
4660 fi
4661 fi
4662
4663 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4664 then
4665
4666
4667 if $TRUEPRG; then
4668   HAVE_IRIX_OS_TRUE=
4669   HAVE_IRIX_OS_FALSE='#'
4670 else
4671   HAVE_IRIX_OS_TRUE='#'
4672   HAVE_IRIX_OS_FALSE=
4673 fi
4674         cat >>confdefs.h <<\_ACEOF
4675 #define HAVE_IRIX_OS 1
4676 _ACEOF
4677
4678 else
4679
4680
4681 if $FALSEPRG; then
4682   HAVE_IRIX_OS_TRUE=
4683   HAVE_IRIX_OS_FALSE='#'
4684 else
4685   HAVE_IRIX_OS_TRUE='#'
4686   HAVE_IRIX_OS_FALSE=
4687 fi
4688 fi
4689
4690 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4691 then
4692
4693
4694 if $TRUEPRG; then
4695   HAVE_DARWIN_OS_TRUE=
4696   HAVE_DARWIN_OS_FALSE='#'
4697 else
4698   HAVE_DARWIN_OS_TRUE='#'
4699   HAVE_DARWIN_OS_FALSE=
4700 fi
4701     cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_DARWIN_OS 1
4703 _ACEOF
4704
4705 else
4706
4707
4708 if $FALSEPRG; then
4709   HAVE_DARWIN_OS_TRUE=
4710   HAVE_DARWIN_OS_FALSE='#'
4711 else
4712   HAVE_DARWIN_OS_TRUE='#'
4713   HAVE_DARWIN_OS_FALSE=
4714 fi
4715 fi
4716
4717
4718 # -----------------------------------------------------------
4719 # ----------------------------------------------------------
4720 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4721 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4722 if test "x$DISTNAME" != "x"
4723 then
4724         echo "distname set to $DISTNAME"
4725 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4726 then
4727         DISTNAME=alpha
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4729 then
4730         DISTNAME=aix
4731 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4732 then
4733         DISTNAME=hpux
4734 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4735 then
4736         DISTNAME=solaris
4737 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4738 then
4739         DISTNAME=freebsd
4740 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4741 then
4742         DISTNAME=netbsd
4743 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4744 then
4745         DISTNAME=openbsd
4746 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4747 then
4748         DISTNAME=irix
4749 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4750 then
4751         DISTNAME=bsdi
4752 elif test -f /etc/SuSE-release
4753 then
4754         DISTNAME=suse
4755 elif test -d /etc/SuSEconfig
4756 then
4757         DISTNAME=suse5
4758 elif test -f /etc/mandrake-release
4759 then
4760         DISTNAME=mandrake
4761 elif test -f /etc/whitebox-release
4762 then
4763        DISTNAME=redhat
4764 elif test -f /etc/redhat-release
4765 then
4766         DISTNAME=redhat
4767 elif test -f /etc/gentoo-release
4768 then
4769         DISTNAME=gentoo
4770 elif test -f /etc/debian_version
4771 then
4772         DISTNAME=debian
4773 elif test -f /etc/slackware-version
4774 then
4775         DISTNAME=slackware
4776 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4777 then
4778     DISTNAME=darwin
4779 elif test -f /etc/engarde-version
4780 then
4781         DISTNAME=engarde
4782 elif test "$CYGWIN" = yes
4783 then
4784         DISTNAME=cygwin
4785         cat >>confdefs.h <<\_ACEOF
4786 #define HAVE_CYGWIN 1
4787 _ACEOF
4788
4789 else
4790         DISTNAME=unknown
4791 fi
4792 echo "$as_me:$LINENO: result: done" >&5
4793 echo "${ECHO_T}done" >&6
4794
4795
4796 # --------------------------------------------------
4797 # Suppport for gettext (translations)
4798 # By default, $datadir is ${prefix}/share
4799 # --------------------------------------------------
4800 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4803 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   cat >conftest.make <<\_ACEOF
4807 all:
4808         @echo 'ac_maketemp="$(MAKE)"'
4809 _ACEOF
4810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4811 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4812 if test -n "$ac_maketemp"; then
4813   eval ac_cv_prog_make_${ac_make}_set=yes
4814 else
4815   eval ac_cv_prog_make_${ac_make}_set=no
4816 fi
4817 rm -f conftest.make
4818 fi
4819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4820   echo "$as_me:$LINENO: result: yes" >&5
4821 echo "${ECHO_T}yes" >&6
4822   SET_MAKE=
4823 else
4824   echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826   SET_MAKE="MAKE=${MAKE-make}"
4827 fi
4828
4829
4830
4831         MKINSTALLDIRS=
4832   if test -n "$ac_aux_dir"; then
4833     case "$ac_aux_dir" in
4834       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4835       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4836     esac
4837   fi
4838   if test -z "$MKINSTALLDIRS"; then
4839     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4840   fi
4841
4842
4843
4844   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4845 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4846     # Check whether --enable-nls or --disable-nls was given.
4847 if test "${enable_nls+set}" = set; then
4848   enableval="$enable_nls"
4849   USE_NLS=$enableval
4850 else
4851   USE_NLS=yes
4852 fi;
4853   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4854 echo "${ECHO_T}$USE_NLS" >&6
4855
4856
4857
4858
4859
4860
4861 # Prepare PATH_SEPARATOR.
4862 # The user is always right.
4863 if test "${PATH_SEPARATOR+set}" != set; then
4864   echo "#! /bin/sh" >conf$$.sh
4865   echo  "exit 0"   >>conf$$.sh
4866   chmod +x conf$$.sh
4867   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4868     PATH_SEPARATOR=';'
4869   else
4870     PATH_SEPARATOR=:
4871   fi
4872   rm -f conf$$.sh
4873 fi
4874
4875 # Find out how to test for executable files. Don't use a zero-byte file,
4876 # as systems may use methods other than mode bits to determine executability.
4877 cat >conf$$.file <<_ASEOF
4878 #! /bin/sh
4879 exit 0
4880 _ASEOF
4881 chmod +x conf$$.file
4882 if test -x conf$$.file >/dev/null 2>&1; then
4883   ac_executable_p="test -x"
4884 else
4885   ac_executable_p="test -f"
4886 fi
4887 rm -f conf$$.file
4888
4889 # Extract the first word of "msgfmt", so it can be a program name with args.
4890 set dummy msgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MSGFMT+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case "$MSGFMT" in
4897   [\\/]* | ?:[\\/]*)
4898     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4899     ;;
4900   *)
4901     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4902     for ac_dir in $PATH; do
4903       IFS="$ac_save_IFS"
4904       test -z "$ac_dir" && ac_dir=.
4905       for ac_exec_ext in '' $ac_executable_extensions; do
4906         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4907           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4908           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4909      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4910             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4911             break 2
4912           fi
4913         fi
4914       done
4915     done
4916     IFS="$ac_save_IFS"
4917   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4918     ;;
4919 esac
4920 fi
4921 MSGFMT="$ac_cv_path_MSGFMT"
4922 if test "$MSGFMT" != ":"; then
4923   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4924 echo "${ECHO_T}$MSGFMT" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4931 set dummy gmsgfmt; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   case $GMSGFMT in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955
4956   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4957   ;;
4958 esac
4959 fi
4960 GMSGFMT=$ac_cv_path_GMSGFMT
4961
4962 if test -n "$GMSGFMT"; then
4963   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4964 echo "${ECHO_T}$GMSGFMT" >&6
4965 else
4966   echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968 fi
4969
4970
4971
4972 # Prepare PATH_SEPARATOR.
4973 # The user is always right.
4974 if test "${PATH_SEPARATOR+set}" != set; then
4975   echo "#! /bin/sh" >conf$$.sh
4976   echo  "exit 0"   >>conf$$.sh
4977   chmod +x conf$$.sh
4978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4979     PATH_SEPARATOR=';'
4980   else
4981     PATH_SEPARATOR=:
4982   fi
4983   rm -f conf$$.sh
4984 fi
4985
4986 # Find out how to test for executable files. Don't use a zero-byte file,
4987 # as systems may use methods other than mode bits to determine executability.
4988 cat >conf$$.file <<_ASEOF
4989 #! /bin/sh
4990 exit 0
4991 _ASEOF
4992 chmod +x conf$$.file
4993 if test -x conf$$.file >/dev/null 2>&1; then
4994   ac_executable_p="test -x"
4995 else
4996   ac_executable_p="test -f"
4997 fi
4998 rm -f conf$$.file
4999
5000 # Extract the first word of "xgettext", so it can be a program name with args.
5001 set dummy xgettext; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case "$XGETTEXT" in
5008   [\\/]* | ?:[\\/]*)
5009     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5010     ;;
5011   *)
5012     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5013     for ac_dir in $PATH; do
5014       IFS="$ac_save_IFS"
5015       test -z "$ac_dir" && ac_dir=.
5016       for ac_exec_ext in '' $ac_executable_extensions; do
5017         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5018           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5019           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5020      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5021             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5022             break 2
5023           fi
5024         fi
5025       done
5026     done
5027     IFS="$ac_save_IFS"
5028   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5029     ;;
5030 esac
5031 fi
5032 XGETTEXT="$ac_cv_path_XGETTEXT"
5033 if test "$XGETTEXT" != ":"; then
5034   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5035 echo "${ECHO_T}$XGETTEXT" >&6
5036 else
5037   echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5039 fi
5040
5041     rm -f messages.po
5042
5043
5044 # Prepare PATH_SEPARATOR.
5045 # The user is always right.
5046 if test "${PATH_SEPARATOR+set}" != set; then
5047   echo "#! /bin/sh" >conf$$.sh
5048   echo  "exit 0"   >>conf$$.sh
5049   chmod +x conf$$.sh
5050   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5051     PATH_SEPARATOR=';'
5052   else
5053     PATH_SEPARATOR=:
5054   fi
5055   rm -f conf$$.sh
5056 fi
5057
5058 # Find out how to test for executable files. Don't use a zero-byte file,
5059 # as systems may use methods other than mode bits to determine executability.
5060 cat >conf$$.file <<_ASEOF
5061 #! /bin/sh
5062 exit 0
5063 _ASEOF
5064 chmod +x conf$$.file
5065 if test -x conf$$.file >/dev/null 2>&1; then
5066   ac_executable_p="test -x"
5067 else
5068   ac_executable_p="test -f"
5069 fi
5070 rm -f conf$$.file
5071
5072 # Extract the first word of "msgmerge", so it can be a program name with args.
5073 set dummy msgmerge; ac_word=$2
5074 echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5077   echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079   case "$MSGMERGE" in
5080   [\\/]* | ?:[\\/]*)
5081     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5082     ;;
5083   *)
5084     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5085     for ac_dir in $PATH; do
5086       IFS="$ac_save_IFS"
5087       test -z "$ac_dir" && ac_dir=.
5088       for ac_exec_ext in '' $ac_executable_extensions; do
5089         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5090           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5091           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5092             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5093             break 2
5094           fi
5095         fi
5096       done
5097     done
5098     IFS="$ac_save_IFS"
5099   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5100     ;;
5101 esac
5102 fi
5103 MSGMERGE="$ac_cv_path_MSGMERGE"
5104 if test "$MSGMERGE" != ":"; then
5105   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5106 echo "${ECHO_T}$MSGMERGE" >&6
5107 else
5108   echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5110 fi
5111
5112
5113       if test "$GMSGFMT" != ":"; then
5114             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5115        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5116       : ;
5117     else
5118       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5119       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5120 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5121       GMSGFMT=":"
5122     fi
5123   fi
5124
5125       if test "$XGETTEXT" != ":"; then
5126             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5127        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5128       : ;
5129     else
5130       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5131 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5132       XGETTEXT=":"
5133     fi
5134         rm -f messages.po
5135   fi
5136
5137             ac_config_commands="$ac_config_commands default-1"
5138
5139
5140
5141       if test "X$prefix" = "XNONE"; then
5142     acl_final_prefix="$ac_default_prefix"
5143   else
5144     acl_final_prefix="$prefix"
5145   fi
5146   if test "X$exec_prefix" = "XNONE"; then
5147     acl_final_exec_prefix='${prefix}'
5148   else
5149     acl_final_exec_prefix="$exec_prefix"
5150   fi
5151   acl_save_prefix="$prefix"
5152   prefix="$acl_final_prefix"
5153   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5154   prefix="$acl_save_prefix"
5155
5156
5157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5158 if test "${with_gnu_ld+set}" = set; then
5159   withval="$with_gnu_ld"
5160   test "$withval" = no || with_gnu_ld=yes
5161 else
5162   with_gnu_ld=no
5163 fi;
5164 # Prepare PATH_SEPARATOR.
5165 # The user is always right.
5166 if test "${PATH_SEPARATOR+set}" != set; then
5167   echo "#! /bin/sh" >conf$$.sh
5168   echo  "exit 0"   >>conf$$.sh
5169   chmod +x conf$$.sh
5170   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5171     PATH_SEPARATOR=';'
5172   else
5173     PATH_SEPARATOR=:
5174   fi
5175   rm -f conf$$.sh
5176 fi
5177 ac_prog=ld
5178 if test "$GCC" = yes; then
5179   # Check if gcc -print-prog-name=ld gives a path.
5180   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5181 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5182   case $host in
5183   *-*-mingw*)
5184     # gcc leaves a trailing carriage return which upsets mingw
5185     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186   *)
5187     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5188   esac
5189   case $ac_prog in
5190     # Accept absolute paths.
5191     [\\/]* | [A-Za-z]:[\\/]*)
5192       re_direlt='/[^/][^/]*/\.\./'
5193       # Canonicalize the path of ld
5194       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5195       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5196         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5197       done
5198       test -z "$LD" && LD="$ac_prog"
5199       ;;
5200   "")
5201     # If it fails, then pretend we aren't using GCC.
5202     ac_prog=ld
5203     ;;
5204   *)
5205     # If it is relative, then search for the first ld in PATH.
5206     with_gnu_ld=unknown
5207     ;;
5208   esac
5209 elif test "$with_gnu_ld" = yes; then
5210   echo "$as_me:$LINENO: checking for GNU ld" >&5
5211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5212 else
5213   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5215 fi
5216 if test "${acl_cv_path_LD+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   if test -z "$LD"; then
5220   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5221   for ac_dir in $PATH; do
5222     test -z "$ac_dir" && ac_dir=.
5223     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5224       acl_cv_path_LD="$ac_dir/$ac_prog"
5225       # Check to see if the program is GNU ld.  I'd rather use --version,
5226       # but apparently some GNU ld's only accept -v.
5227       # Break only if it was the GNU/non-GNU ld that we prefer.
5228       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5229       *GNU* | *'with BFD'*)
5230         test "$with_gnu_ld" != no && break ;;
5231       *)
5232         test "$with_gnu_ld" != yes && break ;;
5233       esac
5234     fi
5235   done
5236   IFS="$ac_save_ifs"
5237 else
5238   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5239 fi
5240 fi
5241
5242 LD="$acl_cv_path_LD"
5243 if test -n "$LD"; then
5244   echo "$as_me:$LINENO: result: $LD" >&5
5245 echo "${ECHO_T}$LD" >&6
5246 else
5247   echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5249 fi
5250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5252    { (exit 1); exit 1; }; }
5253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5255 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5259 case `$LD -v 2>&1 </dev/null` in
5260 *GNU* | *'with BFD'*)
5261   acl_cv_prog_gnu_ld=yes ;;
5262 *)
5263   acl_cv_prog_gnu_ld=no ;;
5264 esac
5265 fi
5266 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5267 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5268 with_gnu_ld=$acl_cv_prog_gnu_ld
5269
5270
5271
5272
5273                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5274 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5275 if test "${acl_cv_rpath+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278
5279     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5280     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5281     . ./conftest.sh
5282     rm -f ./conftest.sh
5283     acl_cv_rpath=done
5284
5285 fi
5286 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5287 echo "${ECHO_T}$acl_cv_rpath" >&6
5288   wl="$acl_cv_wl"
5289   libext="$acl_cv_libext"
5290   shlibext="$acl_cv_shlibext"
5291   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5292   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5293   hardcode_direct="$acl_cv_hardcode_direct"
5294   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5295     # Check whether --enable-rpath or --disable-rpath was given.
5296 if test "${enable_rpath+set}" = set; then
5297   enableval="$enable_rpath"
5298   :
5299 else
5300   enable_rpath=yes
5301 fi;
5302
5303
5304
5305
5306
5307
5308
5309     use_additional=yes
5310
5311   acl_save_prefix="$prefix"
5312   prefix="$acl_final_prefix"
5313   acl_save_exec_prefix="$exec_prefix"
5314   exec_prefix="$acl_final_exec_prefix"
5315
5316     eval additional_includedir=\"$includedir\"
5317     eval additional_libdir=\"$libdir\"
5318
5319   exec_prefix="$acl_save_exec_prefix"
5320   prefix="$acl_save_prefix"
5321
5322
5323 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5324 if test "${with_libiconv_prefix+set}" = set; then
5325   withval="$with_libiconv_prefix"
5326
5327     if test "X$withval" = "Xno"; then
5328       use_additional=no
5329     else
5330       if test "X$withval" = "X"; then
5331
5332   acl_save_prefix="$prefix"
5333   prefix="$acl_final_prefix"
5334   acl_save_exec_prefix="$exec_prefix"
5335   exec_prefix="$acl_final_exec_prefix"
5336
5337           eval additional_includedir=\"$includedir\"
5338           eval additional_libdir=\"$libdir\"
5339
5340   exec_prefix="$acl_save_exec_prefix"
5341   prefix="$acl_save_prefix"
5342
5343       else
5344         additional_includedir="$withval/include"
5345         additional_libdir="$withval/lib"
5346       fi
5347     fi
5348
5349 fi;
5350       LIBICONV=
5351   LTLIBICONV=
5352   INCICONV=
5353   rpathdirs=
5354   ltrpathdirs=
5355   names_already_handled=
5356   names_next_round='iconv '
5357   while test -n "$names_next_round"; do
5358     names_this_round="$names_next_round"
5359     names_next_round=
5360     for name in $names_this_round; do
5361       already_handled=
5362       for n in $names_already_handled; do
5363         if test "$n" = "$name"; then
5364           already_handled=yes
5365           break
5366         fi
5367       done
5368       if test -z "$already_handled"; then
5369         names_already_handled="$names_already_handled $name"
5370                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5371         eval value=\"\$HAVE_LIB$uppername\"
5372         if test -n "$value"; then
5373           if test "$value" = yes; then
5374             eval value=\"\$LIB$uppername\"
5375             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5376             eval value=\"\$LTLIB$uppername\"
5377             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5378           else
5379                                     :
5380           fi
5381         else
5382                               found_dir=
5383           found_la=
5384           found_so=
5385           found_a=
5386           if test $use_additional = yes; then
5387             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5388               found_dir="$additional_libdir"
5389               found_so="$additional_libdir/lib$name.$shlibext"
5390               if test -f "$additional_libdir/lib$name.la"; then
5391                 found_la="$additional_libdir/lib$name.la"
5392               fi
5393             else
5394               if test -f "$additional_libdir/lib$name.$libext"; then
5395                 found_dir="$additional_libdir"
5396                 found_a="$additional_libdir/lib$name.$libext"
5397                 if test -f "$additional_libdir/lib$name.la"; then
5398                   found_la="$additional_libdir/lib$name.la"
5399                 fi
5400               fi
5401             fi
5402           fi
5403           if test "X$found_dir" = "X"; then
5404             for x in $LDFLAGS $LTLIBICONV; do
5405
5406   acl_save_prefix="$prefix"
5407   prefix="$acl_final_prefix"
5408   acl_save_exec_prefix="$exec_prefix"
5409   exec_prefix="$acl_final_exec_prefix"
5410   eval x=\"$x\"
5411   exec_prefix="$acl_save_exec_prefix"
5412   prefix="$acl_save_prefix"
5413
5414               case "$x" in
5415                 -L*)
5416                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5417                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5418                     found_dir="$dir"
5419                     found_so="$dir/lib$name.$shlibext"
5420                     if test -f "$dir/lib$name.la"; then
5421                       found_la="$dir/lib$name.la"
5422                     fi
5423                   else
5424                     if test -f "$dir/lib$name.$libext"; then
5425                       found_dir="$dir"
5426                       found_a="$dir/lib$name.$libext"
5427                       if test -f "$dir/lib$name.la"; then
5428                         found_la="$dir/lib$name.la"
5429                       fi
5430                     fi
5431                   fi
5432                   ;;
5433               esac
5434               if test "X$found_dir" != "X"; then
5435                 break
5436               fi
5437             done
5438           fi
5439           if test "X$found_dir" != "X"; then
5440                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5441             if test "X$found_so" != "X"; then
5442                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5443                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5444               else
5445                                                                                 haveit=
5446                 for x in $ltrpathdirs; do
5447                   if test "X$x" = "X$found_dir"; then
5448                     haveit=yes
5449                     break
5450                   fi
5451                 done
5452                 if test -z "$haveit"; then
5453                   ltrpathdirs="$ltrpathdirs $found_dir"
5454                 fi
5455                                 if test "$hardcode_direct" = yes; then
5456                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5457                 else
5458                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5459                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5460                                                             haveit=
5461                     for x in $rpathdirs; do
5462                       if test "X$x" = "X$found_dir"; then
5463                         haveit=yes
5464                         break
5465                       fi
5466                     done
5467                     if test -z "$haveit"; then
5468                       rpathdirs="$rpathdirs $found_dir"
5469                     fi
5470                   else
5471                                                                                 haveit=
5472                     for x in $LDFLAGS $LIBICONV; do
5473
5474   acl_save_prefix="$prefix"
5475   prefix="$acl_final_prefix"
5476   acl_save_exec_prefix="$exec_prefix"
5477   exec_prefix="$acl_final_exec_prefix"
5478   eval x=\"$x\"
5479   exec_prefix="$acl_save_exec_prefix"
5480   prefix="$acl_save_prefix"
5481
5482                       if test "X$x" = "X-L$found_dir"; then
5483                         haveit=yes
5484                         break
5485                       fi
5486                     done
5487                     if test -z "$haveit"; then
5488                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5489                     fi
5490                     if test "$hardcode_minus_L" != no; then
5491                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5492                     else
5493                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5494                     fi
5495                   fi
5496                 fi
5497               fi
5498             else
5499               if test "X$found_a" != "X"; then
5500                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5501               else
5502                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5503               fi
5504             fi
5505                         additional_includedir=
5506             case "$found_dir" in
5507               */lib | */lib/)
5508                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5509                 additional_includedir="$basedir/include"
5510                 ;;
5511             esac
5512             if test "X$additional_includedir" != "X"; then
5513                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5514                 haveit=
5515                 if test "X$additional_includedir" = "X/usr/local/include"; then
5516                   if test -n "$GCC"; then
5517                     case $host_os in
5518                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5519                     esac
5520                   fi
5521                 fi
5522                 if test -z "$haveit"; then
5523                   for x in $CPPFLAGS $INCICONV; do
5524
5525   acl_save_prefix="$prefix"
5526   prefix="$acl_final_prefix"
5527   acl_save_exec_prefix="$exec_prefix"
5528   exec_prefix="$acl_final_exec_prefix"
5529   eval x=\"$x\"
5530   exec_prefix="$acl_save_exec_prefix"
5531   prefix="$acl_save_prefix"
5532
5533                     if test "X$x" = "X-I$additional_includedir"; then
5534                       haveit=yes
5535                       break
5536                     fi
5537                   done
5538                   if test -z "$haveit"; then
5539                     if test -d "$additional_includedir"; then
5540                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5541                     fi
5542                   fi
5543                 fi
5544               fi
5545             fi
5546                         if test -n "$found_la"; then
5547                                                         save_libdir="$libdir"
5548               case "$found_la" in
5549                 */* | *\\*) . "$found_la" ;;
5550                 *) . "./$found_la" ;;
5551               esac
5552               libdir="$save_libdir"
5553                             for dep in $dependency_libs; do
5554                 case "$dep" in
5555                   -L*)
5556                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5557                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5558                       haveit=
5559                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5560                         if test -n "$GCC"; then
5561                           case $host_os in
5562                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5563                           esac
5564                         fi
5565                       fi
5566                       if test -z "$haveit"; then
5567                         haveit=
5568                         for x in $LDFLAGS $LIBICONV; do
5569
5570   acl_save_prefix="$prefix"
5571   prefix="$acl_final_prefix"
5572   acl_save_exec_prefix="$exec_prefix"
5573   exec_prefix="$acl_final_exec_prefix"
5574   eval x=\"$x\"
5575   exec_prefix="$acl_save_exec_prefix"
5576   prefix="$acl_save_prefix"
5577
5578                           if test "X$x" = "X-L$additional_libdir"; then
5579                             haveit=yes
5580                             break
5581                           fi
5582                         done
5583                         if test -z "$haveit"; then
5584                           if test -d "$additional_libdir"; then
5585                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5586                           fi
5587                         fi
5588                         haveit=
5589                         for x in $LDFLAGS $LTLIBICONV; do
5590
5591   acl_save_prefix="$prefix"
5592   prefix="$acl_final_prefix"
5593   acl_save_exec_prefix="$exec_prefix"
5594   exec_prefix="$acl_final_exec_prefix"
5595   eval x=\"$x\"
5596   exec_prefix="$acl_save_exec_prefix"
5597   prefix="$acl_save_prefix"
5598
5599                           if test "X$x" = "X-L$additional_libdir"; then
5600                             haveit=yes
5601                             break
5602                           fi
5603                         done
5604                         if test -z "$haveit"; then
5605                           if test -d "$additional_libdir"; then
5606                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5607                           fi
5608                         fi
5609                       fi
5610                     fi
5611                     ;;
5612                   -R*)
5613                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5614                     if test "$enable_rpath" != no; then
5615                                                                   haveit=
5616                       for x in $rpathdirs; do
5617                         if test "X$x" = "X$dir"; then
5618                           haveit=yes
5619                           break
5620                         fi
5621                       done
5622                       if test -z "$haveit"; then
5623                         rpathdirs="$rpathdirs $dir"
5624                       fi
5625                                                                   haveit=
5626                       for x in $ltrpathdirs; do
5627                         if test "X$x" = "X$dir"; then
5628                           haveit=yes
5629                           break
5630                         fi
5631                       done
5632                       if test -z "$haveit"; then
5633                         ltrpathdirs="$ltrpathdirs $dir"
5634                       fi
5635                     fi
5636                     ;;
5637                   -l*)
5638                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5639                     ;;
5640                   *.la)
5641                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5642                     ;;
5643                   *)
5644                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5645                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5646                     ;;
5647                 esac
5648               done
5649             fi
5650           else
5651                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5652             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5653           fi
5654         fi
5655       fi
5656     done
5657   done
5658   if test "X$rpathdirs" != "X"; then
5659     if test -n "$hardcode_libdir_separator"; then
5660                         alldirs=
5661       for found_dir in $rpathdirs; do
5662         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5663       done
5664             acl_save_libdir="$libdir"
5665       libdir="$alldirs"
5666       eval flag=\"$hardcode_libdir_flag_spec\"
5667       libdir="$acl_save_libdir"
5668       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5669     else
5670             for found_dir in $rpathdirs; do
5671         acl_save_libdir="$libdir"
5672         libdir="$found_dir"
5673         eval flag=\"$hardcode_libdir_flag_spec\"
5674         libdir="$acl_save_libdir"
5675         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5676       done
5677     fi
5678   fi
5679   if test "X$ltrpathdirs" != "X"; then
5680             for found_dir in $ltrpathdirs; do
5681       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5682     done
5683   fi
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5703 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5704 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   gt_save_CPPFLAGS="$CPPFLAGS"
5708      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5709      gt_save_LIBS="$LIBS"
5710      LIBS="$LIBS -framework CoreFoundation"
5711      cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 #include <CFPreferences.h>
5718 int
5719 main ()
5720 {
5721 CFPreferencesCopyAppValue(NULL, NULL)
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728   (eval $ac_link) 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } &&
5735          { ac_try='test -z "$ac_c_werror_flag"
5736                          || test ! -s conftest.err'
5737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738   (eval $ac_try) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; } &&
5742          { ac_try='test -s conftest$ac_exeext'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748   gt_cv_func_CFPreferencesCopyAppValue=yes
5749 else
5750   echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 gt_cv_func_CFPreferencesCopyAppValue=no
5754 fi
5755 rm -f conftest.err conftest.$ac_objext \
5756       conftest$ac_exeext conftest.$ac_ext
5757      CPPFLAGS="$gt_save_CPPFLAGS"
5758      LIBS="$gt_save_LIBS"
5759 fi
5760 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5761 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5762   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5763
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5766 _ACEOF
5767
5768   fi
5769     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5770 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5771 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   gt_save_CPPFLAGS="$CPPFLAGS"
5775      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5776      gt_save_LIBS="$LIBS"
5777      LIBS="$LIBS -framework CoreFoundation"
5778      cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 #include <CFLocale.h>
5785 int
5786 main ()
5787 {
5788 CFLocaleCopyCurrent();
5789   ;
5790   return 0;
5791 }
5792 _ACEOF
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795   (eval $ac_link) 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } &&
5802          { ac_try='test -z "$ac_c_werror_flag"
5803                          || test ! -s conftest.err'
5804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; } &&
5809          { ac_try='test -s conftest$ac_exeext'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815   gt_cv_func_CFLocaleCopyCurrent=yes
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 gt_cv_func_CFLocaleCopyCurrent=no
5821 fi
5822 rm -f conftest.err conftest.$ac_objext \
5823       conftest$ac_exeext conftest.$ac_ext
5824      CPPFLAGS="$gt_save_CPPFLAGS"
5825      LIBS="$gt_save_LIBS"
5826 fi
5827 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5828 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5829   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5830
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_CFLOCALECOPYCURRENT 1
5833 _ACEOF
5834
5835   fi
5836   INTL_MACOSX_LIBS=
5837   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5838     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5839   fi
5840
5841
5842
5843
5844   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5845 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5846     # Check whether --enable-nls or --disable-nls was given.
5847 if test "${enable_nls+set}" = set; then
5848   enableval="$enable_nls"
5849   USE_NLS=$enableval
5850 else
5851   USE_NLS=yes
5852 fi;
5853   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5854 echo "${ECHO_T}$USE_NLS" >&6
5855
5856
5857
5858
5859   LIBINTL=
5860   LTLIBINTL=
5861   POSUB=
5862
5863     if test "$USE_NLS" = "yes"; then
5864     gt_use_preinstalled_gnugettext=no
5865
5866
5867
5868
5869
5870
5871         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5872 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5873 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h.  */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h.  */
5882 #include <libintl.h>
5883 extern int _nl_msg_cat_cntr;
5884 extern int *_nl_domain_bindings;
5885 int
5886 main ()
5887 {
5888 bindtextdomain ("", "");
5889 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896   (eval $ac_link) 2>conftest.er1
5897   ac_status=$?
5898   grep -v '^ *+' conftest.er1 >conftest.err
5899   rm -f conftest.er1
5900   cat conftest.err >&5
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); } &&
5903          { ac_try='test -z "$ac_c_werror_flag"
5904                          || test ! -s conftest.err'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; } &&
5910          { ac_try='test -s conftest$ac_exeext'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; }; then
5916   gt_cv_func_gnugettext1_libc=yes
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 gt_cv_func_gnugettext1_libc=no
5922 fi
5923 rm -f conftest.err conftest.$ac_objext \
5924       conftest$ac_exeext conftest.$ac_ext
5925 fi
5926 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5927 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5928
5929         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5930
5931
5932
5933
5934
5935           am_save_CPPFLAGS="$CPPFLAGS"
5936
5937   for element in $INCICONV; do
5938     haveit=
5939     for x in $CPPFLAGS; do
5940
5941   acl_save_prefix="$prefix"
5942   prefix="$acl_final_prefix"
5943   acl_save_exec_prefix="$exec_prefix"
5944   exec_prefix="$acl_final_exec_prefix"
5945   eval x=\"$x\"
5946   exec_prefix="$acl_save_exec_prefix"
5947   prefix="$acl_save_prefix"
5948
5949       if test "X$x" = "X$element"; then
5950         haveit=yes
5951         break
5952       fi
5953     done
5954     if test -z "$haveit"; then
5955       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5956     fi
5957   done
5958
5959
5960   echo "$as_me:$LINENO: checking for iconv" >&5
5961 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5962 if test "${am_cv_func_iconv+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965
5966     am_cv_func_iconv="no, consider installing GNU libiconv"
5967     am_cv_lib_iconv=no
5968     cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 #include <stdlib.h>
5975 #include <iconv.h>
5976 int
5977 main ()
5978 {
5979 iconv_t cd = iconv_open("","");
5980        iconv(cd,NULL,NULL,NULL,NULL);
5981        iconv_close(cd);
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988   (eval $ac_link) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   am_cv_func_iconv=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 fi
6014 rm -f conftest.err conftest.$ac_objext \
6015       conftest$ac_exeext conftest.$ac_ext
6016     if test "$am_cv_func_iconv" != yes; then
6017       am_save_LIBS="$LIBS"
6018       LIBS="$LIBS $LIBICONV"
6019       cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #include <stdlib.h>
6026 #include <iconv.h>
6027 int
6028 main ()
6029 {
6030 iconv_t cd = iconv_open("","");
6031          iconv(cd,NULL,NULL,NULL,NULL);
6032          iconv_close(cd);
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039   (eval $ac_link) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -z "$ac_c_werror_flag"
6047                          || test ! -s conftest.err'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; } &&
6053          { ac_try='test -s conftest$ac_exeext'
6054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055   (eval $ac_try) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; }; then
6059   am_cv_lib_iconv=yes
6060         am_cv_func_iconv=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 fi
6066 rm -f conftest.err conftest.$ac_objext \
6067       conftest$ac_exeext conftest.$ac_ext
6068       LIBS="$am_save_LIBS"
6069     fi
6070
6071 fi
6072 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6073 echo "${ECHO_T}$am_cv_func_iconv" >&6
6074   if test "$am_cv_func_iconv" = yes; then
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAVE_ICONV 1
6078 _ACEOF
6079
6080   fi
6081   if test "$am_cv_lib_iconv" = yes; then
6082     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6083 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6084     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6085 echo "${ECHO_T}$LIBICONV" >&6
6086   else
6087             CPPFLAGS="$am_save_CPPFLAGS"
6088     LIBICONV=
6089     LTLIBICONV=
6090   fi
6091
6092
6093
6094
6095
6096
6097     use_additional=yes
6098
6099   acl_save_prefix="$prefix"
6100   prefix="$acl_final_prefix"
6101   acl_save_exec_prefix="$exec_prefix"
6102   exec_prefix="$acl_final_exec_prefix"
6103
6104     eval additional_includedir=\"$includedir\"
6105     eval additional_libdir=\"$libdir\"
6106
6107   exec_prefix="$acl_save_exec_prefix"
6108   prefix="$acl_save_prefix"
6109
6110
6111 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6112 if test "${with_libintl_prefix+set}" = set; then
6113   withval="$with_libintl_prefix"
6114
6115     if test "X$withval" = "Xno"; then
6116       use_additional=no
6117     else
6118       if test "X$withval" = "X"; then
6119
6120   acl_save_prefix="$prefix"
6121   prefix="$acl_final_prefix"
6122   acl_save_exec_prefix="$exec_prefix"
6123   exec_prefix="$acl_final_exec_prefix"
6124
6125           eval additional_includedir=\"$includedir\"
6126           eval additional_libdir=\"$libdir\"
6127
6128   exec_prefix="$acl_save_exec_prefix"
6129   prefix="$acl_save_prefix"
6130
6131       else
6132         additional_includedir="$withval/include"
6133         additional_libdir="$withval/lib"
6134       fi
6135     fi
6136
6137 fi;
6138       LIBINTL=
6139   LTLIBINTL=
6140   INCINTL=
6141   rpathdirs=
6142   ltrpathdirs=
6143   names_already_handled=
6144   names_next_round='intl '
6145   while test -n "$names_next_round"; do
6146     names_this_round="$names_next_round"
6147     names_next_round=
6148     for name in $names_this_round; do
6149       already_handled=
6150       for n in $names_already_handled; do
6151         if test "$n" = "$name"; then
6152           already_handled=yes
6153           break
6154         fi
6155       done
6156       if test -z "$already_handled"; then
6157         names_already_handled="$names_already_handled $name"
6158                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6159         eval value=\"\$HAVE_LIB$uppername\"
6160         if test -n "$value"; then
6161           if test "$value" = yes; then
6162             eval value=\"\$LIB$uppername\"
6163             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6164             eval value=\"\$LTLIB$uppername\"
6165             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6166           else
6167                                     :
6168           fi
6169         else
6170                               found_dir=
6171           found_la=
6172           found_so=
6173           found_a=
6174           if test $use_additional = yes; then
6175             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6176               found_dir="$additional_libdir"
6177               found_so="$additional_libdir/lib$name.$shlibext"
6178               if test -f "$additional_libdir/lib$name.la"; then
6179                 found_la="$additional_libdir/lib$name.la"
6180               fi
6181             else
6182               if test -f "$additional_libdir/lib$name.$libext"; then
6183                 found_dir="$additional_libdir"
6184                 found_a="$additional_libdir/lib$name.$libext"
6185                 if test -f "$additional_libdir/lib$name.la"; then
6186                   found_la="$additional_libdir/lib$name.la"
6187                 fi
6188               fi
6189             fi
6190           fi
6191           if test "X$found_dir" = "X"; then
6192             for x in $LDFLAGS $LTLIBINTL; do
6193
6194   acl_save_prefix="$prefix"
6195   prefix="$acl_final_prefix"
6196   acl_save_exec_prefix="$exec_prefix"
6197   exec_prefix="$acl_final_exec_prefix"
6198   eval x=\"$x\"
6199   exec_prefix="$acl_save_exec_prefix"
6200   prefix="$acl_save_prefix"
6201
6202               case "$x" in
6203                 -L*)
6204                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6205                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6206                     found_dir="$dir"
6207                     found_so="$dir/lib$name.$shlibext"
6208                     if test -f "$dir/lib$name.la"; then
6209                       found_la="$dir/lib$name.la"
6210                     fi
6211                   else
6212                     if test -f "$dir/lib$name.$libext"; then
6213                       found_dir="$dir"
6214                       found_a="$dir/lib$name.$libext"
6215                       if test -f "$dir/lib$name.la"; then
6216                         found_la="$dir/lib$name.la"
6217                       fi
6218                     fi
6219                   fi
6220                   ;;
6221               esac
6222               if test "X$found_dir" != "X"; then
6223                 break
6224               fi
6225             done
6226           fi
6227           if test "X$found_dir" != "X"; then
6228                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6229             if test "X$found_so" != "X"; then
6230                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6231                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6232               else
6233                                                                                 haveit=
6234                 for x in $ltrpathdirs; do
6235                   if test "X$x" = "X$found_dir"; then
6236                     haveit=yes
6237                     break
6238                   fi
6239                 done
6240                 if test -z "$haveit"; then
6241                   ltrpathdirs="$ltrpathdirs $found_dir"
6242                 fi
6243                                 if test "$hardcode_direct" = yes; then
6244                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6245                 else
6246                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6247                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6248                                                             haveit=
6249                     for x in $rpathdirs; do
6250                       if test "X$x" = "X$found_dir"; then
6251                         haveit=yes
6252                         break
6253                       fi
6254                     done
6255                     if test -z "$haveit"; then
6256                       rpathdirs="$rpathdirs $found_dir"
6257                     fi
6258                   else
6259                                                                                 haveit=
6260                     for x in $LDFLAGS $LIBINTL; do
6261
6262   acl_save_prefix="$prefix"
6263   prefix="$acl_final_prefix"
6264   acl_save_exec_prefix="$exec_prefix"
6265   exec_prefix="$acl_final_exec_prefix"
6266   eval x=\"$x\"
6267   exec_prefix="$acl_save_exec_prefix"
6268   prefix="$acl_save_prefix"
6269
6270                       if test "X$x" = "X-L$found_dir"; then
6271                         haveit=yes
6272                         break
6273                       fi
6274                     done
6275                     if test -z "$haveit"; then
6276                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6277                     fi
6278                     if test "$hardcode_minus_L" != no; then
6279                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6280                     else
6281                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6282                     fi
6283                   fi
6284                 fi
6285               fi
6286             else
6287               if test "X$found_a" != "X"; then
6288                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6289               else
6290                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6291               fi
6292             fi
6293                         additional_includedir=
6294             case "$found_dir" in
6295               */lib | */lib/)
6296                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6297                 additional_includedir="$basedir/include"
6298                 ;;
6299             esac
6300             if test "X$additional_includedir" != "X"; then
6301                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6302                 haveit=
6303                 if test "X$additional_includedir" = "X/usr/local/include"; then
6304                   if test -n "$GCC"; then
6305                     case $host_os in
6306                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6307                     esac
6308                   fi
6309                 fi
6310                 if test -z "$haveit"; then
6311                   for x in $CPPFLAGS $INCINTL; do
6312
6313   acl_save_prefix="$prefix"
6314   prefix="$acl_final_prefix"
6315   acl_save_exec_prefix="$exec_prefix"
6316   exec_prefix="$acl_final_exec_prefix"
6317   eval x=\"$x\"
6318   exec_prefix="$acl_save_exec_prefix"
6319   prefix="$acl_save_prefix"
6320
6321                     if test "X$x" = "X-I$additional_includedir"; then
6322                       haveit=yes
6323                       break
6324                     fi
6325                   done
6326                   if test -z "$haveit"; then
6327                     if test -d "$additional_includedir"; then
6328                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6329                     fi
6330                   fi
6331                 fi
6332               fi
6333             fi
6334                         if test -n "$found_la"; then
6335                                                         save_libdir="$libdir"
6336               case "$found_la" in
6337                 */* | *\\*) . "$found_la" ;;
6338                 *) . "./$found_la" ;;
6339               esac
6340               libdir="$save_libdir"
6341                             for dep in $dependency_libs; do
6342                 case "$dep" in
6343                   -L*)
6344                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6345                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6346                       haveit=
6347                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6348                         if test -n "$GCC"; then
6349                           case $host_os in
6350                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6351                           esac
6352                         fi
6353                       fi
6354                       if test -z "$haveit"; then
6355                         haveit=
6356                         for x in $LDFLAGS $LIBINTL; do
6357
6358   acl_save_prefix="$prefix"
6359   prefix="$acl_final_prefix"
6360   acl_save_exec_prefix="$exec_prefix"
6361   exec_prefix="$acl_final_exec_prefix"
6362   eval x=\"$x\"
6363   exec_prefix="$acl_save_exec_prefix"
6364   prefix="$acl_save_prefix"
6365
6366                           if test "X$x" = "X-L$additional_libdir"; then
6367                             haveit=yes
6368                             break
6369                           fi
6370                         done
6371                         if test -z "$haveit"; then
6372                           if test -d "$additional_libdir"; then
6373                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6374                           fi
6375                         fi
6376                         haveit=
6377                         for x in $LDFLAGS $LTLIBINTL; do
6378
6379   acl_save_prefix="$prefix"
6380   prefix="$acl_final_prefix"
6381   acl_save_exec_prefix="$exec_prefix"
6382   exec_prefix="$acl_final_exec_prefix"
6383   eval x=\"$x\"
6384   exec_prefix="$acl_save_exec_prefix"
6385   prefix="$acl_save_prefix"
6386
6387                           if test "X$x" = "X-L$additional_libdir"; then
6388                             haveit=yes
6389                             break
6390                           fi
6391                         done
6392                         if test -z "$haveit"; then
6393                           if test -d "$additional_libdir"; then
6394                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6395                           fi
6396                         fi
6397                       fi
6398                     fi
6399                     ;;
6400                   -R*)
6401                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6402                     if test "$enable_rpath" != no; then
6403                                                                   haveit=
6404                       for x in $rpathdirs; do
6405                         if test "X$x" = "X$dir"; then
6406                           haveit=yes
6407                           break
6408                         fi
6409                       done
6410                       if test -z "$haveit"; then
6411                         rpathdirs="$rpathdirs $dir"
6412                       fi
6413                                                                   haveit=
6414                       for x in $ltrpathdirs; do
6415                         if test "X$x" = "X$dir"; then
6416                           haveit=yes
6417                           break
6418                         fi
6419                       done
6420                       if test -z "$haveit"; then
6421                         ltrpathdirs="$ltrpathdirs $dir"
6422                       fi
6423                     fi
6424                     ;;
6425                   -l*)
6426                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6427                     ;;
6428                   *.la)
6429                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6430                     ;;
6431                   *)
6432                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6433                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6434                     ;;
6435                 esac
6436               done
6437             fi
6438           else
6439                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6440             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6441           fi
6442         fi
6443       fi
6444     done
6445   done
6446   if test "X$rpathdirs" != "X"; then
6447     if test -n "$hardcode_libdir_separator"; then
6448                         alldirs=
6449       for found_dir in $rpathdirs; do
6450         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6451       done
6452             acl_save_libdir="$libdir"
6453       libdir="$alldirs"
6454       eval flag=\"$hardcode_libdir_flag_spec\"
6455       libdir="$acl_save_libdir"
6456       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6457     else
6458             for found_dir in $rpathdirs; do
6459         acl_save_libdir="$libdir"
6460         libdir="$found_dir"
6461         eval flag=\"$hardcode_libdir_flag_spec\"
6462         libdir="$acl_save_libdir"
6463         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6464       done
6465     fi
6466   fi
6467   if test "X$ltrpathdirs" != "X"; then
6468             for found_dir in $ltrpathdirs; do
6469       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6470     done
6471   fi
6472
6473           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6474 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6475 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   gt_save_CPPFLAGS="$CPPFLAGS"
6479             CPPFLAGS="$CPPFLAGS $INCINTL"
6480             gt_save_LIBS="$LIBS"
6481             LIBS="$LIBS $LIBINTL"
6482                         cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 #include <libintl.h>
6489 extern int _nl_msg_cat_cntr;
6490 extern
6491 #ifdef __cplusplus
6492 "C"
6493 #endif
6494 const char *_nl_expand_alias (const char *);
6495 int
6496 main ()
6497 {
6498 bindtextdomain ("", "");
6499 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506   (eval $ac_link) 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } &&
6513          { ac_try='test -z "$ac_c_werror_flag"
6514                          || test ! -s conftest.err'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; } &&
6520          { ac_try='test -s conftest$ac_exeext'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; }; then
6526   gt_cv_func_gnugettext1_libintl=yes
6527 else
6528   echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 gt_cv_func_gnugettext1_libintl=no
6532 fi
6533 rm -f conftest.err conftest.$ac_objext \
6534       conftest$ac_exeext conftest.$ac_ext
6535                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6536               LIBS="$LIBS $LIBICONV"
6537               cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543 #include <libintl.h>
6544 extern int _nl_msg_cat_cntr;
6545 extern
6546 #ifdef __cplusplus
6547 "C"
6548 #endif
6549 const char *_nl_expand_alias (const char *);
6550 int
6551 main ()
6552 {
6553 bindtextdomain ("", "");
6554 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561   (eval $ac_link) 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } &&
6568          { ac_try='test -z "$ac_c_werror_flag"
6569                          || test ! -s conftest.err'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest$ac_exeext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   LIBINTL="$LIBINTL $LIBICONV"
6582                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6583                 gt_cv_func_gnugettext1_libintl=yes
6584
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 fi
6590 rm -f conftest.err conftest.$ac_objext \
6591       conftest$ac_exeext conftest.$ac_ext
6592             fi
6593             CPPFLAGS="$gt_save_CPPFLAGS"
6594             LIBS="$gt_save_LIBS"
6595 fi
6596 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6597 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6598         fi
6599
6600                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6601            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6602                 && test "$PACKAGE" != gettext-runtime \
6603                 && test "$PACKAGE" != gettext-tools; }; then
6604           gt_use_preinstalled_gnugettext=yes
6605         else
6606                     LIBINTL=
6607           LTLIBINTL=
6608           INCINTL=
6609         fi
6610
6611
6612
6613     if test -n "$INTL_MACOSX_LIBS"; then
6614       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6615          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6616                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6617         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6618       fi
6619     fi
6620
6621     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6622        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6623
6624 cat >>confdefs.h <<\_ACEOF
6625 #define ENABLE_NLS 1
6626 _ACEOF
6627
6628     else
6629       USE_NLS=no
6630     fi
6631   fi
6632
6633   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6634 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6635   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6636 echo "${ECHO_T}$USE_NLS" >&6
6637   if test "$USE_NLS" = "yes"; then
6638     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6639 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6640     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6641       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6642         gt_source="external libintl"
6643       else
6644         gt_source="libc"
6645       fi
6646     else
6647       gt_source="included intl directory"
6648     fi
6649     echo "$as_me:$LINENO: result: $gt_source" >&5
6650 echo "${ECHO_T}$gt_source" >&6
6651   fi
6652
6653   if test "$USE_NLS" = "yes"; then
6654
6655     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6656       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6657         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6658 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6659         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6660 echo "${ECHO_T}$LIBINTL" >&6
6661
6662   for element in $INCINTL; do
6663     haveit=
6664     for x in $CPPFLAGS; do
6665
6666   acl_save_prefix="$prefix"
6667   prefix="$acl_final_prefix"
6668   acl_save_exec_prefix="$exec_prefix"
6669   exec_prefix="$acl_final_exec_prefix"
6670   eval x=\"$x\"
6671   exec_prefix="$acl_save_exec_prefix"
6672   prefix="$acl_save_prefix"
6673
6674       if test "X$x" = "X$element"; then
6675         haveit=yes
6676         break
6677       fi
6678     done
6679     if test -z "$haveit"; then
6680       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6681     fi
6682   done
6683
6684       fi
6685
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_GETTEXT 1
6689 _ACEOF
6690
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_DCGETTEXT 1
6694 _ACEOF
6695
6696     fi
6697
6698         POSUB=po
6699   fi
6700
6701
6702
6703     INTLLIBS="$LIBINTL"
6704
6705
6706
6707
6708
6709
6710 if test x${prefix} = xNONE ; then
6711    if test `eval echo ${datadir}` = NONE/share ; then
6712       datadir=/usr/share
6713    fi
6714 fi
6715
6716 # ------------------------------------------------------------------
6717 #  If the user has not set --prefix, we set our default to nothing.
6718 #  In this case, if the user has not set --sysconfdir, we set it
6719 #  to the package default of /etc/bacula.  If either --prefix or
6720 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6721 # ------------------------------------------------------------------
6722 if test x${prefix} = xNONE ; then
6723     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6724         sysconfdir=/etc/bacula
6725     fi
6726     prefix=
6727 fi
6728 sysconfdir=`eval echo ${sysconfdir}`
6729 datadir=`eval echo ${datadir}`
6730 localedir=`eval echo ${datadir}/locale`
6731 cat >>confdefs.h <<_ACEOF
6732 #define LOCALEDIR "$localedir"
6733 _ACEOF
6734
6735
6736 # -------------------------------------------------------------------------
6737 #  If the user has not set --exec-prefix, we default to ${prefix}
6738 # -------------------------------------------------------------------------
6739 if test x${exec_prefix} = xNONE ; then
6740     exec_prefix=${prefix}
6741 fi
6742
6743 # ------------------------------------------------------------------
6744 # If the user has not set --sbindir, we set our default as /sbin
6745 # ------------------------------------------------------------------
6746 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6747     sbindir=${exec_prefix}/sbin
6748 fi
6749 sbindir=`eval echo ${sbindir}`
6750
6751 # -------------------------------------------------------------------------
6752 #  If the user has not set --mandir, we default to /usr/share/man
6753 # -------------------------------------------------------------------------
6754 if test x$mandir = x'${prefix}/man' ; then
6755    mandir=/usr/share/man
6756 fi
6757
6758
6759 # ------------------------------------------------------------------
6760 # All list of languages for which a translation exist. Each
6761 #  language is separated by a space.
6762 # ------------------------------------------------------------------
6763 ALL_LINGUAS=""
6764
6765 for ac_prog in msgfmt
6766 do
6767   # Extract the first word of "$ac_prog", so it can be a program name with args.
6768 set dummy $ac_prog; ac_word=$2
6769 echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6771 if test "${ac_cv_path_MSGFMT+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   case $MSGFMT in
6775   [\\/]* | ?:[\\/]*)
6776   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6777   ;;
6778   *)
6779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792
6793   ;;
6794 esac
6795 fi
6796 MSGFMT=$ac_cv_path_MSGFMT
6797
6798 if test -n "$MSGFMT"; then
6799   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6800 echo "${ECHO_T}$MSGFMT" >&6
6801 else
6802   echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6804 fi
6805
6806   test -n "$MSGFMT" && break
6807 done
6808 test -n "$MSGFMT" || MSGFMT="no"
6809
6810 if test "$MSGFMT" = "no"
6811 then
6812    echo 'msgfmt program not found, disabling NLS !'
6813    USE_NLS=no
6814    USE_INCLUDED_LIBINTL=no
6815 #else
6816
6817     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6818 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6819 if test "${ac_cv_gnu_library_2+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h.  */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h.  */
6828
6829 #include <features.h>
6830 #ifdef __GNU_LIBRARY__
6831  #if (__GLIBC__ >= 2)
6832   Lucky GNU user
6833  #endif
6834 #endif
6835
6836 _ACEOF
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6839   ac_cv_gnu_library_2=yes
6840 else
6841   ac_cv_gnu_library_2=no
6842 fi
6843 rm -f conftest*
6844
6845
6846
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6849 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6850
6851     GLIBC2="$ac_cv_gnu_library_2"
6852
6853
6854 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6855 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6856 if test "${ac_cv_search_strerror+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   ac_func_search_save_LIBS=$LIBS
6860 ac_cv_search_strerror=no
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h.  */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h.  */
6867
6868 /* Override any gcc2 internal prototype to avoid an error.  */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 /* We use char because int might match the return type of a gcc2
6873    builtin and then its argument prototype would still apply.  */
6874 char strerror ();
6875 int
6876 main ()
6877 {
6878 strerror ();
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885   (eval $ac_link) 2>conftest.er1
6886   ac_status=$?
6887   grep -v '^ *+' conftest.er1 >conftest.err
6888   rm -f conftest.er1
6889   cat conftest.err >&5
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } &&
6892          { ac_try='test -z "$ac_c_werror_flag"
6893                          || test ! -s conftest.err'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; } &&
6899          { ac_try='test -s conftest$ac_exeext'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; }; then
6905   ac_cv_search_strerror="none required"
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 fi
6911 rm -f conftest.err conftest.$ac_objext \
6912       conftest$ac_exeext conftest.$ac_ext
6913 if test "$ac_cv_search_strerror" = no; then
6914   for ac_lib in cposix; do
6915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6916     cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922
6923 /* Override any gcc2 internal prototype to avoid an error.  */
6924 #ifdef __cplusplus
6925 extern "C"
6926 #endif
6927 /* We use char because int might match the return type of a gcc2
6928    builtin and then its argument prototype would still apply.  */
6929 char strerror ();
6930 int
6931 main ()
6932 {
6933 strerror ();
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940   (eval $ac_link) 2>conftest.er1
6941   ac_status=$?
6942   grep -v '^ *+' conftest.er1 >conftest.err
6943   rm -f conftest.er1
6944   cat conftest.err >&5
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -z "$ac_c_werror_flag"
6948                          || test ! -s conftest.err'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; } &&
6954          { ac_try='test -s conftest$ac_exeext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   ac_cv_search_strerror="-l$ac_lib"
6961 break
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 fi
6967 rm -f conftest.err conftest.$ac_objext \
6968       conftest$ac_exeext conftest.$ac_ext
6969   done
6970 fi
6971 LIBS=$ac_func_search_save_LIBS
6972 fi
6973 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6974 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6975 if test "$ac_cv_search_strerror" != no; then
6976   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6977
6978 fi
6979
6980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6982 if test "${ac_cv_header_stdc+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <stdlib.h>
6992 #include <stdarg.h>
6993 #include <string.h>
6994 #include <float.h>
6995
6996 int
6997 main ()
6998 {
6999
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -z "$ac_c_werror_flag"
7014                          || test ! -s conftest.err'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; } &&
7020          { ac_try='test -s conftest.$ac_objext'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   ac_cv_header_stdc=yes
7027 else
7028   echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_header_stdc=no
7032 fi
7033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034
7035 if test $ac_cv_header_stdc = yes; then
7036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7037   cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 #include <string.h>
7044
7045 _ACEOF
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047   $EGREP "memchr" >/dev/null 2>&1; then
7048   :
7049 else
7050   ac_cv_header_stdc=no
7051 fi
7052 rm -f conftest*
7053
7054 fi
7055
7056 if test $ac_cv_header_stdc = yes; then
7057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 #include <stdlib.h>
7065
7066 _ACEOF
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068   $EGREP "free" >/dev/null 2>&1; then
7069   :
7070 else
7071   ac_cv_header_stdc=no
7072 fi
7073 rm -f conftest*
7074
7075 fi
7076
7077 if test $ac_cv_header_stdc = yes; then
7078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7079   if test "$cross_compiling" = yes; then
7080   :
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <ctype.h>
7089 #if ((' ' & 0x0FF) == 0x020)
7090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7092 #else
7093 # define ISLOWER(c) \
7094                    (('a' <= (c) && (c) <= 'i') \
7095                      || ('j' <= (c) && (c) <= 'r') \
7096                      || ('s' <= (c) && (c) <= 'z'))
7097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7098 #endif
7099
7100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7101 int
7102 main ()
7103 {
7104   int i;
7105   for (i = 0; i < 256; i++)
7106     if (XOR (islower (i), ISLOWER (i))
7107         || toupper (i) != TOUPPER (i))
7108       exit(2);
7109   exit (0);
7110 }
7111 _ACEOF
7112 rm -f conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114   (eval $ac_link) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; }; then
7123   :
7124 else
7125   echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 ( exit $ac_status )
7130 ac_cv_header_stdc=no
7131 fi
7132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 fi
7135 fi
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7138 if test $ac_cv_header_stdc = yes; then
7139
7140 cat >>confdefs.h <<\_ACEOF
7141 #define STDC_HEADERS 1
7142 _ACEOF
7143
7144 fi
7145
7146 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7147 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7148 if test "${ac_cv_c_const+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157
7158 int
7159 main ()
7160 {
7161 /* FIXME: Include the comments suggested by Paul. */
7162 #ifndef __cplusplus
7163   /* Ultrix mips cc rejects this.  */
7164   typedef int charset[2];
7165   const charset x;
7166   /* SunOS 4.1.1 cc rejects this.  */
7167   char const *const *ccp;
7168   char **p;
7169   /* NEC SVR4.0.2 mips cc rejects this.  */
7170   struct point {int x, y;};
7171   static struct point const zero = {0,0};
7172   /* AIX XL C 1.02.0.0 rejects this.
7173      It does not let you subtract one const X* pointer from another in
7174      an arm of an if-expression whose if-part is not a constant
7175      expression */
7176   const char *g = "string";
7177   ccp = &g + (g ? g-g : 0);
7178   /* HPUX 7.0 cc rejects these. */
7179   ++ccp;
7180   p = (char**) ccp;
7181   ccp = (char const *const *) p;
7182   { /* SCO 3.2v4 cc rejects this.  */
7183     char *t;
7184     char const *s = 0 ? (char *) 0 : (char const *) 0;
7185
7186     *t++ = 0;
7187   }
7188   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7189     int x[] = {25, 17};
7190     const int *foo = &x[0];
7191     ++foo;
7192   }
7193   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7194     typedef const int *iptr;
7195     iptr p = 0;
7196     ++p;
7197   }
7198   { /* AIX XL C 1.02.0.0 rejects this saying
7199        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7200     struct s { int j; const int *ap[3]; };
7201     struct s *b; b->j = 5;
7202   }
7203   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7204     const int foo = 10;
7205   }
7206 #endif
7207
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214   (eval $ac_compile) 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -z "$ac_c_werror_flag"
7222                          || test ! -s conftest.err'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; } &&
7228          { ac_try='test -s conftest.$ac_objext'
7229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230   (eval $ac_try) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; }; then
7234   ac_cv_c_const=yes
7235 else
7236   echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ac_cv_c_const=no
7240 fi
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 fi
7243 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7244 echo "${ECHO_T}$ac_cv_c_const" >&6
7245 if test $ac_cv_c_const = no; then
7246
7247 cat >>confdefs.h <<\_ACEOF
7248 #define const
7249 _ACEOF
7250
7251 fi
7252
7253
7254   echo "$as_me:$LINENO: checking for signed" >&5
7255 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7256 if test "${bh_cv_c_signed+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265
7266 int
7267 main ()
7268 {
7269 signed char x;
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276   (eval $ac_compile) 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -z "$ac_c_werror_flag"
7284                          || test ! -s conftest.err'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; } &&
7290          { ac_try='test -s conftest.$ac_objext'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   bh_cv_c_signed=yes
7297 else
7298   echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 bh_cv_c_signed=no
7302 fi
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 fi
7305 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7306 echo "${ECHO_T}$bh_cv_c_signed" >&6
7307   if test $bh_cv_c_signed = no; then
7308
7309 cat >>confdefs.h <<\_ACEOF
7310 #define signed
7311 _ACEOF
7312
7313   fi
7314
7315 echo "$as_me:$LINENO: checking for inline" >&5
7316 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7317 if test "${ac_cv_c_inline+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   ac_cv_c_inline=no
7321 for ac_kw in inline __inline__ __inline; do
7322   cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 #ifndef __cplusplus
7329 typedef int foo_t;
7330 static $ac_kw foo_t static_foo () {return 0; }
7331 $ac_kw foo_t foo () {return 0; }
7332 #endif
7333
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337   (eval $ac_compile) 2>conftest.er1
7338   ac_status=$?
7339   grep -v '^ *+' conftest.er1 >conftest.err
7340   rm -f conftest.er1
7341   cat conftest.err >&5
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -z "$ac_c_werror_flag"
7345                          || test ! -s conftest.err'
7346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347   (eval $ac_try) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); }; } &&
7351          { ac_try='test -s conftest.$ac_objext'
7352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353   (eval $ac_try) 2>&5
7354   ac_status=$?
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; }; then
7357   ac_cv_c_inline=$ac_kw; break
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 fi
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 done
7365
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7368 echo "${ECHO_T}$ac_cv_c_inline" >&6
7369
7370
7371 case $ac_cv_c_inline in
7372   inline | yes) ;;
7373   *)
7374     case $ac_cv_c_inline in
7375       no) ac_val=;;
7376       *) ac_val=$ac_cv_c_inline;;
7377     esac
7378     cat >>confdefs.h <<_ACEOF
7379 #ifndef __cplusplus
7380 #define inline $ac_val
7381 #endif
7382 _ACEOF
7383     ;;
7384 esac
7385
7386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7397                   inttypes.h stdint.h unistd.h
7398 do
7399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 echo "$as_me:$LINENO: checking for $ac_header" >&5
7401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412
7413 #include <$ac_header>
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417   (eval $ac_compile) 2>conftest.er1
7418   ac_status=$?
7419   grep -v '^ *+' conftest.er1 >conftest.err
7420   rm -f conftest.er1
7421   cat conftest.err >&5
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } &&
7424          { ac_try='test -z "$ac_c_werror_flag"
7425                          || test ! -s conftest.err'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; } &&
7431          { ac_try='test -s conftest.$ac_objext'
7432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433   (eval $ac_try) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }; }; then
7437   eval "$as_ac_Header=yes"
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 eval "$as_ac_Header=no"
7443 fi
7444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7445 fi
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449   cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451 _ACEOF
7452
7453 fi
7454
7455 done
7456
7457
7458 echo "$as_me:$LINENO: checking for off_t" >&5
7459 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7460 if test "${ac_cv_type_off_t+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 $ac_includes_default
7470 int
7471 main ()
7472 {
7473 if ((off_t *) 0)
7474   return 0;
7475 if (sizeof (off_t))
7476   return 0;
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483   (eval $ac_compile) 2>conftest.er1
7484   ac_status=$?
7485   grep -v '^ *+' conftest.er1 >conftest.err
7486   rm -f conftest.er1
7487   cat conftest.err >&5
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -z "$ac_c_werror_flag"
7491                          || test ! -s conftest.err'
7492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }; } &&
7497          { ac_try='test -s conftest.$ac_objext'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; }; then
7503   ac_cv_type_off_t=yes
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_type_off_t=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7513 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7514 if test $ac_cv_type_off_t = yes; then
7515   :
7516 else
7517
7518 cat >>confdefs.h <<_ACEOF
7519 #define off_t long
7520 _ACEOF
7521
7522 fi
7523
7524 echo "$as_me:$LINENO: checking for size_t" >&5
7525 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7526 if test "${ac_cv_type_size_t+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 $ac_includes_default
7536 int
7537 main ()
7538 {
7539 if ((size_t *) 0)
7540   return 0;
7541 if (sizeof (size_t))
7542   return 0;
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7549   (eval $ac_compile) 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -z "$ac_c_werror_flag"
7557                          || test ! -s conftest.err'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; } &&
7563          { ac_try='test -s conftest.$ac_objext'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; }; then
7569   ac_cv_type_size_t=yes
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 ac_cv_type_size_t=no
7575 fi
7576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7577 fi
7578 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7579 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7580 if test $ac_cv_type_size_t = yes; then
7581   :
7582 else
7583
7584 cat >>confdefs.h <<_ACEOF
7585 #define size_t unsigned
7586 _ACEOF
7587
7588 fi
7589
7590
7591   echo "$as_me:$LINENO: checking for long long" >&5
7592 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7593 if test "${ac_cv_type_long_long+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h.  */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h.  */
7602 long long ll = 1LL; int i = 63;
7603 int
7604 main ()
7605 {
7606 long long llmax = (long long) -1;
7607      return ll << i | ll >> i | llmax / ll | llmax % ll;
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614   (eval $ac_link) 2>conftest.er1
7615   ac_status=$?
7616   grep -v '^ *+' conftest.er1 >conftest.err
7617   rm -f conftest.er1
7618   cat conftest.err >&5
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } &&
7621          { ac_try='test -z "$ac_c_werror_flag"
7622                          || test ! -s conftest.err'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; } &&
7628          { ac_try='test -s conftest$ac_exeext'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; }; then
7634   ac_cv_type_long_long=yes
7635 else
7636   echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639 ac_cv_type_long_long=no
7640 fi
7641 rm -f conftest.err conftest.$ac_objext \
7642       conftest$ac_exeext conftest.$ac_ext
7643 fi
7644 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7645 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7646   if test $ac_cv_type_long_long = yes; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_LONG_LONG 1
7650 _ACEOF
7651
7652   fi
7653
7654
7655   echo "$as_me:$LINENO: checking for long double" >&5
7656 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7657 if test "${gt_cv_c_long_double+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   if test "$GCC" = yes; then
7661        gt_cv_c_long_double=yes
7662      else
7663        cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669
7670          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7671          long double foo = 0.0;
7672          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7673          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7674
7675 int
7676 main ()
7677 {
7678
7679   ;
7680   return 0;
7681 }
7682 _ACEOF
7683 rm -f conftest.$ac_objext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685   (eval $ac_compile) 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -z "$ac_c_werror_flag"
7693                          || test ! -s conftest.err'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; } &&
7699          { ac_try='test -s conftest.$ac_objext'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; }; then
7705   gt_cv_c_long_double=yes
7706 else
7707   echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 gt_cv_c_long_double=no
7711 fi
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7713      fi
7714 fi
7715 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7716 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7717   if test $gt_cv_c_long_double = yes; then
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LONG_DOUBLE 1
7721 _ACEOF
7722
7723   fi
7724
7725
7726   echo "$as_me:$LINENO: checking for wchar_t" >&5
7727 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7728 if test "${gt_cv_c_wchar_t+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737 #include <stddef.h>
7738        wchar_t foo = (wchar_t)'\0';
7739 int
7740 main ()
7741 {
7742
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749   (eval $ac_compile) 2>conftest.er1
7750   ac_status=$?
7751   grep -v '^ *+' conftest.er1 >conftest.err
7752   rm -f conftest.er1
7753   cat conftest.err >&5
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } &&
7756          { ac_try='test -z "$ac_c_werror_flag"
7757                          || test ! -s conftest.err'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; } &&
7763          { ac_try='test -s conftest.$ac_objext'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; }; then
7769   gt_cv_c_wchar_t=yes
7770 else
7771   echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 gt_cv_c_wchar_t=no
7775 fi
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 fi
7778 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7779 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7780   if test $gt_cv_c_wchar_t = yes; then
7781
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_WCHAR_T 1
7784 _ACEOF
7785
7786   fi
7787
7788
7789   echo "$as_me:$LINENO: checking for wint_t" >&5
7790 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7791 if test "${gt_cv_c_wint_t+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 #include <wchar.h>
7801        wint_t foo = (wchar_t)'\0';
7802 int
7803 main ()
7804 {
7805
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812   (eval $ac_compile) 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_objext'
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   gt_cv_c_wint_t=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 gt_cv_c_wint_t=no
7838 fi
7839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840 fi
7841 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7842 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7843   if test $gt_cv_c_wint_t = yes; then
7844
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_WINT_T 1
7847 _ACEOF
7848
7849   fi
7850
7851
7852   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7854 if test "${gl_cv_header_inttypes_h+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 #include <sys/types.h>
7864 #include <inttypes.h>
7865 int
7866 main ()
7867 {
7868 uintmax_t i = (uintmax_t) -1;
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875   (eval $ac_compile) 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -z "$ac_c_werror_flag"
7883                          || test ! -s conftest.err'
7884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885   (eval $ac_try) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; } &&
7889          { ac_try='test -s conftest.$ac_objext'
7890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891   (eval $ac_try) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); }; }; then
7895   gl_cv_header_inttypes_h=yes
7896 else
7897   echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 gl_cv_header_inttypes_h=no
7901 fi
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7905 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7906   if test $gl_cv_header_inttypes_h = yes; then
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7910 _ACEOF
7911
7912   fi
7913
7914
7915   echo "$as_me:$LINENO: checking for stdint.h" >&5
7916 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7917 if test "${gl_cv_header_stdint_h+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 #include <sys/types.h>
7927 #include <stdint.h>
7928 int
7929 main ()
7930 {
7931 uintmax_t i = (uintmax_t) -1;
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938   (eval $ac_compile) 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -z "$ac_c_werror_flag"
7946                          || test ! -s conftest.err'
7947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948   (eval $ac_try) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; } &&
7952          { ac_try='test -s conftest.$ac_objext'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958   gl_cv_header_stdint_h=yes
7959 else
7960   echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963 gl_cv_header_stdint_h=no
7964 fi
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7968 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7969   if test $gl_cv_header_stdint_h = yes; then
7970
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_STDINT_H_WITH_UINTMAX 1
7973 _ACEOF
7974
7975   fi
7976
7977
7978
7979
7980   echo "$as_me:$LINENO: checking for intmax_t" >&5
7981 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7982 if test "${gt_cv_c_intmax_t+set}" = set; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991
7992 #include <stddef.h>
7993 #include <stdlib.h>
7994 #if HAVE_STDINT_H_WITH_UINTMAX
7995 #include <stdint.h>
7996 #endif
7997 #if HAVE_INTTYPES_H_WITH_UINTMAX
7998 #include <inttypes.h>
7999 #endif
8000
8001 int
8002 main ()
8003 {
8004 intmax_t x = -1;
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011   (eval $ac_compile) 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -z "$ac_c_werror_flag"
8019                          || test ! -s conftest.err'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; } &&
8025          { ac_try='test -s conftest.$ac_objext'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   gt_cv_c_intmax_t=yes
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 gt_cv_c_intmax_t=no
8037 fi
8038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8041 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8042   if test $gt_cv_c_intmax_t = yes; then
8043
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_INTMAX_T 1
8046 _ACEOF
8047
8048   fi
8049
8050
8051
8052   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8053 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8054 if test "${gt_cv_func_printf_posix+set}" = set; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057
8058       if test "$cross_compiling" = yes; then
8059
8060         cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066
8067 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8068   notposix
8069 #endif
8070
8071 _ACEOF
8072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8073   $EGREP "notposix" >/dev/null 2>&1; then
8074   gt_cv_func_printf_posix="guessing no"
8075 else
8076   gt_cv_func_printf_posix="guessing yes"
8077 fi
8078 rm -f conftest*
8079
8080
8081 else
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088
8089 #include <stdio.h>
8090 #include <string.h>
8091 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8092    dollar expansion (possibly an autoconf bug).  */
8093 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8094 static char buf[100];
8095 int main ()
8096 {
8097   sprintf (buf, format, 33, 55);
8098   return (strcmp (buf, "55 33") != 0);
8099 }
8100 _ACEOF
8101 rm -f conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103   (eval $ac_link) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   gt_cv_func_printf_posix=yes
8113 else
8114   echo "$as_me: program exited with status $ac_status" >&5
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ( exit $ac_status )
8119 gt_cv_func_printf_posix=no
8120 fi
8121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8122 fi
8123
8124 fi
8125 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8126 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8127   case $gt_cv_func_printf_posix in
8128     *yes)
8129
8130 cat >>confdefs.h <<\_ACEOF
8131 #define HAVE_POSIX_PRINTF 1
8132 _ACEOF
8133
8134       ;;
8135   esac
8136
8137 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8138 # for constant arguments.  Useless!
8139 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8140 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8141 if test "${ac_cv_working_alloca_h+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 #include <alloca.h>
8151 int
8152 main ()
8153 {
8154 char *p = (char *) alloca (2 * sizeof (int));
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161   (eval $ac_link) 2>conftest.er1
8162   ac_status=$?
8163   grep -v '^ *+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -z "$ac_c_werror_flag"
8169                          || test ! -s conftest.err'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; } &&
8175          { ac_try='test -s conftest$ac_exeext'
8176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177   (eval $ac_try) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   ac_cv_working_alloca_h=yes
8182 else
8183   echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ac_cv_working_alloca_h=no
8187 fi
8188 rm -f conftest.err conftest.$ac_objext \
8189       conftest$ac_exeext conftest.$ac_ext
8190 fi
8191 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8192 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8193 if test $ac_cv_working_alloca_h = yes; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_ALLOCA_H 1
8197 _ACEOF
8198
8199 fi
8200
8201 echo "$as_me:$LINENO: checking for alloca" >&5
8202 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8203 if test "${ac_cv_func_alloca_works+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #ifdef __GNUC__
8213 # define alloca __builtin_alloca
8214 #else
8215 # ifdef _MSC_VER
8216 #  include <malloc.h>
8217 #  define alloca _alloca
8218 # else
8219 #  if HAVE_ALLOCA_H
8220 #   include <alloca.h>
8221 #  else
8222 #   ifdef _AIX
8223  #pragma alloca
8224 #   else
8225 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8226 char *alloca ();
8227 #    endif
8228 #   endif
8229 #  endif
8230 # endif
8231 #endif
8232
8233 int
8234 main ()
8235 {
8236 char *p = (char *) alloca (1);
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243   (eval $ac_link) 2>conftest.er1
8244   ac_status=$?
8245   grep -v '^ *+' conftest.er1 >conftest.err
8246   rm -f conftest.er1
8247   cat conftest.err >&5
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } &&
8250          { ac_try='test -z "$ac_c_werror_flag"
8251                          || test ! -s conftest.err'
8252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253   (eval $ac_try) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; } &&
8257          { ac_try='test -s conftest$ac_exeext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   ac_cv_func_alloca_works=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_func_alloca_works=no
8269 fi
8270 rm -f conftest.err conftest.$ac_objext \
8271       conftest$ac_exeext conftest.$ac_ext
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8274 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8275
8276 if test $ac_cv_func_alloca_works = yes; then
8277
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_ALLOCA 1
8280 _ACEOF
8281
8282 else
8283   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8284 # that cause trouble.  Some versions do not even contain alloca or
8285 # contain a buggy version.  If you still want to use their alloca,
8286 # use ar to extract alloca.o from them instead of compiling alloca.c.
8287
8288 ALLOCA=alloca.$ac_objext
8289
8290 cat >>confdefs.h <<\_ACEOF
8291 #define C_ALLOCA 1
8292 _ACEOF
8293
8294
8295 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8296 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8297 if test "${ac_cv_os_cray+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 #if defined(CRAY) && ! defined(CRAY2)
8307 webecray
8308 #else
8309 wenotbecray
8310 #endif
8311
8312 _ACEOF
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314   $EGREP "webecray" >/dev/null 2>&1; then
8315   ac_cv_os_cray=yes
8316 else
8317   ac_cv_os_cray=no
8318 fi
8319 rm -f conftest*
8320
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8323 echo "${ECHO_T}$ac_cv_os_cray" >&6
8324 if test $ac_cv_os_cray = yes; then
8325   for ac_func in _getb67 GETB67 getb67; do
8326     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8327 echo "$as_me:$LINENO: checking for $ac_func" >&5
8328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8329 if eval "test \"\${$as_ac_var+set}\" = set"; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8340 #define $ac_func innocuous_$ac_func
8341
8342 /* System header to define __stub macros and hopefully few prototypes,
8343     which can conflict with char $ac_func (); below.
8344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8345     <limits.h> exists even on freestanding compilers.  */
8346
8347 #ifdef __STDC__
8348 # include <limits.h>
8349 #else
8350 # include <assert.h>
8351 #endif
8352
8353 #undef $ac_func
8354
8355 /* Override any gcc2 internal prototype to avoid an error.  */
8356 #ifdef __cplusplus
8357 extern "C"
8358 {
8359 #endif
8360 /* We use char because int might match the return type of a gcc2
8361    builtin and then its argument prototype would still apply.  */
8362 char $ac_func ();
8363 /* The GNU C library defines this for functions which it implements
8364     to always fail with ENOSYS.  Some functions are actually named
8365     something starting with __ and the normal name is an alias.  */
8366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8367 choke me
8368 #else
8369 char (*f) () = $ac_func;
8370 #endif
8371 #ifdef __cplusplus
8372 }
8373 #endif
8374
8375 int
8376 main ()
8377 {
8378 return f != $ac_func;
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385   (eval $ac_link) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"
8393                          || test ! -s conftest.err'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest$ac_exeext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   eval "$as_ac_var=yes"
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 eval "$as_ac_var=no"
8411 fi
8412 rm -f conftest.err conftest.$ac_objext \
8413       conftest$ac_exeext conftest.$ac_ext
8414 fi
8415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8417 if test `eval echo '${'$as_ac_var'}'` = yes; then
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define CRAY_STACKSEG_END $ac_func
8421 _ACEOF
8422
8423     break
8424 fi
8425
8426   done
8427 fi
8428
8429 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8430 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8431 if test "${ac_cv_c_stack_direction+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   if test "$cross_compiling" = yes; then
8435   ac_cv_c_stack_direction=0
8436 else
8437   cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 int
8444 find_stack_direction ()
8445 {
8446   static char *addr = 0;
8447   auto char dummy;
8448   if (addr == 0)
8449     {
8450       addr = &dummy;
8451       return find_stack_direction ();
8452     }
8453   else
8454     return (&dummy > addr) ? 1 : -1;
8455 }
8456
8457 int
8458 main ()
8459 {
8460   exit (find_stack_direction () < 0);
8461 }
8462 _ACEOF
8463 rm -f conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465   (eval $ac_link) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_cv_c_stack_direction=1
8475 else
8476   echo "$as_me: program exited with status $ac_status" >&5
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ( exit $ac_status )
8481 ac_cv_c_stack_direction=-1
8482 fi
8483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8487 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8488
8489 cat >>confdefs.h <<_ACEOF
8490 #define STACK_DIRECTION $ac_cv_c_stack_direction
8491 _ACEOF
8492
8493
8494 fi
8495
8496
8497
8498 for ac_header in stdlib.h unistd.h
8499 do
8500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502   echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 fi
8507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8509 else
8510   # Is the header compilable?
8511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519 $ac_includes_default
8520 #include <$ac_header>
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524   (eval $ac_compile) 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -z "$ac_c_werror_flag"
8532                          || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest.$ac_objext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_header_compiler=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_header_compiler=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8553 echo "${ECHO_T}$ac_header_compiler" >&6
8554
8555 # Is the header present?
8556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564 #include <$ac_header>
8565 _ACEOF
8566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } >/dev/null; then
8574   if test -s conftest.err; then
8575     ac_cpp_err=$ac_c_preproc_warn_flag
8576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8577   else
8578     ac_cpp_err=
8579   fi
8580 else
8581   ac_cpp_err=yes
8582 fi
8583 if test -z "$ac_cpp_err"; then
8584   ac_header_preproc=yes
8585 else
8586   echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589   ac_header_preproc=no
8590 fi
8591 rm -f conftest.err conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8593 echo "${ECHO_T}$ac_header_preproc" >&6
8594
8595 # So?  What about this header?
8596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8597   yes:no: )
8598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8602     ac_header_preproc=yes
8603     ;;
8604   no:yes:* )
8605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8617     (
8618       cat <<\_ASBOX
8619 ## ------------------------------------------ ##
8620 ## Report this to the AC_PACKAGE_NAME lists.  ##
8621 ## ------------------------------------------ ##
8622 _ASBOX
8623     ) |
8624       sed "s/^/$as_me: WARNING:     /" >&2
8625     ;;
8626 esac
8627 echo "$as_me:$LINENO: checking for $ac_header" >&5
8628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   eval "$as_ac_Header=\$ac_header_preproc"
8633 fi
8634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8636
8637 fi
8638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8639   cat >>confdefs.h <<_ACEOF
8640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 _ACEOF
8642
8643 fi
8644
8645 done
8646
8647
8648 for ac_func in getpagesize
8649 do
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8664 #define $ac_func innocuous_$ac_func
8665
8666 /* System header to define __stub macros and hopefully few prototypes,
8667     which can conflict with char $ac_func (); below.
8668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669     <limits.h> exists even on freestanding compilers.  */
8670
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8676
8677 #undef $ac_func
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 {
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685    builtin and then its argument prototype would still apply.  */
8686 char $ac_func ();
8687 /* The GNU C library defines this for functions which it implements
8688     to always fail with ENOSYS.  Some functions are actually named
8689     something starting with __ and the normal name is an alias.  */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 char (*f) () = $ac_func;
8694 #endif
8695 #ifdef __cplusplus
8696 }
8697 #endif
8698
8699 int
8700 main ()
8701 {
8702 return f != $ac_func;
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   eval "$as_ac_var=yes"
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 eval "$as_ac_var=no"
8735 fi
8736 rm -f conftest.err conftest.$ac_objext \
8737       conftest$ac_exeext conftest.$ac_ext
8738 fi
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742   cat >>confdefs.h <<_ACEOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744 _ACEOF
8745
8746 fi
8747 done
8748
8749 echo "$as_me:$LINENO: checking for working mmap" >&5
8750 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8751 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   if test "$cross_compiling" = yes; then
8755   ac_cv_func_mmap_fixed_mapped=no
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 $ac_includes_default
8764 /* malloc might have been renamed as rpl_malloc. */
8765 #undef malloc
8766
8767 /* Thanks to Mike Haertel and Jim Avera for this test.
8768    Here is a matrix of mmap possibilities:
8769         mmap private not fixed
8770         mmap private fixed at somewhere currently unmapped
8771         mmap private fixed at somewhere already mapped
8772         mmap shared not fixed
8773         mmap shared fixed at somewhere currently unmapped
8774         mmap shared fixed at somewhere already mapped
8775    For private mappings, we should verify that changes cannot be read()
8776    back from the file, nor mmap's back from the file at a different
8777    address.  (There have been systems where private was not correctly
8778    implemented like the infamous i386 svr4.0, and systems where the
8779    VM page cache was not coherent with the file system buffer cache
8780    like early versions of FreeBSD and possibly contemporary NetBSD.)
8781    For shared mappings, we should conversely verify that changes get
8782    propagated back to all the places they're supposed to be.
8783
8784    Grep wants private fixed already mapped.
8785    The main things grep needs to know about mmap are:
8786    * does it exist and is it safe to write into the mmap'd area
8787    * how to use it (BSD variants)  */
8788
8789 #include <fcntl.h>
8790 #include <sys/mman.h>
8791
8792 #if !STDC_HEADERS && !HAVE_STDLIB_H
8793 char *malloc ();
8794 #endif
8795
8796 /* This mess was copied from the GNU getpagesize.h.  */
8797 #if !HAVE_GETPAGESIZE
8798 /* Assume that all systems that can run configure have sys/param.h.  */
8799 # if !HAVE_SYS_PARAM_H
8800 #  define HAVE_SYS_PARAM_H 1
8801 # endif
8802
8803 # ifdef _SC_PAGESIZE
8804 #  define getpagesize() sysconf(_SC_PAGESIZE)
8805 # else /* no _SC_PAGESIZE */
8806 #  if HAVE_SYS_PARAM_H
8807 #   include <sys/param.h>
8808 #   ifdef EXEC_PAGESIZE
8809 #    define getpagesize() EXEC_PAGESIZE
8810 #   else /* no EXEC_PAGESIZE */
8811 #    ifdef NBPG
8812 #     define getpagesize() NBPG * CLSIZE
8813 #     ifndef CLSIZE
8814 #      define CLSIZE 1
8815 #     endif /* no CLSIZE */
8816 #    else /* no NBPG */
8817 #     ifdef NBPC
8818 #      define getpagesize() NBPC
8819 #     else /* no NBPC */
8820 #      ifdef PAGESIZE
8821 #       define getpagesize() PAGESIZE
8822 #      endif /* PAGESIZE */
8823 #     endif /* no NBPC */
8824 #    endif /* no NBPG */
8825 #   endif /* no EXEC_PAGESIZE */
8826 #  else /* no HAVE_SYS_PARAM_H */
8827 #   define getpagesize() 8192   /* punt totally */
8828 #  endif /* no HAVE_SYS_PARAM_H */
8829 # endif /* no _SC_PAGESIZE */
8830
8831 #endif /* no HAVE_GETPAGESIZE */
8832
8833 int
8834 main ()
8835 {
8836   char *data, *data2, *data3;
8837   int i, pagesize;
8838   int fd;
8839
8840   pagesize = getpagesize ();
8841
8842   /* First, make a file with some known garbage in it. */
8843   data = (char *) malloc (pagesize);
8844   if (!data)
8845     exit (1);
8846   for (i = 0; i < pagesize; ++i)
8847     *(data + i) = rand ();
8848   umask (0);
8849   fd = creat ("conftest.mmap", 0600);
8850   if (fd < 0)
8851     exit (1);
8852   if (write (fd, data, pagesize) != pagesize)
8853     exit (1);
8854   close (fd);
8855
8856   /* Next, try to mmap the file at a fixed address which already has
8857      something else allocated at it.  If we can, also make sure that
8858      we see the same garbage.  */
8859   fd = open ("conftest.mmap", O_RDWR);
8860   if (fd < 0)
8861     exit (1);
8862   data2 = (char *) malloc (2 * pagesize);
8863   if (!data2)
8864     exit (1);
8865   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8866   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8867                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8868     exit (1);
8869   for (i = 0; i < pagesize; ++i)
8870     if (*(data + i) != *(data2 + i))
8871       exit (1);
8872
8873   /* Finally, make sure that changes to the mapped area do not
8874      percolate back to the file as seen by read().  (This is a bug on
8875      some variants of i386 svr4.0.)  */
8876   for (i = 0; i < pagesize; ++i)
8877     *(data2 + i) = *(data2 + i) + 1;
8878   data3 = (char *) malloc (pagesize);
8879   if (!data3)
8880     exit (1);
8881   if (read (fd, data3, pagesize) != pagesize)
8882     exit (1);
8883   for (i = 0; i < pagesize; ++i)
8884     if (*(data + i) != *(data3 + i))
8885       exit (1);
8886   close (fd);
8887   exit (0);
8888 }
8889 _ACEOF
8890 rm -f conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892   (eval $ac_link) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897   (eval $ac_try) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; }; then
8901   ac_cv_func_mmap_fixed_mapped=yes
8902 else
8903   echo "$as_me: program exited with status $ac_status" >&5
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ( exit $ac_status )
8908 ac_cv_func_mmap_fixed_mapped=no
8909 fi
8910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 fi
8913 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8914 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_MMAP 1
8919 _ACEOF
8920
8921 fi
8922 rm -f conftest.mmap
8923
8924
8925     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8926 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8927 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h.  */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h.  */
8936
8937 #include <features.h>
8938 #ifdef __GNU_LIBRARY__
8939  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8940   Lucky GNU user
8941  #endif
8942 #endif
8943
8944 _ACEOF
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8947   ac_cv_gnu_library_2_1=yes
8948 else
8949   ac_cv_gnu_library_2_1=no
8950 fi
8951 rm -f conftest*
8952
8953
8954
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8957 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8958
8959     GLIBC21="$ac_cv_gnu_library_2_1"
8960
8961
8962
8963
8964   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8965 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8966 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969
8970       if test "$cross_compiling" = yes; then
8971
8972           # Guess based on the CPU.
8973           case "$host_cpu" in
8974             alpha* | i3456786 | m68k | s390*)
8975               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8976             *)
8977               gt_cv_int_divbyzero_sigfpe="guessing no";;
8978           esac
8979
8980 else
8981   cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 #include <stdlib.h>
8989 #include <signal.h>
8990
8991 static void
8992 #ifdef __cplusplus
8993 sigfpe_handler (int sig)
8994 #else
8995 sigfpe_handler (sig) int sig;
8996 #endif
8997 {
8998   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8999   exit (sig != SIGFPE);
9000 }
9001
9002 int x = 1;
9003 int y = 0;
9004 int z;
9005 int nan;
9006
9007 int main ()
9008 {
9009   signal (SIGFPE, sigfpe_handler);
9010 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9011 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9012   signal (SIGTRAP, sigfpe_handler);
9013 #endif
9014 /* Linux/SPARC yields signal SIGILL.  */
9015 #if defined (__sparc__) && defined (__linux__)
9016   signal (SIGILL, sigfpe_handler);
9017 #endif
9018
9019   z = x / y;
9020   nan = y / y;
9021   exit (1);
9022 }
9023
9024 _ACEOF
9025 rm -f conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; }; then
9036   gt_cv_int_divbyzero_sigfpe=yes
9037 else
9038   echo "$as_me: program exited with status $ac_status" >&5
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ( exit $ac_status )
9043 gt_cv_int_divbyzero_sigfpe=no
9044 fi
9045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9046 fi
9047
9048 fi
9049 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9050 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9051   case "$gt_cv_int_divbyzero_sigfpe" in
9052     *yes) value=1;;
9053     *) value=0;;
9054   esac
9055
9056 cat >>confdefs.h <<_ACEOF
9057 #define INTDIV0_RAISES_SIGFPE $value
9058 _ACEOF
9059
9060
9061
9062   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9063 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9064 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073 unsigned long long ull = 1ULL; int i = 63;
9074 int
9075 main ()
9076 {
9077 unsigned long long ullmax = (unsigned long long) -1;
9078      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9079   ;
9080   return 0;
9081 }
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085   (eval $ac_link) 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } &&
9092          { ac_try='test -z "$ac_c_werror_flag"
9093                          || test ! -s conftest.err'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; } &&
9099          { ac_try='test -s conftest$ac_exeext'
9100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101   (eval $ac_try) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; }; then
9105   ac_cv_type_unsigned_long_long=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_cv_type_unsigned_long_long=no
9111 fi
9112 rm -f conftest.err conftest.$ac_objext \
9113       conftest$ac_exeext conftest.$ac_ext
9114 fi
9115 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9116 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9117   if test $ac_cv_type_unsigned_long_long = yes; then
9118
9119 cat >>confdefs.h <<\_ACEOF
9120 #define HAVE_UNSIGNED_LONG_LONG 1
9121 _ACEOF
9122
9123   fi
9124
9125
9126
9127
9128   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9129
9130     test $ac_cv_type_unsigned_long_long = yes \
9131       && ac_type='unsigned long long' \
9132       || ac_type='unsigned long'
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define uintmax_t $ac_type
9136 _ACEOF
9137
9138   else
9139
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_UINTMAX_T 1
9142 _ACEOF
9143
9144   fi
9145
9146
9147   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9148 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9149 if test "${gt_cv_header_inttypes_h+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152
9153     cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159 #include <sys/types.h>
9160 #include <inttypes.h>
9161 int
9162 main ()
9163 {
9164
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171   (eval $ac_compile) 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -z "$ac_c_werror_flag"
9179                          || test ! -s conftest.err'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; } &&
9185          { ac_try='test -s conftest.$ac_objext'
9186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187   (eval $ac_try) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; }; then
9191   gt_cv_header_inttypes_h=yes
9192 else
9193   echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 gt_cv_header_inttypes_h=no
9197 fi
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199
9200 fi
9201 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9202 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9203   if test $gt_cv_header_inttypes_h = yes; then
9204
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_INTTYPES_H 1
9207 _ACEOF
9208
9209   fi
9210
9211
9212
9213   if test $gt_cv_header_inttypes_h = yes; then
9214     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9215 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9216 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9217   echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219
9220         cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226 #include <inttypes.h>
9227 #ifdef PRId32
9228 char *p = PRId32;
9229 #endif
9230
9231 int
9232 main ()
9233 {
9234
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241   (eval $ac_compile) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest.$ac_objext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   gt_cv_inttypes_pri_broken=no
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 gt_cv_inttypes_pri_broken=yes
9267 fi
9268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9269
9270 fi
9271 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9272 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9273   fi
9274   if test "$gt_cv_inttypes_pri_broken" = yes; then
9275
9276 cat >>confdefs.h <<_ACEOF
9277 #define PRI_MACROS_BROKEN 1
9278 _ACEOF
9279
9280   fi
9281
9282
9283
9284 for ac_header in stdint.h
9285 do
9286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288   echo "$as_me:$LINENO: checking for $ac_header" >&5
9289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 fi
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295 else
9296   # Is the header compilable?
9297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305 $ac_includes_default
9306 #include <$ac_header>
9307 _ACEOF
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310   (eval $ac_compile) 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -z "$ac_c_werror_flag"
9318                          || test ! -s conftest.err'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest.$ac_objext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   ac_header_compiler=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 ac_header_compiler=no
9336 fi
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339 echo "${ECHO_T}$ac_header_compiler" >&6
9340
9341 # Is the header present?
9342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
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   ac_header_preproc=yes
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375   ac_header_preproc=no
9376 fi
9377 rm -f conftest.err conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9379 echo "${ECHO_T}$ac_header_preproc" >&6
9380
9381 # So?  What about this header?
9382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9383   yes:no: )
9384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9388     ac_header_preproc=yes
9389     ;;
9390   no:yes:* )
9391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9403     (
9404       cat <<\_ASBOX
9405 ## ------------------------------------------ ##
9406 ## Report this to the AC_PACKAGE_NAME lists.  ##
9407 ## ------------------------------------------ ##
9408 _ASBOX
9409     ) |
9410       sed "s/^/$as_me: WARNING:     /" >&2
9411     ;;
9412 esac
9413 echo "$as_me:$LINENO: checking for $ac_header" >&5
9414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   eval "$as_ac_Header=\$ac_header_preproc"
9419 fi
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9422
9423 fi
9424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9425   cat >>confdefs.h <<_ACEOF
9426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9427 _ACEOF
9428
9429 fi
9430
9431 done
9432
9433     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9434 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9435   result=
9436   cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h.  */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h.  */
9442
9443 #include <limits.h>
9444 #if HAVE_STDINT_H
9445 #include <stdint.h>
9446 #endif
9447 #ifdef SIZE_MAX
9448 Found it
9449 #endif
9450
9451 _ACEOF
9452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9453   $EGREP "Found it" >/dev/null 2>&1; then
9454   result=yes
9455 fi
9456 rm -f conftest*
9457
9458   if test -z "$result"; then
9459                     if test "$cross_compiling" = yes; then
9460   # Depending upon the size, compute the lo and hi bounds.
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h.  */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h.  */
9467 #include <stddef.h>
9468 int
9469 main ()
9470 {
9471 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9472 test_array [0] = 0
9473
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480   (eval $ac_compile) 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -z "$ac_c_werror_flag"
9488                          || test ! -s conftest.err'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; } &&
9494          { ac_try='test -s conftest.$ac_objext'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   ac_lo=0 ac_mid=0
9501   while :; do
9502     cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508 #include <stddef.h>
9509 int
9510 main ()
9511 {
9512 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9513 test_array [0] = 0
9514
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521   (eval $ac_compile) 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_objext'
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_hi=$ac_mid; break
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_lo=`expr $ac_mid + 1`
9547                     if test $ac_lo -le $ac_mid; then
9548                       ac_lo= ac_hi=
9549                       break
9550                     fi
9551                     ac_mid=`expr 2 '*' $ac_mid + 1`
9552 fi
9553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9554   done
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 #include <stddef.h>
9566 int
9567 main ()
9568 {
9569 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9570 test_array [0] = 0
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578   (eval $ac_compile) 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } &&
9585          { ac_try='test -z "$ac_c_werror_flag"
9586                          || test ! -s conftest.err'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; } &&
9592          { ac_try='test -s conftest.$ac_objext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_hi=-1 ac_mid=-1
9599   while :; do
9600     cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h.  */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h.  */
9606 #include <stddef.h>
9607 int
9608 main ()
9609 {
9610 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9611 test_array [0] = 0
9612
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619   (eval $ac_compile) 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -z "$ac_c_werror_flag"
9627                          || test ! -s conftest.err'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; } &&
9633          { ac_try='test -s conftest.$ac_objext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   ac_lo=$ac_mid; break
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 ac_hi=`expr '(' $ac_mid ')' - 1`
9645                        if test $ac_mid -le $ac_hi; then
9646                          ac_lo= ac_hi=
9647                          break
9648                        fi
9649                        ac_mid=`expr 2 '*' $ac_mid`
9650 fi
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652   done
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_lo= ac_hi=
9658 fi
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 # Binary search between lo and hi bounds.
9663 while test "x$ac_lo" != "x$ac_hi"; do
9664   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9665   cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671 #include <stddef.h>
9672 int
9673 main ()
9674 {
9675 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9676 test_array [0] = 0
9677
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684   (eval $ac_compile) 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -z "$ac_c_werror_flag"
9692                          || test ! -s conftest.err'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; } &&
9698          { ac_try='test -s conftest.$ac_objext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_hi=$ac_mid
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_lo=`expr '(' $ac_mid ')' + 1`
9710 fi
9711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9712 done
9713 case $ac_lo in
9714 ?*) res_hi=$ac_lo;;
9715 '') result=? ;;
9716 esac
9717 else
9718   if test "$cross_compiling" = yes; then
9719   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9720 See \`config.log' for more details." >&5
9721 echo "$as_me: error: cannot run test program while cross compiling
9722 See \`config.log' for more details." >&2;}
9723    { (exit 1); exit 1; }; }
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 #include <stddef.h>
9732 long longval () { return ~(size_t)0 / 10; }
9733 unsigned long ulongval () { return ~(size_t)0 / 10; }
9734 #include <stdio.h>
9735 #include <stdlib.h>
9736 int
9737 main ()
9738 {
9739
9740   FILE *f = fopen ("conftest.val", "w");
9741   if (! f)
9742     exit (1);
9743   if ((~(size_t)0 / 10) < 0)
9744     {
9745       long i = longval ();
9746       if (i != (~(size_t)0 / 10))
9747         exit (1);
9748       fprintf (f, "%ld\n", i);
9749     }
9750   else
9751     {
9752       unsigned long i = ulongval ();
9753       if (i != (~(size_t)0 / 10))
9754         exit (1);
9755       fprintf (f, "%lu\n", i);
9756     }
9757   exit (ferror (f) || fclose (f) != 0);
9758
9759   ;
9760   return 0;
9761 }
9762 _ACEOF
9763 rm -f conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765   (eval $ac_link) 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770   (eval $ac_try) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; }; then
9774   res_hi=`cat conftest.val`
9775 else
9776   echo "$as_me: program exited with status $ac_status" >&5
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ( exit $ac_status )
9781 result=?
9782 fi
9783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 fi
9786 rm -f conftest.val
9787     if test "$cross_compiling" = yes; then
9788   # Depending upon the size, compute the lo and hi bounds.
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h.  */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h.  */
9795 #include <stddef.h>
9796 int
9797 main ()
9798 {
9799 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9800 test_array [0] = 0
9801
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -z "$ac_c_werror_flag"
9816                          || test ! -s conftest.err'
9817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818   (eval $ac_try) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; } &&
9822          { ac_try='test -s conftest.$ac_objext'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   ac_lo=0 ac_mid=0
9829   while :; do
9830     cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <stddef.h>
9837 int
9838 main ()
9839 {
9840 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9841 test_array [0] = 0
9842
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849   (eval $ac_compile) 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag"
9857                          || test ! -s conftest.err'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; } &&
9863          { ac_try='test -s conftest.$ac_objext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   ac_hi=$ac_mid; break
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_lo=`expr $ac_mid + 1`
9875                     if test $ac_lo -le $ac_mid; then
9876                       ac_lo= ac_hi=
9877                       break
9878                     fi
9879                     ac_mid=`expr 2 '*' $ac_mid + 1`
9880 fi
9881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882   done
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 #include <stddef.h>
9894 int
9895 main ()
9896 {
9897 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9898 test_array [0] = 0
9899
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>conftest.er1
9907   ac_status=$?
9908   grep -v '^ *+' conftest.er1 >conftest.err
9909   rm -f conftest.er1
9910   cat conftest.err >&5
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); } &&
9913          { ac_try='test -z "$ac_c_werror_flag"
9914                          || test ! -s conftest.err'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest.$ac_objext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_hi=-1 ac_mid=-1
9927   while :; do
9928     cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934 #include <stddef.h>
9935 int
9936 main ()
9937 {
9938 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9939 test_array [0] = 0
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947   (eval $ac_compile) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"
9955                          || test ! -s conftest.err'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; } &&
9961          { ac_try='test -s conftest.$ac_objext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_lo=$ac_mid; break
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_hi=`expr '(' $ac_mid ')' - 1`
9973                        if test $ac_mid -le $ac_hi; then
9974                          ac_lo= ac_hi=
9975                          break
9976                        fi
9977                        ac_mid=`expr 2 '*' $ac_mid`
9978 fi
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9980   done
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_lo= ac_hi=
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988 fi
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 # Binary search between lo and hi bounds.
9991 while test "x$ac_lo" != "x$ac_hi"; do
9992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 #include <stddef.h>
10000 int
10001 main ()
10002 {
10003 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10004 test_array [0] = 0
10005
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012   (eval $ac_compile) 2>conftest.er1
10013   ac_status=$?
10014   grep -v '^ *+' conftest.er1 >conftest.err
10015   rm -f conftest.er1
10016   cat conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } &&
10019          { ac_try='test -z "$ac_c_werror_flag"
10020                          || test ! -s conftest.err'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; } &&
10026          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10032   ac_hi=$ac_mid
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_lo=`expr '(' $ac_mid ')' + 1`
10038 fi
10039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10040 done
10041 case $ac_lo in
10042 ?*) res_lo=$ac_lo;;
10043 '') result=? ;;
10044 esac
10045 else
10046   if test "$cross_compiling" = yes; then
10047   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10048 See \`config.log' for more details." >&5
10049 echo "$as_me: error: cannot run test program while cross compiling
10050 See \`config.log' for more details." >&2;}
10051    { (exit 1); exit 1; }; }
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 #include <stddef.h>
10060 long longval () { return ~(size_t)0 % 10; }
10061 unsigned long ulongval () { return ~(size_t)0 % 10; }
10062 #include <stdio.h>
10063 #include <stdlib.h>
10064 int
10065 main ()
10066 {
10067
10068   FILE *f = fopen ("conftest.val", "w");
10069   if (! f)
10070     exit (1);
10071   if ((~(size_t)0 % 10) < 0)
10072     {
10073       long i = longval ();
10074       if (i != (~(size_t)0 % 10))
10075         exit (1);
10076       fprintf (f, "%ld\n", i);
10077     }
10078   else
10079     {
10080       unsigned long i = ulongval ();
10081       if (i != (~(size_t)0 % 10))
10082         exit (1);
10083       fprintf (f, "%lu\n", i);
10084     }
10085   exit (ferror (f) || fclose (f) != 0);
10086
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093   (eval $ac_link) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   res_lo=`cat conftest.val`
10103 else
10104   echo "$as_me: program exited with status $ac_status" >&5
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ( exit $ac_status )
10109 result=?
10110 fi
10111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10112 fi
10113 fi
10114 rm -f conftest.val
10115     if test "$cross_compiling" = yes; then
10116   # Depending upon the size, compute the lo and hi bounds.
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123 #include <stddef.h>
10124 int
10125 main ()
10126 {
10127 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10128 test_array [0] = 0
10129
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136   (eval $ac_compile) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag"
10144                          || test ! -s conftest.err'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest.$ac_objext'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   ac_lo=0 ac_mid=0
10157   while :; do
10158     cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164 #include <stddef.h>
10165 int
10166 main ()
10167 {
10168 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10169 test_array [0] = 0
10170
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177   (eval $ac_compile) 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag"
10185                          || test ! -s conftest.err'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; } &&
10191          { ac_try='test -s conftest.$ac_objext'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_hi=$ac_mid; break
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 ac_lo=`expr $ac_mid + 1`
10203                     if test $ac_lo -le $ac_mid; then
10204                       ac_lo= ac_hi=
10205                       break
10206                     fi
10207                     ac_mid=`expr 2 '*' $ac_mid + 1`
10208 fi
10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210   done
10211 else
10212   echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 #include <stddef.h>
10222 int
10223 main ()
10224 {
10225 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10226 test_array [0] = 0
10227
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234   (eval $ac_compile) 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag"
10242                          || test ! -s conftest.err'
10243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244   (eval $ac_try) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); }; } &&
10248          { ac_try='test -s conftest.$ac_objext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_hi=-1 ac_mid=-1
10255   while :; do
10256     cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 #include <stddef.h>
10263 int
10264 main ()
10265 {
10266 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10267 test_array [0] = 0
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275   (eval $ac_compile) 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -z "$ac_c_werror_flag"
10283                          || test ! -s conftest.err'
10284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285   (eval $ac_try) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; } &&
10289          { ac_try='test -s conftest.$ac_objext'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; }; then
10295   ac_lo=$ac_mid; break
10296 else
10297   echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 ac_hi=`expr '(' $ac_mid ')' - 1`
10301                        if test $ac_mid -le $ac_hi; then
10302                          ac_lo= ac_hi=
10303                          break
10304                        fi
10305                        ac_mid=`expr 2 '*' $ac_mid`
10306 fi
10307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10308   done
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_lo= ac_hi=
10314 fi
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316 fi
10317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 # Binary search between lo and hi bounds.
10319 while test "x$ac_lo" != "x$ac_hi"; do
10320   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 #include <stddef.h>
10328 int
10329 main ()
10330 {
10331 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10332 test_array [0] = 0
10333
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340   (eval $ac_compile) 2>conftest.er1
10341   ac_status=$?
10342   grep -v '^ *+' conftest.er1 >conftest.err
10343   rm -f conftest.er1
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } &&
10347          { ac_try='test -z "$ac_c_werror_flag"
10348                          || test ! -s conftest.err'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; } &&
10354          { ac_try='test -s conftest.$ac_objext'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   ac_hi=$ac_mid
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365 ac_lo=`expr '(' $ac_mid ')' + 1`
10366 fi
10367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10368 done
10369 case $ac_lo in
10370 ?*) fits_in_uint=$ac_lo;;
10371 '') result=? ;;
10372 esac
10373 else
10374   if test "$cross_compiling" = yes; then
10375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10376 See \`config.log' for more details." >&5
10377 echo "$as_me: error: cannot run test program while cross compiling
10378 See \`config.log' for more details." >&2;}
10379    { (exit 1); exit 1; }; }
10380 else
10381   cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387 #include <stddef.h>
10388 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10389 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10390 #include <stdio.h>
10391 #include <stdlib.h>
10392 int
10393 main ()
10394 {
10395
10396   FILE *f = fopen ("conftest.val", "w");
10397   if (! f)
10398     exit (1);
10399   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10400     {
10401       long i = longval ();
10402       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10403         exit (1);
10404       fprintf (f, "%ld\n", i);
10405     }
10406   else
10407     {
10408       unsigned long i = ulongval ();
10409       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10410         exit (1);
10411       fprintf (f, "%lu\n", i);
10412     }
10413   exit (ferror (f) || fclose (f) != 0);
10414
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421   (eval $ac_link) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   fits_in_uint=`cat conftest.val`
10431 else
10432   echo "$as_me: program exited with status $ac_status" >&5
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ( exit $ac_status )
10437 result=?
10438 fi
10439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 fi
10442 rm -f conftest.val
10443     if test "$fits_in_uint" = 1; then
10444                   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <stddef.h>
10451         extern size_t foo;
10452         extern unsigned long foo;
10453
10454 int
10455 main ()
10456 {
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464   (eval $ac_compile) 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } &&
10471          { ac_try='test -z "$ac_c_werror_flag"
10472                          || test ! -s conftest.err'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; } &&
10478          { ac_try='test -s conftest.$ac_objext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   fits_in_uint=0
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 fi
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491     fi
10492     if test -z "$result"; then
10493       if test "$fits_in_uint" = 1; then
10494         result="$res_hi$res_lo"U
10495       else
10496         result="$res_hi$res_lo"UL
10497       fi
10498     else
10499             result='~(size_t)0'
10500     fi
10501   fi
10502   echo "$as_me:$LINENO: result: $result" >&5
10503 echo "${ECHO_T}$result" >&6
10504   if test "$result" != yes; then
10505
10506 cat >>confdefs.h <<_ACEOF
10507 #define SIZE_MAX $result
10508 _ACEOF
10509
10510   fi
10511
10512
10513
10514
10515
10516 for ac_header in stdint.h
10517 do
10518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10520   echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 fi
10525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10527 else
10528   # Is the header compilable?
10529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537 $ac_includes_default
10538 #include <$ac_header>
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542   (eval $ac_compile) 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag"
10550                          || test ! -s conftest.err'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; } &&
10556          { ac_try='test -s conftest.$ac_objext'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   ac_header_compiler=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_header_compiler=no
10568 fi
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571 echo "${ECHO_T}$ac_header_compiler" >&6
10572
10573 # Is the header present?
10574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <$ac_header>
10583 _ACEOF
10584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } >/dev/null; then
10592   if test -s conftest.err; then
10593     ac_cpp_err=$ac_c_preproc_warn_flag
10594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10595   else
10596     ac_cpp_err=
10597   fi
10598 else
10599   ac_cpp_err=yes
10600 fi
10601 if test -z "$ac_cpp_err"; then
10602   ac_header_preproc=yes
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607   ac_header_preproc=no
10608 fi
10609 rm -f conftest.err conftest.$ac_ext
10610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10611 echo "${ECHO_T}$ac_header_preproc" >&6
10612
10613 # So?  What about this header?
10614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10615   yes:no: )
10616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10620     ac_header_preproc=yes
10621     ;;
10622   no:yes:* )
10623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10635     (
10636       cat <<\_ASBOX
10637 ## ------------------------------------------ ##
10638 ## Report this to the AC_PACKAGE_NAME lists.  ##
10639 ## ------------------------------------------ ##
10640 _ASBOX
10641     ) |
10642       sed "s/^/$as_me: WARNING:     /" >&2
10643     ;;
10644 esac
10645 echo "$as_me:$LINENO: checking for $ac_header" >&5
10646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650   eval "$as_ac_Header=\$ac_header_preproc"
10651 fi
10652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10654
10655 fi
10656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10657   cat >>confdefs.h <<_ACEOF
10658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659 _ACEOF
10660
10661 fi
10662
10663 done
10664
10665
10666
10667
10668
10669
10670
10671
10672   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10673 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10674 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 $ac_includes_default
10684 int
10685 main ()
10686 {
10687 if ((ptrdiff_t *) 0)
10688   return 0;
10689 if (sizeof (ptrdiff_t))
10690   return 0;
10691   ;
10692   return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697   (eval $ac_compile) 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } &&
10704          { ac_try='test -z "$ac_c_werror_flag"
10705                          || test ! -s conftest.err'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; } &&
10711          { ac_try='test -s conftest.$ac_objext'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_cv_type_ptrdiff_t=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_cv_type_ptrdiff_t=no
10723 fi
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 fi
10726 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10727 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10728 if test $ac_cv_type_ptrdiff_t = yes; then
10729   :
10730 else
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define ptrdiff_t long
10734 _ACEOF
10735
10736
10737 fi
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10750 stdlib.h string.h unistd.h sys/param.h
10751 do
10752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10754   echo "$as_me:$LINENO: checking for $ac_header" >&5
10755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10757   echo $ECHO_N "(cached) $ECHO_C" >&6
10758 fi
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10761 else
10762   # Is the header compilable?
10763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 $ac_includes_default
10772 #include <$ac_header>
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776   (eval $ac_compile) 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } &&
10783          { ac_try='test -z "$ac_c_werror_flag"
10784                          || test ! -s conftest.err'
10785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786   (eval $ac_try) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; } &&
10790          { ac_try='test -s conftest.$ac_objext'
10791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792   (eval $ac_try) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   ac_header_compiler=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_header_compiler=no
10802 fi
10803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10805 echo "${ECHO_T}$ac_header_compiler" >&6
10806
10807 # Is the header present?
10808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 #include <$ac_header>
10817 _ACEOF
10818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10820   ac_status=$?
10821   grep -v '^ *+' conftest.er1 >conftest.err
10822   rm -f conftest.er1
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } >/dev/null; then
10826   if test -s conftest.err; then
10827     ac_cpp_err=$ac_c_preproc_warn_flag
10828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10829   else
10830     ac_cpp_err=
10831   fi
10832 else
10833   ac_cpp_err=yes
10834 fi
10835 if test -z "$ac_cpp_err"; then
10836   ac_header_preproc=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841   ac_header_preproc=no
10842 fi
10843 rm -f conftest.err conftest.$ac_ext
10844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10845 echo "${ECHO_T}$ac_header_preproc" >&6
10846
10847 # So?  What about this header?
10848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10849   yes:no: )
10850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10854     ac_header_preproc=yes
10855     ;;
10856   no:yes:* )
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10869     (
10870       cat <<\_ASBOX
10871 ## ------------------------------------------ ##
10872 ## Report this to the AC_PACKAGE_NAME lists.  ##
10873 ## ------------------------------------------ ##
10874 _ASBOX
10875     ) |
10876       sed "s/^/$as_me: WARNING:     /" >&2
10877     ;;
10878 esac
10879 echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   eval "$as_ac_Header=\$ac_header_preproc"
10885 fi
10886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10888
10889 fi
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891   cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 fi
10896
10897 done
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10923 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10924 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10925 __fsetlocking
10926 do
10927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 echo "$as_me:$LINENO: checking for $ac_func" >&5
10929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10930 if eval "test \"\${$as_ac_var+set}\" = set"; then
10931   echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933   cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10941 #define $ac_func innocuous_$ac_func
10942
10943 /* System header to define __stub macros and hopefully few prototypes,
10944     which can conflict with char $ac_func (); below.
10945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10946     <limits.h> exists even on freestanding compilers.  */
10947
10948 #ifdef __STDC__
10949 # include <limits.h>
10950 #else
10951 # include <assert.h>
10952 #endif
10953
10954 #undef $ac_func
10955
10956 /* Override any gcc2 internal prototype to avoid an error.  */
10957 #ifdef __cplusplus
10958 extern "C"
10959 {
10960 #endif
10961 /* We use char because int might match the return type of a gcc2
10962    builtin and then its argument prototype would still apply.  */
10963 char $ac_func ();
10964 /* The GNU C library defines this for functions which it implements
10965     to always fail with ENOSYS.  Some functions are actually named
10966     something starting with __ and the normal name is an alias.  */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10968 choke me
10969 #else
10970 char (*f) () = $ac_func;
10971 #endif
10972 #ifdef __cplusplus
10973 }
10974 #endif
10975
10976 int
10977 main ()
10978 {
10979 return f != $ac_func;
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986   (eval $ac_link) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -z "$ac_c_werror_flag"
10994                          || test ! -s conftest.err'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; } &&
11000          { ac_try='test -s conftest$ac_exeext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   eval "$as_ac_var=yes"
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 eval "$as_ac_var=no"
11012 fi
11013 rm -f conftest.err conftest.$ac_objext \
11014       conftest$ac_exeext conftest.$ac_ext
11015 fi
11016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11018 if test `eval echo '${'$as_ac_var'}'` = yes; then
11019   cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11021 _ACEOF
11022
11023 fi
11024 done
11025
11026
11027
11028   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11029 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11030 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033   cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <stdio.h>
11040 int
11041 main ()
11042 {
11043
11044 #ifndef _snprintf
11045   char *p = (char *) _snprintf;
11046 #endif
11047
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054   (eval $ac_compile) 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -z "$ac_c_werror_flag"
11062                          || test ! -s conftest.err'
11063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064   (eval $ac_try) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; } &&
11068          { ac_try='test -s conftest.$ac_objext'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   ac_cv_have_decl__snprintf=yes
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 ac_cv_have_decl__snprintf=no
11080 fi
11081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11082 fi
11083 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11084 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11085   if test $ac_cv_have_decl__snprintf = yes; then
11086     gt_value=1
11087   else
11088     gt_value=0
11089   fi
11090
11091 cat >>confdefs.h <<_ACEOF
11092 #define HAVE_DECL__SNPRINTF $gt_value
11093 _ACEOF
11094
11095
11096
11097   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11098 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11099 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h.  */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h.  */
11108 #include <stdio.h>
11109 int
11110 main ()
11111 {
11112
11113 #ifndef _snwprintf
11114   char *p = (char *) _snwprintf;
11115 #endif
11116
11117   ;
11118   return 0;
11119 }
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123   (eval $ac_compile) 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag"
11131                          || test ! -s conftest.err'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; } &&
11137          { ac_try='test -s conftest.$ac_objext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_cv_have_decl__snwprintf=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_have_decl__snwprintf=no
11149 fi
11150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11153 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11154   if test $ac_cv_have_decl__snwprintf = yes; then
11155     gt_value=1
11156   else
11157     gt_value=0
11158   fi
11159
11160 cat >>confdefs.h <<_ACEOF
11161 #define HAVE_DECL__SNWPRINTF $gt_value
11162 _ACEOF
11163
11164
11165
11166
11167   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11168 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11169 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 #include <stdio.h>
11179 int
11180 main ()
11181 {
11182
11183 #ifndef feof_unlocked
11184   char *p = (char *) feof_unlocked;
11185 #endif
11186
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193   (eval $ac_compile) 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -z "$ac_c_werror_flag"
11201                          || test ! -s conftest.err'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; } &&
11207          { ac_try='test -s conftest.$ac_objext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   ac_cv_have_decl_feof_unlocked=yes
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_cv_have_decl_feof_unlocked=no
11219 fi
11220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11223 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11224   if test $ac_cv_have_decl_feof_unlocked = yes; then
11225     gt_value=1
11226   else
11227     gt_value=0
11228   fi
11229
11230 cat >>confdefs.h <<_ACEOF
11231 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11232 _ACEOF
11233
11234
11235
11236   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11237 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11238 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11239   echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241   cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <stdio.h>
11248 int
11249 main ()
11250 {
11251
11252 #ifndef fgets_unlocked
11253   char *p = (char *) fgets_unlocked;
11254 #endif
11255
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262   (eval $ac_compile) 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag"
11270                          || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_have_decl_fgets_unlocked=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_have_decl_fgets_unlocked=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 fi
11291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11292 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11293   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11294     gt_value=1
11295   else
11296     gt_value=0
11297   fi
11298
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11301 _ACEOF
11302
11303
11304
11305   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11306 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11307 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310   cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 #include <stdio.h>
11317 int
11318 main ()
11319 {
11320
11321 #ifndef getc_unlocked
11322   char *p = (char *) getc_unlocked;
11323 #endif
11324
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331   (eval $ac_compile) 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } &&
11338          { ac_try='test -z "$ac_c_werror_flag"
11339                          || test ! -s conftest.err'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; } &&
11345          { ac_try='test -s conftest.$ac_objext'
11346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_cv_have_decl_getc_unlocked=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_cv_have_decl_getc_unlocked=no
11357 fi
11358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11361 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11362   if test $ac_cv_have_decl_getc_unlocked = yes; then
11363     gt_value=1
11364   else
11365     gt_value=0
11366   fi
11367
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11370 _ACEOF
11371
11372
11373
11374   case $gt_cv_func_printf_posix in
11375     *yes) HAVE_POSIX_PRINTF=1 ;;
11376     *) HAVE_POSIX_PRINTF=0 ;;
11377   esac
11378
11379   if test "$ac_cv_func_asprintf" = yes; then
11380     HAVE_ASPRINTF=1
11381   else
11382     HAVE_ASPRINTF=0
11383   fi
11384
11385   if test "$ac_cv_func_snprintf" = yes; then
11386     HAVE_SNPRINTF=1
11387   else
11388     HAVE_SNPRINTF=0
11389   fi
11390
11391   if test "$ac_cv_func_wprintf" = yes; then
11392     HAVE_WPRINTF=1
11393   else
11394     HAVE_WPRINTF=0
11395   fi
11396
11397
11398
11399
11400
11401
11402
11403           am_save_CPPFLAGS="$CPPFLAGS"
11404
11405   for element in $INCICONV; do
11406     haveit=
11407     for x in $CPPFLAGS; do
11408
11409   acl_save_prefix="$prefix"
11410   prefix="$acl_final_prefix"
11411   acl_save_exec_prefix="$exec_prefix"
11412   exec_prefix="$acl_final_exec_prefix"
11413   eval x=\"$x\"
11414   exec_prefix="$acl_save_exec_prefix"
11415   prefix="$acl_save_prefix"
11416
11417       if test "X$x" = "X$element"; then
11418         haveit=yes
11419         break
11420       fi
11421     done
11422     if test -z "$haveit"; then
11423       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11424     fi
11425   done
11426
11427
11428   echo "$as_me:$LINENO: checking for iconv" >&5
11429 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11430 if test "${am_cv_func_iconv+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433
11434     am_cv_func_iconv="no, consider installing GNU libiconv"
11435     am_cv_lib_iconv=no
11436     cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 #include <stdlib.h>
11443 #include <iconv.h>
11444 int
11445 main ()
11446 {
11447 iconv_t cd = iconv_open("","");
11448        iconv(cd,NULL,NULL,NULL,NULL);
11449        iconv_close(cd);
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456   (eval $ac_link) 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } &&
11463          { ac_try='test -z "$ac_c_werror_flag"
11464                          || test ! -s conftest.err'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest$ac_exeext'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   am_cv_func_iconv=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 fi
11482 rm -f conftest.err conftest.$ac_objext \
11483       conftest$ac_exeext conftest.$ac_ext
11484     if test "$am_cv_func_iconv" != yes; then
11485       am_save_LIBS="$LIBS"
11486       LIBS="$LIBS $LIBICONV"
11487       cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 #include <stdlib.h>
11494 #include <iconv.h>
11495 int
11496 main ()
11497 {
11498 iconv_t cd = iconv_open("","");
11499          iconv(cd,NULL,NULL,NULL,NULL);
11500          iconv_close(cd);
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>conftest.er1
11508   ac_status=$?
11509   grep -v '^ *+' conftest.er1 >conftest.err
11510   rm -f conftest.er1
11511   cat conftest.err >&5
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } &&
11514          { ac_try='test -z "$ac_c_werror_flag"
11515                          || test ! -s conftest.err'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; } &&
11521          { ac_try='test -s conftest$ac_exeext'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; }; then
11527   am_cv_lib_iconv=yes
11528         am_cv_func_iconv=yes
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 fi
11534 rm -f conftest.err conftest.$ac_objext \
11535       conftest$ac_exeext conftest.$ac_ext
11536       LIBS="$am_save_LIBS"
11537     fi
11538
11539 fi
11540 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11541 echo "${ECHO_T}$am_cv_func_iconv" >&6
11542   if test "$am_cv_func_iconv" = yes; then
11543
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_ICONV 1
11546 _ACEOF
11547
11548   fi
11549   if test "$am_cv_lib_iconv" = yes; then
11550     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11551 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11552     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11553 echo "${ECHO_T}$LIBICONV" >&6
11554   else
11555             CPPFLAGS="$am_save_CPPFLAGS"
11556     LIBICONV=
11557     LTLIBICONV=
11558   fi
11559
11560
11561
11562   if test "$am_cv_func_iconv" = yes; then
11563     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11564 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11565     if test "${am_cv_proto_iconv+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568
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 #include <stdlib.h>
11577 #include <iconv.h>
11578 extern
11579 #ifdef __cplusplus
11580 "C"
11581 #endif
11582 #if defined(__STDC__) || defined(__cplusplus)
11583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11584 #else
11585 size_t iconv();
11586 #endif
11587
11588 int
11589 main ()
11590 {
11591
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598   (eval $ac_compile) 2>conftest.er1
11599   ac_status=$?
11600   grep -v '^ *+' conftest.er1 >conftest.err
11601   rm -f conftest.er1
11602   cat conftest.err >&5
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -z "$ac_c_werror_flag"
11606                          || test ! -s conftest.err'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; } &&
11612          { ac_try='test -s conftest.$ac_objext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   am_cv_proto_iconv_arg1=""
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 am_cv_proto_iconv_arg1="const"
11624 fi
11625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11627 fi
11628
11629     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11630     echo "$as_me:$LINENO: result: ${ac_t:-
11631          }$am_cv_proto_iconv" >&5
11632 echo "${ECHO_T}${ac_t:-
11633          }$am_cv_proto_iconv" >&6
11634
11635 cat >>confdefs.h <<_ACEOF
11636 #define ICONV_CONST $am_cv_proto_iconv_arg1
11637 _ACEOF
11638
11639   fi
11640
11641
11642   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11643 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11644 if test "${am_cv_langinfo_codeset+set}" = set; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 #include <langinfo.h>
11654 int
11655 main ()
11656 {
11657 char* cs = nl_langinfo(CODESET);
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664   (eval $ac_link) 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag"
11672                          || test ! -s conftest.err'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest$ac_exeext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   am_cv_langinfo_codeset=yes
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 am_cv_langinfo_codeset=no
11690 fi
11691 rm -f conftest.err conftest.$ac_objext \
11692       conftest$ac_exeext conftest.$ac_ext
11693
11694 fi
11695 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11696 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11697   if test $am_cv_langinfo_codeset = yes; then
11698
11699 cat >>confdefs.h <<\_ACEOF
11700 #define HAVE_LANGINFO_CODESET 1
11701 _ACEOF
11702
11703   fi
11704
11705   if test $ac_cv_header_locale_h = yes; then
11706
11707   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11708 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11709 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h.  */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h.  */
11718 #include <locale.h>
11719 int
11720 main ()
11721 {
11722 return LC_MESSAGES
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729   (eval $ac_link) 2>conftest.er1
11730   ac_status=$?
11731   grep -v '^ *+' conftest.er1 >conftest.err
11732   rm -f conftest.er1
11733   cat conftest.err >&5
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } &&
11736          { ac_try='test -z "$ac_c_werror_flag"
11737                          || test ! -s conftest.err'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; } &&
11743          { ac_try='test -s conftest$ac_exeext'
11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745   (eval $ac_try) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; }; then
11749   gt_cv_val_LC_MESSAGES=yes
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 gt_cv_val_LC_MESSAGES=no
11755 fi
11756 rm -f conftest.err conftest.$ac_objext \
11757       conftest$ac_exeext conftest.$ac_ext
11758 fi
11759 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11760 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11761   if test $gt_cv_val_LC_MESSAGES = yes; then
11762
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_LC_MESSAGES 1
11765 _ACEOF
11766
11767   fi
11768
11769   fi
11770
11771   if test -n "$INTL_MACOSX_LIBS"; then
11772     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11773   fi
11774
11775                       for ac_prog in bison
11776 do
11777   # Extract the first word of "$ac_prog", so it can be a program name with args.
11778 set dummy $ac_prog; ac_word=$2
11779 echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11781 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11782   echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784   if test -n "$INTLBISON"; then
11785   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790   IFS=$as_save_IFS
11791   test -z "$as_dir" && as_dir=.
11792   for ac_exec_ext in '' $ac_executable_extensions; do
11793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794     ac_cv_prog_INTLBISON="$ac_prog"
11795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799 done
11800
11801 fi
11802 fi
11803 INTLBISON=$ac_cv_prog_INTLBISON
11804 if test -n "$INTLBISON"; then
11805   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11806 echo "${ECHO_T}$INTLBISON" >&6
11807 else
11808   echo "$as_me:$LINENO: result: no" >&5
11809 echo "${ECHO_T}no" >&6
11810 fi
11811
11812   test -n "$INTLBISON" && break
11813 done
11814
11815   if test -z "$INTLBISON"; then
11816     ac_verc_fail=yes
11817   else
11818         echo "$as_me:$LINENO: checking version of bison" >&5
11819 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11820     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11821     case $ac_prog_version in
11822       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11823       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11824          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11825       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11826     esac
11827     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11828 echo "${ECHO_T}$ac_prog_version" >&6
11829   fi
11830   if test $ac_verc_fail = yes; then
11831     INTLBISON=:
11832   fi
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11850 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11851 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   gt_save_CPPFLAGS="$CPPFLAGS"
11855      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11856      gt_save_LIBS="$LIBS"
11857      LIBS="$LIBS -framework CoreFoundation"
11858      cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 #include <CFPreferences.h>
11865 int
11866 main ()
11867 {
11868 CFPreferencesCopyAppValue(NULL, NULL)
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875   (eval $ac_link) 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } &&
11882          { ac_try='test -z "$ac_c_werror_flag"
11883                          || test ! -s conftest.err'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; } &&
11889          { ac_try='test -s conftest$ac_exeext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   gt_cv_func_CFPreferencesCopyAppValue=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 gt_cv_func_CFPreferencesCopyAppValue=no
11901 fi
11902 rm -f conftest.err conftest.$ac_objext \
11903       conftest$ac_exeext conftest.$ac_ext
11904      CPPFLAGS="$gt_save_CPPFLAGS"
11905      LIBS="$gt_save_LIBS"
11906 fi
11907 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11908 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11909   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11910
11911 cat >>confdefs.h <<\_ACEOF
11912 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11913 _ACEOF
11914
11915   fi
11916     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11917 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11918 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   gt_save_CPPFLAGS="$CPPFLAGS"
11922      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11923      gt_save_LIBS="$LIBS"
11924      LIBS="$LIBS -framework CoreFoundation"
11925      cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931 #include <CFLocale.h>
11932 int
11933 main ()
11934 {
11935 CFLocaleCopyCurrent();
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942   (eval $ac_link) 2>conftest.er1
11943   ac_status=$?
11944   grep -v '^ *+' conftest.er1 >conftest.err
11945   rm -f conftest.er1
11946   cat conftest.err >&5
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } &&
11949          { ac_try='test -z "$ac_c_werror_flag"
11950                          || test ! -s conftest.err'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; } &&
11956          { ac_try='test -s conftest$ac_exeext'
11957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958   (eval $ac_try) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); }; }; then
11962   gt_cv_func_CFLocaleCopyCurrent=yes
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 gt_cv_func_CFLocaleCopyCurrent=no
11968 fi
11969 rm -f conftest.err conftest.$ac_objext \
11970       conftest$ac_exeext conftest.$ac_ext
11971      CPPFLAGS="$gt_save_CPPFLAGS"
11972      LIBS="$gt_save_LIBS"
11973 fi
11974 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11975 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11976   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11977
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_CFLOCALECOPYCURRENT 1
11980 _ACEOF
11981
11982   fi
11983   INTL_MACOSX_LIBS=
11984   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11985     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11986   fi
11987
11988
11989
11990
11991   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11992 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11993     # Check whether --enable-nls or --disable-nls was given.
11994 if test "${enable_nls+set}" = set; then
11995   enableval="$enable_nls"
11996   USE_NLS=$enableval
11997 else
11998   USE_NLS=yes
11999 fi;
12000   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12001 echo "${ECHO_T}$USE_NLS" >&6
12002
12003
12004
12005
12006     BUILD_INCLUDED_LIBINTL=no
12007     USE_INCLUDED_LIBINTL=no
12008
12009   LIBINTL=
12010   LTLIBINTL=
12011   POSUB=
12012
12013     if test "$USE_NLS" = "yes"; then
12014     gt_use_preinstalled_gnugettext=no
12015
12016       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12017 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12018
12019 # Check whether --with-included-gettext or --without-included-gettext was given.
12020 if test "${with_included_gettext+set}" = set; then
12021   withval="$with_included_gettext"
12022   nls_cv_force_use_gnu_gettext=$withval
12023 else
12024   nls_cv_force_use_gnu_gettext=no
12025 fi;
12026       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12027 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12028
12029       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12030       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12031
12032
12033
12034
12035
12036
12037         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12038 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12039 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h.  */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h.  */
12048 #include <libintl.h>
12049 extern int _nl_msg_cat_cntr;
12050 extern int *_nl_domain_bindings;
12051 int
12052 main ()
12053 {
12054 bindtextdomain ("", "");
12055 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_c_werror_flag"
12070                          || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12082   gt_cv_func_gnugettext1_libc=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 gt_cv_func_gnugettext1_libc=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12093 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12094
12095         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12096
12097
12098
12099     use_additional=yes
12100
12101   acl_save_prefix="$prefix"
12102   prefix="$acl_final_prefix"
12103   acl_save_exec_prefix="$exec_prefix"
12104   exec_prefix="$acl_final_exec_prefix"
12105
12106     eval additional_includedir=\"$includedir\"
12107     eval additional_libdir=\"$libdir\"
12108
12109   exec_prefix="$acl_save_exec_prefix"
12110   prefix="$acl_save_prefix"
12111
12112
12113 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12114 if test "${with_libintl_prefix+set}" = set; then
12115   withval="$with_libintl_prefix"
12116
12117     if test "X$withval" = "Xno"; then
12118       use_additional=no
12119     else
12120       if test "X$withval" = "X"; then
12121
12122   acl_save_prefix="$prefix"
12123   prefix="$acl_final_prefix"
12124   acl_save_exec_prefix="$exec_prefix"
12125   exec_prefix="$acl_final_exec_prefix"
12126
12127           eval additional_includedir=\"$includedir\"
12128           eval additional_libdir=\"$libdir\"
12129
12130   exec_prefix="$acl_save_exec_prefix"
12131   prefix="$acl_save_prefix"
12132
12133       else
12134         additional_includedir="$withval/include"
12135         additional_libdir="$withval/lib"
12136       fi
12137     fi
12138
12139 fi;
12140       LIBINTL=
12141   LTLIBINTL=
12142   INCINTL=
12143   rpathdirs=
12144   ltrpathdirs=
12145   names_already_handled=
12146   names_next_round='intl '
12147   while test -n "$names_next_round"; do
12148     names_this_round="$names_next_round"
12149     names_next_round=
12150     for name in $names_this_round; do
12151       already_handled=
12152       for n in $names_already_handled; do
12153         if test "$n" = "$name"; then
12154           already_handled=yes
12155           break
12156         fi
12157       done
12158       if test -z "$already_handled"; then
12159         names_already_handled="$names_already_handled $name"
12160                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12161         eval value=\"\$HAVE_LIB$uppername\"
12162         if test -n "$value"; then
12163           if test "$value" = yes; then
12164             eval value=\"\$LIB$uppername\"
12165             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12166             eval value=\"\$LTLIB$uppername\"
12167             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12168           else
12169                                     :
12170           fi
12171         else
12172                               found_dir=
12173           found_la=
12174           found_so=
12175           found_a=
12176           if test $use_additional = yes; then
12177             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12178               found_dir="$additional_libdir"
12179               found_so="$additional_libdir/lib$name.$shlibext"
12180               if test -f "$additional_libdir/lib$name.la"; then
12181                 found_la="$additional_libdir/lib$name.la"
12182               fi
12183             else
12184               if test -f "$additional_libdir/lib$name.$libext"; then
12185                 found_dir="$additional_libdir"
12186                 found_a="$additional_libdir/lib$name.$libext"
12187                 if test -f "$additional_libdir/lib$name.la"; then
12188                   found_la="$additional_libdir/lib$name.la"
12189                 fi
12190               fi
12191             fi
12192           fi
12193           if test "X$found_dir" = "X"; then
12194             for x in $LDFLAGS $LTLIBINTL; do
12195
12196   acl_save_prefix="$prefix"
12197   prefix="$acl_final_prefix"
12198   acl_save_exec_prefix="$exec_prefix"
12199   exec_prefix="$acl_final_exec_prefix"
12200   eval x=\"$x\"
12201   exec_prefix="$acl_save_exec_prefix"
12202   prefix="$acl_save_prefix"
12203
12204               case "$x" in
12205                 -L*)
12206                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12207                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12208                     found_dir="$dir"
12209                     found_so="$dir/lib$name.$shlibext"
12210                     if test -f "$dir/lib$name.la"; then
12211                       found_la="$dir/lib$name.la"
12212                     fi
12213                   else
12214                     if test -f "$dir/lib$name.$libext"; then
12215                       found_dir="$dir"
12216                       found_a="$dir/lib$name.$libext"
12217                       if test -f "$dir/lib$name.la"; then
12218                         found_la="$dir/lib$name.la"
12219                       fi
12220                     fi
12221                   fi
12222                   ;;
12223               esac
12224               if test "X$found_dir" != "X"; then
12225                 break
12226               fi
12227             done
12228           fi
12229           if test "X$found_dir" != "X"; then
12230                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12231             if test "X$found_so" != "X"; then
12232                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12233                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12234               else
12235                                                                                 haveit=
12236                 for x in $ltrpathdirs; do
12237                   if test "X$x" = "X$found_dir"; then
12238                     haveit=yes
12239                     break
12240                   fi
12241                 done
12242                 if test -z "$haveit"; then
12243                   ltrpathdirs="$ltrpathdirs $found_dir"
12244                 fi
12245                                 if test "$hardcode_direct" = yes; then
12246                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12247                 else
12248                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12249                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12250                                                             haveit=
12251                     for x in $rpathdirs; do
12252                       if test "X$x" = "X$found_dir"; then
12253                         haveit=yes
12254                         break
12255                       fi
12256                     done
12257                     if test -z "$haveit"; then
12258                       rpathdirs="$rpathdirs $found_dir"
12259                     fi
12260                   else
12261                                                                                 haveit=
12262                     for x in $LDFLAGS $LIBINTL; do
12263
12264   acl_save_prefix="$prefix"
12265   prefix="$acl_final_prefix"
12266   acl_save_exec_prefix="$exec_prefix"
12267   exec_prefix="$acl_final_exec_prefix"
12268   eval x=\"$x\"
12269   exec_prefix="$acl_save_exec_prefix"
12270   prefix="$acl_save_prefix"
12271
12272                       if test "X$x" = "X-L$found_dir"; then
12273                         haveit=yes
12274                         break
12275                       fi
12276                     done
12277                     if test -z "$haveit"; then
12278                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12279                     fi
12280                     if test "$hardcode_minus_L" != no; then
12281                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12282                     else
12283                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12284                     fi
12285                   fi
12286                 fi
12287               fi
12288             else
12289               if test "X$found_a" != "X"; then
12290                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12291               else
12292                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12293               fi
12294             fi
12295                         additional_includedir=
12296             case "$found_dir" in
12297               */lib | */lib/)
12298                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12299                 additional_includedir="$basedir/include"
12300                 ;;
12301             esac
12302             if test "X$additional_includedir" != "X"; then
12303                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12304                 haveit=
12305                 if test "X$additional_includedir" = "X/usr/local/include"; then
12306                   if test -n "$GCC"; then
12307                     case $host_os in
12308                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12309                     esac
12310                   fi
12311                 fi
12312                 if test -z "$haveit"; then
12313                   for x in $CPPFLAGS $INCINTL; do
12314
12315   acl_save_prefix="$prefix"
12316   prefix="$acl_final_prefix"
12317   acl_save_exec_prefix="$exec_prefix"
12318   exec_prefix="$acl_final_exec_prefix"
12319   eval x=\"$x\"
12320   exec_prefix="$acl_save_exec_prefix"
12321   prefix="$acl_save_prefix"
12322
12323                     if test "X$x" = "X-I$additional_includedir"; then
12324                       haveit=yes
12325                       break
12326                     fi
12327                   done
12328                   if test -z "$haveit"; then
12329                     if test -d "$additional_includedir"; then
12330                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12331                     fi
12332                   fi
12333                 fi
12334               fi
12335             fi
12336                         if test -n "$found_la"; then
12337                                                         save_libdir="$libdir"
12338               case "$found_la" in
12339                 */* | *\\*) . "$found_la" ;;
12340                 *) . "./$found_la" ;;
12341               esac
12342               libdir="$save_libdir"
12343                             for dep in $dependency_libs; do
12344                 case "$dep" in
12345                   -L*)
12346                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12347                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12348                       haveit=
12349                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12350                         if test -n "$GCC"; then
12351                           case $host_os in
12352                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12353                           esac
12354                         fi
12355                       fi
12356                       if test -z "$haveit"; then
12357                         haveit=
12358                         for x in $LDFLAGS $LIBINTL; do
12359
12360   acl_save_prefix="$prefix"
12361   prefix="$acl_final_prefix"
12362   acl_save_exec_prefix="$exec_prefix"
12363   exec_prefix="$acl_final_exec_prefix"
12364   eval x=\"$x\"
12365   exec_prefix="$acl_save_exec_prefix"
12366   prefix="$acl_save_prefix"
12367
12368                           if test "X$x" = "X-L$additional_libdir"; then
12369                             haveit=yes
12370                             break
12371                           fi
12372                         done
12373                         if test -z "$haveit"; then
12374                           if test -d "$additional_libdir"; then
12375                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12376                           fi
12377                         fi
12378                         haveit=
12379                         for x in $LDFLAGS $LTLIBINTL; do
12380
12381   acl_save_prefix="$prefix"
12382   prefix="$acl_final_prefix"
12383   acl_save_exec_prefix="$exec_prefix"
12384   exec_prefix="$acl_final_exec_prefix"
12385   eval x=\"$x\"
12386   exec_prefix="$acl_save_exec_prefix"
12387   prefix="$acl_save_prefix"
12388
12389                           if test "X$x" = "X-L$additional_libdir"; then
12390                             haveit=yes
12391                             break
12392                           fi
12393                         done
12394                         if test -z "$haveit"; then
12395                           if test -d "$additional_libdir"; then
12396                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12397                           fi
12398                         fi
12399                       fi
12400                     fi
12401                     ;;
12402                   -R*)
12403                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12404                     if test "$enable_rpath" != no; then
12405                                                                   haveit=
12406                       for x in $rpathdirs; do
12407                         if test "X$x" = "X$dir"; then
12408                           haveit=yes
12409                           break
12410                         fi
12411                       done
12412                       if test -z "$haveit"; then
12413                         rpathdirs="$rpathdirs $dir"
12414                       fi
12415                                                                   haveit=
12416                       for x in $ltrpathdirs; do
12417                         if test "X$x" = "X$dir"; then
12418                           haveit=yes
12419                           break
12420                         fi
12421                       done
12422                       if test -z "$haveit"; then
12423                         ltrpathdirs="$ltrpathdirs $dir"
12424                       fi
12425                     fi
12426                     ;;
12427                   -l*)
12428                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12429                     ;;
12430                   *.la)
12431                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12432                     ;;
12433                   *)
12434                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12435                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12436                     ;;
12437                 esac
12438               done
12439             fi
12440           else
12441                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12442             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12443           fi
12444         fi
12445       fi
12446     done
12447   done
12448   if test "X$rpathdirs" != "X"; then
12449     if test -n "$hardcode_libdir_separator"; then
12450                         alldirs=
12451       for found_dir in $rpathdirs; do
12452         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12453       done
12454             acl_save_libdir="$libdir"
12455       libdir="$alldirs"
12456       eval flag=\"$hardcode_libdir_flag_spec\"
12457       libdir="$acl_save_libdir"
12458       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12459     else
12460             for found_dir in $rpathdirs; do
12461         acl_save_libdir="$libdir"
12462         libdir="$found_dir"
12463         eval flag=\"$hardcode_libdir_flag_spec\"
12464         libdir="$acl_save_libdir"
12465         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12466       done
12467     fi
12468   fi
12469   if test "X$ltrpathdirs" != "X"; then
12470             for found_dir in $ltrpathdirs; do
12471       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12472     done
12473   fi
12474
12475           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12476 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12477 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   gt_save_CPPFLAGS="$CPPFLAGS"
12481             CPPFLAGS="$CPPFLAGS $INCINTL"
12482             gt_save_LIBS="$LIBS"
12483             LIBS="$LIBS $LIBINTL"
12484                         cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 #include <libintl.h>
12491 extern int _nl_msg_cat_cntr;
12492 extern
12493 #ifdef __cplusplus
12494 "C"
12495 #endif
12496 const char *_nl_expand_alias (const char *);
12497 int
12498 main ()
12499 {
12500 bindtextdomain ("", "");
12501 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508   (eval $ac_link) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"
12516                          || test ! -s conftest.err'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; } &&
12522          { ac_try='test -s conftest$ac_exeext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   gt_cv_func_gnugettext1_libintl=yes
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 gt_cv_func_gnugettext1_libintl=no
12534 fi
12535 rm -f conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12538               LIBS="$LIBS $LIBICONV"
12539               cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 #include <libintl.h>
12546 extern int _nl_msg_cat_cntr;
12547 extern
12548 #ifdef __cplusplus
12549 "C"
12550 #endif
12551 const char *_nl_expand_alias (const char *);
12552 int
12553 main ()
12554 {
12555 bindtextdomain ("", "");
12556 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563   (eval $ac_link) 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -z "$ac_c_werror_flag"
12571                          || test ! -s conftest.err'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; } &&
12577          { ac_try='test -s conftest$ac_exeext'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   LIBINTL="$LIBINTL $LIBICONV"
12584                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12585                 gt_cv_func_gnugettext1_libintl=yes
12586
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 fi
12592 rm -f conftest.err conftest.$ac_objext \
12593       conftest$ac_exeext conftest.$ac_ext
12594             fi
12595             CPPFLAGS="$gt_save_CPPFLAGS"
12596             LIBS="$gt_save_LIBS"
12597 fi
12598 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12599 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12600         fi
12601
12602                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12603            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12604                 && test "$PACKAGE" != gettext-runtime \
12605                 && test "$PACKAGE" != gettext-tools; }; then
12606           gt_use_preinstalled_gnugettext=yes
12607         else
12608                     LIBINTL=
12609           LTLIBINTL=
12610           INCINTL=
12611         fi
12612
12613
12614         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12615                               nls_cv_use_gnu_gettext=yes
12616         fi
12617       fi
12618
12619       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12620                 BUILD_INCLUDED_LIBINTL=yes
12621         USE_INCLUDED_LIBINTL=yes
12622         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12623         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12624         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12625       fi
12626
12627       CATOBJEXT=
12628       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12629          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12630                 CATOBJEXT=.gmo
12631       fi
12632
12633
12634     if test -n "$INTL_MACOSX_LIBS"; then
12635       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12636          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12637                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12638         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12639       fi
12640     fi
12641
12642     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12643        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define ENABLE_NLS 1
12647 _ACEOF
12648
12649     else
12650       USE_NLS=no
12651     fi
12652   fi
12653
12654   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12655 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12656   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12657 echo "${ECHO_T}$USE_NLS" >&6
12658   if test "$USE_NLS" = "yes"; then
12659     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12660 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12661     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12662       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12663         gt_source="external libintl"
12664       else
12665         gt_source="libc"
12666       fi
12667     else
12668       gt_source="included intl directory"
12669     fi
12670     echo "$as_me:$LINENO: result: $gt_source" >&5
12671 echo "${ECHO_T}$gt_source" >&6
12672   fi
12673
12674   if test "$USE_NLS" = "yes"; then
12675
12676     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12677       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12678         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12679 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12680         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12681 echo "${ECHO_T}$LIBINTL" >&6
12682
12683   for element in $INCINTL; do
12684     haveit=
12685     for x in $CPPFLAGS; do
12686
12687   acl_save_prefix="$prefix"
12688   prefix="$acl_final_prefix"
12689   acl_save_exec_prefix="$exec_prefix"
12690   exec_prefix="$acl_final_exec_prefix"
12691   eval x=\"$x\"
12692   exec_prefix="$acl_save_exec_prefix"
12693   prefix="$acl_save_prefix"
12694
12695       if test "X$x" = "X$element"; then
12696         haveit=yes
12697         break
12698       fi
12699     done
12700     if test -z "$haveit"; then
12701       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12702     fi
12703   done
12704
12705       fi
12706
12707
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_GETTEXT 1
12710 _ACEOF
12711
12712
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_DCGETTEXT 1
12715 _ACEOF
12716
12717     fi
12718
12719         POSUB=po
12720   fi
12721
12722
12723             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12724       BUILD_INCLUDED_LIBINTL=yes
12725     fi
12726
12727
12728
12729
12730
12731         nls_cv_header_intl=
12732     nls_cv_header_libgt=
12733
12734         DATADIRNAME=share
12735
12736
12737         INSTOBJEXT=.mo
12738
12739
12740         GENCAT=gencat
12741
12742
12743         INTLOBJS=
12744     if test "$USE_INCLUDED_LIBINTL" = yes; then
12745       INTLOBJS="\$(GETTOBJS)"
12746     fi
12747
12748
12749         INTL_LIBTOOL_SUFFIX_PREFIX=
12750
12751
12752
12753     INTLLIBS="$LIBINTL"
12754
12755
12756
12757
12758
12759
12760 fi
12761
12762
12763 support_mysql=no
12764 support_sqlite=no
12765 support_sqlite3=no
12766 support_postgresql=no
12767 support_smartalloc=yes
12768 support_readline=yes
12769 support_conio=yes
12770 support_gnome=no
12771 support_wx_console=no
12772 support_tls=no
12773 gnome_version=
12774 wx_version=
12775 support_static_tools=no
12776 support_static_fd=no
12777 support_static_sd=no
12778 support_static_dir=no
12779 support_static_cons=no
12780 support_python=no
12781 build_client_only=no
12782 build_dird=yes
12783 build_stored=yes
12784 cats=
12785 db_name=Internal
12786 DB_NAME=bdb
12787
12788
12789 # -------------------------------------------
12790 # gnome (default off)
12791 # -------------------------------------------
12792 # Check whether --enable-gnome or --disable-gnome was given.
12793 if test "${enable_gnome+set}" = set; then
12794   enableval="$enable_gnome"
12795   if test x$enableval = xyes; then
12796     support_gnome=yes
12797   fi
12798 fi;
12799
12800 GNOME_DIR=
12801 if test x$support_gnome = xyes; then
12802   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12803   pkg=$?
12804   if test $pkg = 0; then
12805      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12806      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12807      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12808      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12809
12810
12811
12812
12813      GNOME_DIR=src/gnome2-console
12814      gnome_version="Version 2.x"
12815   else
12816      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12817 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12818    { (exit 1); exit 1; }; }
12819   fi
12820 fi
12821
12822
12823
12824 # -------------------------------------------
12825 # wx-console (default off)
12826 # -------------------------------------------
12827 # Check whether --enable-wx-console or --disable-wx-console was given.
12828 if test "${enable_wx_console+set}" = set; then
12829   enableval="$enable_wx_console"
12830   if test x$enableval = xyes; then
12831     support_wx_console=yes
12832   fi
12833 fi;
12834
12835 WX_DIR=
12836 if test x$support_wx_console = xyes; then
12837   abc=`$WXCONFIG $WXFLAGS --cppflags`
12838   pkg=$?
12839   if test $pkg = 0; then
12840      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12841      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12842      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12843
12844
12845
12846      WX_DIR=src/wx-console
12847   else
12848      echo " "
12849      echo "wx-config program not found. wx-console disabled."
12850      echo " "
12851      support_wx_console=no
12852   fi
12853 fi
12854
12855
12856
12857 # -------------------------------------------
12858 # tray-monitor (default off)
12859 # -------------------------------------------
12860 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12861 if test "${enable_tray_monitor+set}" = set; then
12862   enableval="$enable_tray_monitor"
12863   if test x$enableval = xyes; then
12864     support_tray_monitor=yes
12865   fi
12866 fi;
12867
12868 TRAY_MONITOR_DIR=
12869 if test x$support_tray_monitor = xyes; then
12870   abc=`$PKGCONFIG --exists gtk+-2.0`
12871   pkg=$?
12872   if test $pkg = 0; then
12873      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12874      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12875
12876
12877      TRAY_MONITOR_DIR=src/tray-monitor
12878      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12879      pkg=$?
12880      if test $pkg = 0; then
12881         cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_GTK_2_4 1
12883 _ACEOF
12884
12885      fi
12886   fi
12887 fi
12888
12889
12890 # -------------------------------------------
12891 # smartalloc (default off)
12892 # -------------------------------------------
12893 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12894 if test "${enable_smartalloc+set}" = set; then
12895   enableval="$enable_smartalloc"
12896   if test x$enableval = xno; then
12897     support_smartalloc=no
12898   fi
12899 fi;
12900
12901 if test x$support_smartalloc = xyes; then
12902    cat >>confdefs.h <<\_ACEOF
12903 #define SMARTALLOC 1
12904 _ACEOF
12905
12906 fi
12907
12908 # -------------------------------------------
12909 # static-tools (default off)
12910 # -------------------------------------------
12911 # Check whether --enable-static-tools or --disable-static-tools was given.
12912 if test "${enable_static_tools+set}" = set; then
12913   enableval="$enable_static_tools"
12914   if test x$enableval = xyes; then
12915      support_static_tools=yes
12916    fi
12917 fi;
12918
12919 TTOOL_LDFLAGS=
12920 if test x$support_static_tools = xyes; then
12921    TTOOL_LDFLAGS="-static"
12922 fi
12923
12924
12925 # -------------------------------------------
12926 # static-fd    (default off)
12927 # -------------------------------------------
12928 # Check whether --enable-static-fd or --disable-static-fd was given.
12929 if test "${enable_static_fd+set}" = set; then
12930   enableval="$enable_static_fd"
12931   if test x$enableval = xyes; then
12932      support_static_fd=yes
12933    fi
12934 fi;
12935
12936 STATIC_FD=
12937 if test x$support_static_fd = xyes; then
12938    STATIC_FD="static-bacula-fd"
12939 fi
12940
12941
12942 # -------------------------------------------
12943 # static-sd    (default off)
12944 # -------------------------------------------
12945 # Check whether --enable-static-sd or --disable-static-sd was given.
12946 if test "${enable_static_sd+set}" = set; then
12947   enableval="$enable_static_sd"
12948   if test x$enableval = xyes; then
12949      support_static_sd=yes
12950    fi
12951 fi;
12952
12953 STATIC_SD=
12954 if test x$support_static_sd = xyes; then
12955    STATIC_SD="static-bacula-sd"
12956 fi
12957
12958
12959 # -------------------------------------------
12960 # static-dir   (default off)
12961 # -------------------------------------------
12962 # Check whether --enable-static-dir or --disable-static-dir was given.
12963 if test "${enable_static_dir+set}" = set; then
12964   enableval="$enable_static_dir"
12965   if test x$enableval = xyes; then
12966      support_static_dir=yes
12967    fi
12968 fi;
12969
12970 STATIC_DIR=
12971 if test x$support_static_dir = xyes; then
12972    STATIC_DIR="static-bacula-dir"
12973 fi
12974
12975
12976 # -------------------------------------------
12977 # static-cons  (default off)
12978 # -------------------------------------------
12979 # Check whether --enable-static-cons or --disable-static-cons was given.
12980 if test "${enable_static_cons+set}" = set; then
12981   enableval="$enable_static_cons"
12982   if test x$enableval = xyes; then
12983      support_static_cons=yes
12984    fi
12985 fi;
12986
12987 STATIC_CONS=
12988 STATIC_GNOME_CONS=
12989 STATIC_WX_CONS=
12990 if test x$support_static_cons = xyes; then
12991    STATIC_CONS="static-bconsole"
12992    STATIC_GNOME_CONS="static-gnome-console"
12993    STATIC_WX_CONS="static-wx-console"
12994 fi
12995
12996
12997
12998
12999 # -------------------------------------------
13000 # client_only  (default off)
13001 # -------------------------------------------
13002 # Check whether --enable-client-only or --disable-client-only was given.
13003 if test "${enable_client_only+set}" = set; then
13004   enableval="$enable_client_only"
13005   if test x$enableval = xyes; then
13006       build_client_only=yes
13007       db_name=None
13008       DB_NAME=none
13009    fi
13010 fi;
13011 if test x$build_client_only = xno; then
13012    ALL_DIRS="subdirs"
13013 else
13014    ALL_DIRS=""
13015 fi
13016
13017
13018 # -------------------------------------------
13019 # director  (default on)
13020 # -------------------------------------------
13021 # Check whether --enable-build-dird or --disable-build-dird was given.
13022 if test "${enable_build_dird+set}" = set; then
13023   enableval="$enable_build_dird"
13024   if test x$enableval = xno; then
13025       build_dird=no
13026    fi
13027 fi;
13028 if test x$build_dird = xyes; then
13029    DIRD_DIR="src/dird"
13030    DIR_TOOLS="DIRTOOLS"
13031 else
13032    DIRD_DIR=""
13033    DIR_TOOLS="NODIRTOOLS"
13034 fi
13035
13036
13037
13038 # -------------------------------------------
13039 # stored  (default on)
13040 # -------------------------------------------
13041 # Check whether --enable-build-stored or --disable-build-stored was given.
13042 if test "${enable_build_stored+set}" = set; then
13043   enableval="$enable_build_stored"
13044   if test x$enableval = xno; then
13045       build_stored=no
13046    fi
13047 fi;
13048 if test x$build_stored = xyes; then
13049    STORED_DIR="src/stored"
13050 else
13051    STORED_DIR=""
13052 fi
13053
13054
13055 # ---------------------------------------------------
13056 # Check for conio (Bacula readline substitute)(
13057 # ---------------------------------------------------
13058 # this allows you to turn it completely off
13059 # Check whether --enable-conio or --disable-conio was given.
13060 if test "${enable_conio+set}" = set; then
13061   enableval="$enable_conio"
13062   if test x$enableval = xno; then
13063     support_conio=no
13064   fi
13065 fi;
13066
13067 got_conio="no"
13068 if test x$support_conio = xyes; then
13069    if test "${ac_cv_header_termcap_h+set}" = set; then
13070   echo "$as_me:$LINENO: checking for termcap.h" >&5
13071 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13072 if test "${ac_cv_header_termcap_h+set}" = set; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 fi
13075 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13076 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13077 else
13078   # Is the header compilable?
13079 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13080 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 $ac_includes_default
13088 #include <termcap.h>
13089 _ACEOF
13090 rm -f conftest.$ac_objext
13091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13092   (eval $ac_compile) 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } &&
13099          { ac_try='test -z "$ac_c_werror_flag"
13100                          || test ! -s conftest.err'
13101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102   (eval $ac_try) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; } &&
13106          { ac_try='test -s conftest.$ac_objext'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_header_compiler=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_header_compiler=no
13118 fi
13119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13121 echo "${ECHO_T}$ac_header_compiler" >&6
13122
13123 # Is the header present?
13124 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13125 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 #include <termcap.h>
13133 _ACEOF
13134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13136   ac_status=$?
13137   grep -v '^ *+' conftest.er1 >conftest.err
13138   rm -f conftest.er1
13139   cat conftest.err >&5
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } >/dev/null; then
13142   if test -s conftest.err; then
13143     ac_cpp_err=$ac_c_preproc_warn_flag
13144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13145   else
13146     ac_cpp_err=
13147   fi
13148 else
13149   ac_cpp_err=yes
13150 fi
13151 if test -z "$ac_cpp_err"; then
13152   ac_header_preproc=yes
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157   ac_header_preproc=no
13158 fi
13159 rm -f conftest.err conftest.$ac_ext
13160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13161 echo "${ECHO_T}$ac_header_preproc" >&6
13162
13163 # So?  What about this header?
13164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13165   yes:no: )
13166     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13167 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13168     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13169 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13170     ac_header_preproc=yes
13171     ;;
13172   no:yes:* )
13173     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13174 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13175     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13176 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13177     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13178 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13179     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13180 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13181     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13182 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13183     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13184 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13185     (
13186       cat <<\_ASBOX
13187 ## ------------------------------------------ ##
13188 ## Report this to the AC_PACKAGE_NAME lists.  ##
13189 ## ------------------------------------------ ##
13190 _ASBOX
13191     ) |
13192       sed "s/^/$as_me: WARNING:     /" >&2
13193     ;;
13194 esac
13195 echo "$as_me:$LINENO: checking for termcap.h" >&5
13196 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13197 if test "${ac_cv_header_termcap_h+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   ac_cv_header_termcap_h=$ac_header_preproc
13201 fi
13202 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13203 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13204
13205 fi
13206 if test $ac_cv_header_termcap_h = yes; then
13207    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13208 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13209 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212   ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-ltermcap  $LIBS"
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220
13221 /* Override any gcc2 internal prototype to avoid an error.  */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 /* We use char because int might match the return type of a gcc2
13226    builtin and then its argument prototype would still apply.  */
13227 char tgetent ();
13228 int
13229 main ()
13230 {
13231 tgetent ();
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext conftest$ac_exeext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13238   (eval $ac_link) 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag"
13246                          || test ! -s conftest.err'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; } &&
13252          { ac_try='test -s conftest$ac_exeext'
13253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254   (eval $ac_try) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; }; then
13258   ac_cv_lib_termcap_tgetent=yes
13259 else
13260   echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263 ac_cv_lib_termcap_tgetent=no
13264 fi
13265 rm -f conftest.err conftest.$ac_objext \
13266       conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13268 fi
13269 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13270 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13271 if test $ac_cv_lib_termcap_tgetent = yes; then
13272    CONS_LIBS="-ltermcap"
13273          CONS_OBJ="conio.o"
13274          CONS_SRC="conio.c"
13275          got_conio="yes"
13276          support_readline=no
13277
13278 cat >>confdefs.h <<\_ACEOF
13279 #define HAVE_CONIO 1
13280 _ACEOF
13281
13282
13283 else
13284    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13285 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13286 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   ac_check_lib_save_LIBS=$LIBS
13290 LIBS="-lncurses  $LIBS"
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297
13298 /* Override any gcc2 internal prototype to avoid an error.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 /* We use char because int might match the return type of a gcc2
13303    builtin and then its argument prototype would still apply.  */
13304 char tgetent ();
13305 int
13306 main ()
13307 {
13308 tgetent ();
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315   (eval $ac_link) 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -z "$ac_c_werror_flag"
13323                          || test ! -s conftest.err'
13324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325   (eval $ac_try) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; } &&
13329          { ac_try='test -s conftest$ac_exeext'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_cv_lib_ncurses_tgetent=yes
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 ac_cv_lib_ncurses_tgetent=no
13341 fi
13342 rm -f conftest.err conftest.$ac_objext \
13343       conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13345 fi
13346 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13347 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13348 if test $ac_cv_lib_ncurses_tgetent = yes; then
13349    CONS_LIBS="-lncurses"
13350            CONS_OBJ="conio.o"
13351            CONS_SRC="conio.c"
13352            got_conio="yes"
13353            support_readline=no
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_CONIO 1
13357 _ACEOF
13358
13359
13360 fi
13361
13362
13363 fi
13364
13365
13366 else
13367
13368
13369 for ac_header in curses.h
13370 do
13371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13373   echo "$as_me:$LINENO: checking for $ac_header" >&5
13374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 fi
13378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13380 else
13381   # Is the header compilable?
13382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390 $ac_includes_default
13391 #include <$ac_header>
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395   (eval $ac_compile) 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } &&
13402          { ac_try='test -z "$ac_c_werror_flag"
13403                          || test ! -s conftest.err'
13404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405   (eval $ac_try) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; } &&
13409          { ac_try='test -s conftest.$ac_objext'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; }; then
13415   ac_header_compiler=yes
13416 else
13417   echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 ac_header_compiler=no
13421 fi
13422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13424 echo "${ECHO_T}$ac_header_compiler" >&6
13425
13426 # Is the header present?
13427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h.  */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h.  */
13435 #include <$ac_header>
13436 _ACEOF
13437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13439   ac_status=$?
13440   grep -v '^ *+' conftest.er1 >conftest.err
13441   rm -f conftest.er1
13442   cat conftest.err >&5
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } >/dev/null; then
13445   if test -s conftest.err; then
13446     ac_cpp_err=$ac_c_preproc_warn_flag
13447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13448   else
13449     ac_cpp_err=
13450   fi
13451 else
13452   ac_cpp_err=yes
13453 fi
13454 if test -z "$ac_cpp_err"; then
13455   ac_header_preproc=yes
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460   ac_header_preproc=no
13461 fi
13462 rm -f conftest.err conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13464 echo "${ECHO_T}$ac_header_preproc" >&6
13465
13466 # So?  What about this header?
13467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13468   yes:no: )
13469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13473     ac_header_preproc=yes
13474     ;;
13475   no:yes:* )
13476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13488     (
13489       cat <<\_ASBOX
13490 ## ------------------------------------------ ##
13491 ## Report this to the AC_PACKAGE_NAME lists.  ##
13492 ## ------------------------------------------ ##
13493 _ASBOX
13494     ) |
13495       sed "s/^/$as_me: WARNING:     /" >&2
13496     ;;
13497 esac
13498 echo "$as_me:$LINENO: checking for $ac_header" >&5
13499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13501   echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503   eval "$as_ac_Header=\$ac_header_preproc"
13504 fi
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507
13508 fi
13509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13510   cat >>confdefs.h <<_ACEOF
13511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13512 _ACEOF
13513
13514 fi
13515
13516 done
13517
13518          echo "$as_me:$LINENO: checking for term.h" >&5
13519 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13520 if test "${ac_cv_header_term_h+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 #if HAVE_CURSES_H
13530 #include <curses.h>
13531 #endif
13532
13533
13534 #include <term.h>
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538   (eval $ac_compile) 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag"
13546                          || test ! -s conftest.err'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest.$ac_objext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   ac_cv_header_term_h=yes
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 ac_cv_header_term_h=no
13564 fi
13565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13568 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13569 if test $ac_cv_header_term_h = yes; then
13570    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13571 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13572 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lcurses  $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h.  */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h.  */
13583
13584 /* Override any gcc2 internal prototype to avoid an error.  */
13585 #ifdef __cplusplus
13586 extern "C"
13587 #endif
13588 /* We use char because int might match the return type of a gcc2
13589    builtin and then its argument prototype would still apply.  */
13590 char tgetent ();
13591 int
13592 main ()
13593 {
13594 tgetent ();
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13601   (eval $ac_link) 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag"
13609                          || test ! -s conftest.err'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest$ac_exeext'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   ac_cv_lib_curses_tgetent=yes
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_cv_lib_curses_tgetent=no
13627 fi
13628 rm -f conftest.err conftest.$ac_objext \
13629       conftest$ac_exeext conftest.$ac_ext
13630 LIBS=$ac_check_lib_save_LIBS
13631 fi
13632 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13633 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13634 if test $ac_cv_lib_curses_tgetent = yes; then
13635    CONS_LIBS="-lcurses"
13636                    CONS_OBJ="conio.o"
13637                    CONS_SRC="conio.c"
13638                    got_conio="yes"
13639                    support_readline=no
13640
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_CONIO 1
13643 _ACEOF
13644
13645
13646 fi
13647
13648
13649 else
13650    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13651 fi
13652
13653
13654
13655 fi
13656
13657
13658 fi
13659
13660
13661 # ---------------------------------------------------
13662 # Check for readline support/directory (default off)
13663 # ---------------------------------------------------
13664 # this allows you to turn it completely off
13665 # Check whether --enable-readline or --disable-readline was given.
13666 if test "${enable_readline+set}" = set; then
13667   enableval="$enable_readline"
13668   if test x$enableval = xno; then
13669     support_readline=no
13670   fi
13671 fi;
13672
13673 got_readline="no"
13674 READLINE_SRC=
13675 if test x$support_readline = xyes; then
13676
13677 # Check whether --with-readline or --without-readline was given.
13678 if test "${with_readline+set}" = set; then
13679   withval="$with_readline"
13680
13681         case "$with_readline" in
13682         no) : ;;
13683         yes|*)
13684           if test -f ${with_readline}/readline.h; then
13685              CONS_INC="-I${with_readline}"
13686              CONS_LDFLAGS="-L$with_readline"
13687           elif test -f ${with_readline}/include/readline/readline.h; then
13688              CONS_INC="-I${with_readline}/include/readline"
13689              CONS_LDFLAGS="-L${with_readline}/lib"
13690              with_readline="${with_readline}/include/readline"
13691           else
13692              with_readline="/usr/include/readline"
13693           fi
13694           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13696   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13697 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699   echo $ECHO_N "(cached) $ECHO_C" >&6
13700 fi
13701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13703 else
13704   # Is the header compilable?
13705 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13706 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 $ac_includes_default
13714 #include <${with_readline}/readline.h>
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718   (eval $ac_compile) 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -z "$ac_c_werror_flag"
13726                          || test ! -s conftest.err'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; } &&
13732          { ac_try='test -s conftest.$ac_objext'
13733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734   (eval $ac_try) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); }; }; then
13738   ac_header_compiler=yes
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 ac_header_compiler=no
13744 fi
13745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 echo "${ECHO_T}$ac_header_compiler" >&6
13748
13749 # Is the header present?
13750 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13751 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758 #include <${with_readline}/readline.h>
13759 _ACEOF
13760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13762   ac_status=$?
13763   grep -v '^ *+' conftest.er1 >conftest.err
13764   rm -f conftest.er1
13765   cat conftest.err >&5
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } >/dev/null; then
13768   if test -s conftest.err; then
13769     ac_cpp_err=$ac_c_preproc_warn_flag
13770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13771   else
13772     ac_cpp_err=
13773   fi
13774 else
13775   ac_cpp_err=yes
13776 fi
13777 if test -z "$ac_cpp_err"; then
13778   ac_header_preproc=yes
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783   ac_header_preproc=no
13784 fi
13785 rm -f conftest.err conftest.$ac_ext
13786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13787 echo "${ECHO_T}$ac_header_preproc" >&6
13788
13789 # So?  What about this header?
13790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13791   yes:no: )
13792     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13793 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13794     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13795 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13796     ac_header_preproc=yes
13797     ;;
13798   no:yes:* )
13799     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13800 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13801     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13803     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13805     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13806 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13807     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13808 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13809     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13810 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13811     (
13812       cat <<\_ASBOX
13813 ## ------------------------------------------ ##
13814 ## Report this to the AC_PACKAGE_NAME lists.  ##
13815 ## ------------------------------------------ ##
13816 _ASBOX
13817     ) |
13818       sed "s/^/$as_me: WARNING:     /" >&2
13819     ;;
13820 esac
13821 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13822 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13824   echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826   eval "$as_ac_Header=\$ac_header_preproc"
13827 fi
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830
13831 fi
13832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833    cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_READLINE 1
13835 _ACEOF
13836
13837                CONS_LIBS="-lreadline -lhistory -ltermcap"
13838                got_readline="yes"
13839
13840 else
13841    echo " "
13842                echo "readline.h not found. readline turned off ..."
13843                echo " "
13844
13845
13846 fi
13847
13848
13849           ;;
13850         esac
13851
13852 else
13853
13854        # check for standard readline library
13855        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13856   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13857 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13858 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13862 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13863 else
13864   # Is the header compilable?
13865 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13866 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 $ac_includes_default
13874 #include </usr/include/readline/readline.h>
13875 _ACEOF
13876 rm -f conftest.$ac_objext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13878   (eval $ac_compile) 2>conftest.er1
13879   ac_status=$?
13880   grep -v '^ *+' conftest.er1 >conftest.err
13881   rm -f conftest.er1
13882   cat conftest.err >&5
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); } &&
13885          { ac_try='test -z "$ac_c_werror_flag"
13886                          || test ! -s conftest.err'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; } &&
13892          { ac_try='test -s conftest.$ac_objext'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   ac_header_compiler=yes
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 ac_header_compiler=no
13904 fi
13905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6
13908
13909 # Is the header present?
13910 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13911 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 #include </usr/include/readline/readline.h>
13919 _ACEOF
13920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } >/dev/null; then
13928   if test -s conftest.err; then
13929     ac_cpp_err=$ac_c_preproc_warn_flag
13930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13931   else
13932     ac_cpp_err=
13933   fi
13934 else
13935   ac_cpp_err=yes
13936 fi
13937 if test -z "$ac_cpp_err"; then
13938   ac_header_preproc=yes
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943   ac_header_preproc=no
13944 fi
13945 rm -f conftest.err conftest.$ac_ext
13946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13947 echo "${ECHO_T}$ac_header_preproc" >&6
13948
13949 # So?  What about this header?
13950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13951   yes:no: )
13952     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13953 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13954     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13955 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13956     ac_header_preproc=yes
13957     ;;
13958   no:yes:* )
13959     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13960 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13961     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13966 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13968 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13969     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13970 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13971     (
13972       cat <<\_ASBOX
13973 ## ------------------------------------------ ##
13974 ## Report this to the AC_PACKAGE_NAME lists.  ##
13975 ## ------------------------------------------ ##
13976 _ASBOX
13977     ) |
13978       sed "s/^/$as_me: WARNING:     /" >&2
13979     ;;
13980 esac
13981 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13982 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13983 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13989 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13990
13991 fi
13992 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13993    cat >>confdefs.h <<\_ACEOF
13994 #define HAVE_READLINE 1
13995 _ACEOF
13996
13997            got_readline="yes"
13998            CONS_INC="-I/usr/include/readline"
13999            CONS_LIBS="-lreadline -ltermcap"
14000
14001 else
14002
14003            # Did not find standard library, so try Bacula's default
14004             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14007 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 fi
14011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14013 else
14014   # Is the header compilable?
14015 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14016 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 $ac_includes_default
14024 #include <${TOP_DIR}/depkgs/readline/readline.h>
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>conftest.er1
14029   ac_status=$?
14030   grep -v '^ *+' conftest.er1 >conftest.err
14031   rm -f conftest.er1
14032   cat conftest.err >&5
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } &&
14035          { ac_try='test -z "$ac_c_werror_flag"
14036                          || test ! -s conftest.err'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; } &&
14042          { ac_try='test -s conftest.$ac_objext'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }; then
14048   ac_header_compiler=yes
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053 ac_header_compiler=no
14054 fi
14055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14057 echo "${ECHO_T}$ac_header_compiler" >&6
14058
14059 # Is the header present?
14060 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14061 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 #include <${TOP_DIR}/depkgs/readline/readline.h>
14069 _ACEOF
14070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } >/dev/null; then
14078   if test -s conftest.err; then
14079     ac_cpp_err=$ac_c_preproc_warn_flag
14080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14081   else
14082     ac_cpp_err=
14083   fi
14084 else
14085   ac_cpp_err=yes
14086 fi
14087 if test -z "$ac_cpp_err"; then
14088   ac_header_preproc=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093   ac_header_preproc=no
14094 fi
14095 rm -f conftest.err conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14097 echo "${ECHO_T}$ac_header_preproc" >&6
14098
14099 # So?  What about this header?
14100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14101   yes:no: )
14102     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14103 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14104     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14105 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14106     ac_header_preproc=yes
14107     ;;
14108   no:yes:* )
14109     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14110 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14111     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14115     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14116 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14117     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14118 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14120 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14121     (
14122       cat <<\_ASBOX
14123 ## ------------------------------------------ ##
14124 ## Report this to the AC_PACKAGE_NAME lists.  ##
14125 ## ------------------------------------------ ##
14126 _ASBOX
14127     ) |
14128       sed "s/^/$as_me: WARNING:     /" >&2
14129     ;;
14130 esac
14131 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14132 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   eval "$as_ac_Header=\$ac_header_preproc"
14137 fi
14138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140
14141 fi
14142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14143    cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_READLINE 1
14145 _ACEOF
14146
14147                  got_readline="yes"
14148                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14149                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14150                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14151                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14152
14153 else
14154    echo " "
14155                 echo "readline.h not found. readline turned off ..."
14156                 echo " "
14157
14158
14159 fi
14160
14161
14162
14163
14164 fi
14165
14166
14167
14168
14169 fi;
14170 fi
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181 # Minimal stuff for readline Makefile configuration
14182 MAKE_SHELL=/bin/sh
14183
14184 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14185 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14186 if test "${ac_cv_header_stat_broken+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h.  */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h.  */
14195 #include <sys/types.h>
14196 #include <sys/stat.h>
14197
14198 #if defined(S_ISBLK) && defined(S_IFDIR)
14199 # if S_ISBLK (S_IFDIR)
14200 You lose.
14201 # endif
14202 #endif
14203
14204 #if defined(S_ISBLK) && defined(S_IFCHR)
14205 # if S_ISBLK (S_IFCHR)
14206 You lose.
14207 # endif
14208 #endif
14209
14210 #if defined(S_ISLNK) && defined(S_IFREG)
14211 # if S_ISLNK (S_IFREG)
14212 You lose.
14213 # endif
14214 #endif
14215
14216 #if defined(S_ISSOCK) && defined(S_IFREG)
14217 # if S_ISSOCK (S_IFREG)
14218 You lose.
14219 # endif
14220 #endif
14221
14222 _ACEOF
14223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14224   $EGREP "You lose" >/dev/null 2>&1; then
14225   ac_cv_header_stat_broken=yes
14226 else
14227   ac_cv_header_stat_broken=no
14228 fi
14229 rm -f conftest*
14230
14231 fi
14232 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14233 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14234 if test $ac_cv_header_stat_broken = yes; then
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define STAT_MACROS_BROKEN 1
14238 _ACEOF
14239
14240 fi
14241
14242
14243
14244
14245
14246
14247 ac_header_dirent=no
14248 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14249   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14250 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14251 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261 #include <sys/types.h>
14262 #include <$ac_hdr>
14263
14264 int
14265 main ()
14266 {
14267 if ((DIR *) 0)
14268 return 0;
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_c_werror_flag"
14283                          || test ! -s conftest.err'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   eval "$as_ac_Header=yes"
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 eval "$as_ac_Header=no"
14301 fi
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303 fi
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307   cat >>confdefs.h <<_ACEOF
14308 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14309 _ACEOF
14310
14311 ac_header_dirent=$ac_hdr; break
14312 fi
14313
14314 done
14315 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14316 if test $ac_header_dirent = dirent.h; then
14317   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14318 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14319 if test "${ac_cv_search_opendir+set}" = set; then
14320   echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322   ac_func_search_save_LIBS=$LIBS
14323 ac_cv_search_opendir=no
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330
14331 /* Override any gcc2 internal prototype to avoid an error.  */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 /* We use char because int might match the return type of a gcc2
14336    builtin and then its argument prototype would still apply.  */
14337 char opendir ();
14338 int
14339 main ()
14340 {
14341 opendir ();
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext conftest$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348   (eval $ac_link) 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } &&
14355          { ac_try='test -z "$ac_c_werror_flag"
14356                          || test ! -s conftest.err'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; } &&
14362          { ac_try='test -s conftest$ac_exeext'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_cv_search_opendir="none required"
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 fi
14374 rm -f conftest.err conftest.$ac_objext \
14375       conftest$ac_exeext conftest.$ac_ext
14376 if test "$ac_cv_search_opendir" = no; then
14377   for ac_lib in dir; do
14378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14379     cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385
14386 /* Override any gcc2 internal prototype to avoid an error.  */
14387 #ifdef __cplusplus
14388 extern "C"
14389 #endif
14390 /* We use char because int might match the return type of a gcc2
14391    builtin and then its argument prototype would still apply.  */
14392 char opendir ();
14393 int
14394 main ()
14395 {
14396 opendir ();
14397   ;
14398   return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14403   (eval $ac_link) 2>conftest.er1
14404   ac_status=$?
14405   grep -v '^ *+' conftest.er1 >conftest.err
14406   rm -f conftest.er1
14407   cat conftest.err >&5
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); } &&
14410          { ac_try='test -z "$ac_c_werror_flag"
14411                          || test ! -s conftest.err'
14412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413   (eval $ac_try) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; } &&
14417          { ac_try='test -s conftest$ac_exeext'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_cv_search_opendir="-l$ac_lib"
14424 break
14425 else
14426   echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429 fi
14430 rm -f conftest.err conftest.$ac_objext \
14431       conftest$ac_exeext conftest.$ac_ext
14432   done
14433 fi
14434 LIBS=$ac_func_search_save_LIBS
14435 fi
14436 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14438 if test "$ac_cv_search_opendir" != no; then
14439   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14440
14441 fi
14442
14443 else
14444   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14446 if test "${ac_cv_search_opendir+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   ac_func_search_save_LIBS=$LIBS
14450 ac_cv_search_opendir=no
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457
14458 /* Override any gcc2 internal prototype to avoid an error.  */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 /* We use char because int might match the return type of a gcc2
14463    builtin and then its argument prototype would still apply.  */
14464 char opendir ();
14465 int
14466 main ()
14467 {
14468 opendir ();
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475   (eval $ac_link) 2>conftest.er1
14476   ac_status=$?
14477   grep -v '^ *+' conftest.er1 >conftest.err
14478   rm -f conftest.er1
14479   cat conftest.err >&5
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } &&
14482          { ac_try='test -z "$ac_c_werror_flag"
14483                          || test ! -s conftest.err'
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); }; } &&
14489          { ac_try='test -s conftest$ac_exeext'
14490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491   (eval $ac_try) 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }; }; then
14495   ac_cv_search_opendir="none required"
14496 else
14497   echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 fi
14501 rm -f conftest.err conftest.$ac_objext \
14502       conftest$ac_exeext conftest.$ac_ext
14503 if test "$ac_cv_search_opendir" = no; then
14504   for ac_lib in x; do
14505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14506     cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512
14513 /* Override any gcc2 internal prototype to avoid an error.  */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 /* We use char because int might match the return type of a gcc2
14518    builtin and then its argument prototype would still apply.  */
14519 char opendir ();
14520 int
14521 main ()
14522 {
14523 opendir ();
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530   (eval $ac_link) 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } &&
14537          { ac_try='test -z "$ac_c_werror_flag"
14538                          || test ! -s conftest.err'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; } &&
14544          { ac_try='test -s conftest$ac_exeext'
14545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546   (eval $ac_try) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; }; then
14550   ac_cv_search_opendir="-l$ac_lib"
14551 break
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 fi
14557 rm -f conftest.err conftest.$ac_objext \
14558       conftest$ac_exeext conftest.$ac_ext
14559   done
14560 fi
14561 LIBS=$ac_func_search_save_LIBS
14562 fi
14563 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14564 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14565 if test "$ac_cv_search_opendir" != no; then
14566   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14567
14568 fi
14569
14570 fi
14571
14572
14573
14574
14575
14576
14577
14578
14579 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14580 do
14581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14582 echo "$as_me:$LINENO: checking for $ac_func" >&5
14583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14584 if eval "test \"\${$as_ac_var+set}\" = set"; then
14585   echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587   cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14595 #define $ac_func innocuous_$ac_func
14596
14597 /* System header to define __stub macros and hopefully few prototypes,
14598     which can conflict with char $ac_func (); below.
14599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14600     <limits.h> exists even on freestanding compilers.  */
14601
14602 #ifdef __STDC__
14603 # include <limits.h>
14604 #else
14605 # include <assert.h>
14606 #endif
14607
14608 #undef $ac_func
14609
14610 /* Override any gcc2 internal prototype to avoid an error.  */
14611 #ifdef __cplusplus
14612 extern "C"
14613 {
14614 #endif
14615 /* We use char because int might match the return type of a gcc2
14616    builtin and then its argument prototype would still apply.  */
14617 char $ac_func ();
14618 /* The GNU C library defines this for functions which it implements
14619     to always fail with ENOSYS.  Some functions are actually named
14620     something starting with __ and the normal name is an alias.  */
14621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14622 choke me
14623 #else
14624 char (*f) () = $ac_func;
14625 #endif
14626 #ifdef __cplusplus
14627 }
14628 #endif
14629
14630 int
14631 main ()
14632 {
14633 return f != $ac_func;
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640   (eval $ac_link) 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } &&
14647          { ac_try='test -z "$ac_c_werror_flag"
14648                          || test ! -s conftest.err'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest$ac_exeext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   eval "$as_ac_var=yes"
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 eval "$as_ac_var=no"
14666 fi
14667 rm -f conftest.err conftest.$ac_objext \
14668       conftest$ac_exeext conftest.$ac_ext
14669 fi
14670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14672 if test `eval echo '${'$as_ac_var'}'` = yes; then
14673   cat >>confdefs.h <<_ACEOF
14674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14675 _ACEOF
14676
14677 fi
14678 done
14679
14680
14681
14682 for ac_func in nanosleep nl_langinfo
14683 do
14684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14685 echo "$as_me:$LINENO: checking for $ac_func" >&5
14686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14687 if eval "test \"\${$as_ac_var+set}\" = set"; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14698 #define $ac_func innocuous_$ac_func
14699
14700 /* System header to define __stub macros and hopefully few prototypes,
14701     which can conflict with char $ac_func (); below.
14702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14703     <limits.h> exists even on freestanding compilers.  */
14704
14705 #ifdef __STDC__
14706 # include <limits.h>
14707 #else
14708 # include <assert.h>
14709 #endif
14710
14711 #undef $ac_func
14712
14713 /* Override any gcc2 internal prototype to avoid an error.  */
14714 #ifdef __cplusplus
14715 extern "C"
14716 {
14717 #endif
14718 /* We use char because int might match the return type of a gcc2
14719    builtin and then its argument prototype would still apply.  */
14720 char $ac_func ();
14721 /* The GNU C library defines this for functions which it implements
14722     to always fail with ENOSYS.  Some functions are actually named
14723     something starting with __ and the normal name is an alias.  */
14724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14725 choke me
14726 #else
14727 char (*f) () = $ac_func;
14728 #endif
14729 #ifdef __cplusplus
14730 }
14731 #endif
14732
14733 int
14734 main ()
14735 {
14736 return f != $ac_func;
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743   (eval $ac_link) 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_c_werror_flag"
14751                          || test ! -s conftest.err'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest$ac_exeext'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; }; then
14763   eval "$as_ac_var=yes"
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 eval "$as_ac_var=no"
14769 fi
14770 rm -f conftest.err conftest.$ac_objext \
14771       conftest$ac_exeext conftest.$ac_ext
14772 fi
14773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14775 if test `eval echo '${'$as_ac_var'}'` = yes; then
14776   cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14778 _ACEOF
14779
14780 fi
14781 done
14782
14783
14784 for ac_header in varargs.h
14785 do
14786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14788   echo "$as_me:$LINENO: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 fi
14793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14795 else
14796   # Is the header compilable?
14797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 #include <$ac_header>
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14810   (eval $ac_compile) 2>conftest.er1
14811   ac_status=$?
14812   grep -v '^ *+' conftest.er1 >conftest.err
14813   rm -f conftest.er1
14814   cat conftest.err >&5
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -z "$ac_c_werror_flag"
14818                          || test ! -s conftest.err'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_header_compiler=yes
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_compiler=no
14836 fi
14837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14839 echo "${ECHO_T}$ac_header_compiler" >&6
14840
14841 # Is the header present?
14842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850 #include <$ac_header>
14851 _ACEOF
14852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14854   ac_status=$?
14855   grep -v '^ *+' conftest.er1 >conftest.err
14856   rm -f conftest.er1
14857   cat conftest.err >&5
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } >/dev/null; then
14860   if test -s conftest.err; then
14861     ac_cpp_err=$ac_c_preproc_warn_flag
14862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14863   else
14864     ac_cpp_err=
14865   fi
14866 else
14867   ac_cpp_err=yes
14868 fi
14869 if test -z "$ac_cpp_err"; then
14870   ac_header_preproc=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875   ac_header_preproc=no
14876 fi
14877 rm -f conftest.err conftest.$ac_ext
14878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14879 echo "${ECHO_T}$ac_header_preproc" >&6
14880
14881 # So?  What about this header?
14882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14883   yes:no: )
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14888     ac_header_preproc=yes
14889     ;;
14890   no:yes:* )
14891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14903     (
14904       cat <<\_ASBOX
14905 ## ------------------------------------------ ##
14906 ## Report this to the AC_PACKAGE_NAME lists.  ##
14907 ## ------------------------------------------ ##
14908 _ASBOX
14909     ) |
14910       sed "s/^/$as_me: WARNING:     /" >&2
14911     ;;
14912 esac
14913 echo "$as_me:$LINENO: checking for $ac_header" >&5
14914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918   eval "$as_ac_Header=\$ac_header_preproc"
14919 fi
14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14922
14923 fi
14924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14925   cat >>confdefs.h <<_ACEOF
14926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14927 _ACEOF
14928
14929 fi
14930
14931 done
14932
14933
14934 # End of readline/conio stuff
14935 # -----------------------------------------------------------------------
14936
14937 # -----------------------------------------------------------------------
14938 #  Check for Python support
14939 #
14940 echo "$as_me:$LINENO: checking for Python support" >&5
14941 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14942
14943 # Check whether --with-python or --without-python was given.
14944 if test "${with_python+set}" = set; then
14945   withval="$with_python"
14946
14947   PYTHON_INCDIR=
14948   PYTHON_LIBS=
14949   if test "$withval" != "no"; then
14950      if test "$withval" = "yes"; then
14951         for python_root in /usr /usr/local /usr/sfw; do
14952           if test -f $python_root/include/python2.2/Python.h; then
14953              PYTHON_INCDIR=-I$python_root/include/python2.2
14954              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14955              break
14956           elif test -f $python_root/include/python2.3/Python.h; then
14957              PYTHON_INCDIR=-I$python_root/include/python2.3
14958              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14959              break
14960           elif test -f $python_root/include/python2.4/Python.h; then
14961              PYTHON_INCDIR=-I$python_root/include/python2.4
14962              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14963              break
14964           fi
14965         done
14966         if test x$PYTHON_INCDIR = x; then
14967           if test -f $prefix/include/Python.h; then
14968              PYTHON_INCDIR=-I$prefix/include
14969              PYTHON_LIBS="-L$prefix/lib/config -lpython"
14970           else
14971            echo "$as_me:$LINENO: result: no" >&5
14972 echo "${ECHO_T}no" >&6
14973            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14974 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14975    { (exit 1); exit 1; }; }
14976           fi
14977         fi
14978      else
14979         if test -f $withval/Python.h; then
14980            PYTHON_INCDIR=-I$withval
14981            PYTHON_LIBS="-L$withval/config -lpython"
14982         elif test -f $withval/include/Python.h; then
14983            PYTHON_INCDIR=-I$withval/include
14984            PYTHON_LIBS="-L$withval/lib/config -lpython"
14985         elif test -f $withval/include/python/Python.h; then
14986            PYTHON_INCDIR=-I$withval/include/python
14987            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14988         else
14989            echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14991            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14992 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14993    { (exit 1); exit 1; }; }
14994         fi
14995      fi
14996      cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_PYTHON 1
14998 _ACEOF
14999
15000      echo "$as_me:$LINENO: result: yes" >&5
15001 echo "${ECHO_T}yes" >&6
15002      support_python=yes
15003      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15004 echo "$as_me: checking for more Python libs" >&6;}
15005      saved_LIBS="$LIBS"; LIBS=
15006      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15007 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15008 if test "${ac_cv_search_shm_open+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   ac_func_search_save_LIBS=$LIBS
15012 ac_cv_search_shm_open=no
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h.  */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h.  */
15019
15020 /* Override any gcc2 internal prototype to avoid an error.  */
15021 #ifdef __cplusplus
15022 extern "C"
15023 #endif
15024 /* We use char because int might match the return type of a gcc2
15025    builtin and then its argument prototype would still apply.  */
15026 char shm_open ();
15027 int
15028 main ()
15029 {
15030 shm_open ();
15031   ;
15032   return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext conftest$ac_exeext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15037   (eval $ac_link) 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag"
15045                          || test ! -s conftest.err'
15046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047   (eval $ac_try) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); }; } &&
15051          { ac_try='test -s conftest$ac_exeext'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057   ac_cv_search_shm_open="none required"
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062 fi
15063 rm -f conftest.err conftest.$ac_objext \
15064       conftest$ac_exeext conftest.$ac_ext
15065 if test "$ac_cv_search_shm_open" = no; then
15066   for ac_lib in rt; do
15067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15068     cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074
15075 /* Override any gcc2 internal prototype to avoid an error.  */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 /* We use char because int might match the return type of a gcc2
15080    builtin and then its argument prototype would still apply.  */
15081 char shm_open ();
15082 int
15083 main ()
15084 {
15085 shm_open ();
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092   (eval $ac_link) 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -z "$ac_c_werror_flag"
15100                          || test ! -s conftest.err'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_search_shm_open="-l$ac_lib"
15113 break
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 fi
15119 rm -f conftest.err conftest.$ac_objext \
15120       conftest$ac_exeext conftest.$ac_ext
15121   done
15122 fi
15123 LIBS=$ac_func_search_save_LIBS
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15126 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15127 if test "$ac_cv_search_shm_open" != no; then
15128   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15129
15130 fi
15131
15132
15133 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15134 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15135 if test "${ac_cv_lib_util_openpty+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   ac_check_lib_save_LIBS=$LIBS
15139 LIBS="-lutil  $LIBS"
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146
15147 /* Override any gcc2 internal prototype to avoid an error.  */
15148 #ifdef __cplusplus
15149 extern "C"
15150 #endif
15151 /* We use char because int might match the return type of a gcc2
15152    builtin and then its argument prototype would still apply.  */
15153 char openpty ();
15154 int
15155 main ()
15156 {
15157 openpty ();
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164   (eval $ac_link) 2>conftest.er1
15165   ac_status=$?
15166   grep -v '^ *+' conftest.er1 >conftest.err
15167   rm -f conftest.er1
15168   cat conftest.err >&5
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } &&
15171          { ac_try='test -z "$ac_c_werror_flag"
15172                          || test ! -s conftest.err'
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); }; } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_cv_lib_util_openpty=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 ac_cv_lib_util_openpty=no
15190 fi
15191 rm -f conftest.err conftest.$ac_objext \
15192       conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15194 fi
15195 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15196 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15197 if test $ac_cv_lib_util_openpty = yes; then
15198   cat >>confdefs.h <<_ACEOF
15199 #define HAVE_LIBUTIL 1
15200 _ACEOF
15201
15202   LIBS="-lutil $LIBS"
15203
15204 fi
15205
15206      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15207      LIBS="$saved_LIBS"
15208   else
15209      echo "$as_me:$LINENO: result: no" >&5
15210 echo "${ECHO_T}no" >&6
15211   fi
15212
15213 else
15214
15215   echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6
15217
15218 fi;
15219
15220
15221
15222
15223 #
15224 # Find where sockets are (especially for Solaris)
15225 # Do this before the TCP Wrappers test since tcp wrappers
15226 # uses the socket library and some linkers are stupid.
15227 #
15228 echo "$as_me:$LINENO: checking for socket" >&5
15229 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15230 if test "${ac_cv_func_socket+set}" = set; then
15231   echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233   cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15241 #define socket innocuous_socket
15242
15243 /* System header to define __stub macros and hopefully few prototypes,
15244     which can conflict with char socket (); below.
15245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15246     <limits.h> exists even on freestanding compilers.  */
15247
15248 #ifdef __STDC__
15249 # include <limits.h>
15250 #else
15251 # include <assert.h>
15252 #endif
15253
15254 #undef socket
15255
15256 /* Override any gcc2 internal prototype to avoid an error.  */
15257 #ifdef __cplusplus
15258 extern "C"
15259 {
15260 #endif
15261 /* We use char because int might match the return type of a gcc2
15262    builtin and then its argument prototype would still apply.  */
15263 char socket ();
15264 /* The GNU C library defines this for functions which it implements
15265     to always fail with ENOSYS.  Some functions are actually named
15266     something starting with __ and the normal name is an alias.  */
15267 #if defined (__stub_socket) || defined (__stub___socket)
15268 choke me
15269 #else
15270 char (*f) () = socket;
15271 #endif
15272 #ifdef __cplusplus
15273 }
15274 #endif
15275
15276 int
15277 main ()
15278 {
15279 return f != socket;
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286   (eval $ac_link) 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -z "$ac_c_werror_flag"
15294                          || test ! -s conftest.err'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; } &&
15300          { ac_try='test -s conftest$ac_exeext'
15301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302   (eval $ac_try) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; }; then
15306   ac_cv_func_socket=yes
15307 else
15308   echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 ac_cv_func_socket=no
15312 fi
15313 rm -f conftest.err conftest.$ac_objext \
15314       conftest$ac_exeext conftest.$ac_ext
15315 fi
15316 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15317 echo "${ECHO_T}$ac_cv_func_socket" >&6
15318 if test $ac_cv_func_socket = yes; then
15319   echo "$as_me:$LINENO: result: using libc's socket" >&5
15320 echo "${ECHO_T}using libc's socket" >&6
15321 else
15322
15323 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15324 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15325 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15326   echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328   ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-lxnet  $LIBS"
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336
15337 /* Override any gcc2 internal prototype to avoid an error.  */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 /* We use char because int might match the return type of a gcc2
15342    builtin and then its argument prototype would still apply.  */
15343 char socket ();
15344 int
15345 main ()
15346 {
15347 socket ();
15348   ;
15349   return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15354   (eval $ac_link) 2>conftest.er1
15355   ac_status=$?
15356   grep -v '^ *+' conftest.er1 >conftest.err
15357   rm -f conftest.er1
15358   cat conftest.err >&5
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); } &&
15361          { ac_try='test -z "$ac_c_werror_flag"
15362                          || test ! -s conftest.err'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; } &&
15368          { ac_try='test -s conftest$ac_exeext'
15369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370   (eval $ac_try) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; }; then
15374   ac_cv_lib_xnet_socket=yes
15375 else
15376   echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379 ac_cv_lib_xnet_socket=no
15380 fi
15381 rm -f conftest.err conftest.$ac_objext \
15382       conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15384 fi
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15386 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15387 if test $ac_cv_lib_xnet_socket = yes; then
15388   cat >>confdefs.h <<_ACEOF
15389 #define HAVE_LIBXNET 1
15390 _ACEOF
15391
15392   LIBS="-lxnet $LIBS"
15393
15394 fi
15395
15396
15397 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15398 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15399 if test "${ac_cv_lib_socket_socket+set}" = set; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   ac_check_lib_save_LIBS=$LIBS
15403 LIBS="-lsocket  $LIBS"
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410
15411 /* Override any gcc2 internal prototype to avoid an error.  */
15412 #ifdef __cplusplus
15413 extern "C"
15414 #endif
15415 /* We use char because int might match the return type of a gcc2
15416    builtin and then its argument prototype would still apply.  */
15417 char socket ();
15418 int
15419 main ()
15420 {
15421 socket ();
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428   (eval $ac_link) 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } &&
15435          { ac_try='test -z "$ac_c_werror_flag"
15436                          || test ! -s conftest.err'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; } &&
15442          { ac_try='test -s conftest$ac_exeext'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448   ac_cv_lib_socket_socket=yes
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_cv_lib_socket_socket=no
15454 fi
15455 rm -f conftest.err conftest.$ac_objext \
15456       conftest$ac_exeext conftest.$ac_ext
15457 LIBS=$ac_check_lib_save_LIBS
15458 fi
15459 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15460 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15461 if test $ac_cv_lib_socket_socket = yes; then
15462   cat >>confdefs.h <<_ACEOF
15463 #define HAVE_LIBSOCKET 1
15464 _ACEOF
15465
15466   LIBS="-lsocket $LIBS"
15467
15468 fi
15469
15470
15471 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15472 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15473 if test "${ac_cv_lib_inet_socket+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   ac_check_lib_save_LIBS=$LIBS
15477 LIBS="-linet  $LIBS"
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484
15485 /* Override any gcc2 internal prototype to avoid an error.  */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 /* We use char because int might match the return type of a gcc2
15490    builtin and then its argument prototype would still apply.  */
15491 char socket ();
15492 int
15493 main ()
15494 {
15495 socket ();
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest.$ac_objext conftest$ac_exeext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15502   (eval $ac_link) 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } &&
15509          { ac_try='test -z "$ac_c_werror_flag"
15510                          || test ! -s conftest.err'
15511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512   (eval $ac_try) 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; } &&
15516          { ac_try='test -s conftest$ac_exeext'
15517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518   (eval $ac_try) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; }; then
15522   ac_cv_lib_inet_socket=yes
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_cv_lib_inet_socket=no
15528 fi
15529 rm -f conftest.err conftest.$ac_objext \
15530       conftest$ac_exeext conftest.$ac_ext
15531 LIBS=$ac_check_lib_save_LIBS
15532 fi
15533 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15534 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15535 if test $ac_cv_lib_inet_socket = yes; then
15536   cat >>confdefs.h <<_ACEOF
15537 #define HAVE_LIBINET 1
15538 _ACEOF
15539
15540   LIBS="-linet $LIBS"
15541
15542 fi
15543
15544 fi
15545
15546
15547
15548 # -----------------------------------------------------------
15549 # Check whether user wants TCP wrappers support (default off)
15550 # -----------------------------------------------------------
15551 TCPW_MSG="no"
15552 WRAPLIBS=""
15553
15554 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15555 if test "${with_tcp_wrappers+set}" = set; then
15556   withval="$with_tcp_wrappers"
15557
15558     if test "x$withval" != "xno" ; then
15559        saved_LIBS="$LIBS"
15560        LIBS="$saved_LIBS -lwrap"
15561        echo "$as_me:$LINENO: checking for libwrap" >&5
15562 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15563        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15564 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15565 if test "${ac_cv_search_nanosleep+set}" = set; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568   ac_func_search_save_LIBS=$LIBS
15569 ac_cv_search_nanosleep=no
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576
15577 /* Override any gcc2 internal prototype to avoid an error.  */
15578 #ifdef __cplusplus
15579 extern "C"
15580 #endif
15581 /* We use char because int might match the return type of a gcc2
15582    builtin and then its argument prototype would still apply.  */
15583 char nanosleep ();
15584 int
15585 main ()
15586 {
15587 nanosleep ();
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15594   (eval $ac_link) 2>conftest.er1
15595   ac_status=$?
15596   grep -v '^ *+' conftest.er1 >conftest.err
15597   rm -f conftest.er1
15598   cat conftest.err >&5
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); } &&
15601          { ac_try='test -z "$ac_c_werror_flag"
15602                          || test ! -s conftest.err'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; } &&
15608          { ac_try='test -s conftest$ac_exeext'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_cv_search_nanosleep="none required"
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 fi
15620 rm -f conftest.err conftest.$ac_objext \
15621       conftest$ac_exeext conftest.$ac_ext
15622 if test "$ac_cv_search_nanosleep" = no; then
15623   for ac_lib in rt; do
15624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15625     cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631
15632 /* Override any gcc2 internal prototype to avoid an error.  */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 /* We use char because int might match the return type of a gcc2
15637    builtin and then its argument prototype would still apply.  */
15638 char nanosleep ();
15639 int
15640 main ()
15641 {
15642 nanosleep ();
15643   ;
15644   return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15649   (eval $ac_link) 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_c_werror_flag"
15657                          || test ! -s conftest.err'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest$ac_exeext'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   ac_cv_search_nanosleep="-l$ac_lib"
15670 break
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 fi
15676 rm -f conftest.err conftest.$ac_objext \
15677       conftest$ac_exeext conftest.$ac_ext
15678   done
15679 fi
15680 LIBS=$ac_func_search_save_LIBS
15681 fi
15682 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15683 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15684 if test "$ac_cv_search_nanosleep" != no; then
15685   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15686
15687 fi
15688
15689        cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695  #include <sys/types.h>
15696             #include <tcpd.h>
15697              int deny_severity = 0;
15698              int allow_severity = 0;
15699              struct request_info *req;
15700 int
15701 main ()
15702 {
15703  hosts_access(req);
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15710   (eval $ac_link) 2>conftest.er1
15711   ac_status=$?
15712   grep -v '^ *+' conftest.er1 >conftest.err
15713   rm -f conftest.er1
15714   cat conftest.err >&5
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } &&
15717          { ac_try='test -z "$ac_c_werror_flag"
15718                          || test ! -s conftest.err'
15719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720   (eval $ac_try) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; } &&
15724          { ac_try='test -s conftest$ac_exeext'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730
15731             echo "$as_me:$LINENO: result: yes" >&5
15732 echo "${ECHO_T}yes" >&6
15733             cat >>confdefs.h <<\_ACEOF
15734 #define HAVE_LIBWRAP 1
15735 _ACEOF
15736
15737             TCPW_MSG="yes"
15738             LIBS="$saved_LIBS"
15739             WRAPLIBS="-lwrap"
15740
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745
15746             LIBS="$saved_LIBS -lwrap -lnsl"
15747             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15748             cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754  #include <sys/types.h>
15755                  #include <tcpd.h>
15756                  int deny_severity = 0;
15757                  int allow_severity = 0;
15758                  struct request_info *req;
15759 int
15760 main ()
15761 {
15762  hosts_access(req);
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769   (eval $ac_link) 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -z "$ac_c_werror_flag"
15777                          || test ! -s conftest.err'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest$ac_exeext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789
15790                  echo "$as_me:$LINENO: result: yes" >&5
15791 echo "${ECHO_T}yes" >&6
15792                  cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_LIBWRAP 1
15794 _ACEOF
15795
15796                  TCPW_MSG="yes"
15797                  LIBS="$saved_LIBS"
15798                  WRAPLIBS="-lwrap"
15799
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15805 echo "$as_me: error: *** libwrap missing" >&2;}
15806    { (exit 1); exit 1; }; }
15807
15808 fi
15809 rm -f conftest.err conftest.$ac_objext \
15810       conftest$ac_exeext conftest.$ac_ext
15811
15812 fi
15813 rm -f conftest.err conftest.$ac_objext \
15814       conftest$ac_exeext conftest.$ac_ext
15815     fi
15816
15817
15818 fi;
15819
15820 # -----------------------------------------------------------
15821 # Check whether OpenSSL is available
15822 # -----------------------------------------------------------
15823 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15824 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15825
15826 # Check whether --with-openssl or --without-openssl was given.
15827 if test "${with_openssl+set}" = set; then
15828   withval="$with_openssl"
15829   with_openssl_directory=${withval}
15830 fi;
15831
15832 if test "x$with_openssl_directory" != "x"; then
15833         OPENSSL_LIBS="-lssl -lcrypto"
15834         OPENSSL_INC=""
15835
15836         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15837                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15838                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15839         fi
15840
15841         saved_LIBS="$LIBS"
15842         saved_CFLAGS="$CFLAGS"
15843         LIBS="$saved_LIBS $OPENSSL_LIBS"
15844         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15845
15846         cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852  #include <openssl/ssl.h>
15853 int
15854 main ()
15855 {
15856  CRYPTO_set_id_callback(NULL);
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15863   (eval $ac_link) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag"
15871                          || test ! -s conftest.err'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; } &&
15877          { ac_try='test -s conftest$ac_exeext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883    support_tls="yes"
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888  support_tls="no"
15889
15890 fi
15891 rm -f conftest.err conftest.$ac_objext \
15892       conftest$ac_exeext conftest.$ac_ext
15893
15894         LIBS="$saved_LIBS"
15895         CFLAGS="$saved_CFLAGS"
15896
15897         if test "$support_tls" = "yes"; then
15898
15899 cat >>confdefs.h <<\_ACEOF
15900 #define HAVE_OPENSSL 1
15901 _ACEOF
15902
15903
15904 cat >>confdefs.h <<\_ACEOF
15905 #define HAVE_TLS 1
15906 _ACEOF
15907
15908         fi
15909 else
15910         support_tls="no"
15911         OPENSSL_LIBS=""
15912         OPENSSL_INC=""
15913 fi
15914
15915 echo "$as_me:$LINENO: result: $support_tls" >&5
15916 echo "${ECHO_T}$support_tls" >&6
15917
15918
15919
15920
15921 # -----------------------------------------------------------
15922 # Python and OpenSSL are using dlopen
15923 # -----------------------------------------------------------
15924
15925 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15926    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15927 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15928 if test "${ac_cv_search_dlopen+set}" = set; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   ac_func_search_save_LIBS=$LIBS
15932 ac_cv_search_dlopen=no
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939
15940 /* Override any gcc2 internal prototype to avoid an error.  */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 /* We use char because int might match the return type of a gcc2
15945    builtin and then its argument prototype would still apply.  */
15946 char dlopen ();
15947 int
15948 main ()
15949 {
15950 dlopen ();
15951   ;
15952   return 0;
15953 }
15954 _ACEOF
15955 rm -f conftest.$ac_objext conftest$ac_exeext
15956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15957   (eval $ac_link) 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } &&
15964          { ac_try='test -z "$ac_c_werror_flag"
15965                          || test ! -s conftest.err'
15966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967   (eval $ac_try) 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; } &&
15971          { ac_try='test -s conftest$ac_exeext'
15972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973   (eval $ac_try) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; }; then
15977   ac_cv_search_dlopen="none required"
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 fi
15983 rm -f conftest.err conftest.$ac_objext \
15984       conftest$ac_exeext conftest.$ac_ext
15985 if test "$ac_cv_search_dlopen" = no; then
15986   for ac_lib in dl; do
15987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15988     cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994
15995 /* Override any gcc2 internal prototype to avoid an error.  */
15996 #ifdef __cplusplus
15997 extern "C"
15998 #endif
15999 /* We use char because int might match the return type of a gcc2
16000    builtin and then its argument prototype would still apply.  */
16001 char dlopen ();
16002 int
16003 main ()
16004 {
16005 dlopen ();
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012   (eval $ac_link) 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag"
16020                          || test ! -s conftest.err'
16021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022   (eval $ac_try) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; } &&
16026          { ac_try='test -s conftest$ac_exeext'
16027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028   (eval $ac_try) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; }; then
16032   ac_cv_search_dlopen="-l$ac_lib"
16033 break
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 fi
16039 rm -f conftest.err conftest.$ac_objext \
16040       conftest$ac_exeext conftest.$ac_ext
16041   done
16042 fi
16043 LIBS=$ac_func_search_save_LIBS
16044 fi
16045 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16046 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16047 if test "$ac_cv_search_dlopen" != no; then
16048   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16049
16050 fi
16051
16052 fi
16053
16054 # ------------------------------------------
16055 # Where to place working dir
16056 # ------------------------------------------
16057 working_dir=`eval echo ${prefix}/var/bacula/working`
16058
16059 # Check whether --with-working-dir or --without-working-dir was given.
16060 if test "${with_working_dir+set}" = set; then
16061   withval="$with_working_dir"
16062
16063        if test "x$withval" != "xno" ; then
16064               working_dir=$withval
16065        fi
16066
16067
16068 fi;
16069
16070
16071
16072
16073 # ------------------------------------------
16074 # Where to place scriptdir (script files)
16075 # ------------------------------------------
16076 scriptdir=`eval echo ${sysconfdir}`
16077
16078 # Check whether --with-scriptdir or --without-scriptdir was given.
16079 if test "${with_scriptdir+set}" = set; then
16080   withval="$with_scriptdir"
16081
16082        if test "x$withval" != "xno" ; then
16083               scriptdir=$withval
16084        fi
16085
16086
16087 fi;
16088
16089
16090
16091
16092 # ------------------------------------------
16093 # Where to send dump email
16094 # ------------------------------------------
16095 dump_email=root@localhost
16096
16097 # Check whether --with-dump-email or --without-dump-email was given.
16098 if test "${with_dump_email+set}" = set; then
16099   withval="$with_dump_email"
16100
16101        if test "x$withval" != "xno" ; then
16102               dump_email=$withval
16103        fi
16104
16105
16106 fi;
16107
16108
16109
16110 # ------------------------------------------
16111 # Where to send job email
16112 # ------------------------------------------
16113 job_email=root@localhost
16114
16115 # Check whether --with-job-email or --without-job-email was given.
16116 if test "${with_job_email+set}" = set; then
16117   withval="$with_job_email"
16118
16119        if test "x$withval" != "xno" ; then
16120               job_email=$withval
16121        fi
16122
16123
16124 fi;
16125
16126
16127
16128 # ------------------------------------------
16129 # Where to find smtp host
16130 # ------------------------------------------
16131 smtp_host=localhost
16132
16133 # Check whether --with-smtp_host or --without-smtp_host was given.
16134 if test "${with_smtp_host+set}" = set; then
16135   withval="$with_smtp_host"
16136
16137        if test "x$withval" != "xno" ; then
16138               smtp_host=$withval
16139        fi
16140
16141
16142 fi;
16143
16144
16145
16146
16147 # ------------------------------------
16148 # Where to place pid files
16149 # ------------------------------------
16150 piddir=/var/run
16151
16152 # Check whether --with-pid-dir or --without-pid-dir was given.
16153 if test "${with_pid_dir+set}" = set; then
16154   withval="$with_pid_dir"
16155
16156         if test "x$withval" != "xno" ; then
16157             piddir=$withval
16158         fi
16159
16160
16161 fi;
16162
16163 cat >>confdefs.h <<_ACEOF
16164 #define _PATH_BACULA_PIDDIR "$piddir"
16165 _ACEOF
16166
16167
16168
16169
16170 # ------------------------------------
16171 # Where to place subsys "lock file"
16172 # ------------------------------------
16173 subsysdir=/var/run/subsys
16174
16175 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16176 if test "${with_subsys_dir+set}" = set; then
16177   withval="$with_subsys_dir"
16178
16179         if test "x$withval" != "xno" ; then
16180             subsysdir=$withval
16181         fi
16182
16183
16184 fi;
16185
16186
16187
16188
16189
16190 # ------------------------------------
16191 # Where to start assigning ports
16192 # ------------------------------------
16193 baseport=9101
16194
16195 # Check whether --with-baseport or --without-baseport was given.
16196 if test "${with_baseport+set}" = set; then
16197   withval="$with_baseport"
16198
16199         if test "x$withval" != "xno" ; then
16200              baseport=$withval
16201         fi
16202
16203
16204 fi;
16205
16206
16207 dir_port=`expr $baseport`
16208 fd_port=`expr $baseport + 1`
16209 sd_port=`expr $fd_port + 1`
16210
16211
16212
16213
16214
16215
16216 # ------------------------------------------
16217 # Generate passwords
16218 # ------------------------------------------
16219 dir_password=
16220
16221 # Check whether --with-dir-password or --without-dir-password was given.
16222 if test "${with_dir_password+set}" = set; then
16223   withval="$with_dir_password"
16224
16225        if test "x$withval" != "xno" ; then
16226            dir_password=$withval
16227        fi
16228
16229
16230 fi;
16231
16232 if test "x$dir_password" = "x" ; then
16233    if test "x$OPENSSL" = "xnone" ; then
16234       key=`autoconf/randpass 33`
16235    else
16236       key=`openssl rand -base64 33`
16237    fi
16238    dir_password=$key
16239 fi
16240
16241 fd_password=
16242
16243 # Check whether --with-fd-password or --without-fd-password was given.
16244 if test "${with_fd_password+set}" = set; then
16245   withval="$with_fd_password"
16246
16247        if test "x$withval" != "xno" ; then
16248            fd_password=$withval
16249        fi
16250
16251
16252 fi;
16253
16254 if test "x$fd_password" = "x" ; then
16255    if test "x$OPENSSL" = "xnone" ; then
16256       key=`autoconf/randpass 37`
16257    else
16258       key=`openssl rand -base64 33`
16259    fi
16260    fd_password=$key
16261 fi
16262
16263 sd_password=
16264
16265 # Check whether --with-sd-password or --without-sd-password was given.
16266 if test "${with_sd_password+set}" = set; then
16267   withval="$with_sd_password"
16268
16269        if test "x$withval" != "xno" ; then
16270            sd_password=$withval
16271        fi
16272
16273
16274 fi;
16275
16276 if test "x$sd_password" = "x" ; then
16277    if test "x$OPENSSL" = "xnone" ; then
16278       key=`autoconf/randpass 41`
16279    else
16280       key=`openssl rand -base64 33`
16281    fi
16282    sd_password=$key
16283 fi
16284
16285 mon_dir_password=
16286
16287 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16288 if test "${with_mon_dir_password+set}" = set; then
16289   withval="$with_mon_dir_password"
16290
16291        if test "x$withval" != "xno" ; then
16292            mon_dir_password=$withval
16293        fi
16294
16295
16296 fi;
16297
16298 if test "x$mon_dir_password" = "x" ; then
16299    if test "x$OPENSSL" = "xnone" ; then
16300       key=`autoconf/randpass 33`
16301    else
16302       key=`openssl rand -base64 33`
16303    fi
16304    mon_dir_password=$key
16305 fi
16306
16307 mon_fd_password=
16308
16309 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16310 if test "${with_mon_fd_password+set}" = set; then
16311   withval="$with_mon_fd_password"
16312
16313        if test "x$withval" != "xno" ; then
16314            mon_fd_password=$withval
16315        fi
16316
16317
16318 fi;
16319
16320 if test "x$mon_fd_password" = "x" ; then
16321    if test "x$OPENSSL" = "xnone" ; then
16322       key=`autoconf/randpass 37`
16323    else
16324       key=`openssl rand -base64 33`
16325    fi
16326    mon_fd_password=$key
16327 fi
16328
16329 mon_sd_password=
16330
16331 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16332 if test "${with_mon_sd_password+set}" = set; then
16333   withval="$with_mon_sd_password"
16334
16335        if test "x$withval" != "xno" ; then
16336            mon_sd_password=$withval
16337        fi
16338
16339
16340 fi;
16341
16342 if test "x$mon_sd_password" = "x" ; then
16343    if test "x$OPENSSL" = "xnone" ; then
16344       key=`autoconf/randpass 41`
16345    else
16346       key=`openssl rand -base64 33`
16347    fi
16348    mon_sd_password=$key
16349 fi
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359 #
16360 # Handle users and groups for each daemon
16361 #
16362 dir_user=
16363
16364 # Check whether --with-dir_user or --without-dir_user was given.
16365 if test "${with_dir_user+set}" = set; then
16366   withval="$with_dir_user"
16367
16368         if test "x$withval" != "x" ; then
16369              dir_user=$withval
16370         fi
16371
16372
16373 fi;
16374
16375 dir_group=
16376
16377 # Check whether --with-dir_group or --without-dir_group was given.
16378 if test "${with_dir_group+set}" = set; then
16379   withval="$with_dir_group"
16380
16381         if test "x$withval" != "x" ; then
16382              dir_group=$withval
16383         fi
16384
16385
16386 fi;
16387
16388 sd_user=
16389
16390 # Check whether --with-sd_user or --without-sd_user was given.
16391 if test "${with_sd_user+set}" = set; then
16392   withval="$with_sd_user"
16393
16394         if test "x$withval" != "x" ; then
16395              sd_user=$withval
16396         fi
16397
16398
16399 fi;
16400
16401 sd_group=
16402
16403 # Check whether --with-sd_group or --without-sd_group was given.
16404 if test "${with_sd_group+set}" = set; then
16405   withval="$with_sd_group"
16406
16407         if test "x$withval" != "x" ; then
16408              sd_group=$withval
16409         fi
16410
16411
16412 fi;
16413
16414 fd_user=
16415
16416 # Check whether --with-fd_user or --without-fd_user was given.
16417 if test "${with_fd_user+set}" = set; then
16418   withval="$with_fd_user"
16419
16420         if test "x$withval" != "x" ; then
16421              fd_user=$withval
16422         fi
16423
16424
16425 fi;
16426
16427 fd_group=
16428
16429 # Check whether --with-fd_group or --without-fd_group was given.
16430 if test "${with_fd_group+set}" = set; then
16431   withval="$with_fd_group"
16432
16433         if test "x$withval" != "x" ; then
16434              fd_group=$withval
16435         fi
16436
16437
16438 fi;
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450 #
16451 # allow setting default executable permissions
16452 #
16453 SBINPERM=0754
16454
16455 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16456 if test "${with_sbin_perm+set}" = set; then
16457   withval="$with_sbin_perm"
16458
16459         if test "x$withval" != "x" ; then
16460             SBINPERM=$withval
16461         fi
16462
16463
16464 fi;
16465
16466
16467
16468 # ------------------------------------------------
16469 # Bacula check for various SQL database engines
16470 # ------------------------------------------------
16471
16472 db_found=no
16473 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16474 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16475
16476 # Check whether --with-postgresql or --without-postgresql was given.
16477 if test "${with_postgresql+set}" = set; then
16478   withval="$with_postgresql"
16479
16480   if test "$withval" != "no"; then
16481       if test "$db_found" = "yes"; then
16482           echo "$as_me:$LINENO: result: error" >&5
16483 echo "${ECHO_T}error" >&6
16484           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16485 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16486    { (exit 1); exit 1; }; };
16487       fi
16488       if test "$withval" = "yes"; then
16489           PG_CONFIG=`which pg_config`
16490           if test -n "$PG_CONFIG";then
16491               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16492               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16493               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16494           elif test -f /usr/local/include/libpq-fe.h; then
16495               POSTGRESQL_INCDIR=/usr/local/include
16496               POSTGRESQL_LIBDIR=/usr/local/lib
16497               POSTGRESQL_BINDIR=/usr/local/bin
16498           elif test -f /usr/include/libpq-fe.h; then
16499               POSTGRESQL_INCDIR=/usr/include
16500               POSTGRESQL_LIBDIR=/usr/lib
16501               POSTGRESQL_BINDIR=/usr/bin
16502           elif test -f /usr/include/pgsql/libpq-fe.h; then
16503               POSTGRESQL_INCDIR=/usr/include/pgsql
16504               POSTGRESQL_LIBDIR=/usr/lib/pgsql
16505               POSTGRESQL_BINDIR=/usr/bin
16506           elif test -f /usr/include/postgresql/libpq-fe.h; then
16507               POSTGRESQL_INCDIR=/usr/include/postgresql
16508               POSTGRESQL_LIBDIR=/usr/lib/postgresql
16509               POSTGRESQL_BINDIR=/usr/bin
16510           else
16511               echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6
16513               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16514 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16515    { (exit 1); exit 1; }; }
16516           fi
16517       elif test -f $withval/include/libpq-fe.h; then
16518           POSTGRESQL_INCDIR=$withval/include
16519           POSTGRESQL_LIBDIR=$withval/lib
16520           POSTGRESQL_BINDIR=$withval/bin
16521       elif test -f $withval/include/postgresql/libpq-fe.h; then
16522           POSTGRESQL_INCDIR=$withval/include/postgresql
16523           POSTGRESQL_LIBDIR=$withval/lib
16524           POSTGRESQL_BINDIR=$withval/bin
16525       else
16526           echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6
16528           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16529 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16530    { (exit 1); exit 1; }; }
16531       fi
16532       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16533       echo "$as_me:$LINENO: checking for crypt" >&5
16534 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16535 if test "${ac_cv_func_crypt+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16546 #define crypt innocuous_crypt
16547
16548 /* System header to define __stub macros and hopefully few prototypes,
16549     which can conflict with char crypt (); below.
16550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16551     <limits.h> exists even on freestanding compilers.  */
16552
16553 #ifdef __STDC__
16554 # include <limits.h>
16555 #else
16556 # include <assert.h>
16557 #endif
16558
16559 #undef crypt
16560
16561 /* Override any gcc2 internal prototype to avoid an error.  */
16562 #ifdef __cplusplus
16563 extern "C"
16564 {
16565 #endif
16566 /* We use char because int might match the return type of a gcc2
16567    builtin and then its argument prototype would still apply.  */
16568 char crypt ();
16569 /* The GNU C library defines this for functions which it implements
16570     to always fail with ENOSYS.  Some functions are actually named
16571     something starting with __ and the normal name is an alias.  */
16572 #if defined (__stub_crypt) || defined (__stub___crypt)
16573 choke me
16574 #else
16575 char (*f) () = crypt;
16576 #endif
16577 #ifdef __cplusplus
16578 }
16579 #endif
16580
16581 int
16582 main ()
16583 {
16584 return f != crypt;
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591   (eval $ac_link) 2>conftest.er1
16592   ac_status=$?
16593   grep -v '^ *+' conftest.er1 >conftest.err
16594   rm -f conftest.er1
16595   cat conftest.err >&5
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } &&
16598          { ac_try='test -z "$ac_c_werror_flag"
16599                          || test ! -s conftest.err'
16600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601   (eval $ac_try) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; } &&
16605          { ac_try='test -s conftest$ac_exeext'
16606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607   (eval $ac_try) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }; }; then
16611   ac_cv_func_crypt=yes
16612 else
16613   echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ac_cv_func_crypt=no
16617 fi
16618 rm -f conftest.err conftest.$ac_objext \
16619       conftest$ac_exeext conftest.$ac_ext
16620 fi
16621 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16622 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16623 if test $ac_cv_func_crypt = yes; then
16624   :
16625 else
16626   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16627 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16628 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   ac_check_lib_save_LIBS=$LIBS
16632 LIBS="-lcrypt  $LIBS"
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h.  */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h.  */
16639
16640 /* Override any gcc2 internal prototype to avoid an error.  */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 /* We use char because int might match the return type of a gcc2
16645    builtin and then its argument prototype would still apply.  */
16646 char crypt ();
16647 int
16648 main ()
16649 {
16650 crypt ();
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657   (eval $ac_link) 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag"
16665                          || test ! -s conftest.err'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; } &&
16671          { ac_try='test -s conftest$ac_exeext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   ac_cv_lib_crypt_crypt=yes
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ac_cv_lib_crypt_crypt=no
16683 fi
16684 rm -f conftest.err conftest.$ac_objext \
16685       conftest$ac_exeext conftest.$ac_ext
16686 LIBS=$ac_check_lib_save_LIBS
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16689 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16690 if test $ac_cv_lib_crypt_crypt = yes; then
16691   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16692 fi
16693
16694 fi
16695
16696       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16697       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16698       SQL_BINDIR=$POSTGRESQL_BINDIR
16699       cat >>confdefs.h <<\_ACEOF
16700 #define HAVE_POSTGRESQL 1
16701 _ACEOF
16702
16703       echo "$as_me:$LINENO: result: yes" >&5
16704 echo "${ECHO_T}yes" >&6
16705       db_found=yes
16706       support_postgresql=yes
16707       db_name=PostgreSQL
16708       DB_NAME=postgresql
16709   else
16710       echo "$as_me:$LINENO: result: no" >&5
16711 echo "${ECHO_T}no" >&6
16712   fi
16713
16714 else
16715
16716   echo "$as_me:$LINENO: result: no" >&5
16717 echo "${ECHO_T}no" >&6
16718
16719 fi;
16720
16721
16722
16723
16724
16725
16726
16727 db_found=no
16728 echo "$as_me:$LINENO: checking for MySQL support" >&5
16729 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16730
16731 # Check whether --with-mysql or --without-mysql was given.
16732 if test "${with_mysql+set}" = set; then
16733   withval="$with_mysql"
16734
16735   if test "$withval" != "no"; then
16736         if test "$withval" = "yes"; then
16737                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16738                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16739                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16740                         MYSQL_BINDIR=/usr/local/mysql/bin
16741                 elif test -f /usr/include/mysql/mysql.h; then
16742                         MYSQL_INCDIR=/usr/include/mysql
16743                         MYSQL_LIBDIR=/usr/lib/mysql
16744                         MYSQL_BINDIR=/usr/bin
16745                 elif test -f /usr/include/mysql.h; then
16746                         MYSQL_INCDIR=/usr/include
16747                         MYSQL_LIBDIR=/usr/lib
16748                         MYSQL_BINDIR=/usr/bin
16749                 elif test -f /usr/local/include/mysql/mysql.h; then
16750                         MYSQL_INCDIR=/usr/local/include/mysql
16751                         MYSQL_LIBDIR=/usr/local/lib/mysql
16752                         MYSQL_BINDIR=/usr/local/bin
16753                 elif test -f /usr/local/include/mysql.h; then
16754                         MYSQL_INCDIR=/usr/local/include
16755                         MYSQL_LIBDIR=/usr/local/lib
16756                         MYSQL_BINDIR=/usr/local/bin
16757                 else
16758                    echo "$as_me:$LINENO: result: no" >&5
16759 echo "${ECHO_T}no" >&6
16760                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16761 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16762    { (exit 1); exit 1; }; }
16763                 fi
16764         else
16765                 if test -f $withval/include/mysql/mysql.h; then
16766                         MYSQL_INCDIR=$withval/include/mysql
16767                         MYSQL_LIBDIR=$withval/lib/mysql
16768                         MYSQL_BINDIR=$withval/bin
16769                 elif test -f $withval/include/mysql.h; then
16770                         MYSQL_INCDIR=$withval/include
16771                         MYSQL_LIBDIR=$withval/lib
16772                         MYSQL_BINDIR=$withval/bin
16773                 else
16774                    echo "$as_me:$LINENO: result: no" >&5
16775 echo "${ECHO_T}no" >&6
16776                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16777 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16778    { (exit 1); exit 1; }; }
16779                 fi
16780         fi
16781     SQL_INCLUDE=-I$MYSQL_INCDIR
16782     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16783        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16784        cat >>confdefs.h <<\_ACEOF
16785 #define HAVE_THREAD_SAFE_MYSQL 1
16786 _ACEOF
16787
16788     else
16789        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16790     fi
16791     SQL_BINDIR=$MYSQL_BINDIR
16792
16793     cat >>confdefs.h <<\_ACEOF
16794 #define HAVE_MYSQL 1
16795 _ACEOF
16796
16797     echo "$as_me:$LINENO: result: yes" >&5
16798 echo "${ECHO_T}yes" >&6
16799     db_found=yes
16800     support_mysql=yes
16801     db_name=MySQL
16802     DB_NAME=mysql
16803
16804   else
16805         echo "$as_me:$LINENO: result: no" >&5
16806 echo "${ECHO_T}no" >&6
16807   fi
16808
16809
16810 fi;
16811
16812
16813 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16814 if test "${with_embedded_mysql+set}" = set; then
16815   withval="$with_embedded_mysql"
16816
16817   if test "$withval" != "no"; then
16818         if test "$withval" = "yes"; then
16819                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16820                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16821                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16822                         MYSQL_BINDIR=/usr/local/mysql/bin
16823                 elif test -f /usr/include/mysql/mysql.h; then
16824                         MYSQL_INCDIR=/usr/include/mysql
16825                         MYSQL_LIBDIR=/usr/lib/mysql
16826                         MYSQL_BINDIR=/usr/bin
16827                 elif test -f /usr/include/mysql.h; then
16828                         MYSQL_INCDIR=/usr/include
16829                         MYSQL_LIBDIR=/usr/lib
16830                         MYSQL_BINDIR=/usr/bin
16831                 elif test -f /usr/local/include/mysql/mysql.h; then
16832                         MYSQL_INCDIR=/usr/local/include/mysql
16833                         MYSQL_LIBDIR=/usr/local/lib/mysql
16834                         MYSQL_BINDIR=/usr/local/bin
16835                 elif test -f /usr/local/include/mysql.h; then
16836                         MYSQL_INCDIR=/usr/local/include
16837                         MYSQL_LIBDIR=/usr/local/lib
16838                         MYSQL_BINDIR=/usr/local/bin
16839                 else
16840                    echo "$as_me:$LINENO: result: no" >&5
16841 echo "${ECHO_T}no" >&6
16842                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16843 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16844    { (exit 1); exit 1; }; }
16845                 fi
16846         else
16847                 if test -f $withval/include/mysql/mysql.h; then
16848                         MYSQL_INCDIR=$withval/include/mysql
16849                         MYSQL_LIBDIR=$withval/lib/mysql
16850                         MYSQL_BINDIR=$withval/bin
16851                 elif test -f $withval/include/mysql.h; then
16852                         MYSQL_INCDIR=$withval/include
16853                         MYSQL_LIBDIR=$withval/lib
16854                         MYSQL_BINDIR=$withval/bin
16855                 else
16856                    echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6
16858                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16859 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16860    { (exit 1); exit 1; }; }
16861                 fi
16862         fi
16863     SQL_INCLUDE=-I$MYSQL_INCDIR
16864     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16865     SQL_BINDIR=$MYSQL_BINDIR
16866
16867     cat >>confdefs.h <<\_ACEOF
16868 #define HAVE_MYSQL 1
16869 _ACEOF
16870
16871     cat >>confdefs.h <<\_ACEOF
16872 #define HAVE_EMBEDDED_MYSQL 1
16873 _ACEOF
16874
16875     echo "$as_me:$LINENO: result: yes" >&5
16876 echo "${ECHO_T}yes" >&6
16877     db_found=yes
16878     support_mysql=yes
16879     db_name=MySQL
16880     DB_NAME=mysql
16881
16882   else
16883         echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6
16885   fi
16886
16887
16888 fi;
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898 db_found=no
16899 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16900 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16901
16902 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16903 if test "${with_sqlite3+set}" = set; then
16904   withval="$with_sqlite3"
16905
16906   if test "$withval" != "no"; then
16907      if test "$withval" = "yes"; then
16908         if test -f /usr/local/include/sqlite3.h; then
16909            SQLITE_INCDIR=/usr/local/include
16910            SQLITE_LIBDIR=/usr/local/lib
16911            SQLITE_BINDIR=/usr/local/bin
16912         elif test -f /usr/include/sqlite3.h; then
16913            SQLITE_INCDIR=/usr/include
16914            SQLITE_LIBDIR=/usr/lib
16915            SQLITE_BINDIR=/usr/bin
16916         elif test -f $prefix/include/sqlite3.h; then
16917            SQLITE_INCDIR=$prefix/include
16918            SQLITE_LIBDIR=$prefix/lib
16919            SQLITE_BINDIR=$prefix/bin
16920         else
16921            echo "$as_me:$LINENO: result: no" >&5
16922 echo "${ECHO_T}no" >&6
16923            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16924 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16925    { (exit 1); exit 1; }; }
16926         fi
16927      else
16928         if test -f $withval/sqlite3.h; then
16929            SQLITE_INCDIR=$withval
16930            SQLITE_LIBDIR=$withval
16931            SQLITE_BINDIR=$withval
16932         elif test -f $withval/include/sqlite3.h; then
16933            SQLITE_INCDIR=$withval/include
16934            SQLITE_LIBDIR=$withval/lib
16935            SQLITE_BINDIR=$withval/bin
16936         else
16937            echo "$as_me:$LINENO: result: no" >&5
16938 echo "${ECHO_T}no" >&6
16939            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
16940 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
16941    { (exit 1); exit 1; }; }
16942         fi
16943      fi
16944      SQL_INCLUDE=-I$SQLITE_INCDIR
16945      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
16946      SQL_BINDIR=$SQLITE_BINDIR
16947
16948      cat >>confdefs.h <<\_ACEOF
16949 #define HAVE_SQLITE3 1
16950 _ACEOF
16951
16952      echo "$as_me:$LINENO: result: yes" >&5
16953 echo "${ECHO_T}yes" >&6
16954      db_found=yes
16955      support_sqlite3=yes
16956      db_name=SQLite3
16957      DB_NAME=sqlite3
16958
16959   else
16960      echo "$as_me:$LINENO: result: no" >&5
16961 echo "${ECHO_T}no" >&6
16962   fi
16963
16964 else
16965
16966   echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6
16968
16969 fi;
16970
16971
16972
16973
16974
16975
16976
16977 db_found=no
16978 echo "$as_me:$LINENO: checking for SQLite support" >&5
16979 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
16980
16981 # Check whether --with-sqlite or --without-sqlite was given.
16982 if test "${with_sqlite+set}" = set; then
16983   withval="$with_sqlite"
16984
16985   if test "$withval" != "no"; then
16986      if test "$withval" = "yes"; then
16987         if test -f /usr/local/include/sqlite.h; then
16988            SQLITE_INCDIR=/usr/local/include
16989            SQLITE_LIBDIR=/usr/local/lib
16990            SQLITE_BINDIR=/usr/local/bin
16991         elif test -f /usr/include/sqlite.h; then
16992            SQLITE_INCDIR=/usr/include
16993            SQLITE_LIBDIR=/usr/lib
16994            SQLITE_BINDIR=/usr/bin
16995         elif test -f $prefix/include/sqlite.h; then
16996            SQLITE_INCDIR=$prefix/include
16997            SQLITE_LIBDIR=$prefix/lib
16998            SQLITE_BINDIR=$prefix/bin
16999         else
17000            echo "$as_me:$LINENO: result: no" >&5
17001 echo "${ECHO_T}no" >&6
17002            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17003 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17004    { (exit 1); exit 1; }; }
17005         fi
17006      else
17007         if test -f $withval/sqlite.h; then
17008            SQLITE_INCDIR=$withval
17009            SQLITE_LIBDIR=$withval
17010            SQLITE_BINDIR=$withval
17011         elif test -f $withval/include/sqlite.h; then
17012            SQLITE_INCDIR=$withval/include
17013            SQLITE_LIBDIR=$withval/lib
17014            SQLITE_BINDIR=$withval/bin
17015         else
17016            echo "$as_me:$LINENO: result: no" >&5
17017 echo "${ECHO_T}no" >&6
17018            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17019 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17020    { (exit 1); exit 1; }; }
17021         fi
17022      fi
17023      SQL_INCLUDE=-I$SQLITE_INCDIR
17024      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17025      SQL_BINDIR=$SQLITE_BINDIR
17026
17027      cat >>confdefs.h <<\_ACEOF
17028 #define HAVE_SQLITE 1
17029 _ACEOF
17030
17031      echo "$as_me:$LINENO: result: yes" >&5
17032 echo "${ECHO_T}yes" >&6
17033      db_found=yes
17034      support_sqlite=yes
17035      db_name=SQLite
17036      DB_NAME=sqlite
17037
17038   else
17039      echo "$as_me:$LINENO: result: no" >&5
17040 echo "${ECHO_T}no" >&6
17041   fi
17042
17043 else
17044
17045   echo "$as_me:$LINENO: result: no" >&5
17046 echo "${ECHO_T}no" >&6
17047
17048 fi;
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058 cat >>confdefs.h <<\_ACEOF
17059 #define PROTOTYPES 1
17060 _ACEOF
17061
17062
17063 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17064     if test -z "$CCOPTS"; then
17065         CCOPTS='-g -O2 -Wall'
17066     fi
17067     CFLAGS="$CCOPTS"
17068 fi
17069
17070
17071
17072
17073 largefile_support="no"
17074
17075    # Check whether --enable-largefile or --disable-largefile was given.
17076 if test "${enable_largefile+set}" = set; then
17077   enableval="$enable_largefile"
17078
17079 fi;
17080    if test "$enable_largefile" != no; then
17081      if test -n "$ac_tool_prefix"; then
17082   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17083 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17084 echo "$as_me:$LINENO: checking for $ac_word" >&5
17085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17086 if test "${ac_cv_prog_GETCONF+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   if test -n "$GETCONF"; then
17090   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17091 else
17092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $PATH
17094 do
17095   IFS=$as_save_IFS
17096   test -z "$as_dir" && as_dir=.
17097   for ac_exec_ext in '' $ac_executable_extensions; do
17098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17099     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17101     break 2
17102   fi
17103 done
17104 done
17105
17106 fi
17107 fi
17108 GETCONF=$ac_cv_prog_GETCONF
17109 if test -n "$GETCONF"; then
17110   echo "$as_me:$LINENO: result: $GETCONF" >&5
17111 echo "${ECHO_T}$GETCONF" >&6
17112 else
17113   echo "$as_me:$LINENO: result: no" >&5
17114 echo "${ECHO_T}no" >&6
17115 fi
17116
17117 fi
17118 if test -z "$ac_cv_prog_GETCONF"; then
17119   ac_ct_GETCONF=$GETCONF
17120   # Extract the first word of "getconf", so it can be a program name with args.
17121 set dummy getconf; ac_word=$2
17122 echo "$as_me:$LINENO: checking for $ac_word" >&5
17123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17124 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   if test -n "$ac_ct_GETCONF"; then
17128   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17129 else
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $PATH
17132 do
17133   IFS=$as_save_IFS
17134   test -z "$as_dir" && as_dir=.
17135   for ac_exec_ext in '' $ac_executable_extensions; do
17136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17137     ac_cv_prog_ac_ct_GETCONF="getconf"
17138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17139     break 2
17140   fi
17141 done
17142 done
17143
17144 fi
17145 fi
17146 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17147 if test -n "$ac_ct_GETCONF"; then
17148   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17149 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17150 else
17151   echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6
17153 fi
17154
17155   GETCONF=$ac_ct_GETCONF
17156 else
17157   GETCONF="$ac_cv_prog_GETCONF"
17158 fi
17159
17160      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17161 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17162 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17166         ac_cv_sys_largefile_CFLAGS=no
17167         case "$host_os" in
17168            # IRIX 6.2 and later require cc -n32.
17169            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17170              if test "$GCC" != yes; then
17171                ac_cv_sys_largefile_CFLAGS=-n32
17172              fi
17173              ac_save_CC="$CC"
17174              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17175              cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181
17182 int
17183 main ()
17184 {
17185
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>conftest.er1
17193   ac_status=$?
17194   grep -v '^ *+' conftest.er1 >conftest.err
17195   rm -f conftest.er1
17196   cat conftest.err >&5
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -z "$ac_c_werror_flag"
17200                          || test ! -s conftest.err'
17201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202   (eval $ac_try) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; } &&
17206          { ac_try='test -s conftest$ac_exeext'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; }; then
17212   :
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ac_cv_sys_largefile_CFLAGS=no
17218 fi
17219 rm -f conftest.err conftest.$ac_objext \
17220       conftest$ac_exeext conftest.$ac_ext
17221              CC="$ac_save_CC"
17222            esac
17223       }
17224 fi
17225 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17226 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17227      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17228 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17229 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17230   echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17233         ac_cv_sys_largefile_LDFLAGS=no
17234
17235       }
17236 fi
17237 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17238 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17239      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17240 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17241 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17242   echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17245         ac_cv_sys_largefile_LIBS=no
17246
17247       }
17248 fi
17249 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17250 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17251
17252      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17253        case "$ac_flag" in
17254        no) ;;
17255        -D_FILE_OFFSET_BITS=*) ;;
17256        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17257        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17258        -D?* | -I?*)
17259          case "$ac_flag" in
17260    no) ;;
17261    ?*)
17262      case "$CPPFLAGS" in
17263      '') CPPFLAGS="$ac_flag" ;;
17264      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17265      esac ;;
17266    esac ;;
17267        *)
17268          case "$ac_flag" in
17269    no) ;;
17270    ?*)
17271      case "$CFLAGS" in
17272      '') CFLAGS="$ac_flag" ;;
17273      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17274      esac ;;
17275    esac ;;
17276        esac
17277      done
17278      case "$ac_cv_sys_largefile_LDFLAGS" in
17279    no) ;;
17280    ?*)
17281      case "$LDFLAGS" in
17282      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17283      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17284      esac ;;
17285    esac
17286      case "$ac_cv_sys_largefile_LIBS" in
17287    no) ;;
17288    ?*)
17289      case "$LIBS" in
17290      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17291      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17292      esac ;;
17293    esac
17294      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17295 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17296 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   ac_cv_sys_file_offset_bits=no
17300       ac_cv_sys_file_offset_bits=64
17301       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17302         case "$ac_flag" in
17303         -D_FILE_OFFSET_BITS)
17304           ac_cv_sys_file_offset_bits=1 ;;
17305         -D_FILE_OFFSET_BITS=*)
17306           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17307         esac
17308       done
17309
17310 fi
17311 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17312 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17313    if test "$ac_cv_sys_file_offset_bits" != no; then
17314
17315 cat >>confdefs.h <<_ACEOF
17316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17317 _ACEOF
17318
17319    fi
17320      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17321 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17322 if test "${ac_cv_sys_largefile_source+set}" = set; then
17323   echo $ECHO_N "(cached) $ECHO_C" >&6
17324 else
17325   ac_cv_sys_largefile_source=no
17326       ac_cv_sys_largefile_source=1
17327       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17328         case "$ac_flag" in
17329         -D_LARGEFILE_SOURCE)
17330           ac_cv_sys_largefile_source=1 ;;
17331         -D_LARGEFILE_SOURCE=*)
17332           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17333         esac
17334       done
17335
17336 fi
17337 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17338 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17339    if test "$ac_cv_sys_largefile_source" != no; then
17340
17341 cat >>confdefs.h <<_ACEOF
17342 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17343 _ACEOF
17344
17345    fi
17346      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17347 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17348 if test "${ac_cv_sys_large_files+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351   ac_cv_sys_large_files=no
17352       ac_cv_sys_large_files=1
17353       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17354         case "$ac_flag" in
17355         -D_LARGE_FILES)
17356           ac_cv_sys_large_files=1 ;;
17357         -D_LARGE_FILES=*)
17358           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17359         esac
17360       done
17361
17362 fi
17363 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17364 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17365    if test "$ac_cv_sys_large_files" != no; then
17366
17367 cat >>confdefs.h <<_ACEOF
17368 #define _LARGE_FILES $ac_cv_sys_large_files
17369 _ACEOF
17370
17371    fi
17372    fi
17373
17374
17375
17376 echo "$as_me:$LINENO: checking for X" >&5
17377 echo $ECHO_N "checking for X... $ECHO_C" >&6
17378
17379
17380 # Check whether --with-x or --without-x was given.
17381 if test "${with_x+set}" = set; then
17382   withval="$with_x"
17383
17384 fi;
17385 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17386 if test "x$with_x" = xno; then
17387   # The user explicitly disabled X.
17388   have_x=disabled
17389 else
17390   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17391     # Both variables are already set.
17392     have_x=yes
17393   else
17394     if test "${ac_cv_have_x+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   # One or both of the vars are not set, and there is no cached value.
17398 ac_x_includes=no ac_x_libraries=no
17399 rm -fr conftest.dir
17400 if mkdir conftest.dir; then
17401   cd conftest.dir
17402   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17403   cat >Imakefile <<'_ACEOF'
17404 acfindx:
17405         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17406 _ACEOF
17407   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17408     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17409     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17410     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17411     for ac_extension in a so sl; do
17412       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17413          test -f $ac_im_libdir/libX11.$ac_extension; then
17414         ac_im_usrlibdir=$ac_im_libdir; break
17415       fi
17416     done
17417     # Screen out bogus values from the imake configuration.  They are
17418     # bogus both because they are the default anyway, and because
17419     # using them would break gcc on systems where it needs fixed includes.
17420     case $ac_im_incroot in
17421         /usr/include) ;;
17422         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17423     esac
17424     case $ac_im_usrlibdir in
17425         /usr/lib | /lib) ;;
17426         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17427     esac
17428   fi
17429   cd ..
17430   rm -fr conftest.dir
17431 fi
17432
17433 # Standard set of common directories for X headers.
17434 # Check X11 before X11Rn because it is often a symlink to the current release.
17435 ac_x_header_dirs='
17436 /usr/X11/include
17437 /usr/X11R6/include
17438 /usr/X11R5/include
17439 /usr/X11R4/include
17440
17441 /usr/include/X11
17442 /usr/include/X11R6
17443 /usr/include/X11R5
17444 /usr/include/X11R4
17445
17446 /usr/local/X11/include
17447 /usr/local/X11R6/include
17448 /usr/local/X11R5/include
17449 /usr/local/X11R4/include
17450
17451 /usr/local/include/X11
17452 /usr/local/include/X11R6
17453 /usr/local/include/X11R5
17454 /usr/local/include/X11R4
17455
17456 /usr/X386/include
17457 /usr/x386/include
17458 /usr/XFree86/include/X11
17459
17460 /usr/include
17461 /usr/local/include
17462 /usr/unsupported/include
17463 /usr/athena/include
17464 /usr/local/x11r5/include
17465 /usr/lpp/Xamples/include
17466
17467 /usr/openwin/include
17468 /usr/openwin/share/include'
17469
17470 if test "$ac_x_includes" = no; then
17471   # Guess where to find include files, by looking for Xlib.h.
17472   # First, try using that file with no special directory specified.
17473   cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 #include <X11/Xlib.h>
17480 _ACEOF
17481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } >/dev/null; then
17489   if test -s conftest.err; then
17490     ac_cpp_err=$ac_c_preproc_warn_flag
17491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17492   else
17493     ac_cpp_err=
17494   fi
17495 else
17496   ac_cpp_err=yes
17497 fi
17498 if test -z "$ac_cpp_err"; then
17499   # We can compile using X headers with no special include directory.
17500 ac_x_includes=
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505   for ac_dir in $ac_x_header_dirs; do
17506   if test -r "$ac_dir/X11/Xlib.h"; then
17507     ac_x_includes=$ac_dir
17508     break
17509   fi
17510 done
17511 fi
17512 rm -f conftest.err conftest.$ac_ext
17513 fi # $ac_x_includes = no
17514
17515 if test "$ac_x_libraries" = no; then
17516   # Check for the libraries.
17517   # See if we find them without any special options.
17518   # Don't add to $LIBS permanently.
17519   ac_save_LIBS=$LIBS
17520   LIBS="-lXt $LIBS"
17521   cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 #include <X11/Xlib.h>
17528 int
17529 main ()
17530 {
17531 XrmInitialize ()
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538   (eval $ac_link) 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } &&
17545          { ac_try='test -z "$ac_c_werror_flag"
17546                          || test ! -s conftest.err'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; } &&
17552          { ac_try='test -s conftest$ac_exeext'
17553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554   (eval $ac_try) 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   LIBS=$ac_save_LIBS
17559 # We can link X programs with no special library path.
17560 ac_x_libraries=
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 LIBS=$ac_save_LIBS
17566 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17567 do
17568   # Don't even attempt the hair of trying to link an X program!
17569   for ac_extension in a so sl; do
17570     if test -r $ac_dir/libXt.$ac_extension; then
17571       ac_x_libraries=$ac_dir
17572       break 2
17573     fi
17574   done
17575 done
17576 fi
17577 rm -f conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 fi # $ac_x_libraries = no
17580
17581 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17582   # Didn't find X anywhere.  Cache the known absence of X.
17583   ac_cv_have_x="have_x=no"
17584 else
17585   # Record where we found X for the cache.
17586   ac_cv_have_x="have_x=yes \
17587                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17588 fi
17589 fi
17590
17591   fi
17592   eval "$ac_cv_have_x"
17593 fi # $with_x != no
17594
17595 if test "$have_x" != yes; then
17596   echo "$as_me:$LINENO: result: $have_x" >&5
17597 echo "${ECHO_T}$have_x" >&6
17598   no_x=yes
17599 else
17600   # If each of the values was on the command line, it overrides each guess.
17601   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17602   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17603   # Update the cache value to reflect the command line values.
17604   ac_cv_have_x="have_x=yes \
17605                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17606   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17607 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17608 fi
17609
17610 if test "$no_x" = yes; then
17611   # Not all programs may use this symbol, but it does not hurt to define it.
17612
17613 cat >>confdefs.h <<\_ACEOF
17614 #define X_DISPLAY_MISSING 1
17615 _ACEOF
17616
17617   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17618 else
17619   if test -n "$x_includes"; then
17620     X_CFLAGS="$X_CFLAGS -I$x_includes"
17621   fi
17622
17623   # It would also be nice to do this for all -L options, not just this one.
17624   if test -n "$x_libraries"; then
17625     X_LIBS="$X_LIBS -L$x_libraries"
17626     # For Solaris; some versions of Sun CC require a space after -R and
17627     # others require no space.  Words are not sufficient . . . .
17628     case `(uname -sr) 2>/dev/null` in
17629     "SunOS 5"*)
17630       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17631 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17632       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17633       cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639
17640 int
17641 main ()
17642 {
17643
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650   (eval $ac_link) 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag"
17658                          || test ! -s conftest.err'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest$ac_exeext'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   ac_R_nospace=yes
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 ac_R_nospace=no
17676 fi
17677 rm -f conftest.err conftest.$ac_objext \
17678       conftest$ac_exeext conftest.$ac_ext
17679       if test $ac_R_nospace = yes; then
17680         echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6
17682         X_LIBS="$X_LIBS -R$x_libraries"
17683       else
17684         LIBS="$ac_xsave_LIBS -R $x_libraries"
17685         cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h.  */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h.  */
17691
17692 int
17693 main ()
17694 {
17695
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702   (eval $ac_link) 2>conftest.er1
17703   ac_status=$?
17704   grep -v '^ *+' conftest.er1 >conftest.err
17705   rm -f conftest.er1
17706   cat conftest.err >&5
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); } &&
17709          { ac_try='test -z "$ac_c_werror_flag"
17710                          || test ! -s conftest.err'
17711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712   (eval $ac_try) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; } &&
17716          { ac_try='test -s conftest$ac_exeext'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; }; then
17722   ac_R_space=yes
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_R_space=no
17728 fi
17729 rm -f conftest.err conftest.$ac_objext \
17730       conftest$ac_exeext conftest.$ac_ext
17731         if test $ac_R_space = yes; then
17732           echo "$as_me:$LINENO: result: yes" >&5
17733 echo "${ECHO_T}yes" >&6
17734           X_LIBS="$X_LIBS -R $x_libraries"
17735         else
17736           echo "$as_me:$LINENO: result: neither works" >&5
17737 echo "${ECHO_T}neither works" >&6
17738         fi
17739       fi
17740       LIBS=$ac_xsave_LIBS
17741     esac
17742   fi
17743
17744   # Check for system-dependent libraries X programs must link with.
17745   # Do this before checking for the system-independent R6 libraries
17746   # (-lICE), since we may need -lsocket or whatever for X linking.
17747
17748   if test "$ISC" = yes; then
17749     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17750   else
17751     # Martyn Johnson says this is needed for Ultrix, if the X
17752     # libraries were built with DECnet support.  And Karl Berry says
17753     # the Alpha needs dnet_stub (dnet does not exist).
17754     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17755     cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h.  */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h.  */
17761
17762 /* Override any gcc2 internal prototype to avoid an error.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 /* We use char because int might match the return type of a gcc2
17767    builtin and then its argument prototype would still apply.  */
17768 char XOpenDisplay ();
17769 int
17770 main ()
17771 {
17772 XOpenDisplay ();
17773   ;
17774   return 0;
17775 }
17776 _ACEOF
17777 rm -f conftest.$ac_objext conftest$ac_exeext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17779   (eval $ac_link) 2>conftest.er1
17780   ac_status=$?
17781   grep -v '^ *+' conftest.er1 >conftest.err
17782   rm -f conftest.er1
17783   cat conftest.err >&5
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); } &&
17786          { ac_try='test -z "$ac_c_werror_flag"
17787                          || test ! -s conftest.err'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; } &&
17793          { ac_try='test -s conftest$ac_exeext'
17794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795   (eval $ac_try) 2>&5
17796   ac_status=$?
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); }; }; then
17799   :
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17805 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17806 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   ac_check_lib_save_LIBS=$LIBS
17810 LIBS="-ldnet  $LIBS"
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817
17818 /* Override any gcc2 internal prototype to avoid an error.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 /* We use char because int might match the return type of a gcc2
17823    builtin and then its argument prototype would still apply.  */
17824 char dnet_ntoa ();
17825 int
17826 main ()
17827 {
17828 dnet_ntoa ();
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   ac_cv_lib_dnet_dnet_ntoa=yes
17856 else
17857   echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 ac_cv_lib_dnet_dnet_ntoa=no
17861 fi
17862 rm -f conftest.err conftest.$ac_objext \
17863       conftest$ac_exeext conftest.$ac_ext
17864 LIBS=$ac_check_lib_save_LIBS
17865 fi
17866 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17867 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17868 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17869   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17870 fi
17871
17872     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17873       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17874 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17875 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-ldnet_stub  $LIBS"
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886
17887 /* Override any gcc2 internal prototype to avoid an error.  */
17888 #ifdef __cplusplus
17889 extern "C"
17890 #endif
17891 /* We use char because int might match the return type of a gcc2
17892    builtin and then its argument prototype would still apply.  */
17893 char dnet_ntoa ();
17894 int
17895 main ()
17896 {
17897 dnet_ntoa ();
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904   (eval $ac_link) 2>conftest.er1
17905   ac_status=$?
17906   grep -v '^ *+' conftest.er1 >conftest.err
17907   rm -f conftest.er1
17908   cat conftest.err >&5
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } &&
17911          { ac_try='test -z "$ac_c_werror_flag"
17912                          || test ! -s conftest.err'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest$ac_exeext'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_lib_dnet_stub_dnet_ntoa=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_cv_lib_dnet_stub_dnet_ntoa=no
17930 fi
17931 rm -f conftest.err conftest.$ac_objext \
17932       conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17934 fi
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17936 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17937 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
17938   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17939 fi
17940
17941     fi
17942 fi
17943 rm -f conftest.err conftest.$ac_objext \
17944       conftest$ac_exeext conftest.$ac_ext
17945     LIBS="$ac_xsave_LIBS"
17946
17947     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17948     # to get the SysV transport functions.
17949     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17950     # needs -lnsl.
17951     # The nsl library prevents programs from opening the X display
17952     # on Irix 5.2, according to T.E. Dickey.
17953     # The functions gethostbyname, getservbyname, and inet_addr are
17954     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17955     echo "$as_me:$LINENO: checking for gethostbyname" >&5
17956 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17957 if test "${ac_cv_func_gethostbyname+set}" = set; then
17958   echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960   cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h.  */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h.  */
17966 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
17967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17968 #define gethostbyname innocuous_gethostbyname
17969
17970 /* System header to define __stub macros and hopefully few prototypes,
17971     which can conflict with char gethostbyname (); below.
17972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17973     <limits.h> exists even on freestanding compilers.  */
17974
17975 #ifdef __STDC__
17976 # include <limits.h>
17977 #else
17978 # include <assert.h>
17979 #endif
17980
17981 #undef gethostbyname
17982
17983 /* Override any gcc2 internal prototype to avoid an error.  */
17984 #ifdef __cplusplus
17985 extern "C"
17986 {
17987 #endif
17988 /* We use char because int might match the return type of a gcc2
17989    builtin and then its argument prototype would still apply.  */
17990 char gethostbyname ();
17991 /* The GNU C library defines this for functions which it implements
17992     to always fail with ENOSYS.  Some functions are actually named
17993     something starting with __ and the normal name is an alias.  */
17994 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17995 choke me
17996 #else
17997 char (*f) () = gethostbyname;
17998 #endif
17999 #ifdef __cplusplus
18000 }
18001 #endif
18002
18003 int
18004 main ()
18005 {
18006 return f != gethostbyname;
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18013   (eval $ac_link) 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag"
18021                          || test ! -s conftest.err'
18022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023   (eval $ac_try) 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; } &&
18027          { ac_try='test -s conftest$ac_exeext'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; }; then
18033   ac_cv_func_gethostbyname=yes
18034 else
18035   echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 ac_cv_func_gethostbyname=no
18039 fi
18040 rm -f conftest.err conftest.$ac_objext \
18041       conftest$ac_exeext conftest.$ac_ext
18042 fi
18043 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18044 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18045
18046     if test $ac_cv_func_gethostbyname = no; then
18047       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18048 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18049 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18050   echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052   ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-lnsl  $LIBS"
18054 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061 /* Override any gcc2 internal prototype to avoid an error.  */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 /* We use char because int might match the return type of a gcc2
18066    builtin and then its argument prototype would still apply.  */
18067 char gethostbyname ();
18068 int
18069 main ()
18070 {
18071 gethostbyname ();
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078   (eval $ac_link) 2>conftest.er1
18079   ac_status=$?
18080   grep -v '^ *+' conftest.er1 >conftest.err
18081   rm -f conftest.er1
18082   cat conftest.err >&5
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } &&
18085          { ac_try='test -z "$ac_c_werror_flag"
18086                          || test ! -s conftest.err'
18087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088   (eval $ac_try) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; } &&
18092          { ac_try='test -s conftest$ac_exeext'
18093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094   (eval $ac_try) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; }; then
18098   ac_cv_lib_nsl_gethostbyname=yes
18099 else
18100   echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18102
18103 ac_cv_lib_nsl_gethostbyname=no
18104 fi
18105 rm -f conftest.err conftest.$ac_objext \
18106       conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18108 fi
18109 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18110 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18111 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18112   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18113 fi
18114
18115       if test $ac_cv_lib_nsl_gethostbyname = no; then
18116         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18117 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18118 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121   ac_check_lib_save_LIBS=$LIBS
18122 LIBS="-lbsd  $LIBS"
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129
18130 /* Override any gcc2 internal prototype to avoid an error.  */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 /* We use char because int might match the return type of a gcc2
18135    builtin and then its argument prototype would still apply.  */
18136 char gethostbyname ();
18137 int
18138 main ()
18139 {
18140 gethostbyname ();
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147   (eval $ac_link) 2>conftest.er1
18148   ac_status=$?
18149   grep -v '^ *+' conftest.er1 >conftest.err
18150   rm -f conftest.er1
18151   cat conftest.err >&5
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); } &&
18154          { ac_try='test -z "$ac_c_werror_flag"
18155                          || test ! -s conftest.err'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; } &&
18161          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18167   ac_cv_lib_bsd_gethostbyname=yes
18168 else
18169   echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18171
18172 ac_cv_lib_bsd_gethostbyname=no
18173 fi
18174 rm -f conftest.err conftest.$ac_objext \
18175       conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18177 fi
18178 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18179 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18180 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18181   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18182 fi
18183
18184       fi
18185     fi
18186
18187     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18188     # socket/setsockopt and other routines are undefined under SCO ODT
18189     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18190     # on later versions), says Simon Leinen: it contains gethostby*
18191     # variants that don't use the name server (or something).  -lsocket
18192     # must be given before -lnsl if both are needed.  We assume that
18193     # if connect needs -lnsl, so does gethostbyname.
18194     echo "$as_me:$LINENO: checking for connect" >&5
18195 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18196 if test "${ac_cv_func_connect+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199   cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18207 #define connect innocuous_connect
18208
18209 /* System header to define __stub macros and hopefully few prototypes,
18210     which can conflict with char connect (); below.
18211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212     <limits.h> exists even on freestanding compilers.  */
18213
18214 #ifdef __STDC__
18215 # include <limits.h>
18216 #else
18217 # include <assert.h>
18218 #endif
18219
18220 #undef connect
18221
18222 /* Override any gcc2 internal prototype to avoid an error.  */
18223 #ifdef __cplusplus
18224 extern "C"
18225 {
18226 #endif
18227 /* We use char because int might match the return type of a gcc2
18228    builtin and then its argument prototype would still apply.  */
18229 char connect ();
18230 /* The GNU C library defines this for functions which it implements
18231     to always fail with ENOSYS.  Some functions are actually named
18232     something starting with __ and the normal name is an alias.  */
18233 #if defined (__stub_connect) || defined (__stub___connect)
18234 choke me
18235 #else
18236 char (*f) () = connect;
18237 #endif
18238 #ifdef __cplusplus
18239 }
18240 #endif
18241
18242 int
18243 main ()
18244 {
18245 return f != connect;
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252   (eval $ac_link) 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } &&
18259          { ac_try='test -z "$ac_c_werror_flag"
18260                          || test ! -s conftest.err'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; } &&
18266          { ac_try='test -s conftest$ac_exeext'
18267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268   (eval $ac_try) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_func_connect=yes
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ac_cv_func_connect=no
18278 fi
18279 rm -f conftest.err conftest.$ac_objext \
18280       conftest$ac_exeext conftest.$ac_ext
18281 fi
18282 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18283 echo "${ECHO_T}$ac_cv_func_connect" >&6
18284
18285     if test $ac_cv_func_connect = no; then
18286       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18287 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18288 if test "${ac_cv_lib_socket_connect+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   ac_check_lib_save_LIBS=$LIBS
18292 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299
18300 /* Override any gcc2 internal prototype to avoid an error.  */
18301 #ifdef __cplusplus
18302 extern "C"
18303 #endif
18304 /* We use char because int might match the return type of a gcc2
18305    builtin and then its argument prototype would still apply.  */
18306 char connect ();
18307 int
18308 main ()
18309 {
18310 connect ();
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317   (eval $ac_link) 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -z "$ac_c_werror_flag"
18325                          || test ! -s conftest.err'
18326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327   (eval $ac_try) 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest$ac_exeext'
18332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; }; then
18337   ac_cv_lib_socket_connect=yes
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 ac_cv_lib_socket_connect=no
18343 fi
18344 rm -f conftest.err conftest.$ac_objext \
18345       conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18349 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18350 if test $ac_cv_lib_socket_connect = yes; then
18351   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18352 fi
18353
18354     fi
18355
18356     # Guillermo Gomez says -lposix is necessary on A/UX.
18357     echo "$as_me:$LINENO: checking for remove" >&5
18358 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18359 if test "${ac_cv_func_remove+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h.  */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h.  */
18368 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18370 #define remove innocuous_remove
18371
18372 /* System header to define __stub macros and hopefully few prototypes,
18373     which can conflict with char remove (); below.
18374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18375     <limits.h> exists even on freestanding compilers.  */
18376
18377 #ifdef __STDC__
18378 # include <limits.h>
18379 #else
18380 # include <assert.h>
18381 #endif
18382
18383 #undef remove
18384
18385 /* Override any gcc2 internal prototype to avoid an error.  */
18386 #ifdef __cplusplus
18387 extern "C"
18388 {
18389 #endif
18390 /* We use char because int might match the return type of a gcc2
18391    builtin and then its argument prototype would still apply.  */
18392 char remove ();
18393 /* The GNU C library defines this for functions which it implements
18394     to always fail with ENOSYS.  Some functions are actually named
18395     something starting with __ and the normal name is an alias.  */
18396 #if defined (__stub_remove) || defined (__stub___remove)
18397 choke me
18398 #else
18399 char (*f) () = remove;
18400 #endif
18401 #ifdef __cplusplus
18402 }
18403 #endif
18404
18405 int
18406 main ()
18407 {
18408 return f != remove;
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415   (eval $ac_link) 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } &&
18422          { ac_try='test -z "$ac_c_werror_flag"
18423                          || test ! -s conftest.err'
18424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425   (eval $ac_try) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; } &&
18429          { ac_try='test -s conftest$ac_exeext'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_func_remove=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_func_remove=no
18441 fi
18442 rm -f conftest.err conftest.$ac_objext \
18443       conftest$ac_exeext conftest.$ac_ext
18444 fi
18445 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18446 echo "${ECHO_T}$ac_cv_func_remove" >&6
18447
18448     if test $ac_cv_func_remove = no; then
18449       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18450 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18451 if test "${ac_cv_lib_posix_remove+set}" = set; then
18452   echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454   ac_check_lib_save_LIBS=$LIBS
18455 LIBS="-lposix  $LIBS"
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462
18463 /* Override any gcc2 internal prototype to avoid an error.  */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 /* We use char because int might match the return type of a gcc2
18468    builtin and then its argument prototype would still apply.  */
18469 char remove ();
18470 int
18471 main ()
18472 {
18473 remove ();
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480   (eval $ac_link) 2>conftest.er1
18481   ac_status=$?
18482   grep -v '^ *+' conftest.er1 >conftest.err
18483   rm -f conftest.er1
18484   cat conftest.err >&5
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } &&
18487          { ac_try='test -z "$ac_c_werror_flag"
18488                          || test ! -s conftest.err'
18489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490   (eval $ac_try) 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; } &&
18494          { ac_try='test -s conftest$ac_exeext'
18495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496   (eval $ac_try) 2>&5
18497   ac_status=$?
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); }; }; then
18500   ac_cv_lib_posix_remove=yes
18501 else
18502   echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18504
18505 ac_cv_lib_posix_remove=no
18506 fi
18507 rm -f conftest.err conftest.$ac_objext \
18508       conftest$ac_exeext conftest.$ac_ext
18509 LIBS=$ac_check_lib_save_LIBS
18510 fi
18511 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18512 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18513 if test $ac_cv_lib_posix_remove = yes; then
18514   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18515 fi
18516
18517     fi
18518
18519     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18520     echo "$as_me:$LINENO: checking for shmat" >&5
18521 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18522 if test "${ac_cv_func_shmat+set}" = set; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525   cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18533 #define shmat innocuous_shmat
18534
18535 /* System header to define __stub macros and hopefully few prototypes,
18536     which can conflict with char shmat (); below.
18537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538     <limits.h> exists even on freestanding compilers.  */
18539
18540 #ifdef __STDC__
18541 # include <limits.h>
18542 #else
18543 # include <assert.h>
18544 #endif
18545
18546 #undef shmat
18547
18548 /* Override any gcc2 internal prototype to avoid an error.  */
18549 #ifdef __cplusplus
18550 extern "C"
18551 {
18552 #endif
18553 /* We use char because int might match the return type of a gcc2
18554    builtin and then its argument prototype would still apply.  */
18555 char shmat ();
18556 /* The GNU C library defines this for functions which it implements
18557     to always fail with ENOSYS.  Some functions are actually named
18558     something starting with __ and the normal name is an alias.  */
18559 #if defined (__stub_shmat) || defined (__stub___shmat)
18560 choke me
18561 #else
18562 char (*f) () = shmat;
18563 #endif
18564 #ifdef __cplusplus
18565 }
18566 #endif
18567
18568 int
18569 main ()
18570 {
18571 return f != shmat;
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578   (eval $ac_link) 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag"
18586                          || test ! -s conftest.err'
18587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588   (eval $ac_try) 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; } &&
18592          { ac_try='test -s conftest$ac_exeext'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; }; then
18598   ac_cv_func_shmat=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603 ac_cv_func_shmat=no
18604 fi
18605 rm -f conftest.err conftest.$ac_objext \
18606       conftest$ac_exeext conftest.$ac_ext
18607 fi
18608 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18609 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18610
18611     if test $ac_cv_func_shmat = no; then
18612       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18613 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18614 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   ac_check_lib_save_LIBS=$LIBS
18618 LIBS="-lipc  $LIBS"
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625
18626 /* Override any gcc2 internal prototype to avoid an error.  */
18627 #ifdef __cplusplus
18628 extern "C"
18629 #endif
18630 /* We use char because int might match the return type of a gcc2
18631    builtin and then its argument prototype would still apply.  */
18632 char shmat ();
18633 int
18634 main ()
18635 {
18636 shmat ();
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18643   (eval $ac_link) 2>conftest.er1
18644   ac_status=$?
18645   grep -v '^ *+' conftest.er1 >conftest.err
18646   rm -f conftest.er1
18647   cat conftest.err >&5
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } &&
18650          { ac_try='test -z "$ac_c_werror_flag"
18651                          || test ! -s conftest.err'
18652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653   (eval $ac_try) 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; } &&
18657          { ac_try='test -s conftest$ac_exeext'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; }; then
18663   ac_cv_lib_ipc_shmat=yes
18664 else
18665   echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_cv_lib_ipc_shmat=no
18669 fi
18670 rm -f conftest.err conftest.$ac_objext \
18671       conftest$ac_exeext conftest.$ac_ext
18672 LIBS=$ac_check_lib_save_LIBS
18673 fi
18674 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18675 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18676 if test $ac_cv_lib_ipc_shmat = yes; then
18677   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18678 fi
18679
18680     fi
18681   fi
18682
18683   # Check for libraries that X11R6 Xt/Xaw programs need.
18684   ac_save_LDFLAGS=$LDFLAGS
18685   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18686   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18687   # check for ICE first), but we must link in the order -lSM -lICE or
18688   # we get undefined symbols.  So assume we have SM if we have ICE.
18689   # These have to be linked with before -lX11, unlike the other
18690   # libraries we check for below, so use a different variable.
18691   # John Interrante, Karl Berry
18692   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18693 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18694 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   ac_check_lib_save_LIBS=$LIBS
18698 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h.  */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h.  */
18705
18706 /* Override any gcc2 internal prototype to avoid an error.  */
18707 #ifdef __cplusplus
18708 extern "C"
18709 #endif
18710 /* We use char because int might match the return type of a gcc2
18711    builtin and then its argument prototype would still apply.  */
18712 char IceConnectionNumber ();
18713 int
18714 main ()
18715 {
18716 IceConnectionNumber ();
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest.$ac_objext conftest$ac_exeext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18723   (eval $ac_link) 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } &&
18730          { ac_try='test -z "$ac_c_werror_flag"
18731                          || test ! -s conftest.err'
18732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733   (eval $ac_try) 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; } &&
18737          { ac_try='test -s conftest$ac_exeext'
18738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739   (eval $ac_try) 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); }; }; then
18743   ac_cv_lib_ICE_IceConnectionNumber=yes
18744 else
18745   echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748 ac_cv_lib_ICE_IceConnectionNumber=no
18749 fi
18750 rm -f conftest.err conftest.$ac_objext \
18751       conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18753 fi
18754 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18755 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18756 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18757   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18758 fi
18759
18760   LDFLAGS=$ac_save_LDFLAGS
18761
18762 fi
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792 for ac_header in \
18793         assert.h \
18794         fcntl.h \
18795         grp.h \
18796         pwd.h \
18797         libc.h \
18798         limits.h \
18799         stdarg.h \
18800         stdlib.h \
18801         stdint.h \
18802         string.h \
18803         termios.h \
18804         termcap.h \
18805         term.h \
18806         unistd.h \
18807         sys/bitypes.h \
18808         sys/byteorder.h \
18809         sys/ioctl.h \
18810         sys/select.h \
18811         sys/sockio.h \
18812         sys/time.h \
18813         sys/socket.h \
18814         arpa/nameser.h \
18815         resolv.h \
18816         mtio.h \
18817         sys/mtio.h \
18818         sys/tape.h \
18819         regex.h \
18820
18821 do
18822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18824   echo "$as_me:$LINENO: checking for $ac_header" >&5
18825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 fi
18829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18831 else
18832   # Is the header compilable?
18833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 $ac_includes_default
18842 #include <$ac_header>
18843 _ACEOF
18844 rm -f conftest.$ac_objext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846   (eval $ac_compile) 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_objext'
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_header_compiler=yes
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871 ac_header_compiler=no
18872 fi
18873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875 echo "${ECHO_T}$ac_header_compiler" >&6
18876
18877 # Is the header present?
18878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 #include <$ac_header>
18887 _ACEOF
18888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18890   ac_status=$?
18891   grep -v '^ *+' conftest.er1 >conftest.err
18892   rm -f conftest.er1
18893   cat conftest.err >&5
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } >/dev/null; then
18896   if test -s conftest.err; then
18897     ac_cpp_err=$ac_c_preproc_warn_flag
18898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18899   else
18900     ac_cpp_err=
18901   fi
18902 else
18903   ac_cpp_err=yes
18904 fi
18905 if test -z "$ac_cpp_err"; then
18906   ac_header_preproc=yes
18907 else
18908   echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911   ac_header_preproc=no
18912 fi
18913 rm -f conftest.err conftest.$ac_ext
18914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915 echo "${ECHO_T}$ac_header_preproc" >&6
18916
18917 # So?  What about this header?
18918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18919   yes:no: )
18920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18924     ac_header_preproc=yes
18925     ;;
18926   no:yes:* )
18927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18939     (
18940       cat <<\_ASBOX
18941 ## ------------------------------------------ ##
18942 ## Report this to the AC_PACKAGE_NAME lists.  ##
18943 ## ------------------------------------------ ##
18944 _ASBOX
18945     ) |
18946       sed "s/^/$as_me: WARNING:     /" >&2
18947     ;;
18948 esac
18949 echo "$as_me:$LINENO: checking for $ac_header" >&5
18950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   eval "$as_ac_Header=\$ac_header_preproc"
18955 fi
18956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18958
18959 fi
18960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18961   cat >>confdefs.h <<_ACEOF
18962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18963 _ACEOF
18964
18965 fi
18966
18967 done
18968
18969 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18971 if test "${ac_cv_header_stdc+set}" = set; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974   cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980 #include <stdlib.h>
18981 #include <stdarg.h>
18982 #include <string.h>
18983 #include <float.h>
18984
18985 int
18986 main ()
18987 {
18988
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18995   (eval $ac_compile) 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } &&
19002          { ac_try='test -z "$ac_c_werror_flag"
19003                          || test ! -s conftest.err'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; } &&
19009          { ac_try='test -s conftest.$ac_objext'
19010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011   (eval $ac_try) 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; }; then
19015   ac_cv_header_stdc=yes
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020 ac_cv_header_stdc=no
19021 fi
19022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19023
19024 if test $ac_cv_header_stdc = yes; then
19025   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19026   cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h.  */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h.  */
19032 #include <string.h>
19033
19034 _ACEOF
19035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19036   $EGREP "memchr" >/dev/null 2>&1; then
19037   :
19038 else
19039   ac_cv_header_stdc=no
19040 fi
19041 rm -f conftest*
19042
19043 fi
19044
19045 if test $ac_cv_header_stdc = yes; then
19046   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19047   cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19053 #include <stdlib.h>
19054
19055 _ACEOF
19056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19057   $EGREP "free" >/dev/null 2>&1; then
19058   :
19059 else
19060   ac_cv_header_stdc=no
19061 fi
19062 rm -f conftest*
19063
19064 fi
19065
19066 if test $ac_cv_header_stdc = yes; then
19067   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19068   if test "$cross_compiling" = yes; then
19069   :
19070 else
19071   cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h.  */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h.  */
19077 #include <ctype.h>
19078 #if ((' ' & 0x0FF) == 0x020)
19079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19081 #else
19082 # define ISLOWER(c) \
19083                    (('a' <= (c) && (c) <= 'i') \
19084                      || ('j' <= (c) && (c) <= 'r') \
19085                      || ('s' <= (c) && (c) <= 'z'))
19086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19087 #endif
19088
19089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19090 int
19091 main ()
19092 {
19093   int i;
19094   for (i = 0; i < 256; i++)
19095     if (XOR (islower (i), ISLOWER (i))
19096         || toupper (i) != TOUPPER (i))
19097       exit(2);
19098   exit (0);
19099 }
19100 _ACEOF
19101 rm -f conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103   (eval $ac_link) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108   (eval $ac_try) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); }; }; then
19112   :
19113 else
19114   echo "$as_me: program exited with status $ac_status" >&5
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 ( exit $ac_status )
19119 ac_cv_header_stdc=no
19120 fi
19121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19122 fi
19123 fi
19124 fi
19125 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19126 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19127 if test $ac_cv_header_stdc = yes; then
19128
19129 cat >>confdefs.h <<\_ACEOF
19130 #define STDC_HEADERS 1
19131 _ACEOF
19132
19133 fi
19134
19135 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19136 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19137 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h.  */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h.  */
19146 #include <sys/types.h>
19147 int
19148 main ()
19149 {
19150 return makedev(0, 0);
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157   (eval $ac_link) 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -z "$ac_c_werror_flag"
19165                          || test ! -s conftest.err'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; } &&
19171          { ac_try='test -s conftest$ac_exeext'
19172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173   (eval $ac_try) 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; }; then
19177   ac_cv_header_sys_types_h_makedev=yes
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_cv_header_sys_types_h_makedev=no
19183 fi
19184 rm -f conftest.err conftest.$ac_objext \
19185       conftest$ac_exeext conftest.$ac_ext
19186
19187 fi
19188 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19189 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19190
19191 if test $ac_cv_header_sys_types_h_makedev = no; then
19192 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19193   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19194 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19195 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 fi
19198 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19199 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19200 else
19201   # Is the header compilable?
19202 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19203 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 $ac_includes_default
19211 #include <sys/mkdev.h>
19212 _ACEOF
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215   (eval $ac_compile) 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } &&
19222          { ac_try='test -z "$ac_c_werror_flag"
19223                          || test ! -s conftest.err'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; } &&
19229          { ac_try='test -s conftest.$ac_objext'
19230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231   (eval $ac_try) 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; }; then
19235   ac_header_compiler=yes
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240 ac_header_compiler=no
19241 fi
19242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19244 echo "${ECHO_T}$ac_header_compiler" >&6
19245
19246 # Is the header present?
19247 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19248 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 #include <sys/mkdev.h>
19256 _ACEOF
19257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19259   ac_status=$?
19260   grep -v '^ *+' conftest.er1 >conftest.err
19261   rm -f conftest.er1
19262   cat conftest.err >&5
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } >/dev/null; then
19265   if test -s conftest.err; then
19266     ac_cpp_err=$ac_c_preproc_warn_flag
19267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19268   else
19269     ac_cpp_err=
19270   fi
19271 else
19272   ac_cpp_err=yes
19273 fi
19274 if test -z "$ac_cpp_err"; then
19275   ac_header_preproc=yes
19276 else
19277   echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280   ac_header_preproc=no
19281 fi
19282 rm -f conftest.err conftest.$ac_ext
19283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19284 echo "${ECHO_T}$ac_header_preproc" >&6
19285
19286 # So?  What about this header?
19287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19288   yes:no: )
19289     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19290 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19292 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19293     ac_header_preproc=yes
19294     ;;
19295   no:yes:* )
19296     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19297 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19299 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19300     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19301 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19302     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19303 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19304     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19305 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19306     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19307 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19308     (
19309       cat <<\_ASBOX
19310 ## ------------------------------------------ ##
19311 ## Report this to the AC_PACKAGE_NAME lists.  ##
19312 ## ------------------------------------------ ##
19313 _ASBOX
19314     ) |
19315       sed "s/^/$as_me: WARNING:     /" >&2
19316     ;;
19317 esac
19318 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19319 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19320 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19324 fi
19325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19326 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19327
19328 fi
19329 if test $ac_cv_header_sys_mkdev_h = yes; then
19330
19331 cat >>confdefs.h <<\_ACEOF
19332 #define MAJOR_IN_MKDEV 1
19333 _ACEOF
19334
19335 fi
19336
19337
19338
19339   if test $ac_cv_header_sys_mkdev_h = no; then
19340     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19341   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19342 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19343 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 fi
19346 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19347 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19348 else
19349   # Is the header compilable?
19350 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19351 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358 $ac_includes_default
19359 #include <sys/sysmacros.h>
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363   (eval $ac_compile) 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag"
19371                          || test ! -s conftest.err'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_header_compiler=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_header_compiler=no
19389 fi
19390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19393
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19396 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 #include <sys/sysmacros.h>
19404 _ACEOF
19405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } >/dev/null; then
19413   if test -s conftest.err; then
19414     ac_cpp_err=$ac_c_preproc_warn_flag
19415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19416   else
19417     ac_cpp_err=
19418   fi
19419 else
19420   ac_cpp_err=yes
19421 fi
19422 if test -z "$ac_cpp_err"; then
19423   ac_header_preproc=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428   ac_header_preproc=no
19429 fi
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19433
19434 # So?  What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19436   yes:no: )
19437     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19440 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19441     ac_header_preproc=yes
19442     ;;
19443   no:yes:* )
19444     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19445 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19446     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19447 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19448     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19449 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19450     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19451 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19452     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19453 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19454     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19455 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19456     (
19457       cat <<\_ASBOX
19458 ## ------------------------------------------ ##
19459 ## Report this to the AC_PACKAGE_NAME lists.  ##
19460 ## ------------------------------------------ ##
19461 _ASBOX
19462     ) |
19463       sed "s/^/$as_me: WARNING:     /" >&2
19464     ;;
19465 esac
19466 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19467 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19468 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19469   echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19472 fi
19473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19474 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19475
19476 fi
19477 if test $ac_cv_header_sys_sysmacros_h = yes; then
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define MAJOR_IN_SYSMACROS 1
19481 _ACEOF
19482
19483 fi
19484
19485
19486   fi
19487 fi
19488
19489
19490
19491
19492
19493
19494 ac_header_dirent=no
19495 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19496   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19497 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19498 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500   echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502   cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 #include <sys/types.h>
19509 #include <$ac_hdr>
19510
19511 int
19512 main ()
19513 {
19514 if ((DIR *) 0)
19515 return 0;
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19522   (eval $ac_compile) 2>conftest.er1
19523   ac_status=$?
19524   grep -v '^ *+' conftest.er1 >conftest.err
19525   rm -f conftest.er1
19526   cat conftest.err >&5
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); } &&
19529          { ac_try='test -z "$ac_c_werror_flag"
19530                          || test ! -s conftest.err'
19531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532   (eval $ac_try) 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; } &&
19536          { ac_try='test -s conftest.$ac_objext'
19537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538   (eval $ac_try) 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; }; then
19542   eval "$as_ac_Header=yes"
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547 eval "$as_ac_Header=no"
19548 fi
19549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19550 fi
19551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19554   cat >>confdefs.h <<_ACEOF
19555 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19556 _ACEOF
19557
19558 ac_header_dirent=$ac_hdr; break
19559 fi
19560
19561 done
19562 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19563 if test $ac_header_dirent = dirent.h; then
19564   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19565 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19566 if test "${ac_cv_search_opendir+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   ac_func_search_save_LIBS=$LIBS
19570 ac_cv_search_opendir=no
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577
19578 /* Override any gcc2 internal prototype to avoid an error.  */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 /* We use char because int might match the return type of a gcc2
19583    builtin and then its argument prototype would still apply.  */
19584 char opendir ();
19585 int
19586 main ()
19587 {
19588 opendir ();
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext conftest$ac_exeext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19595   (eval $ac_link) 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag"
19603                          || test ! -s conftest.err'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest$ac_exeext'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; }; then
19615   ac_cv_search_opendir="none required"
19616 else
19617   echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 fi
19621 rm -f conftest.err conftest.$ac_objext \
19622       conftest$ac_exeext conftest.$ac_ext
19623 if test "$ac_cv_search_opendir" = no; then
19624   for ac_lib in dir; do
19625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19626     cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632
19633 /* Override any gcc2 internal prototype to avoid an error.  */
19634 #ifdef __cplusplus
19635 extern "C"
19636 #endif
19637 /* We use char because int might match the return type of a gcc2
19638    builtin and then its argument prototype would still apply.  */
19639 char opendir ();
19640 int
19641 main ()
19642 {
19643 opendir ();
19644   ;
19645   return 0;
19646 }
19647 _ACEOF
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19650   (eval $ac_link) 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } &&
19657          { ac_try='test -z "$ac_c_werror_flag"
19658                          || test ! -s conftest.err'
19659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660   (eval $ac_try) 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; } &&
19664          { ac_try='test -s conftest$ac_exeext'
19665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666   (eval $ac_try) 2>&5
19667   ac_status=$?
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); }; }; then
19670   ac_cv_search_opendir="-l$ac_lib"
19671 break
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 fi
19677 rm -f conftest.err conftest.$ac_objext \
19678       conftest$ac_exeext conftest.$ac_ext
19679   done
19680 fi
19681 LIBS=$ac_func_search_save_LIBS
19682 fi
19683 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19684 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19685 if test "$ac_cv_search_opendir" != no; then
19686   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19687
19688 fi
19689
19690 else
19691   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19692 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19693 if test "${ac_cv_search_opendir+set}" = set; then
19694   echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696   ac_func_search_save_LIBS=$LIBS
19697 ac_cv_search_opendir=no
19698 cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704
19705 /* Override any gcc2 internal prototype to avoid an error.  */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 /* We use char because int might match the return type of a gcc2
19710    builtin and then its argument prototype would still apply.  */
19711 char opendir ();
19712 int
19713 main ()
19714 {
19715 opendir ();
19716   ;
19717   return 0;
19718 }
19719 _ACEOF
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19722   (eval $ac_link) 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } &&
19729          { ac_try='test -z "$ac_c_werror_flag"
19730                          || test ! -s conftest.err'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest$ac_exeext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_search_opendir="none required"
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 fi
19748 rm -f conftest.err conftest.$ac_objext \
19749       conftest$ac_exeext conftest.$ac_ext
19750 if test "$ac_cv_search_opendir" = no; then
19751   for ac_lib in x; do
19752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19753     cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759
19760 /* Override any gcc2 internal prototype to avoid an error.  */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 /* We use char because int might match the return type of a gcc2
19765    builtin and then its argument prototype would still apply.  */
19766 char opendir ();
19767 int
19768 main ()
19769 {
19770 opendir ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777   (eval $ac_link) 2>conftest.er1
19778   ac_status=$?
19779   grep -v '^ *+' conftest.er1 >conftest.err
19780   rm -f conftest.er1
19781   cat conftest.err >&5
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); } &&
19784          { ac_try='test -z "$ac_c_werror_flag"
19785                          || test ! -s conftest.err'
19786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787   (eval $ac_try) 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; } &&
19791          { ac_try='test -s conftest$ac_exeext'
19792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793   (eval $ac_try) 2>&5
19794   ac_status=$?
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); }; }; then
19797   ac_cv_search_opendir="-l$ac_lib"
19798 break
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803 fi
19804 rm -f conftest.err conftest.$ac_objext \
19805       conftest$ac_exeext conftest.$ac_ext
19806   done
19807 fi
19808 LIBS=$ac_func_search_save_LIBS
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19811 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19812 if test "$ac_cv_search_opendir" != no; then
19813   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19814
19815 fi
19816
19817 fi
19818
19819 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19820 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19821 if test "${ac_cv_header_stat_broken+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <sys/types.h>
19831 #include <sys/stat.h>
19832
19833 #if defined(S_ISBLK) && defined(S_IFDIR)
19834 # if S_ISBLK (S_IFDIR)
19835 You lose.
19836 # endif
19837 #endif
19838
19839 #if defined(S_ISBLK) && defined(S_IFCHR)
19840 # if S_ISBLK (S_IFCHR)
19841 You lose.
19842 # endif
19843 #endif
19844
19845 #if defined(S_ISLNK) && defined(S_IFREG)
19846 # if S_ISLNK (S_IFREG)
19847 You lose.
19848 # endif
19849 #endif
19850
19851 #if defined(S_ISSOCK) && defined(S_IFREG)
19852 # if S_ISSOCK (S_IFREG)
19853 You lose.
19854 # endif
19855 #endif
19856
19857 _ACEOF
19858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19859   $EGREP "You lose" >/dev/null 2>&1; then
19860   ac_cv_header_stat_broken=yes
19861 else
19862   ac_cv_header_stat_broken=no
19863 fi
19864 rm -f conftest*
19865
19866 fi
19867 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19868 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19869 if test $ac_cv_header_stat_broken = yes; then
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define STAT_MACROS_BROKEN 1
19873 _ACEOF
19874
19875 fi
19876
19877 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19878 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19879 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882   cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 #include <sys/types.h>
19889 #include <sys/wait.h>
19890 #ifndef WEXITSTATUS
19891 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19892 #endif
19893 #ifndef WIFEXITED
19894 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19895 #endif
19896
19897 int
19898 main ()
19899 {
19900   int s;
19901   wait (&s);
19902   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909   (eval $ac_compile) 2>conftest.er1
19910   ac_status=$?
19911   grep -v '^ *+' conftest.er1 >conftest.err
19912   rm -f conftest.er1
19913   cat conftest.err >&5
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); } &&
19916          { ac_try='test -z "$ac_c_werror_flag"
19917                          || test ! -s conftest.err'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; } &&
19923          { ac_try='test -s conftest.$ac_objext'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_cv_header_sys_wait_h=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934 ac_cv_header_sys_wait_h=no
19935 fi
19936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19937 fi
19938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19939 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19940 if test $ac_cv_header_sys_wait_h = yes; then
19941
19942 cat >>confdefs.h <<\_ACEOF
19943 #define HAVE_SYS_WAIT_H 1
19944 _ACEOF
19945
19946 fi
19947
19948 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19950 if test "${ac_cv_header_time+set}" = set; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953   cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 #include <sys/types.h>
19960 #include <sys/time.h>
19961 #include <time.h>
19962
19963 int
19964 main ()
19965 {
19966 if ((struct tm *) 0)
19967 return 0;
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974   (eval $ac_compile) 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag"
19982                          || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest.$ac_objext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_header_time=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_header_time=no
20000 fi
20001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20004 echo "${ECHO_T}$ac_cv_header_time" >&6
20005 if test $ac_cv_header_time = yes; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define TIME_WITH_SYS_TIME 1
20009 _ACEOF
20010
20011 fi
20012
20013
20014 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20015 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20016 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h.  */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h.  */
20025 $ac_includes_default
20026 int
20027 main ()
20028 {
20029 static struct stat ac_aggr;
20030 if (ac_aggr.st_blksize)
20031 return 0;
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038   (eval $ac_compile) 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag"
20046                          || test ! -s conftest.err'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; } &&
20052          { ac_try='test -s conftest.$ac_objext'
20053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054   (eval $ac_try) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_cv_member_struct_stat_st_blksize=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069 $ac_includes_default
20070 int
20071 main ()
20072 {
20073 static struct stat ac_aggr;
20074 if (sizeof ac_aggr.st_blksize)
20075 return 0;
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082   (eval $ac_compile) 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -z "$ac_c_werror_flag"
20090                          || test ! -s conftest.err'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; } &&
20096          { ac_try='test -s conftest.$ac_objext'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; }; then
20102   ac_cv_member_struct_stat_st_blksize=yes
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 ac_cv_member_struct_stat_st_blksize=no
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20114 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20115 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20116
20117 cat >>confdefs.h <<_ACEOF
20118 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20119 _ACEOF
20120
20121
20122 cat >>confdefs.h <<\_ACEOF
20123 #define HAVE_ST_BLKSIZE 1
20124 _ACEOF
20125
20126 fi
20127
20128
20129 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20130 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20131 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134   cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 $ac_includes_default
20141 int
20142 main ()
20143 {
20144 static struct stat ac_aggr;
20145 if (ac_aggr.st_blocks)
20146 return 0;
20147   ;
20148   return 0;
20149 }
20150 _ACEOF
20151 rm -f conftest.$ac_objext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153   (eval $ac_compile) 2>conftest.er1
20154   ac_status=$?
20155   grep -v '^ *+' conftest.er1 >conftest.err
20156   rm -f conftest.er1
20157   cat conftest.err >&5
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } &&
20160          { ac_try='test -z "$ac_c_werror_flag"
20161                          || test ! -s conftest.err'
20162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163   (eval $ac_try) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; } &&
20167          { ac_try='test -s conftest.$ac_objext'
20168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169   (eval $ac_try) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; }; then
20173   ac_cv_member_struct_stat_st_blocks=yes
20174 else
20175   echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20177
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 $ac_includes_default
20185 int
20186 main ()
20187 {
20188 static struct stat ac_aggr;
20189 if (sizeof ac_aggr.st_blocks)
20190 return 0;
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } &&
20204          { ac_try='test -z "$ac_c_werror_flag"
20205                          || test ! -s conftest.err'
20206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207   (eval $ac_try) 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; } &&
20211          { ac_try='test -s conftest.$ac_objext'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; }; then
20217   ac_cv_member_struct_stat_st_blocks=yes
20218 else
20219   echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222 ac_cv_member_struct_stat_st_blocks=no
20223 fi
20224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20225 fi
20226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20227 fi
20228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20230 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20234 _ACEOF
20235
20236
20237 cat >>confdefs.h <<\_ACEOF
20238 #define HAVE_ST_BLOCKS 1
20239 _ACEOF
20240
20241 else
20242   case $LIBOBJS in
20243     "fileblocks.$ac_objext"   | \
20244   *" fileblocks.$ac_objext"   | \
20245     "fileblocks.$ac_objext "* | \
20246   *" fileblocks.$ac_objext "* ) ;;
20247   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20248 esac
20249
20250 fi
20251
20252
20253 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20254 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20255 if test "${ac_cv_struct_tm+set}" = set; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 #include <sys/types.h>
20265 #include <time.h>
20266
20267 int
20268 main ()
20269 {
20270 struct tm *tp; tp->tm_sec;
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20277   (eval $ac_compile) 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); } &&
20284          { ac_try='test -z "$ac_c_werror_flag"
20285                          || test ! -s conftest.err'
20286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287   (eval $ac_try) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; } &&
20291          { ac_try='test -s conftest.$ac_objext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_struct_tm=time.h
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_cv_struct_tm=sys/time.h
20303 fi
20304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20307 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20308 if test $ac_cv_struct_tm = sys/time.h; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define TM_IN_SYS_TIME 1
20312 _ACEOF
20313
20314 fi
20315
20316 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20317 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20318 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h.  */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h.  */
20327 #include <sys/types.h>
20328 #include <$ac_cv_struct_tm>
20329
20330
20331 int
20332 main ()
20333 {
20334 static struct tm ac_aggr;
20335 if (ac_aggr.tm_zone)
20336 return 0;
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343   (eval $ac_compile) 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } &&
20350          { ac_try='test -z "$ac_c_werror_flag"
20351                          || test ! -s conftest.err'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; } &&
20357          { ac_try='test -s conftest.$ac_objext'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_member_struct_tm_tm_zone=yes
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374 #include <sys/types.h>
20375 #include <$ac_cv_struct_tm>
20376
20377
20378 int
20379 main ()
20380 {
20381 static struct tm ac_aggr;
20382 if (sizeof ac_aggr.tm_zone)
20383 return 0;
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20390   (eval $ac_compile) 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } &&
20397          { ac_try='test -z "$ac_c_werror_flag"
20398                          || test ! -s conftest.err'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest.$ac_objext'
20405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406   (eval $ac_try) 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; }; then
20410   ac_cv_member_struct_tm_tm_zone=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 ac_cv_member_struct_tm_tm_zone=no
20416 fi
20417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418 fi
20419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20420 fi
20421 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20422 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20423 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20424
20425 cat >>confdefs.h <<_ACEOF
20426 #define HAVE_STRUCT_TM_TM_ZONE 1
20427 _ACEOF
20428
20429
20430 fi
20431
20432 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_TM_ZONE 1
20436 _ACEOF
20437
20438 else
20439   echo "$as_me:$LINENO: checking for tzname" >&5
20440 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20441 if test "${ac_cv_var_tzname+set}" = set; then
20442   echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444   cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 #include <time.h>
20451 #ifndef tzname /* For SGI.  */
20452 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20453 #endif
20454
20455 int
20456 main ()
20457 {
20458 atoi(*tzname);
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20465   (eval $ac_link) 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag"
20473                          || test ! -s conftest.err'
20474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475   (eval $ac_try) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; } &&
20479          { ac_try='test -s conftest$ac_exeext'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_cv_var_tzname=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_cv_var_tzname=no
20491 fi
20492 rm -f conftest.err conftest.$ac_objext \
20493       conftest$ac_exeext conftest.$ac_ext
20494 fi
20495 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20496 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20497   if test $ac_cv_var_tzname = yes; then
20498
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_TZNAME 1
20501 _ACEOF
20502
20503   fi
20504 fi
20505
20506
20507 echo "$as_me:$LINENO: checking for utime.h" >&5
20508 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20509 if test "${ba_cv_header_utime_h+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519 #include <sys/types.h>
20520 #include <utime.h>
20521 int
20522 main ()
20523 {
20524 struct utimbuf foo
20525   ;
20526   return 0;
20527 }
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531   (eval $ac_compile) 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } &&
20538          { ac_try='test -z "$ac_c_werror_flag"
20539                          || test ! -s conftest.err'
20540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541   (eval $ac_try) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; } &&
20545          { ac_try='test -s conftest.$ac_objext'
20546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547   (eval $ac_try) 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; }; then
20551   ba_cv_header_utime_h=yes
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ba_cv_header_utime_h=no
20557 fi
20558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20559 fi
20560 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20561 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20562 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20563 #define HAVE_UTIME_H 1
20564 _ACEOF
20565
20566
20567 echo "$as_me:$LINENO: checking for socklen_t" >&5
20568 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20569 if test "${ba_cv_header_socklen_t+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578
20579 #include <sys/types.h>
20580 #include <sys/socket.h>
20581 int
20582 main ()
20583 {
20584 socklen_t x
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591   (eval $ac_compile) 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -z "$ac_c_werror_flag"
20599                          || test ! -s conftest.err'
20600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601   (eval $ac_try) 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); }; } &&
20605          { ac_try='test -s conftest.$ac_objext'
20606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607   (eval $ac_try) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; }; then
20611   ba_cv_header_socklen_t=yes
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616 ba_cv_header_socklen_t=no
20617 fi
20618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20619 fi
20620 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20621 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20622 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20623 #define HAVE_SOCKLEN_T 1
20624 _ACEOF
20625
20626
20627 echo "$as_me:$LINENO: checking for bigendian" >&5
20628 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20629 if test "${ba_cv_bigendian+set}" = set; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632   if test "$cross_compiling" = yes; then
20633   ba_cv_bigendian=no
20634 else
20635   cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20642 _ACEOF
20643 rm -f conftest$ac_exeext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645   (eval $ac_link) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }; then
20654   ba_cv_bigendian=yes
20655 else
20656   echo "$as_me: program exited with status $ac_status" >&5
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ( exit $ac_status )
20661 ba_cv_bigendian=no
20662 fi
20663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20664 fi
20665 fi
20666 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20667 echo "${ECHO_T}$ba_cv_bigendian" >&6
20668 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_BIGENDIAN 1
20670 _ACEOF
20671
20672
20673 ac_ext=cc
20674 ac_cpp='$CXXCPP $CPPFLAGS'
20675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20678
20679
20680 echo "$as_me:$LINENO: checking for typeof" >&5
20681 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20682 if test "${ba_cv_have_typeof+set}" = set; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685   if test "$cross_compiling" = yes; then
20686   ba_cv_have_typeof=no
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 main(){char *a = 0; a = (typeof a)a;}
20695 _ACEOF
20696 rm -f conftest$ac_exeext
20697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20698   (eval $ac_link) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ba_cv_have_typeof=yes
20708 else
20709   echo "$as_me: program exited with status $ac_status" >&5
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713 ( exit $ac_status )
20714 ba_cv_have_typeof=no
20715 fi
20716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20717 fi
20718 fi
20719 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20720 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20721 test $ba_cv_have_typeof = yes &&
20722 cat >>confdefs.h <<\_ACEOF
20723 #define HAVE_TYPEOF 1
20724 _ACEOF
20725
20726 ac_ext=c
20727 ac_cpp='$CPP $CPPFLAGS'
20728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20731
20732
20733 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20735 if test "${ac_cv_c_const+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 int
20746 main ()
20747 {
20748 /* FIXME: Include the comments suggested by Paul. */
20749 #ifndef __cplusplus
20750   /* Ultrix mips cc rejects this.  */
20751   typedef int charset[2];
20752   const charset x;
20753   /* SunOS 4.1.1 cc rejects this.  */
20754   char const *const *ccp;
20755   char **p;
20756   /* NEC SVR4.0.2 mips cc rejects this.  */
20757   struct point {int x, y;};
20758   static struct point const zero = {0,0};
20759   /* AIX XL C 1.02.0.0 rejects this.
20760      It does not let you subtract one const X* pointer from another in
20761      an arm of an if-expression whose if-part is not a constant
20762      expression */
20763   const char *g = "string";
20764   ccp = &g + (g ? g-g : 0);
20765   /* HPUX 7.0 cc rejects these. */
20766   ++ccp;
20767   p = (char**) ccp;
20768   ccp = (char const *const *) p;
20769   { /* SCO 3.2v4 cc rejects this.  */
20770     char *t;
20771     char const *s = 0 ? (char *) 0 : (char const *) 0;
20772
20773     *t++ = 0;
20774   }
20775   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20776     int x[] = {25, 17};
20777     const int *foo = &x[0];
20778     ++foo;
20779   }
20780   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20781     typedef const int *iptr;
20782     iptr p = 0;
20783     ++p;
20784   }
20785   { /* AIX XL C 1.02.0.0 rejects this saying
20786        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20787     struct s { int j; const int *ap[3]; };
20788     struct s *b; b->j = 5;
20789   }
20790   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20791     const int foo = 10;
20792   }
20793 #endif
20794
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801   (eval $ac_compile) 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag"
20809                          || test ! -s conftest.err'
20810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811   (eval $ac_try) 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; } &&
20815          { ac_try='test -s conftest.$ac_objext'
20816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817   (eval $ac_try) 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); }; }; then
20821   ac_cv_c_const=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826 ac_cv_c_const=no
20827 fi
20828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829 fi
20830 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20831 echo "${ECHO_T}$ac_cv_c_const" >&6
20832 if test $ac_cv_c_const = no; then
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define const
20836 _ACEOF
20837
20838 fi
20839
20840
20841
20842 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20843 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20844 fstype=no
20845 # The order of these tests is important.
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <sys/statvfs.h>
20853 #include <sys/fstyp.h>
20854 _ACEOF
20855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } >/dev/null; then
20863   if test -s conftest.err; then
20864     ac_cpp_err=$ac_c_preproc_warn_flag
20865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20866   else
20867     ac_cpp_err=
20868   fi
20869 else
20870   ac_cpp_err=yes
20871 fi
20872 if test -z "$ac_cpp_err"; then
20873   cat >>confdefs.h <<\_ACEOF
20874 #define FSTYPE_STATVFS 1
20875 _ACEOF
20876  fstype=SVR4
20877 else
20878   echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881
20882 fi
20883 rm -f conftest.err conftest.$ac_ext
20884 if test $fstype = no; then
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 #include <sys/statfs.h>
20892 #include <sys/fstyp.h>
20893 _ACEOF
20894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } >/dev/null; then
20902   if test -s conftest.err; then
20903     ac_cpp_err=$ac_c_preproc_warn_flag
20904     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20905   else
20906     ac_cpp_err=
20907   fi
20908 else
20909   ac_cpp_err=yes
20910 fi
20911 if test -z "$ac_cpp_err"; then
20912   cat >>confdefs.h <<\_ACEOF
20913 #define FSTYPE_USG_STATFS 1
20914 _ACEOF
20915  fstype=SVR3
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920
20921 fi
20922 rm -f conftest.err conftest.$ac_ext
20923 fi
20924 if test $fstype = no; then
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h.  */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h.  */
20931 #include <sys/statfs.h>
20932 #include <sys/vmount.h>
20933 _ACEOF
20934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } >/dev/null; then
20942   if test -s conftest.err; then
20943     ac_cpp_err=$ac_c_preproc_warn_flag
20944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20945   else
20946     ac_cpp_err=
20947   fi
20948 else
20949   ac_cpp_err=yes
20950 fi
20951 if test -z "$ac_cpp_err"; then
20952   cat >>confdefs.h <<\_ACEOF
20953 #define FSTYPE_AIX_STATFS 1
20954 _ACEOF
20955  fstype=AIX
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960
20961 fi
20962 rm -f conftest.err conftest.$ac_ext
20963 fi
20964 if test $fstype = no; then
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 #include <mntent.h>
20972 _ACEOF
20973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } >/dev/null; then
20981   if test -s conftest.err; then
20982     ac_cpp_err=$ac_c_preproc_warn_flag
20983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20984   else
20985     ac_cpp_err=
20986   fi
20987 else
20988   ac_cpp_err=yes
20989 fi
20990 if test -z "$ac_cpp_err"; then
20991   cat >>confdefs.h <<\_ACEOF
20992 #define FSTYPE_MNTENT 1
20993 _ACEOF
20994  fstype=4.3BSD
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999
21000 fi
21001 rm -f conftest.err conftest.$ac_ext
21002 fi
21003 if test $fstype = no; then
21004 cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 #include <sys/mount.h>
21011
21012 _ACEOF
21013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21014   $EGREP "f_type;" >/dev/null 2>&1; then
21015   cat >>confdefs.h <<\_ACEOF
21016 #define FSTYPE_STATFS 1
21017 _ACEOF
21018  fstype=4.4BSD/OSF1
21019 fi
21020 rm -f conftest*
21021
21022 fi
21023 if test $fstype = no; then
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030 #include <sys/mount.h>
21031 #include <sys/fs_types.h>
21032 _ACEOF
21033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } >/dev/null; then
21041   if test -s conftest.err; then
21042     ac_cpp_err=$ac_c_preproc_warn_flag
21043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21044   else
21045     ac_cpp_err=
21046   fi
21047 else
21048   ac_cpp_err=yes
21049 fi
21050 if test -z "$ac_cpp_err"; then
21051   cat >>confdefs.h <<\_ACEOF
21052 #define FSTYPE_GETMNT 1
21053 _ACEOF
21054  fstype=Ultrix
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059
21060 fi
21061 rm -f conftest.err conftest.$ac_ext
21062 fi
21063 echo "$as_me:$LINENO: result: $fstype" >&5
21064 echo "${ECHO_T}$fstype" >&6
21065
21066 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21067   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21068 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21069 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21070   echo $ECHO_N "(cached) $ECHO_C" >&6
21071 fi
21072 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21073 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21074 else
21075   # Is the header compilable?
21076 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21077 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084 $ac_includes_default
21085 #include <sys/statvfs.h>
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089   (eval $ac_compile) 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag"
21097                          || test ! -s conftest.err'
21098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099   (eval $ac_try) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; } &&
21103          { ac_try='test -s conftest.$ac_objext'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_header_compiler=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ac_header_compiler=no
21115 fi
21116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21118 echo "${ECHO_T}$ac_header_compiler" >&6
21119
21120 # Is the header present?
21121 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21122 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 #include <sys/statvfs.h>
21130 _ACEOF
21131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } >/dev/null; then
21139   if test -s conftest.err; then
21140     ac_cpp_err=$ac_c_preproc_warn_flag
21141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21142   else
21143     ac_cpp_err=
21144   fi
21145 else
21146   ac_cpp_err=yes
21147 fi
21148 if test -z "$ac_cpp_err"; then
21149   ac_header_preproc=yes
21150 else
21151   echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154   ac_header_preproc=no
21155 fi
21156 rm -f conftest.err conftest.$ac_ext
21157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21158 echo "${ECHO_T}$ac_header_preproc" >&6
21159
21160 # So?  What about this header?
21161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21162   yes:no: )
21163     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21164 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21165     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21166 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21167     ac_header_preproc=yes
21168     ;;
21169   no:yes:* )
21170     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21171 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21172     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21173 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21174     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21175 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21176     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21177 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21178     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21179 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21180     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21181 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21182     (
21183       cat <<\_ASBOX
21184 ## ------------------------------------------ ##
21185 ## Report this to the AC_PACKAGE_NAME lists.  ##
21186 ## ------------------------------------------ ##
21187 _ASBOX
21188     ) |
21189       sed "s/^/$as_me: WARNING:     /" >&2
21190     ;;
21191 esac
21192 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21193 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21194 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21198 fi
21199 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21200 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21201
21202 fi
21203 if test $ac_cv_header_sys_statvfs_h = yes; then
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_SYS_STATVFS_H 1
21207 _ACEOF
21208
21209 fi
21210
21211
21212
21213 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21214 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21215 if test "${ac_cv_type_signal+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #include <sys/types.h>
21225 #include <signal.h>
21226 #ifdef signal
21227 # undef signal
21228 #endif
21229 #ifdef __cplusplus
21230 extern "C" void (*signal (int, void (*)(int)))(int);
21231 #else
21232 void (*signal ()) ();
21233 #endif
21234
21235 int
21236 main ()
21237 {
21238 int i;
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245   (eval $ac_compile) 2>conftest.er1
21246   ac_status=$?
21247   grep -v '^ *+' conftest.er1 >conftest.err
21248   rm -f conftest.er1
21249   cat conftest.err >&5
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } &&
21252          { ac_try='test -z "$ac_c_werror_flag"
21253                          || test ! -s conftest.err'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; } &&
21259          { ac_try='test -s conftest.$ac_objext'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; }; then
21265   ac_cv_type_signal=void
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 ac_cv_type_signal=int
21271 fi
21272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21273 fi
21274 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21275 echo "${ECHO_T}$ac_cv_type_signal" >&6
21276
21277 cat >>confdefs.h <<_ACEOF
21278 #define RETSIGTYPE $ac_cv_type_signal
21279 _ACEOF
21280
21281
21282
21283   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21284 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21285   if test "${bash_cv_signal_vintage+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288
21289     cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h.  */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h.  */
21295 #include <signal.h>
21296 int
21297 main ()
21298 {
21299
21300       sigset_t ss;
21301       struct sigaction sa;
21302       sigemptyset(&ss); sigsuspend(&ss);
21303       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21304       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21305
21306   ;
21307   return 0;
21308 }
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312   (eval $ac_link) 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } &&
21319          { ac_try='test -z "$ac_c_werror_flag"
21320                          || test ! -s conftest.err'
21321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322   (eval $ac_try) 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; } &&
21326          { ac_try='test -s conftest$ac_exeext'
21327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328   (eval $ac_try) 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); }; }; then
21332   bash_cv_signal_vintage="posix"
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337
21338       cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <signal.h>
21345 int
21346 main ()
21347 {
21348
21349           int mask = sigmask(SIGINT);
21350           sigsetmask(mask); sigblock(mask); sigpause(mask);
21351
21352   ;
21353   return 0;
21354 }
21355 _ACEOF
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21358   (eval $ac_link) 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } &&
21365          { ac_try='test -z "$ac_c_werror_flag"
21366                          || test ! -s conftest.err'
21367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368   (eval $ac_try) 2>&5
21369   ac_status=$?
21370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); }; } &&
21372          { ac_try='test -s conftest$ac_exeext'
21373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374   (eval $ac_try) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   bash_cv_signal_vintage="4.2bsd"
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383
21384         cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390
21391           #include <signal.h>
21392           RETSIGTYPE foo() { }
21393 int
21394 main ()
21395 {
21396
21397                   int mask = sigmask(SIGINT);
21398                   sigset(SIGINT, foo); sigrelse(SIGINT);
21399                   sighold(SIGINT); sigpause(SIGINT);
21400
21401   ;
21402   return 0;
21403 }
21404 _ACEOF
21405 rm -f conftest.$ac_objext conftest$ac_exeext
21406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21407   (eval $ac_link) 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } &&
21414          { ac_try='test -z "$ac_c_werror_flag"
21415                          || test ! -s conftest.err'
21416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417   (eval $ac_try) 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); }; } &&
21421          { ac_try='test -s conftest$ac_exeext'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; }; then
21427   bash_cv_signal_vintage="svr3"
21428 else
21429   echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 bash_cv_signal_vintage="v7"
21433
21434 fi
21435 rm -f conftest.err conftest.$ac_objext \
21436       conftest$ac_exeext conftest.$ac_ext
21437
21438 fi
21439 rm -f conftest.err conftest.$ac_objext \
21440       conftest$ac_exeext conftest.$ac_ext
21441
21442 fi
21443 rm -f conftest.err conftest.$ac_objext \
21444       conftest$ac_exeext conftest.$ac_ext
21445
21446 fi
21447
21448   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21449 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21450   if test "$bash_cv_signal_vintage" = "posix"; then
21451     cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_POSIX_SIGNALS 1
21453 _ACEOF
21454
21455   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21456     cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_BSD_SIGNALS 1
21458 _ACEOF
21459
21460   elif test "$bash_cv_signal_vintage" = "svr3"; then
21461     cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_USG_SIGHOLD 1
21463 _ACEOF
21464
21465   fi
21466
21467 echo "$as_me:$LINENO: checking for mode_t" >&5
21468 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21469 if test "${ac_cv_type_mode_t+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 $ac_includes_default
21479 int
21480 main ()
21481 {
21482 if ((mode_t *) 0)
21483   return 0;
21484 if (sizeof (mode_t))
21485   return 0;
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 rm -f conftest.$ac_objext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21492   (eval $ac_compile) 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } &&
21499          { ac_try='test -z "$ac_c_werror_flag"
21500                          || test ! -s conftest.err'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; } &&
21506          { ac_try='test -s conftest.$ac_objext'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; }; then
21512   ac_cv_type_mode_t=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517 ac_cv_type_mode_t=no
21518 fi
21519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520 fi
21521 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21522 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21523 if test $ac_cv_type_mode_t = yes; then
21524   :
21525 else
21526
21527 cat >>confdefs.h <<_ACEOF
21528 #define mode_t int
21529 _ACEOF
21530
21531 fi
21532
21533 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21534 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21535 if test "${ac_cv_type_uid_t+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 #include <sys/types.h>
21545
21546 _ACEOF
21547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21548   $EGREP "uid_t" >/dev/null 2>&1; then
21549   ac_cv_type_uid_t=yes
21550 else
21551   ac_cv_type_uid_t=no
21552 fi
21553 rm -f conftest*
21554
21555 fi
21556 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21557 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21558 if test $ac_cv_type_uid_t = no; then
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define uid_t int
21562 _ACEOF
21563
21564
21565 cat >>confdefs.h <<\_ACEOF
21566 #define gid_t int
21567 _ACEOF
21568
21569 fi
21570
21571 echo "$as_me:$LINENO: checking for size_t" >&5
21572 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21573 if test "${ac_cv_type_size_t+set}" = set; then
21574   echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21576   cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582 $ac_includes_default
21583 int
21584 main ()
21585 {
21586 if ((size_t *) 0)
21587   return 0;
21588 if (sizeof (size_t))
21589   return 0;
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21596   (eval $ac_compile) 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } &&
21603          { ac_try='test -z "$ac_c_werror_flag"
21604                          || test ! -s conftest.err'
21605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606   (eval $ac_try) 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); }; } &&
21610          { ac_try='test -s conftest.$ac_objext'
21611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612   (eval $ac_try) 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21616   ac_cv_type_size_t=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621 ac_cv_type_size_t=no
21622 fi
21623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21624 fi
21625 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21626 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21627 if test $ac_cv_type_size_t = yes; then
21628   :
21629 else
21630
21631 cat >>confdefs.h <<_ACEOF
21632 #define size_t unsigned
21633 _ACEOF
21634
21635 fi
21636
21637 echo "$as_me:$LINENO: checking for pid_t" >&5
21638 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21639 if test "${ac_cv_type_pid_t+set}" = set; then
21640   echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642   cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 $ac_includes_default
21649 int
21650 main ()
21651 {
21652 if ((pid_t *) 0)
21653   return 0;
21654 if (sizeof (pid_t))
21655   return 0;
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21662   (eval $ac_compile) 2>conftest.er1
21663   ac_status=$?
21664   grep -v '^ *+' conftest.er1 >conftest.err
21665   rm -f conftest.er1
21666   cat conftest.err >&5
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } &&
21669          { ac_try='test -z "$ac_c_werror_flag"
21670                          || test ! -s conftest.err'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; } &&
21676          { ac_try='test -s conftest.$ac_objext'
21677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678   (eval $ac_try) 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); }; }; then
21682   ac_cv_type_pid_t=yes
21683 else
21684   echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ac_cv_type_pid_t=no
21688 fi
21689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21690 fi
21691 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21692 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21693 if test $ac_cv_type_pid_t = yes; then
21694   :
21695 else
21696
21697 cat >>confdefs.h <<_ACEOF
21698 #define pid_t int
21699 _ACEOF
21700
21701 fi
21702
21703 echo "$as_me:$LINENO: checking for off_t" >&5
21704 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21705 if test "${ac_cv_type_off_t+set}" = set; then
21706   echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708   cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 $ac_includes_default
21715 int
21716 main ()
21717 {
21718 if ((off_t *) 0)
21719   return 0;
21720 if (sizeof (off_t))
21721   return 0;
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21728   (eval $ac_compile) 2>conftest.er1
21729   ac_status=$?
21730   grep -v '^ *+' conftest.er1 >conftest.err
21731   rm -f conftest.er1
21732   cat conftest.err >&5
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } &&
21735          { ac_try='test -z "$ac_c_werror_flag"
21736                          || test ! -s conftest.err'
21737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738   (eval $ac_try) 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; } &&
21742          { ac_try='test -s conftest.$ac_objext'
21743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744   (eval $ac_try) 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   ac_cv_type_off_t=yes
21749 else
21750   echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ac_cv_type_off_t=no
21754 fi
21755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21756 fi
21757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21759 if test $ac_cv_type_off_t = yes; then
21760   :
21761 else
21762
21763 cat >>confdefs.h <<_ACEOF
21764 #define off_t long
21765 _ACEOF
21766
21767 fi
21768
21769 echo "$as_me:$LINENO: checking for ino_t" >&5
21770 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21771 if test "${ac_cv_type_ino_t+set}" = set; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 $ac_includes_default
21781 int
21782 main ()
21783 {
21784 if ((ino_t *) 0)
21785   return 0;
21786 if (sizeof (ino_t))
21787   return 0;
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21794   (eval $ac_compile) 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } &&
21801          { ac_try='test -z "$ac_c_werror_flag"
21802                          || test ! -s conftest.err'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; } &&
21808          { ac_try='test -s conftest.$ac_objext'
21809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810   (eval $ac_try) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; }; then
21814   ac_cv_type_ino_t=yes
21815 else
21816   echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 ac_cv_type_ino_t=no
21820 fi
21821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21822 fi
21823 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21824 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21825 if test $ac_cv_type_ino_t = yes; then
21826   :
21827 else
21828
21829 cat >>confdefs.h <<_ACEOF
21830 #define ino_t unsigned long
21831 _ACEOF
21832
21833 fi
21834
21835 echo "$as_me:$LINENO: checking for dev_t" >&5
21836 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21837 if test "${ac_cv_type_dev_t+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846 $ac_includes_default
21847 int
21848 main ()
21849 {
21850 if ((dev_t *) 0)
21851   return 0;
21852 if (sizeof (dev_t))
21853   return 0;
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext
21859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21860   (eval $ac_compile) 2>conftest.er1
21861   ac_status=$?
21862   grep -v '^ *+' conftest.er1 >conftest.err
21863   rm -f conftest.er1
21864   cat conftest.err >&5
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } &&
21867          { ac_try='test -z "$ac_c_werror_flag"
21868                          || test ! -s conftest.err'
21869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870   (eval $ac_try) 2>&5
21871   ac_status=$?
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); }; } &&
21874          { ac_try='test -s conftest.$ac_objext'
21875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876   (eval $ac_try) 2>&5
21877   ac_status=$?
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); }; }; then
21880   ac_cv_type_dev_t=yes
21881 else
21882   echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885 ac_cv_type_dev_t=no
21886 fi
21887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21888 fi
21889 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21890 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21891 if test $ac_cv_type_dev_t = yes; then
21892   :
21893 else
21894
21895 cat >>confdefs.h <<_ACEOF
21896 #define dev_t unsigned long
21897 _ACEOF
21898
21899 fi
21900
21901 echo "$as_me:$LINENO: checking for daddr_t" >&5
21902 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21903 if test "${ac_cv_type_daddr_t+set}" = set; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 $ac_includes_default
21913 int
21914 main ()
21915 {
21916 if ((daddr_t *) 0)
21917   return 0;
21918 if (sizeof (daddr_t))
21919   return 0;
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21926   (eval $ac_compile) 2>conftest.er1
21927   ac_status=$?
21928   grep -v '^ *+' conftest.er1 >conftest.err
21929   rm -f conftest.er1
21930   cat conftest.err >&5
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } &&
21933          { ac_try='test -z "$ac_c_werror_flag"
21934                          || test ! -s conftest.err'
21935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936   (eval $ac_try) 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; } &&
21940          { ac_try='test -s conftest.$ac_objext'
21941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942   (eval $ac_try) 2>&5
21943   ac_status=$?
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); }; }; then
21946   ac_cv_type_daddr_t=yes
21947 else
21948   echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951 ac_cv_type_daddr_t=no
21952 fi
21953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21954 fi
21955 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21956 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21957 if test $ac_cv_type_daddr_t = yes; then
21958   :
21959 else
21960
21961 cat >>confdefs.h <<_ACEOF
21962 #define daddr_t long
21963 _ACEOF
21964
21965 fi
21966
21967 echo "$as_me:$LINENO: checking for major_t" >&5
21968 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21969 if test "${ac_cv_type_major_t+set}" = set; then
21970   echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972   cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h.  */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h.  */
21978 $ac_includes_default
21979 int
21980 main ()
21981 {
21982 if ((major_t *) 0)
21983   return 0;
21984 if (sizeof (major_t))
21985   return 0;
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992   (eval $ac_compile) 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } &&
21999          { ac_try='test -z "$ac_c_werror_flag"
22000                          || test ! -s conftest.err'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; } &&
22006          { ac_try='test -s conftest.$ac_objext'
22007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008   (eval $ac_try) 2>&5
22009   ac_status=$?
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); }; }; then
22012   ac_cv_type_major_t=yes
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 ac_cv_type_major_t=no
22018 fi
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 fi
22021 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22022 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22023 if test $ac_cv_type_major_t = yes; then
22024   :
22025 else
22026
22027 cat >>confdefs.h <<_ACEOF
22028 #define major_t int
22029 _ACEOF
22030
22031 fi
22032
22033 echo "$as_me:$LINENO: checking for minor_t" >&5
22034 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22035 if test "${ac_cv_type_minor_t+set}" = set; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038   cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 $ac_includes_default
22045 int
22046 main ()
22047 {
22048 if ((minor_t *) 0)
22049   return 0;
22050 if (sizeof (minor_t))
22051   return 0;
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22058   (eval $ac_compile) 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } &&
22065          { ac_try='test -z "$ac_c_werror_flag"
22066                          || test ! -s conftest.err'
22067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068   (eval $ac_try) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; } &&
22072          { ac_try='test -s conftest.$ac_objext'
22073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074   (eval $ac_try) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; }; then
22078   ac_cv_type_minor_t=yes
22079 else
22080   echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_cv_type_minor_t=no
22084 fi
22085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22086 fi
22087 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22088 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22089 if test $ac_cv_type_minor_t = yes; then
22090   :
22091 else
22092
22093 cat >>confdefs.h <<_ACEOF
22094 #define minor_t int
22095 _ACEOF
22096
22097 fi
22098
22099 echo "$as_me:$LINENO: checking for ssize_t" >&5
22100 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22101 if test "${ac_cv_type_ssize_t+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104   cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 $ac_includes_default
22111 int
22112 main ()
22113 {
22114 if ((ssize_t *) 0)
22115   return 0;
22116 if (sizeof (ssize_t))
22117   return 0;
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22124   (eval $ac_compile) 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -z "$ac_c_werror_flag"
22132                          || test ! -s conftest.err'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; } &&
22138          { ac_try='test -s conftest.$ac_objext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   ac_cv_type_ssize_t=yes
22145 else
22146   echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ac_cv_type_ssize_t=no
22150 fi
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22152 fi
22153 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22154 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22155 if test $ac_cv_type_ssize_t = yes; then
22156   :
22157 else
22158
22159 cat >>confdefs.h <<_ACEOF
22160 #define ssize_t int
22161 _ACEOF
22162
22163 fi
22164
22165 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22166 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22167 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22168   echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170   cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176 $ac_includes_default
22177 int
22178 main ()
22179 {
22180 static struct stat ac_aggr;
22181 if (ac_aggr.st_blocks)
22182 return 0;
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext
22188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22189   (eval $ac_compile) 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } &&
22196          { ac_try='test -z "$ac_c_werror_flag"
22197                          || test ! -s conftest.err'
22198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199   (eval $ac_try) 2>&5
22200   ac_status=$?
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); }; } &&
22203          { ac_try='test -s conftest.$ac_objext'
22204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205   (eval $ac_try) 2>&5
22206   ac_status=$?
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); }; }; then
22209   ac_cv_member_struct_stat_st_blocks=yes
22210 else
22211   echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h.  */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h.  */
22220 $ac_includes_default
22221 int
22222 main ()
22223 {
22224 static struct stat ac_aggr;
22225 if (sizeof ac_aggr.st_blocks)
22226 return 0;
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233   (eval $ac_compile) 2>conftest.er1
22234   ac_status=$?
22235   grep -v '^ *+' conftest.er1 >conftest.err
22236   rm -f conftest.er1
22237   cat conftest.err >&5
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } &&
22240          { ac_try='test -z "$ac_c_werror_flag"
22241                          || test ! -s conftest.err'
22242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243   (eval $ac_try) 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; } &&
22247          { ac_try='test -s conftest.$ac_objext'
22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249   (eval $ac_try) 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; }; then
22253   ac_cv_member_struct_stat_st_blocks=yes
22254 else
22255   echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258 ac_cv_member_struct_stat_st_blocks=no
22259 fi
22260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22261 fi
22262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22263 fi
22264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22265 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22266 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22267
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22270 _ACEOF
22271
22272
22273 cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_ST_BLOCKS 1
22275 _ACEOF
22276
22277 else
22278   case $LIBOBJS in
22279     "fileblocks.$ac_objext"   | \
22280   *" fileblocks.$ac_objext"   | \
22281     "fileblocks.$ac_objext "* | \
22282   *" fileblocks.$ac_objext "* ) ;;
22283   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22284 esac
22285
22286 fi
22287
22288
22289
22290 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22291 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22292 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295   cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 $ac_includes_default
22302 int
22303 main ()
22304 {
22305 static struct stat ac_aggr;
22306 if (ac_aggr.st_rdev)
22307 return 0;
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22314   (eval $ac_compile) 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } &&
22321          { ac_try='test -z "$ac_c_werror_flag"
22322                          || test ! -s conftest.err'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; } &&
22328          { ac_try='test -s conftest.$ac_objext'
22329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330   (eval $ac_try) 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); }; }; then
22334   ac_cv_member_struct_stat_st_rdev=yes
22335 else
22336   echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22338
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 $ac_includes_default
22346 int
22347 main ()
22348 {
22349 static struct stat ac_aggr;
22350 if (sizeof ac_aggr.st_rdev)
22351 return 0;
22352   ;
22353   return 0;
22354 }
22355 _ACEOF
22356 rm -f conftest.$ac_objext
22357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22358   (eval $ac_compile) 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } &&
22365          { ac_try='test -z "$ac_c_werror_flag"
22366                          || test ! -s conftest.err'
22367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368   (eval $ac_try) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; } &&
22372          { ac_try='test -s conftest.$ac_objext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_cv_member_struct_stat_st_rdev=yes
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383 ac_cv_member_struct_stat_st_rdev=no
22384 fi
22385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22388 fi
22389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22390 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22391 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22392
22393 cat >>confdefs.h <<_ACEOF
22394 #define HAVE_STRUCT_STAT_ST_RDEV 1
22395 _ACEOF
22396
22397
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_ST_RDEV 1
22400 _ACEOF
22401
22402 fi
22403
22404
22405 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22406 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22407 if test "${ac_cv_struct_tm+set}" = set; then
22408   echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22410   cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <sys/types.h>
22417 #include <time.h>
22418
22419 int
22420 main ()
22421 {
22422 struct tm *tp; tp->tm_sec;
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22429   (eval $ac_compile) 2>conftest.er1
22430   ac_status=$?
22431   grep -v '^ *+' conftest.er1 >conftest.err
22432   rm -f conftest.er1
22433   cat conftest.err >&5
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } &&
22436          { ac_try='test -z "$ac_c_werror_flag"
22437                          || test ! -s conftest.err'
22438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439   (eval $ac_try) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; } &&
22443          { ac_try='test -s conftest.$ac_objext'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; }; then
22449   ac_cv_struct_tm=time.h
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ac_cv_struct_tm=sys/time.h
22455 fi
22456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22457 fi
22458 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22459 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22460 if test $ac_cv_struct_tm = sys/time.h; then
22461
22462 cat >>confdefs.h <<\_ACEOF
22463 #define TM_IN_SYS_TIME 1
22464 _ACEOF
22465
22466 fi
22467
22468 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22469 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22470 if test "${ac_cv_c_const+set}" = set; then
22471   echo $ECHO_N "(cached) $ECHO_C" >&6
22472 else
22473   cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h.  */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h.  */
22479
22480 int
22481 main ()
22482 {
22483 /* FIXME: Include the comments suggested by Paul. */
22484 #ifndef __cplusplus
22485   /* Ultrix mips cc rejects this.  */
22486   typedef int charset[2];
22487   const charset x;
22488   /* SunOS 4.1.1 cc rejects this.  */
22489   char const *const *ccp;
22490   char **p;
22491   /* NEC SVR4.0.2 mips cc rejects this.  */
22492   struct point {int x, y;};
22493   static struct point const zero = {0,0};
22494   /* AIX XL C 1.02.0.0 rejects this.
22495      It does not let you subtract one const X* pointer from another in
22496      an arm of an if-expression whose if-part is not a constant
22497      expression */
22498   const char *g = "string";
22499   ccp = &g + (g ? g-g : 0);
22500   /* HPUX 7.0 cc rejects these. */
22501   ++ccp;
22502   p = (char**) ccp;
22503   ccp = (char const *const *) p;
22504   { /* SCO 3.2v4 cc rejects this.  */
22505     char *t;
22506     char const *s = 0 ? (char *) 0 : (char const *) 0;
22507
22508     *t++ = 0;
22509   }
22510   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22511     int x[] = {25, 17};
22512     const int *foo = &x[0];
22513     ++foo;
22514   }
22515   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22516     typedef const int *iptr;
22517     iptr p = 0;
22518     ++p;
22519   }
22520   { /* AIX XL C 1.02.0.0 rejects this saying
22521        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22522     struct s { int j; const int *ap[3]; };
22523     struct s *b; b->j = 5;
22524   }
22525   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22526     const int foo = 10;
22527   }
22528 #endif
22529
22530   ;
22531   return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest.$ac_objext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22536   (eval $ac_compile) 2>conftest.er1
22537   ac_status=$?
22538   grep -v '^ *+' conftest.er1 >conftest.err
22539   rm -f conftest.er1
22540   cat conftest.err >&5
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } &&
22543          { ac_try='test -z "$ac_c_werror_flag"
22544                          || test ! -s conftest.err'
22545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546   (eval $ac_try) 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; } &&
22550          { ac_try='test -s conftest.$ac_objext'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; }; then
22556   ac_cv_c_const=yes
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 ac_cv_c_const=no
22562 fi
22563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22564 fi
22565 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22566 echo "${ECHO_T}$ac_cv_c_const" >&6
22567 if test $ac_cv_c_const = no; then
22568
22569 cat >>confdefs.h <<\_ACEOF
22570 #define const
22571 _ACEOF
22572
22573 fi
22574
22575
22576
22577 echo "$as_me:$LINENO: checking for char" >&5
22578 echo $ECHO_N "checking for char... $ECHO_C" >&6
22579 if test "${ac_cv_type_char+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 $ac_includes_default
22589 int
22590 main ()
22591 {
22592 if ((char *) 0)
22593   return 0;
22594 if (sizeof (char))
22595   return 0;
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602   (eval $ac_compile) 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } &&
22609          { ac_try='test -z "$ac_c_werror_flag"
22610                          || test ! -s conftest.err'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; } &&
22616          { ac_try='test -s conftest.$ac_objext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_cv_type_char=yes
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ac_cv_type_char=no
22628 fi
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22630 fi
22631 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22632 echo "${ECHO_T}$ac_cv_type_char" >&6
22633
22634 echo "$as_me:$LINENO: checking size of char" >&5
22635 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22636 if test "${ac_cv_sizeof_char+set}" = set; then
22637   echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639   if test "$ac_cv_type_char" = yes; then
22640   # The cast to unsigned long works around a bug in the HP C Compiler
22641   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22642   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22643   # This bug is HP SR number 8606223364.
22644   if test "$cross_compiling" = yes; then
22645   # Depending upon the size, compute the lo and hi bounds.
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h.  */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h.  */
22652 $ac_includes_default
22653 int
22654 main ()
22655 {
22656 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22657 test_array [0] = 0
22658
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665   (eval $ac_compile) 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -z "$ac_c_werror_flag"
22673                          || test ! -s conftest.err'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; } &&
22679          { ac_try='test -s conftest.$ac_objext'
22680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681   (eval $ac_try) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ac_lo=0 ac_mid=0
22686   while :; do
22687     cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h.  */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h.  */
22693 $ac_includes_default
22694 int
22695 main ()
22696 {
22697 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22698 test_array [0] = 0
22699
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 rm -f conftest.$ac_objext
22705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22706   (eval $ac_compile) 2>conftest.er1
22707   ac_status=$?
22708   grep -v '^ *+' conftest.er1 >conftest.err
22709   rm -f conftest.er1
22710   cat conftest.err >&5
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); } &&
22713          { ac_try='test -z "$ac_c_werror_flag"
22714                          || test ! -s conftest.err'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; } &&
22720          { ac_try='test -s conftest.$ac_objext'
22721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722   (eval $ac_try) 2>&5
22723   ac_status=$?
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); }; }; then
22726   ac_hi=$ac_mid; break
22727 else
22728   echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ac_lo=`expr $ac_mid + 1`
22732                     if test $ac_lo -le $ac_mid; then
22733                       ac_lo= ac_hi=
22734                       break
22735                     fi
22736                     ac_mid=`expr 2 '*' $ac_mid + 1`
22737 fi
22738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22739   done
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h.  */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h.  */
22750 $ac_includes_default
22751 int
22752 main ()
22753 {
22754 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22755 test_array [0] = 0
22756
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext
22762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22763   (eval $ac_compile) 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } &&
22770          { ac_try='test -z "$ac_c_werror_flag"
22771                          || test ! -s conftest.err'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; } &&
22777          { ac_try='test -s conftest.$ac_objext'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; }; then
22783   ac_hi=-1 ac_mid=-1
22784   while :; do
22785     cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h.  */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h.  */
22791 $ac_includes_default
22792 int
22793 main ()
22794 {
22795 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22796 test_array [0] = 0
22797
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22804   (eval $ac_compile) 2>conftest.er1
22805   ac_status=$?
22806   grep -v '^ *+' conftest.er1 >conftest.err
22807   rm -f conftest.er1
22808   cat conftest.err >&5
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); } &&
22811          { ac_try='test -z "$ac_c_werror_flag"
22812                          || test ! -s conftest.err'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; } &&
22818          { ac_try='test -s conftest.$ac_objext'
22819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820   (eval $ac_try) 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   ac_lo=$ac_mid; break
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 ac_hi=`expr '(' $ac_mid ')' - 1`
22830                        if test $ac_mid -le $ac_hi; then
22831                          ac_lo= ac_hi=
22832                          break
22833                        fi
22834                        ac_mid=`expr 2 '*' $ac_mid`
22835 fi
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837   done
22838 else
22839   echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842 ac_lo= ac_hi=
22843 fi
22844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845 fi
22846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 # Binary search between lo and hi bounds.
22848 while test "x$ac_lo" != "x$ac_hi"; do
22849   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 $ac_includes_default
22857 int
22858 main ()
22859 {
22860 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22861 test_array [0] = 0
22862
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext
22868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22869   (eval $ac_compile) 2>conftest.er1
22870   ac_status=$?
22871   grep -v '^ *+' conftest.er1 >conftest.err
22872   rm -f conftest.er1
22873   cat conftest.err >&5
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); } &&
22876          { ac_try='test -z "$ac_c_werror_flag"
22877                          || test ! -s conftest.err'
22878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879   (eval $ac_try) 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); }; } &&
22883          { ac_try='test -s conftest.$ac_objext'
22884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; }; then
22889   ac_hi=$ac_mid
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 ac_lo=`expr '(' $ac_mid ')' + 1`
22895 fi
22896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22897 done
22898 case $ac_lo in
22899 ?*) ac_cv_sizeof_char=$ac_lo;;
22900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22901 See \`config.log' for more details." >&5
22902 echo "$as_me: error: cannot compute sizeof (char), 77
22903 See \`config.log' for more details." >&2;}
22904    { (exit 1); exit 1; }; } ;;
22905 esac
22906 else
22907   if test "$cross_compiling" = yes; then
22908   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22909 See \`config.log' for more details." >&5
22910 echo "$as_me: error: cannot run test program while cross compiling
22911 See \`config.log' for more details." >&2;}
22912    { (exit 1); exit 1; }; }
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 $ac_includes_default
22921 long longval () { return (long) (sizeof (char)); }
22922 unsigned long ulongval () { return (long) (sizeof (char)); }
22923 #include <stdio.h>
22924 #include <stdlib.h>
22925 int
22926 main ()
22927 {
22928
22929   FILE *f = fopen ("conftest.val", "w");
22930   if (! f)
22931     exit (1);
22932   if (((long) (sizeof (char))) < 0)
22933     {
22934       long i = longval ();
22935       if (i != ((long) (sizeof (char))))
22936         exit (1);
22937       fprintf (f, "%ld\n", i);
22938     }
22939   else
22940     {
22941       unsigned long i = ulongval ();
22942       if (i != ((long) (sizeof (char))))
22943         exit (1);
22944       fprintf (f, "%lu\n", i);
22945     }
22946   exit (ferror (f) || fclose (f) != 0);
22947
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 rm -f conftest$ac_exeext
22953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22954   (eval $ac_link) 2>&5
22955   ac_status=$?
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959   (eval $ac_try) 2>&5
22960   ac_status=$?
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); }; }; then
22963   ac_cv_sizeof_char=`cat conftest.val`
22964 else
22965   echo "$as_me: program exited with status $ac_status" >&5
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22968
22969 ( exit $ac_status )
22970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22971 See \`config.log' for more details." >&5
22972 echo "$as_me: error: cannot compute sizeof (char), 77
22973 See \`config.log' for more details." >&2;}
22974    { (exit 1); exit 1; }; }
22975 fi
22976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22977 fi
22978 fi
22979 rm -f conftest.val
22980 else
22981   ac_cv_sizeof_char=0
22982 fi
22983 fi
22984 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22985 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22986 cat >>confdefs.h <<_ACEOF
22987 #define SIZEOF_CHAR $ac_cv_sizeof_char
22988 _ACEOF
22989
22990
22991 echo "$as_me:$LINENO: checking for short int" >&5
22992 echo $ECHO_N "checking for short int... $ECHO_C" >&6
22993 if test "${ac_cv_type_short_int+set}" = set; then
22994   echo $ECHO_N "(cached) $ECHO_C" >&6
22995 else
22996   cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h.  */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h.  */
23002 $ac_includes_default
23003 int
23004 main ()
23005 {
23006 if ((short int *) 0)
23007   return 0;
23008 if (sizeof (short int))
23009   return 0;
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 rm -f conftest.$ac_objext
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016   (eval $ac_compile) 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } &&
23023          { ac_try='test -z "$ac_c_werror_flag"
23024                          || test ! -s conftest.err'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; } &&
23030          { ac_try='test -s conftest.$ac_objext'
23031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032   (eval $ac_try) 2>&5
23033   ac_status=$?
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); }; }; then
23036   ac_cv_type_short_int=yes
23037 else
23038   echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_cv_type_short_int=no
23042 fi
23043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23044 fi
23045 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23046 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23047
23048 echo "$as_me:$LINENO: checking size of short int" >&5
23049 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23050 if test "${ac_cv_sizeof_short_int+set}" = set; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053   if test "$ac_cv_type_short_int" = yes; then
23054   # The cast to unsigned long works around a bug in the HP C Compiler
23055   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23056   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23057   # This bug is HP SR number 8606223364.
23058   if test "$cross_compiling" = yes; then
23059   # Depending upon the size, compute the lo and hi bounds.
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 $ac_includes_default
23067 int
23068 main ()
23069 {
23070 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23071 test_array [0] = 0
23072
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23079   (eval $ac_compile) 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } &&
23086          { ac_try='test -z "$ac_c_werror_flag"
23087                          || test ! -s conftest.err'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; } &&
23093          { ac_try='test -s conftest.$ac_objext'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; }; then
23099   ac_lo=0 ac_mid=0
23100   while :; do
23101     cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h.  */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h.  */
23107 $ac_includes_default
23108 int
23109 main ()
23110 {
23111 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23112 test_array [0] = 0
23113
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120   (eval $ac_compile) 2>conftest.er1
23121   ac_status=$?
23122   grep -v '^ *+' conftest.er1 >conftest.err
23123   rm -f conftest.er1
23124   cat conftest.err >&5
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } &&
23127          { ac_try='test -z "$ac_c_werror_flag"
23128                          || test ! -s conftest.err'
23129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130   (eval $ac_try) 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; } &&
23134          { ac_try='test -s conftest.$ac_objext'
23135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136   (eval $ac_try) 2>&5
23137   ac_status=$?
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); }; }; then
23140   ac_hi=$ac_mid; break
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145 ac_lo=`expr $ac_mid + 1`
23146                     if test $ac_lo -le $ac_mid; then
23147                       ac_lo= ac_hi=
23148                       break
23149                     fi
23150                     ac_mid=`expr 2 '*' $ac_mid + 1`
23151 fi
23152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23153   done
23154 else
23155   echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158 cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h.  */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h.  */
23164 $ac_includes_default
23165 int
23166 main ()
23167 {
23168 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23169 test_array [0] = 0
23170
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23177   (eval $ac_compile) 2>conftest.er1
23178   ac_status=$?
23179   grep -v '^ *+' conftest.er1 >conftest.err
23180   rm -f conftest.er1
23181   cat conftest.err >&5
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } &&
23184          { ac_try='test -z "$ac_c_werror_flag"
23185                          || test ! -s conftest.err'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; } &&
23191          { ac_try='test -s conftest.$ac_objext'
23192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193   (eval $ac_try) 2>&5
23194   ac_status=$?
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); }; }; then
23197   ac_hi=-1 ac_mid=-1
23198   while :; do
23199     cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 $ac_includes_default
23206 int
23207 main ()
23208 {
23209 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23210 test_array [0] = 0
23211
23212   ;
23213   return 0;
23214 }
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23218   (eval $ac_compile) 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } &&
23225          { ac_try='test -z "$ac_c_werror_flag"
23226                          || test ! -s conftest.err'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; } &&
23232          { ac_try='test -s conftest.$ac_objext'
23233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234   (eval $ac_try) 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); }; }; then
23238   ac_lo=$ac_mid; break
23239 else
23240   echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 ac_hi=`expr '(' $ac_mid ')' - 1`
23244                        if test $ac_mid -le $ac_hi; then
23245                          ac_lo= ac_hi=
23246                          break
23247                        fi
23248                        ac_mid=`expr 2 '*' $ac_mid`
23249 fi
23250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23251   done
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 ac_lo= ac_hi=
23257 fi
23258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23259 fi
23260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23261 # Binary search between lo and hi bounds.
23262 while test "x$ac_lo" != "x$ac_hi"; do
23263   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23264   cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270 $ac_includes_default
23271 int
23272 main ()
23273 {
23274 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23275 test_array [0] = 0
23276
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23283   (eval $ac_compile) 2>conftest.er1
23284   ac_status=$?
23285   grep -v '^ *+' conftest.er1 >conftest.err
23286   rm -f conftest.er1
23287   cat conftest.err >&5
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -z "$ac_c_werror_flag"
23291                          || test ! -s conftest.err'
23292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293   (eval $ac_try) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); }; } &&
23297          { ac_try='test -s conftest.$ac_objext'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; }; then
23303   ac_hi=$ac_mid
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ac_lo=`expr '(' $ac_mid ')' + 1`
23309 fi
23310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23311 done
23312 case $ac_lo in
23313 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23314 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23315 See \`config.log' for more details." >&5
23316 echo "$as_me: error: cannot compute sizeof (short int), 77
23317 See \`config.log' for more details." >&2;}
23318    { (exit 1); exit 1; }; } ;;
23319 esac
23320 else
23321   if test "$cross_compiling" = yes; then
23322   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23323 See \`config.log' for more details." >&5
23324 echo "$as_me: error: cannot run test program while cross compiling
23325 See \`config.log' for more details." >&2;}
23326    { (exit 1); exit 1; }; }
23327 else
23328   cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h.  */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h.  */
23334 $ac_includes_default
23335 long longval () { return (long) (sizeof (short int)); }
23336 unsigned long ulongval () { return (long) (sizeof (short int)); }
23337 #include <stdio.h>
23338 #include <stdlib.h>
23339 int
23340 main ()
23341 {
23342
23343   FILE *f = fopen ("conftest.val", "w");
23344   if (! f)
23345     exit (1);
23346   if (((long) (sizeof (short int))) < 0)
23347     {
23348       long i = longval ();
23349       if (i != ((long) (sizeof (short int))))
23350         exit (1);
23351       fprintf (f, "%ld\n", i);
23352     }
23353   else
23354     {
23355       unsigned long i = ulongval ();
23356       if (i != ((long) (sizeof (short int))))
23357         exit (1);
23358       fprintf (f, "%lu\n", i);
23359     }
23360   exit (ferror (f) || fclose (f) != 0);
23361
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest$ac_exeext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23368   (eval $ac_link) 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373   (eval $ac_try) 2>&5
23374   ac_status=$?
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); }; }; then
23377   ac_cv_sizeof_short_int=`cat conftest.val`
23378 else
23379   echo "$as_me: program exited with status $ac_status" >&5
23380 echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23382
23383 ( exit $ac_status )
23384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute sizeof (short int), 77
23387 See \`config.log' for more details." >&2;}
23388    { (exit 1); exit 1; }; }
23389 fi
23390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23391 fi
23392 fi
23393 rm -f conftest.val
23394 else
23395   ac_cv_sizeof_short_int=0
23396 fi
23397 fi
23398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23399 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23400 cat >>confdefs.h <<_ACEOF
23401 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23402 _ACEOF
23403
23404
23405 echo "$as_me:$LINENO: checking for int" >&5
23406 echo $ECHO_N "checking for int... $ECHO_C" >&6
23407 if test "${ac_cv_type_int+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 $ac_includes_default
23417 int
23418 main ()
23419 {
23420 if ((int *) 0)
23421   return 0;
23422 if (sizeof (int))
23423   return 0;
23424   ;
23425   return 0;
23426 }
23427 _ACEOF
23428 rm -f conftest.$ac_objext
23429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23430   (eval $ac_compile) 2>conftest.er1
23431   ac_status=$?
23432   grep -v '^ *+' conftest.er1 >conftest.err
23433   rm -f conftest.er1
23434   cat conftest.err >&5
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); } &&
23437          { ac_try='test -z "$ac_c_werror_flag"
23438                          || test ! -s conftest.err'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; } &&
23444          { ac_try='test -s conftest.$ac_objext'
23445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446   (eval $ac_try) 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; }; then
23450   ac_cv_type_int=yes
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 ac_cv_type_int=no
23456 fi
23457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23458 fi
23459 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23460 echo "${ECHO_T}$ac_cv_type_int" >&6
23461
23462 echo "$as_me:$LINENO: checking size of int" >&5
23463 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23464 if test "${ac_cv_sizeof_int+set}" = set; then
23465   echo $ECHO_N "(cached) $ECHO_C" >&6
23466 else
23467   if test "$ac_cv_type_int" = yes; then
23468   # The cast to unsigned long works around a bug in the HP C Compiler
23469   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23470   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23471   # This bug is HP SR number 8606223364.
23472   if test "$cross_compiling" = yes; then
23473   # Depending upon the size, compute the lo and hi bounds.
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h.  */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h.  */
23480 $ac_includes_default
23481 int
23482 main ()
23483 {
23484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23485 test_array [0] = 0
23486
23487   ;
23488   return 0;
23489 }
23490 _ACEOF
23491 rm -f conftest.$ac_objext
23492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23493   (eval $ac_compile) 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } &&
23500          { ac_try='test -z "$ac_c_werror_flag"
23501                          || test ! -s conftest.err'
23502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503   (eval $ac_try) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); }; } &&
23507          { ac_try='test -s conftest.$ac_objext'
23508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509   (eval $ac_try) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); }; }; then
23513   ac_lo=0 ac_mid=0
23514   while :; do
23515     cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h.  */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h.  */
23521 $ac_includes_default
23522 int
23523 main ()
23524 {
23525 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23526 test_array [0] = 0
23527
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534   (eval $ac_compile) 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } &&
23541          { ac_try='test -z "$ac_c_werror_flag"
23542                          || test ! -s conftest.err'
23543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544   (eval $ac_try) 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; } &&
23548          { ac_try='test -s conftest.$ac_objext'
23549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550   (eval $ac_try) 2>&5
23551   ac_status=$?
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); }; }; then
23554   ac_hi=$ac_mid; break
23555 else
23556   echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559 ac_lo=`expr $ac_mid + 1`
23560                     if test $ac_lo -le $ac_mid; then
23561                       ac_lo= ac_hi=
23562                       break
23563                     fi
23564                     ac_mid=`expr 2 '*' $ac_mid + 1`
23565 fi
23566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23567   done
23568 else
23569   echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578 $ac_includes_default
23579 int
23580 main ()
23581 {
23582 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23583 test_array [0] = 0
23584
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23591   (eval $ac_compile) 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } &&
23598          { ac_try='test -z "$ac_c_werror_flag"
23599                          || test ! -s conftest.err'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; } &&
23605          { ac_try='test -s conftest.$ac_objext'
23606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607   (eval $ac_try) 2>&5
23608   ac_status=$?
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); }; }; then
23611   ac_hi=-1 ac_mid=-1
23612   while :; do
23613     cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 $ac_includes_default
23620 int
23621 main ()
23622 {
23623 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23624 test_array [0] = 0
23625
23626   ;
23627   return 0;
23628 }
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23632   (eval $ac_compile) 2>conftest.er1
23633   ac_status=$?
23634   grep -v '^ *+' conftest.er1 >conftest.err
23635   rm -f conftest.er1
23636   cat conftest.err >&5
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); } &&
23639          { ac_try='test -z "$ac_c_werror_flag"
23640                          || test ! -s conftest.err'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; } &&
23646          { ac_try='test -s conftest.$ac_objext'
23647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648   (eval $ac_try) 2>&5
23649   ac_status=$?
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); }; }; then
23652   ac_lo=$ac_mid; break
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ac_hi=`expr '(' $ac_mid ')' - 1`
23658                        if test $ac_mid -le $ac_hi; then
23659                          ac_lo= ac_hi=
23660                          break
23661                        fi
23662                        ac_mid=`expr 2 '*' $ac_mid`
23663 fi
23664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23665   done
23666 else
23667   echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23669
23670 ac_lo= ac_hi=
23671 fi
23672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23673 fi
23674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23675 # Binary search between lo and hi bounds.
23676 while test "x$ac_lo" != "x$ac_hi"; do
23677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23678   cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684 $ac_includes_default
23685 int
23686 main ()
23687 {
23688 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23689 test_array [0] = 0
23690
23691   ;
23692   return 0;
23693 }
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23697   (eval $ac_compile) 2>conftest.er1
23698   ac_status=$?
23699   grep -v '^ *+' conftest.er1 >conftest.err
23700   rm -f conftest.er1
23701   cat conftest.err >&5
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); } &&
23704          { ac_try='test -z "$ac_c_werror_flag"
23705                          || test ! -s conftest.err'
23706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707   (eval $ac_try) 2>&5
23708   ac_status=$?
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); }; } &&
23711          { ac_try='test -s conftest.$ac_objext'
23712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713   (eval $ac_try) 2>&5
23714   ac_status=$?
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); }; }; then
23717   ac_hi=$ac_mid
23718 else
23719   echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23721
23722 ac_lo=`expr '(' $ac_mid ')' + 1`
23723 fi
23724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23725 done
23726 case $ac_lo in
23727 ?*) ac_cv_sizeof_int=$ac_lo;;
23728 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23729 See \`config.log' for more details." >&5
23730 echo "$as_me: error: cannot compute sizeof (int), 77
23731 See \`config.log' for more details." >&2;}
23732    { (exit 1); exit 1; }; } ;;
23733 esac
23734 else
23735   if test "$cross_compiling" = yes; then
23736   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23737 See \`config.log' for more details." >&5
23738 echo "$as_me: error: cannot run test program while cross compiling
23739 See \`config.log' for more details." >&2;}
23740    { (exit 1); exit 1; }; }
23741 else
23742   cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h.  */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h.  */
23748 $ac_includes_default
23749 long longval () { return (long) (sizeof (int)); }
23750 unsigned long ulongval () { return (long) (sizeof (int)); }
23751 #include <stdio.h>
23752 #include <stdlib.h>
23753 int
23754 main ()
23755 {
23756
23757   FILE *f = fopen ("conftest.val", "w");
23758   if (! f)
23759     exit (1);
23760   if (((long) (sizeof (int))) < 0)
23761     {
23762       long i = longval ();
23763       if (i != ((long) (sizeof (int))))
23764         exit (1);
23765       fprintf (f, "%ld\n", i);
23766     }
23767   else
23768     {
23769       unsigned long i = ulongval ();
23770       if (i != ((long) (sizeof (int))))
23771         exit (1);
23772       fprintf (f, "%lu\n", i);
23773     }
23774   exit (ferror (f) || fclose (f) != 0);
23775
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782   (eval $ac_link) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ac_cv_sizeof_int=`cat conftest.val`
23792 else
23793   echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ( exit $ac_status )
23798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23799 See \`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (int), 77
23801 See \`config.log' for more details." >&2;}
23802    { (exit 1); exit 1; }; }
23803 fi
23804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23805 fi
23806 fi
23807 rm -f conftest.val
23808 else
23809   ac_cv_sizeof_int=0
23810 fi
23811 fi
23812 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23813 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23814 cat >>confdefs.h <<_ACEOF
23815 #define SIZEOF_INT $ac_cv_sizeof_int
23816 _ACEOF
23817
23818
23819 echo "$as_me:$LINENO: checking for long int" >&5
23820 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23821 if test "${ac_cv_type_long_int+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824   cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h.  */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h.  */
23830 $ac_includes_default
23831 int
23832 main ()
23833 {
23834 if ((long int *) 0)
23835   return 0;
23836 if (sizeof (long int))
23837   return 0;
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23844   (eval $ac_compile) 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } &&
23851          { ac_try='test -z "$ac_c_werror_flag"
23852                          || test ! -s conftest.err'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; } &&
23858          { ac_try='test -s conftest.$ac_objext'
23859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860   (eval $ac_try) 2>&5
23861   ac_status=$?
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); }; }; then
23864   ac_cv_type_long_int=yes
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869 ac_cv_type_long_int=no
23870 fi
23871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23872 fi
23873 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23874 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23875
23876 echo "$as_me:$LINENO: checking size of long int" >&5
23877 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23878 if test "${ac_cv_sizeof_long_int+set}" = set; then
23879   echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881   if test "$ac_cv_type_long_int" = yes; then
23882   # The cast to unsigned long works around a bug in the HP C Compiler
23883   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23884   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23885   # This bug is HP SR number 8606223364.
23886   if test "$cross_compiling" = yes; then
23887   # Depending upon the size, compute the lo and hi bounds.
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895 int
23896 main ()
23897 {
23898 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23899 test_array [0] = 0
23900
23901   ;
23902   return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest.$ac_objext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907   (eval $ac_compile) 2>conftest.er1
23908   ac_status=$?
23909   grep -v '^ *+' conftest.er1 >conftest.err
23910   rm -f conftest.er1
23911   cat conftest.err >&5
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); } &&
23914          { ac_try='test -z "$ac_c_werror_flag"
23915                          || test ! -s conftest.err'
23916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917   (eval $ac_try) 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; } &&
23921          { ac_try='test -s conftest.$ac_objext'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927   ac_lo=0 ac_mid=0
23928   while :; do
23929     cat >conftest.$ac_ext <<_ACEOF
23930 /* confdefs.h.  */
23931 _ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h.  */
23935 $ac_includes_default
23936 int
23937 main ()
23938 {
23939 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23940 test_array [0] = 0
23941
23942   ;
23943   return 0;
23944 }
23945 _ACEOF
23946 rm -f conftest.$ac_objext
23947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23948   (eval $ac_compile) 2>conftest.er1
23949   ac_status=$?
23950   grep -v '^ *+' conftest.er1 >conftest.err
23951   rm -f conftest.er1
23952   cat conftest.err >&5
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } &&
23955          { ac_try='test -z "$ac_c_werror_flag"
23956                          || test ! -s conftest.err'
23957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); }; } &&
23962          { ac_try='test -s conftest.$ac_objext'
23963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964   (eval $ac_try) 2>&5
23965   ac_status=$?
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; }; then
23968   ac_hi=$ac_mid; break
23969 else
23970   echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23972
23973 ac_lo=`expr $ac_mid + 1`
23974                     if test $ac_lo -le $ac_mid; then
23975                       ac_lo= ac_hi=
23976                       break
23977                     fi
23978                     ac_mid=`expr 2 '*' $ac_mid + 1`
23979 fi
23980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23981   done
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h.  */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h.  */
23992 $ac_includes_default
23993 int
23994 main ()
23995 {
23996 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
23997 test_array [0] = 0
23998
23999   ;
24000   return 0;
24001 }
24002 _ACEOF
24003 rm -f conftest.$ac_objext
24004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24005   (eval $ac_compile) 2>conftest.er1
24006   ac_status=$?
24007   grep -v '^ *+' conftest.er1 >conftest.err
24008   rm -f conftest.er1
24009   cat conftest.err >&5
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); } &&
24012          { ac_try='test -z "$ac_c_werror_flag"
24013                          || test ! -s conftest.err'
24014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015   (eval $ac_try) 2>&5
24016   ac_status=$?
24017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018   (exit $ac_status); }; } &&
24019          { ac_try='test -s conftest.$ac_objext'
24020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021   (eval $ac_try) 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); }; }; then
24025   ac_hi=-1 ac_mid=-1
24026   while :; do
24027     cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h.  */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h.  */
24033 $ac_includes_default
24034 int
24035 main ()
24036 {
24037 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24038 test_array [0] = 0
24039
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 rm -f conftest.$ac_objext
24045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24046   (eval $ac_compile) 2>conftest.er1
24047   ac_status=$?
24048   grep -v '^ *+' conftest.er1 >conftest.err
24049   rm -f conftest.er1
24050   cat conftest.err >&5
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } &&
24053          { ac_try='test -z "$ac_c_werror_flag"
24054                          || test ! -s conftest.err'
24055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); }; } &&
24060          { ac_try='test -s conftest.$ac_objext'
24061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062   (eval $ac_try) 2>&5
24063   ac_status=$?
24064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065   (exit $ac_status); }; }; then
24066   ac_lo=$ac_mid; break
24067 else
24068   echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24070
24071 ac_hi=`expr '(' $ac_mid ')' - 1`
24072                        if test $ac_mid -le $ac_hi; then
24073                          ac_lo= ac_hi=
24074                          break
24075                        fi
24076                        ac_mid=`expr 2 '*' $ac_mid`
24077 fi
24078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24079   done
24080 else
24081   echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24083
24084 ac_lo= ac_hi=
24085 fi
24086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24087 fi
24088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24089 # Binary search between lo and hi bounds.
24090 while test "x$ac_lo" != "x$ac_hi"; do
24091   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24092   cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099 int
24100 main ()
24101 {
24102 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24103 test_array [0] = 0
24104
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext
24110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24111   (eval $ac_compile) 2>conftest.er1
24112   ac_status=$?
24113   grep -v '^ *+' conftest.er1 >conftest.err
24114   rm -f conftest.er1
24115   cat conftest.err >&5
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); } &&
24118          { ac_try='test -z "$ac_c_werror_flag"
24119                          || test ! -s conftest.err'
24120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121   (eval $ac_try) 2>&5
24122   ac_status=$?
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); }; } &&
24125          { ac_try='test -s conftest.$ac_objext'
24126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); }; }; then
24131   ac_hi=$ac_mid
24132 else
24133   echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24135
24136 ac_lo=`expr '(' $ac_mid ')' + 1`
24137 fi
24138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24139 done
24140 case $ac_lo in
24141 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24142 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24143 See \`config.log' for more details." >&5
24144 echo "$as_me: error: cannot compute sizeof (long int), 77
24145 See \`config.log' for more details." >&2;}
24146    { (exit 1); exit 1; }; } ;;
24147 esac
24148 else
24149   if test "$cross_compiling" = yes; then
24150   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24151 See \`config.log' for more details." >&5
24152 echo "$as_me: error: cannot run test program while cross compiling
24153 See \`config.log' for more details." >&2;}
24154    { (exit 1); exit 1; }; }
24155 else
24156   cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h.  */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h.  */
24162 $ac_includes_default
24163 long longval () { return (long) (sizeof (long int)); }
24164 unsigned long ulongval () { return (long) (sizeof (long int)); }
24165 #include <stdio.h>
24166 #include <stdlib.h>
24167 int
24168 main ()
24169 {
24170
24171   FILE *f = fopen ("conftest.val", "w");
24172   if (! f)
24173     exit (1);
24174   if (((long) (sizeof (long int))) < 0)
24175     {
24176       long i = longval ();
24177       if (i != ((long) (sizeof (long int))))
24178         exit (1);
24179       fprintf (f, "%ld\n", i);
24180     }
24181   else
24182     {
24183       unsigned long i = ulongval ();
24184       if (i != ((long) (sizeof (long int))))
24185         exit (1);
24186       fprintf (f, "%lu\n", i);
24187     }
24188   exit (ferror (f) || fclose (f) != 0);
24189
24190   ;
24191   return 0;
24192 }
24193 _ACEOF
24194 rm -f conftest$ac_exeext
24195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24196   (eval $ac_link) 2>&5
24197   ac_status=$?
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24201   (eval $ac_try) 2>&5
24202   ac_status=$?
24203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); }; }; then
24205   ac_cv_sizeof_long_int=`cat conftest.val`
24206 else
24207   echo "$as_me: program exited with status $ac_status" >&5
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211 ( exit $ac_status )
24212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24213 See \`config.log' for more details." >&5
24214 echo "$as_me: error: cannot compute sizeof (long int), 77
24215 See \`config.log' for more details." >&2;}
24216    { (exit 1); exit 1; }; }
24217 fi
24218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24219 fi
24220 fi
24221 rm -f conftest.val
24222 else
24223   ac_cv_sizeof_long_int=0
24224 fi
24225 fi
24226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24227 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24228 cat >>confdefs.h <<_ACEOF
24229 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24230 _ACEOF
24231
24232
24233 echo "$as_me:$LINENO: checking for long long int" >&5
24234 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24235 if test "${ac_cv_type_long_long_int+set}" = set; then
24236   echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238   cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244 $ac_includes_default
24245 int
24246 main ()
24247 {
24248 if ((long long int *) 0)
24249   return 0;
24250 if (sizeof (long long int))
24251   return 0;
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258   (eval $ac_compile) 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } &&
24265          { ac_try='test -z "$ac_c_werror_flag"
24266                          || test ! -s conftest.err'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; } &&
24272          { ac_try='test -s conftest.$ac_objext'
24273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); }; }; then
24278   ac_cv_type_long_long_int=yes
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 ac_cv_type_long_long_int=no
24284 fi
24285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24286 fi
24287 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24288 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24289
24290 echo "$as_me:$LINENO: checking size of long long int" >&5
24291 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24292 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24293   echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295   if test "$ac_cv_type_long_long_int" = yes; then
24296   # The cast to unsigned long works around a bug in the HP C Compiler
24297   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24298   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24299   # This bug is HP SR number 8606223364.
24300   if test "$cross_compiling" = yes; then
24301   # Depending upon the size, compute the lo and hi bounds.
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 $ac_includes_default
24309 int
24310 main ()
24311 {
24312 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24313 test_array [0] = 0
24314
24315   ;
24316   return 0;
24317 }
24318 _ACEOF
24319 rm -f conftest.$ac_objext
24320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24321   (eval $ac_compile) 2>conftest.er1
24322   ac_status=$?
24323   grep -v '^ *+' conftest.er1 >conftest.err
24324   rm -f conftest.er1
24325   cat conftest.err >&5
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } &&
24328          { ac_try='test -z "$ac_c_werror_flag"
24329                          || test ! -s conftest.err'
24330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331   (eval $ac_try) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); }; } &&
24335          { ac_try='test -s conftest.$ac_objext'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341   ac_lo=0 ac_mid=0
24342   while :; do
24343     cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 $ac_includes_default
24350 int
24351 main ()
24352 {
24353 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24354 test_array [0] = 0
24355
24356   ;
24357   return 0;
24358 }
24359 _ACEOF
24360 rm -f conftest.$ac_objext
24361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24362   (eval $ac_compile) 2>conftest.er1
24363   ac_status=$?
24364   grep -v '^ *+' conftest.er1 >conftest.err
24365   rm -f conftest.er1
24366   cat conftest.err >&5
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); } &&
24369          { ac_try='test -z "$ac_c_werror_flag"
24370                          || test ! -s conftest.err'
24371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372   (eval $ac_try) 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; } &&
24376          { ac_try='test -s conftest.$ac_objext'
24377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378   (eval $ac_try) 2>&5
24379   ac_status=$?
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); }; }; then
24382   ac_hi=$ac_mid; break
24383 else
24384   echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387 ac_lo=`expr $ac_mid + 1`
24388                     if test $ac_lo -le $ac_mid; then
24389                       ac_lo= ac_hi=
24390                       break
24391                     fi
24392                     ac_mid=`expr 2 '*' $ac_mid + 1`
24393 fi
24394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24395   done
24396 else
24397   echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400 cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h.  */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h.  */
24406 $ac_includes_default
24407 int
24408 main ()
24409 {
24410 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24411 test_array [0] = 0
24412
24413   ;
24414   return 0;
24415 }
24416 _ACEOF
24417 rm -f conftest.$ac_objext
24418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24419   (eval $ac_compile) 2>conftest.er1
24420   ac_status=$?
24421   grep -v '^ *+' conftest.er1 >conftest.err
24422   rm -f conftest.er1
24423   cat conftest.err >&5
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } &&
24426          { ac_try='test -z "$ac_c_werror_flag"
24427                          || test ! -s conftest.err'
24428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24429   (eval $ac_try) 2>&5
24430   ac_status=$?
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); }; } &&
24433          { ac_try='test -s conftest.$ac_objext'
24434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   ac_hi=-1 ac_mid=-1
24440   while :; do
24441     cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447 $ac_includes_default
24448 int
24449 main ()
24450 {
24451 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24452 test_array [0] = 0
24453
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 rm -f conftest.$ac_objext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24460   (eval $ac_compile) 2>conftest.er1
24461   ac_status=$?
24462   grep -v '^ *+' conftest.er1 >conftest.err
24463   rm -f conftest.er1
24464   cat conftest.err >&5
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); } &&
24467          { ac_try='test -z "$ac_c_werror_flag"
24468                          || test ! -s conftest.err'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; } &&
24474          { ac_try='test -s conftest.$ac_objext'
24475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476   (eval $ac_try) 2>&5
24477   ac_status=$?
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); }; }; then
24480   ac_lo=$ac_mid; break
24481 else
24482   echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24484
24485 ac_hi=`expr '(' $ac_mid ')' - 1`
24486                        if test $ac_mid -le $ac_hi; then
24487                          ac_lo= ac_hi=
24488                          break
24489                        fi
24490                        ac_mid=`expr 2 '*' $ac_mid`
24491 fi
24492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24493   done
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498 ac_lo= ac_hi=
24499 fi
24500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24501 fi
24502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24503 # Binary search between lo and hi bounds.
24504 while test "x$ac_lo" != "x$ac_hi"; do
24505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24506   cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512 $ac_includes_default
24513 int
24514 main ()
24515 {
24516 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24517 test_array [0] = 0
24518
24519   ;
24520   return 0;
24521 }
24522 _ACEOF
24523 rm -f conftest.$ac_objext
24524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24525   (eval $ac_compile) 2>conftest.er1
24526   ac_status=$?
24527   grep -v '^ *+' conftest.er1 >conftest.err
24528   rm -f conftest.er1
24529   cat conftest.err >&5
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); } &&
24532          { ac_try='test -z "$ac_c_werror_flag"
24533                          || test ! -s conftest.err'
24534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535   (eval $ac_try) 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; } &&
24539          { ac_try='test -s conftest.$ac_objext'
24540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541   (eval $ac_try) 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; }; then
24545   ac_hi=$ac_mid
24546 else
24547   echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24549
24550 ac_lo=`expr '(' $ac_mid ')' + 1`
24551 fi
24552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24553 done
24554 case $ac_lo in
24555 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24556 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24557 See \`config.log' for more details." >&5
24558 echo "$as_me: error: cannot compute sizeof (long long int), 77
24559 See \`config.log' for more details." >&2;}
24560    { (exit 1); exit 1; }; } ;;
24561 esac
24562 else
24563   if test "$cross_compiling" = yes; then
24564   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24565 See \`config.log' for more details." >&5
24566 echo "$as_me: error: cannot run test program while cross compiling
24567 See \`config.log' for more details." >&2;}
24568    { (exit 1); exit 1; }; }
24569 else
24570   cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576 $ac_includes_default
24577 long longval () { return (long) (sizeof (long long int)); }
24578 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24579 #include <stdio.h>
24580 #include <stdlib.h>
24581 int
24582 main ()
24583 {
24584
24585   FILE *f = fopen ("conftest.val", "w");
24586   if (! f)
24587     exit (1);
24588   if (((long) (sizeof (long long int))) < 0)
24589     {
24590       long i = longval ();
24591       if (i != ((long) (sizeof (long long int))))
24592         exit (1);
24593       fprintf (f, "%ld\n", i);
24594     }
24595   else
24596     {
24597       unsigned long i = ulongval ();
24598       if (i != ((long) (sizeof (long long int))))
24599         exit (1);
24600       fprintf (f, "%lu\n", i);
24601     }
24602   exit (ferror (f) || fclose (f) != 0);
24603
24604   ;
24605   return 0;
24606 }
24607 _ACEOF
24608 rm -f conftest$ac_exeext
24609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610   (eval $ac_link) 2>&5
24611   ac_status=$?
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615   (eval $ac_try) 2>&5
24616   ac_status=$?
24617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618   (exit $ac_status); }; }; then
24619   ac_cv_sizeof_long_long_int=`cat conftest.val`
24620 else
24621   echo "$as_me: program exited with status $ac_status" >&5
24622 echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24624
24625 ( exit $ac_status )
24626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24627 See \`config.log' for more details." >&5
24628 echo "$as_me: error: cannot compute sizeof (long long int), 77
24629 See \`config.log' for more details." >&2;}
24630    { (exit 1); exit 1; }; }
24631 fi
24632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24633 fi
24634 fi
24635 rm -f conftest.val
24636 else
24637   ac_cv_sizeof_long_long_int=0
24638 fi
24639 fi
24640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24641 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24642 cat >>confdefs.h <<_ACEOF
24643 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24644 _ACEOF
24645
24646
24647 echo "$as_me:$LINENO: checking for int *" >&5
24648 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24649 if test "${ac_cv_type_int_p+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652   cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658 $ac_includes_default
24659 int
24660 main ()
24661 {
24662 if ((int * *) 0)
24663   return 0;
24664 if (sizeof (int *))
24665   return 0;
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24672   (eval $ac_compile) 2>conftest.er1
24673   ac_status=$?
24674   grep -v '^ *+' conftest.er1 >conftest.err
24675   rm -f conftest.er1
24676   cat conftest.err >&5
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } &&
24679          { ac_try='test -z "$ac_c_werror_flag"
24680                          || test ! -s conftest.err'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; } &&
24686          { ac_try='test -s conftest.$ac_objext'
24687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; }; then
24692   ac_cv_type_int_p=yes
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697 ac_cv_type_int_p=no
24698 fi
24699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24700 fi
24701 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24702 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24703
24704 echo "$as_me:$LINENO: checking size of int *" >&5
24705 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24706 if test "${ac_cv_sizeof_int_p+set}" = set; then
24707   echo $ECHO_N "(cached) $ECHO_C" >&6
24708 else
24709   if test "$ac_cv_type_int_p" = yes; then
24710   # The cast to unsigned long works around a bug in the HP C Compiler
24711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24713   # This bug is HP SR number 8606223364.
24714   if test "$cross_compiling" = yes; then
24715   # Depending upon the size, compute the lo and hi bounds.
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 $ac_includes_default
24723 int
24724 main ()
24725 {
24726 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24727 test_array [0] = 0
24728
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24735   (eval $ac_compile) 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } &&
24742          { ac_try='test -z "$ac_c_werror_flag"
24743                          || test ! -s conftest.err'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; } &&
24749          { ac_try='test -s conftest.$ac_objext'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; }; then
24755   ac_lo=0 ac_mid=0
24756   while :; do
24757     cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763 $ac_includes_default
24764 int
24765 main ()
24766 {
24767 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24768 test_array [0] = 0
24769
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext
24775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24776   (eval $ac_compile) 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } &&
24783          { ac_try='test -z "$ac_c_werror_flag"
24784                          || test ! -s conftest.err'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; } &&
24790          { ac_try='test -s conftest.$ac_objext'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; }; then
24796   ac_hi=$ac_mid; break
24797 else
24798   echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801 ac_lo=`expr $ac_mid + 1`
24802                     if test $ac_lo -le $ac_mid; then
24803                       ac_lo= ac_hi=
24804                       break
24805                     fi
24806                     ac_mid=`expr 2 '*' $ac_mid + 1`
24807 fi
24808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24809   done
24810 else
24811   echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24813
24814 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h.  */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h.  */
24820 $ac_includes_default
24821 int
24822 main ()
24823 {
24824 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24825 test_array [0] = 0
24826
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24833   (eval $ac_compile) 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -z "$ac_c_werror_flag"
24841                          || test ! -s conftest.err'
24842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; } &&
24847          { ac_try='test -s conftest.$ac_objext'
24848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849   (eval $ac_try) 2>&5
24850   ac_status=$?
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); }; }; then
24853   ac_hi=-1 ac_mid=-1
24854   while :; do
24855     cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861 $ac_includes_default
24862 int
24863 main ()
24864 {
24865 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24866 test_array [0] = 0
24867
24868   ;
24869   return 0;
24870 }
24871 _ACEOF
24872 rm -f conftest.$ac_objext
24873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24874   (eval $ac_compile) 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } &&
24881          { ac_try='test -z "$ac_c_werror_flag"
24882                          || test ! -s conftest.err'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; } &&
24888          { ac_try='test -s conftest.$ac_objext'
24889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890   (eval $ac_try) 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; }; then
24894   ac_lo=$ac_mid; break
24895 else
24896   echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24898
24899 ac_hi=`expr '(' $ac_mid ')' - 1`
24900                        if test $ac_mid -le $ac_hi; then
24901                          ac_lo= ac_hi=
24902                          break
24903                        fi
24904                        ac_mid=`expr 2 '*' $ac_mid`
24905 fi
24906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24907   done
24908 else
24909   echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ac_lo= ac_hi=
24913 fi
24914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24915 fi
24916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24917 # Binary search between lo and hi bounds.
24918 while test "x$ac_lo" != "x$ac_hi"; do
24919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24920   cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926 $ac_includes_default
24927 int
24928 main ()
24929 {
24930 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24931 test_array [0] = 0
24932
24933   ;
24934   return 0;
24935 }
24936 _ACEOF
24937 rm -f conftest.$ac_objext
24938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24939   (eval $ac_compile) 2>conftest.er1
24940   ac_status=$?
24941   grep -v '^ *+' conftest.er1 >conftest.err
24942   rm -f conftest.er1
24943   cat conftest.err >&5
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); } &&
24946          { ac_try='test -z "$ac_c_werror_flag"
24947                          || test ! -s conftest.err'
24948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); }; } &&
24953          { ac_try='test -s conftest.$ac_objext'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; }; then
24959   ac_hi=$ac_mid
24960 else
24961   echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964 ac_lo=`expr '(' $ac_mid ')' + 1`
24965 fi
24966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24967 done
24968 case $ac_lo in
24969 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24971 See \`config.log' for more details." >&5
24972 echo "$as_me: error: cannot compute sizeof (int *), 77
24973 See \`config.log' for more details." >&2;}
24974    { (exit 1); exit 1; }; } ;;
24975 esac
24976 else
24977   if test "$cross_compiling" = yes; then
24978   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24979 See \`config.log' for more details." >&5
24980 echo "$as_me: error: cannot run test program while cross compiling
24981 See \`config.log' for more details." >&2;}
24982    { (exit 1); exit 1; }; }
24983 else
24984   cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990 $ac_includes_default
24991 long longval () { return (long) (sizeof (int *)); }
24992 unsigned long ulongval () { return (long) (sizeof (int *)); }
24993 #include <stdio.h>
24994 #include <stdlib.h>
24995 int
24996 main ()
24997 {
24998
24999   FILE *f = fopen ("conftest.val", "w");
25000   if (! f)
25001     exit (1);
25002   if (((long) (sizeof (int *))) < 0)
25003     {
25004       long i = longval ();
25005       if (i != ((long) (sizeof (int *))))
25006         exit (1);
25007       fprintf (f, "%ld\n", i);
25008     }
25009   else
25010     {
25011       unsigned long i = ulongval ();
25012       if (i != ((long) (sizeof (int *))))
25013         exit (1);
25014       fprintf (f, "%lu\n", i);
25015     }
25016   exit (ferror (f) || fclose (f) != 0);
25017
25018   ;
25019   return 0;
25020 }
25021 _ACEOF
25022 rm -f conftest$ac_exeext
25023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25024   (eval $ac_link) 2>&5
25025   ac_status=$?
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029   (eval $ac_try) 2>&5
25030   ac_status=$?
25031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); }; }; then
25033   ac_cv_sizeof_int_p=`cat conftest.val`
25034 else
25035   echo "$as_me: program exited with status $ac_status" >&5
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039 ( exit $ac_status )
25040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25041 See \`config.log' for more details." >&5
25042 echo "$as_me: error: cannot compute sizeof (int *), 77
25043 See \`config.log' for more details." >&2;}
25044    { (exit 1); exit 1; }; }
25045 fi
25046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25047 fi
25048 fi
25049 rm -f conftest.val
25050 else
25051   ac_cv_sizeof_int_p=0
25052 fi
25053 fi
25054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25055 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25056 cat >>confdefs.h <<_ACEOF
25057 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25058 _ACEOF
25059
25060
25061
25062 # Check for sys/types.h types
25063 echo "$as_me:$LINENO: checking for u_int type" >&5
25064 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25065 if test "${ac_cv_have_u_int+set}" = set; then
25066   echo $ECHO_N "(cached) $ECHO_C" >&6
25067 else
25068
25069     cat >conftest.$ac_ext <<_ACEOF
25070 /* confdefs.h.  */
25071 _ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h.  */
25075  #include <sys/types.h>
25076 int
25077 main ()
25078 {
25079  u_int a; a = 1;
25080   ;
25081   return 0;
25082 }
25083 _ACEOF
25084 rm -f conftest.$ac_objext
25085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25086   (eval $ac_compile) 2>conftest.er1
25087   ac_status=$?
25088   grep -v '^ *+' conftest.er1 >conftest.err
25089   rm -f conftest.er1
25090   cat conftest.err >&5
25091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092   (exit $ac_status); } &&
25093          { ac_try='test -z "$ac_c_werror_flag"
25094                          || test ! -s conftest.err'
25095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096   (eval $ac_try) 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; } &&
25100          { ac_try='test -s conftest.$ac_objext'
25101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102   (eval $ac_try) 2>&5
25103   ac_status=$?
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); }; }; then
25106    ac_cv_have_u_int="yes"
25107 else
25108   echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25110
25111  ac_cv_have_u_int="no"
25112
25113 fi
25114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25115
25116 fi
25117 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25118 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25119 if test "x$ac_cv_have_u_int" = "xyes" ; then
25120    cat >>confdefs.h <<\_ACEOF
25121 #define HAVE_U_INT 1
25122 _ACEOF
25123
25124    have_u_int=1
25125 fi
25126
25127 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25128 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25129 if test "${ac_cv_have_intmax_t+set}" = set; then
25130   echo $ECHO_N "(cached) $ECHO_C" >&6
25131 else
25132
25133    cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h.  */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h.  */
25139  #include <sys/types.h>
25140 int
25141 main ()
25142 {
25143  intmax_t a; a = 1;
25144   ;
25145   return 0;
25146 }
25147 _ACEOF
25148 rm -f conftest.$ac_objext
25149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25150   (eval $ac_compile) 2>conftest.er1
25151   ac_status=$?
25152   grep -v '^ *+' conftest.er1 >conftest.err
25153   rm -f conftest.er1
25154   cat conftest.err >&5
25155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156   (exit $ac_status); } &&
25157          { ac_try='test -z "$ac_c_werror_flag"
25158                          || test ! -s conftest.err'
25159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160   (eval $ac_try) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); }; } &&
25164          { ac_try='test -s conftest.$ac_objext'
25165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166   (eval $ac_try) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; }; then
25170    ac_cv_have_intmax_t="yes"
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175
25176          cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h.  */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h.  */
25182  #include <stdint.h>
25183 int
25184 main ()
25185 {
25186  intmax_t a; a = 1;
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193   (eval $ac_compile) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest.$ac_objext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213    ac_cv_have_intmax_t="yes"
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218  ac_cv_have_intmax_t="no"
25219
25220 fi
25221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25222
25223
25224 fi
25225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25226
25227
25228 fi
25229 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25230 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25231 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25232    cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_INTMAX_T 1
25234 _ACEOF
25235
25236    have_intmax_t=1
25237 fi
25238
25239
25240 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25241 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25242 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25243   echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245
25246    cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252  #include <sys/types.h>
25253 int
25254 main ()
25255 {
25256  u_intmax_t a; a = 1;
25257   ;
25258   return 0;
25259 }
25260 _ACEOF
25261 rm -f conftest.$ac_objext
25262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25263   (eval $ac_compile) 2>conftest.er1
25264   ac_status=$?
25265   grep -v '^ *+' conftest.er1 >conftest.err
25266   rm -f conftest.er1
25267   cat conftest.err >&5
25268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); } &&
25270          { ac_try='test -z "$ac_c_werror_flag"
25271                          || test ! -s conftest.err'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; } &&
25277          { ac_try='test -s conftest.$ac_objext'
25278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279   (eval $ac_try) 2>&5
25280   ac_status=$?
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); }; }; then
25283    ac_cv_have_u_intmax_t="yes"
25284 else
25285   echo "$as_me: failed program was:" >&5
25286 sed 's/^/| /' conftest.$ac_ext >&5
25287
25288
25289          cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295  #include <stdint.h>
25296 int
25297 main ()
25298 {
25299  u_intmax_t a; a = 1;
25300   ;
25301   return 0;
25302 }
25303 _ACEOF
25304 rm -f conftest.$ac_objext
25305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25306   (eval $ac_compile) 2>conftest.er1
25307   ac_status=$?
25308   grep -v '^ *+' conftest.er1 >conftest.err
25309   rm -f conftest.er1
25310   cat conftest.err >&5
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } &&
25313          { ac_try='test -z "$ac_c_werror_flag"
25314                          || test ! -s conftest.err'
25315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316   (eval $ac_try) 2>&5
25317   ac_status=$?
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); }; } &&
25320          { ac_try='test -s conftest.$ac_objext'
25321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322   (eval $ac_try) 2>&5
25323   ac_status=$?
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); }; }; then
25326    ac_cv_have_u_intmax_t="yes"
25327 else
25328   echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331  ac_cv_have_u_intmax_t="no"
25332
25333 fi
25334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25335
25336
25337 fi
25338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25339
25340 fi
25341 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25342 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25343 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25344    cat >>confdefs.h <<\_ACEOF
25345 #define HAVE_U_INTMAX_T 1
25346 _ACEOF
25347
25348    have_u_intmax_t=1
25349 fi
25350
25351
25352 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25353 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25354 if test "${ac_cv_have_intxx_t+set}" = set; then
25355   echo $ECHO_N "(cached) $ECHO_C" >&6
25356 else
25357
25358    cat >conftest.$ac_ext <<_ACEOF
25359 /* confdefs.h.  */
25360 _ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h.  */
25364  #include <sys/types.h>
25365 int
25366 main ()
25367 {
25368  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25369   ;
25370   return 0;
25371 }
25372 _ACEOF
25373 rm -f conftest.$ac_objext
25374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25375   (eval $ac_compile) 2>conftest.er1
25376   ac_status=$?
25377   grep -v '^ *+' conftest.er1 >conftest.err
25378   rm -f conftest.er1
25379   cat conftest.err >&5
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); } &&
25382          { ac_try='test -z "$ac_c_werror_flag"
25383                          || test ! -s conftest.err'
25384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385   (eval $ac_try) 2>&5
25386   ac_status=$?
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); }; } &&
25389          { ac_try='test -s conftest.$ac_objext'
25390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391   (eval $ac_try) 2>&5
25392   ac_status=$?
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); }; }; then
25395    ac_cv_have_intxx_t="yes"
25396 else
25397   echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400  ac_cv_have_intxx_t="no"
25401
25402 fi
25403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25404
25405 fi
25406 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25407 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25408 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25409    cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_INTXX_T 1
25411 _ACEOF
25412
25413    have_intxx_t=1
25414 fi
25415
25416 echo "$as_me:$LINENO: checking for int64_t type" >&5
25417 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25418 if test "${ac_cv_have_int64_t+set}" = set; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 else
25421
25422    cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428  #include <sys/types.h>
25429 int
25430 main ()
25431 {
25432  int64_t a; a = 1;
25433   ;
25434   return 0;
25435 }
25436 _ACEOF
25437 rm -f conftest.$ac_objext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439   (eval $ac_compile) 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } &&
25446          { ac_try='test -z "$ac_c_werror_flag"
25447                          || test ! -s conftest.err'
25448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449   (eval $ac_try) 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; } &&
25453          { ac_try='test -s conftest.$ac_objext'
25454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); }; }; then
25459    ac_cv_have_int64_t="yes"
25460 else
25461   echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25463
25464  ac_cv_have_int64_t="no"
25465
25466 fi
25467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25468
25469 fi
25470 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25471 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25472 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25473    cat >>confdefs.h <<\_ACEOF
25474 #define HAVE_INT64_T 1
25475 _ACEOF
25476
25477    have_int64_t=1
25478 fi
25479
25480 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25481 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25482 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25483   echo $ECHO_N "(cached) $ECHO_C" >&6
25484 else
25485
25486    cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492  #include <sys/types.h>
25493 int
25494 main ()
25495 {
25496  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25497   ;
25498   return 0;
25499 }
25500 _ACEOF
25501 rm -f conftest.$ac_objext
25502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25503   (eval $ac_compile) 2>conftest.er1
25504   ac_status=$?
25505   grep -v '^ *+' conftest.er1 >conftest.err
25506   rm -f conftest.er1
25507   cat conftest.err >&5
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); } &&
25510          { ac_try='test -z "$ac_c_werror_flag"
25511                          || test ! -s conftest.err'
25512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25513   (eval $ac_try) 2>&5
25514   ac_status=$?
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); }; } &&
25517          { ac_try='test -s conftest.$ac_objext'
25518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519   (eval $ac_try) 2>&5
25520   ac_status=$?
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); }; }; then
25523    ac_cv_have_u_intxx_t="yes"
25524 else
25525   echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528  ac_cv_have_u_intxx_t="no"
25529
25530 fi
25531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25532
25533 fi
25534 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25535 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25536 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25537    cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_U_INTXX_T 1
25539 _ACEOF
25540
25541    have_u_intxx_t=1
25542 fi
25543
25544 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25545 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25546 if test "${ac_cv_have_u_int64_t+set}" = set; then
25547   echo $ECHO_N "(cached) $ECHO_C" >&6
25548 else
25549
25550    cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556  #include <sys/types.h>
25557 int
25558 main ()
25559 {
25560  u_int64_t a; a = 1;
25561   ;
25562   return 0;
25563 }
25564 _ACEOF
25565 rm -f conftest.$ac_objext
25566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25567   (eval $ac_compile) 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } &&
25574          { ac_try='test -z "$ac_c_werror_flag"
25575                          || test ! -s conftest.err'
25576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577   (eval $ac_try) 2>&5
25578   ac_status=$?
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); }; } &&
25581          { ac_try='test -s conftest.$ac_objext'
25582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583   (eval $ac_try) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; }; then
25587    ac_cv_have_u_int64_t="yes"
25588 else
25589   echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592  ac_cv_have_u_int64_t="no"
25593
25594 fi
25595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25596
25597 fi
25598 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25599 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25600 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25601    cat >>confdefs.h <<\_ACEOF
25602 #define HAVE_U_INT64_T 1
25603 _ACEOF
25604
25605    have_u_int64_t=1
25606 fi
25607
25608 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25609            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25610 then
25611    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25612 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25613    cat >conftest.$ac_ext <<_ACEOF
25614 /* confdefs.h.  */
25615 _ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h.  */
25619  #include <sys/bitypes.h>
25620 int
25621 main ()
25622 {
25623  int8_t a; int16_t b; int32_t c;
25624         u_int8_t e; u_int16_t f; u_int32_t g;
25625         a = b = c = e = f = g = 1;
25626   ;
25627   return 0;
25628 }
25629 _ACEOF
25630 rm -f conftest.$ac_objext
25631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25632   (eval $ac_compile) 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } &&
25639          { ac_try='test -z "$ac_c_werror_flag"
25640                          || test ! -s conftest.err'
25641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642   (eval $ac_try) 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; } &&
25646          { ac_try='test -s conftest.$ac_objext'
25647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648   (eval $ac_try) 2>&5
25649   ac_status=$?
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); }; }; then
25652    cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_U_INTXX_T 1
25654 _ACEOF
25655
25656         cat >>confdefs.h <<\_ACEOF
25657 #define HAVE_INTXX_T 1
25658 _ACEOF
25659
25660         cat >>confdefs.h <<\_ACEOF
25661 #define HAVE_SYS_BITYPES_H 1
25662 _ACEOF
25663
25664         echo "$as_me:$LINENO: result: yes" >&5
25665 echo "${ECHO_T}yes" >&6
25666 else
25667   echo "$as_me: failed program was:" >&5
25668 sed 's/^/| /' conftest.$ac_ext >&5
25669
25670  echo "$as_me:$LINENO: result: no" >&5
25671 echo "${ECHO_T}no" >&6
25672
25673 fi
25674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25675 fi
25676
25677 if test -z "$have_u_intxx_t" ; then
25678    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25679 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25680 if test "${ac_cv_have_uintxx_t+set}" = set; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683
25684       cat >conftest.$ac_ext <<_ACEOF
25685 /* confdefs.h.  */
25686 _ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h.  */
25690  #include <sys/types.h>
25691 int
25692 main ()
25693 {
25694  uint8_t a; uint16_t b;
25695            uint32_t c; a = b = c = 1;
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 rm -f conftest.$ac_objext
25701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25702   (eval $ac_compile) 2>conftest.er1
25703   ac_status=$?
25704   grep -v '^ *+' conftest.er1 >conftest.err
25705   rm -f conftest.er1
25706   cat conftest.err >&5
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); } &&
25709          { ac_try='test -z "$ac_c_werror_flag"
25710                          || test ! -s conftest.err'
25711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712   (eval $ac_try) 2>&5
25713   ac_status=$?
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); }; } &&
25716          { ac_try='test -s conftest.$ac_objext'
25717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718   (eval $ac_try) 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); }; }; then
25722    ac_cv_have_uintxx_t="yes"
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727  ac_cv_have_uintxx_t="no"
25728
25729 fi
25730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25731
25732 fi
25733 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25734 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25735    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25736       cat >>confdefs.h <<\_ACEOF
25737 #define HAVE_UINTXX_T 1
25738 _ACEOF
25739
25740    fi
25741 fi
25742
25743 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25744           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25745 then
25746    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25747 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25748    cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754  #include <sys/bitypes.h>
25755 int
25756 main ()
25757 {
25758  int64_t a; u_int64_t b;
25759        a = b = 1;
25760   ;
25761   return 0;
25762 }
25763 _ACEOF
25764 rm -f conftest.$ac_objext
25765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25766   (eval $ac_compile) 2>conftest.er1
25767   ac_status=$?
25768   grep -v '^ *+' conftest.er1 >conftest.err
25769   rm -f conftest.er1
25770   cat conftest.err >&5
25771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); } &&
25773          { ac_try='test -z "$ac_c_werror_flag"
25774                          || test ! -s conftest.err'
25775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776   (eval $ac_try) 2>&5
25777   ac_status=$?
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); }; } &&
25780          { ac_try='test -s conftest.$ac_objext'
25781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782   (eval $ac_try) 2>&5
25783   ac_status=$?
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); }; }; then
25786    cat >>confdefs.h <<\_ACEOF
25787 #define HAVE_U_INT64_T 1
25788 _ACEOF
25789
25790        cat >>confdefs.h <<\_ACEOF
25791 #define HAVE_INT64_T 1
25792 _ACEOF
25793
25794        echo "$as_me:$LINENO: result: yes" >&5
25795 echo "${ECHO_T}yes" >&6
25796 else
25797   echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25799
25800  echo "$as_me:$LINENO: result: no" >&5
25801 echo "${ECHO_T}no" >&6
25802
25803 fi
25804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25805 fi
25806
25807 if (test -z "$have_uintxx_t" && \
25808           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25809 then
25810    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25811 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25812    cat >conftest.$ac_ext <<_ACEOF
25813 /* confdefs.h.  */
25814 _ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h.  */
25818  #include <sys/bitypes.h>
25819 int
25820 main ()
25821 {
25822  uint8_t a; uint16_t b;
25823           uint32_t c; a = b = c = 1;
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 rm -f conftest.$ac_objext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830   (eval $ac_compile) 2>conftest.er1
25831   ac_status=$?
25832   grep -v '^ *+' conftest.er1 >conftest.err
25833   rm -f conftest.er1
25834   cat conftest.err >&5
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } &&
25837          { ac_try='test -z "$ac_c_werror_flag"
25838                          || test ! -s conftest.err'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; } &&
25844          { ac_try='test -s conftest.$ac_objext'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850    cat >>confdefs.h <<\_ACEOF
25851 #define HAVE_UINTXX_T 1
25852 _ACEOF
25853
25854        echo "$as_me:$LINENO: result: yes" >&5
25855 echo "${ECHO_T}yes" >&6
25856 else
25857   echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25859
25860  echo "$as_me:$LINENO: result: no" >&5
25861 echo "${ECHO_T}no" >&6
25862
25863 fi
25864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25865
25866 fi
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884 for ac_func in \
25885         fork \
25886         getcwd \
25887         gethostname \
25888         getpid \
25889         gettimeofday \
25890         setpgid \
25891         setpgrp \
25892         setsid \
25893         signal \
25894         strerror \
25895         strncmp \
25896         strncpy \
25897         vfprintf \
25898
25899 do
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25903 if eval "test \"\${$as_ac_var+set}\" = set"; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any gcc2 internal prototype to avoid an error.  */
25930 #ifdef __cplusplus
25931 extern "C"
25932 {
25933 #endif
25934 /* We use char because int might match the return type of a gcc2
25935    builtin and then its argument prototype would still apply.  */
25936 char $ac_func ();
25937 /* The GNU C library defines this for functions which it implements
25938     to always fail with ENOSYS.  Some functions are actually named
25939     something starting with __ and the normal name is an alias.  */
25940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25941 choke me
25942 #else
25943 char (*f) () = $ac_func;
25944 #endif
25945 #ifdef __cplusplus
25946 }
25947 #endif
25948
25949 int
25950 main ()
25951 {
25952 return f != $ac_func;
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959   (eval $ac_link) 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } &&
25966          { ac_try='test -z "$ac_c_werror_flag"
25967                          || test ! -s conftest.err'
25968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969   (eval $ac_try) 2>&5
25970   ac_status=$?
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); }; } &&
25973          { ac_try='test -s conftest$ac_exeext'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; }; then
25979   eval "$as_ac_var=yes"
25980 else
25981   echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25983
25984 eval "$as_ac_var=no"
25985 fi
25986 rm -f conftest.err conftest.$ac_objext \
25987       conftest$ac_exeext conftest.$ac_ext
25988 fi
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25991 if test `eval echo '${'$as_ac_var'}'` = yes; then
25992   cat >>confdefs.h <<_ACEOF
25993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25994 _ACEOF
25995
25996 else
25997   echo 'configure: cannot find needed function.'; exit 1
25998
25999 fi
26000 done
26001
26002
26003
26004 for ac_func in fchdir
26005 do
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_var+set}\" = set"; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26020 #define $ac_func innocuous_$ac_func
26021
26022 /* System header to define __stub macros and hopefully few prototypes,
26023     which can conflict with char $ac_func (); below.
26024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025     <limits.h> exists even on freestanding compilers.  */
26026
26027 #ifdef __STDC__
26028 # include <limits.h>
26029 #else
26030 # include <assert.h>
26031 #endif
26032
26033 #undef $ac_func
26034
26035 /* Override any gcc2 internal prototype to avoid an error.  */
26036 #ifdef __cplusplus
26037 extern "C"
26038 {
26039 #endif
26040 /* We use char because int might match the return type of a gcc2
26041    builtin and then its argument prototype would still apply.  */
26042 char $ac_func ();
26043 /* The GNU C library defines this for functions which it implements
26044     to always fail with ENOSYS.  Some functions are actually named
26045     something starting with __ and the normal name is an alias.  */
26046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26047 choke me
26048 #else
26049 char (*f) () = $ac_func;
26050 #endif
26051 #ifdef __cplusplus
26052 }
26053 #endif
26054
26055 int
26056 main ()
26057 {
26058 return f != $ac_func;
26059   ;
26060   return 0;
26061 }
26062 _ACEOF
26063 rm -f conftest.$ac_objext conftest$ac_exeext
26064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26065   (eval $ac_link) 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } &&
26072          { ac_try='test -z "$ac_c_werror_flag"
26073                          || test ! -s conftest.err'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; } &&
26079          { ac_try='test -s conftest$ac_exeext'
26080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081   (eval $ac_try) 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; }; then
26085   eval "$as_ac_var=yes"
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 eval "$as_ac_var=no"
26091 fi
26092 rm -f conftest.err conftest.$ac_objext \
26093       conftest$ac_exeext conftest.$ac_ext
26094 fi
26095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26097 if test `eval echo '${'$as_ac_var'}'` = yes; then
26098   cat >>confdefs.h <<_ACEOF
26099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26100 _ACEOF
26101  cat >>confdefs.h <<\_ACEOF
26102 #define HAVE_FCHDIR 1
26103 _ACEOF
26104
26105 fi
26106 done
26107
26108
26109 for ac_func in strtoll
26110 do
26111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26112 echo "$as_me:$LINENO: checking for $ac_func" >&5
26113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26114 if eval "test \"\${$as_ac_var+set}\" = set"; then
26115   echo $ECHO_N "(cached) $ECHO_C" >&6
26116 else
26117   cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26125 #define $ac_func innocuous_$ac_func
26126
26127 /* System header to define __stub macros and hopefully few prototypes,
26128     which can conflict with char $ac_func (); below.
26129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26130     <limits.h> exists even on freestanding compilers.  */
26131
26132 #ifdef __STDC__
26133 # include <limits.h>
26134 #else
26135 # include <assert.h>
26136 #endif
26137
26138 #undef $ac_func
26139
26140 /* Override any gcc2 internal prototype to avoid an error.  */
26141 #ifdef __cplusplus
26142 extern "C"
26143 {
26144 #endif
26145 /* We use char because int might match the return type of a gcc2
26146    builtin and then its argument prototype would still apply.  */
26147 char $ac_func ();
26148 /* The GNU C library defines this for functions which it implements
26149     to always fail with ENOSYS.  Some functions are actually named
26150     something starting with __ and the normal name is an alias.  */
26151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26152 choke me
26153 #else
26154 char (*f) () = $ac_func;
26155 #endif
26156 #ifdef __cplusplus
26157 }
26158 #endif
26159
26160 int
26161 main ()
26162 {
26163 return f != $ac_func;
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext conftest$ac_exeext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26170   (eval $ac_link) 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } &&
26177          { ac_try='test -z "$ac_c_werror_flag"
26178                          || test ! -s conftest.err'
26179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180   (eval $ac_try) 2>&5
26181   ac_status=$?
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); }; } &&
26184          { ac_try='test -s conftest$ac_exeext'
26185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186   (eval $ac_try) 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; }; then
26190   eval "$as_ac_var=yes"
26191 else
26192   echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26194
26195 eval "$as_ac_var=no"
26196 fi
26197 rm -f conftest.err conftest.$ac_objext \
26198       conftest$ac_exeext conftest.$ac_ext
26199 fi
26200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26202 if test `eval echo '${'$as_ac_var'}'` = yes; then
26203   cat >>confdefs.h <<_ACEOF
26204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26205 _ACEOF
26206  cat >>confdefs.h <<\_ACEOF
26207 #define HAVE_STRTOLL 1
26208 _ACEOF
26209
26210 fi
26211 done
26212
26213
26214
26215 for ac_func in chflags
26216 do
26217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26218 echo "$as_me:$LINENO: checking for $ac_func" >&5
26219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26220 if eval "test \"\${$as_ac_var+set}\" = set"; then
26221   echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223   cat >conftest.$ac_ext <<_ACEOF
26224 /* confdefs.h.  */
26225 _ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h.  */
26229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26231 #define $ac_func innocuous_$ac_func
26232
26233 /* System header to define __stub macros and hopefully few prototypes,
26234     which can conflict with char $ac_func (); below.
26235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26236     <limits.h> exists even on freestanding compilers.  */
26237
26238 #ifdef __STDC__
26239 # include <limits.h>
26240 #else
26241 # include <assert.h>
26242 #endif
26243
26244 #undef $ac_func
26245
26246 /* Override any gcc2 internal prototype to avoid an error.  */
26247 #ifdef __cplusplus
26248 extern "C"
26249 {
26250 #endif
26251 /* We use char because int might match the return type of a gcc2
26252    builtin and then its argument prototype would still apply.  */
26253 char $ac_func ();
26254 /* The GNU C library defines this for functions which it implements
26255     to always fail with ENOSYS.  Some functions are actually named
26256     something starting with __ and the normal name is an alias.  */
26257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26258 choke me
26259 #else
26260 char (*f) () = $ac_func;
26261 #endif
26262 #ifdef __cplusplus
26263 }
26264 #endif
26265
26266 int
26267 main ()
26268 {
26269 return f != $ac_func;
26270   ;
26271   return 0;
26272 }
26273 _ACEOF
26274 rm -f conftest.$ac_objext conftest$ac_exeext
26275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26276   (eval $ac_link) 2>conftest.er1
26277   ac_status=$?
26278   grep -v '^ *+' conftest.er1 >conftest.err
26279   rm -f conftest.er1
26280   cat conftest.err >&5
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); } &&
26283          { ac_try='test -z "$ac_c_werror_flag"
26284                          || test ! -s conftest.err'
26285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286   (eval $ac_try) 2>&5
26287   ac_status=$?
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); }; } &&
26290          { ac_try='test -s conftest$ac_exeext'
26291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292   (eval $ac_try) 2>&5
26293   ac_status=$?
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); }; }; then
26296   eval "$as_ac_var=yes"
26297 else
26298   echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301 eval "$as_ac_var=no"
26302 fi
26303 rm -f conftest.err conftest.$ac_objext \
26304       conftest$ac_exeext conftest.$ac_ext
26305 fi
26306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26308 if test `eval echo '${'$as_ac_var'}'` = yes; then
26309   cat >>confdefs.h <<_ACEOF
26310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26311 _ACEOF
26312
26313 fi
26314 done
26315
26316
26317
26318
26319
26320
26321 for ac_func in snprintf vsnprintf gethostid fseeko
26322 do
26323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26324 echo "$as_me:$LINENO: checking for $ac_func" >&5
26325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26326 if eval "test \"\${$as_ac_var+set}\" = set"; then
26327   echo $ECHO_N "(cached) $ECHO_C" >&6
26328 else
26329   cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26337 #define $ac_func innocuous_$ac_func
26338
26339 /* System header to define __stub macros and hopefully few prototypes,
26340     which can conflict with char $ac_func (); below.
26341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26342     <limits.h> exists even on freestanding compilers.  */
26343
26344 #ifdef __STDC__
26345 # include <limits.h>
26346 #else
26347 # include <assert.h>
26348 #endif
26349
26350 #undef $ac_func
26351
26352 /* Override any gcc2 internal prototype to avoid an error.  */
26353 #ifdef __cplusplus
26354 extern "C"
26355 {
26356 #endif
26357 /* We use char because int might match the return type of a gcc2
26358    builtin and then its argument prototype would still apply.  */
26359 char $ac_func ();
26360 /* The GNU C library defines this for functions which it implements
26361     to always fail with ENOSYS.  Some functions are actually named
26362     something starting with __ and the normal name is an alias.  */
26363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26364 choke me
26365 #else
26366 char (*f) () = $ac_func;
26367 #endif
26368 #ifdef __cplusplus
26369 }
26370 #endif
26371
26372 int
26373 main ()
26374 {
26375 return f != $ac_func;
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest.$ac_objext conftest$ac_exeext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26382   (eval $ac_link) 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } &&
26389          { ac_try='test -z "$ac_c_werror_flag"
26390                          || test ! -s conftest.err'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; } &&
26396          { ac_try='test -s conftest$ac_exeext'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; }; then
26402   eval "$as_ac_var=yes"
26403 else
26404   echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26406
26407 eval "$as_ac_var=no"
26408 fi
26409 rm -f conftest.err conftest.$ac_objext \
26410       conftest$ac_exeext conftest.$ac_ext
26411 fi
26412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26414 if test `eval echo '${'$as_ac_var'}'` = yes; then
26415   cat >>confdefs.h <<_ACEOF
26416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26417 _ACEOF
26418
26419 fi
26420 done
26421
26422
26423
26424
26425
26426
26427 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26428 do
26429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26430 echo "$as_me:$LINENO: checking for $ac_func" >&5
26431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26432 if eval "test \"\${$as_ac_var+set}\" = set"; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435   cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h.  */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h.  */
26441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26443 #define $ac_func innocuous_$ac_func
26444
26445 /* System header to define __stub macros and hopefully few prototypes,
26446     which can conflict with char $ac_func (); below.
26447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26448     <limits.h> exists even on freestanding compilers.  */
26449
26450 #ifdef __STDC__
26451 # include <limits.h>
26452 #else
26453 # include <assert.h>
26454 #endif
26455
26456 #undef $ac_func
26457
26458 /* Override any gcc2 internal prototype to avoid an error.  */
26459 #ifdef __cplusplus
26460 extern "C"
26461 {
26462 #endif
26463 /* We use char because int might match the return type of a gcc2
26464    builtin and then its argument prototype would still apply.  */
26465 char $ac_func ();
26466 /* The GNU C library defines this for functions which it implements
26467     to always fail with ENOSYS.  Some functions are actually named
26468     something starting with __ and the normal name is an alias.  */
26469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26470 choke me
26471 #else
26472 char (*f) () = $ac_func;
26473 #endif
26474 #ifdef __cplusplus
26475 }
26476 #endif
26477
26478 int
26479 main ()
26480 {
26481 return f != $ac_func;
26482   ;
26483   return 0;
26484 }
26485 _ACEOF
26486 rm -f conftest.$ac_objext conftest$ac_exeext
26487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26488   (eval $ac_link) 2>conftest.er1
26489   ac_status=$?
26490   grep -v '^ *+' conftest.er1 >conftest.err
26491   rm -f conftest.er1
26492   cat conftest.err >&5
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); } &&
26495          { ac_try='test -z "$ac_c_werror_flag"
26496                          || test ! -s conftest.err'
26497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498   (eval $ac_try) 2>&5
26499   ac_status=$?
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); }; } &&
26502          { ac_try='test -s conftest$ac_exeext'
26503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504   (eval $ac_try) 2>&5
26505   ac_status=$?
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); }; }; then
26508   eval "$as_ac_var=yes"
26509 else
26510   echo "$as_me: failed program was:" >&5
26511 sed 's/^/| /' conftest.$ac_ext >&5
26512
26513 eval "$as_ac_var=no"
26514 fi
26515 rm -f conftest.err conftest.$ac_objext \
26516       conftest$ac_exeext conftest.$ac_ext
26517 fi
26518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26520 if test `eval echo '${'$as_ac_var'}'` = yes; then
26521   cat >>confdefs.h <<_ACEOF
26522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26523 _ACEOF
26524
26525 fi
26526 done
26527
26528
26529 # If resolver functions are not in libc check for -lnsl or -lresolv.
26530 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26531 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26532 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26543 #define gethostbyname_r innocuous_gethostbyname_r
26544
26545 /* System header to define __stub macros and hopefully few prototypes,
26546     which can conflict with char gethostbyname_r (); below.
26547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548     <limits.h> exists even on freestanding compilers.  */
26549
26550 #ifdef __STDC__
26551 # include <limits.h>
26552 #else
26553 # include <assert.h>
26554 #endif
26555
26556 #undef gethostbyname_r
26557
26558 /* Override any gcc2 internal prototype to avoid an error.  */
26559 #ifdef __cplusplus
26560 extern "C"
26561 {
26562 #endif
26563 /* We use char because int might match the return type of a gcc2
26564    builtin and then its argument prototype would still apply.  */
26565 char gethostbyname_r ();
26566 /* The GNU C library defines this for functions which it implements
26567     to always fail with ENOSYS.  Some functions are actually named
26568     something starting with __ and the normal name is an alias.  */
26569 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26570 choke me
26571 #else
26572 char (*f) () = gethostbyname_r;
26573 #endif
26574 #ifdef __cplusplus
26575 }
26576 #endif
26577
26578 int
26579 main ()
26580 {
26581 return f != gethostbyname_r;
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588   (eval $ac_link) 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } &&
26595          { ac_try='test -z "$ac_c_werror_flag"
26596                          || test ! -s conftest.err'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; } &&
26602          { ac_try='test -s conftest$ac_exeext'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; }; then
26608   ac_cv_func_gethostbyname_r=yes
26609 else
26610   echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26612
26613 ac_cv_func_gethostbyname_r=no
26614 fi
26615 rm -f conftest.err conftest.$ac_objext \
26616       conftest$ac_exeext conftest.$ac_ext
26617 fi
26618 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26619 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26620 if test $ac_cv_func_gethostbyname_r = yes; then
26621   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26622 echo "${ECHO_T}using libc's resolver" >&6
26623 else
26624
26625 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26626 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26627 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26628   echo $ECHO_N "(cached) $ECHO_C" >&6
26629 else
26630   ac_check_lib_save_LIBS=$LIBS
26631 LIBS="-lnsl  $LIBS"
26632 cat >conftest.$ac_ext <<_ACEOF
26633 /* confdefs.h.  */
26634 _ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h.  */
26638
26639 /* Override any gcc2 internal prototype to avoid an error.  */
26640 #ifdef __cplusplus
26641 extern "C"
26642 #endif
26643 /* We use char because int might match the return type of a gcc2
26644    builtin and then its argument prototype would still apply.  */
26645 char gethostbyname_r ();
26646 int
26647 main ()
26648 {
26649 gethostbyname_r ();
26650   ;
26651   return 0;
26652 }
26653 _ACEOF
26654 rm -f conftest.$ac_objext conftest$ac_exeext
26655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26656   (eval $ac_link) 2>conftest.er1
26657   ac_status=$?
26658   grep -v '^ *+' conftest.er1 >conftest.err
26659   rm -f conftest.er1
26660   cat conftest.err >&5
26661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662   (exit $ac_status); } &&
26663          { ac_try='test -z "$ac_c_werror_flag"
26664                          || test ! -s conftest.err'
26665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666   (eval $ac_try) 2>&5
26667   ac_status=$?
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); }; } &&
26670          { ac_try='test -s conftest$ac_exeext'
26671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672   (eval $ac_try) 2>&5
26673   ac_status=$?
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); }; }; then
26676   ac_cv_lib_nsl_gethostbyname_r=yes
26677 else
26678   echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26680
26681 ac_cv_lib_nsl_gethostbyname_r=no
26682 fi
26683 rm -f conftest.err conftest.$ac_objext \
26684       conftest$ac_exeext conftest.$ac_ext
26685 LIBS=$ac_check_lib_save_LIBS
26686 fi
26687 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26688 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26689 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26690   cat >>confdefs.h <<_ACEOF
26691 #define HAVE_LIBNSL 1
26692 _ACEOF
26693
26694   LIBS="-lnsl $LIBS"
26695
26696 fi
26697
26698
26699 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26700 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26701 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26702   echo $ECHO_N "(cached) $ECHO_C" >&6
26703 else
26704   ac_check_lib_save_LIBS=$LIBS
26705 LIBS="-lresolv  $LIBS"
26706 cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h.  */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h.  */
26712
26713 /* Override any gcc2 internal prototype to avoid an error.  */
26714 #ifdef __cplusplus
26715 extern "C"
26716 #endif
26717 /* We use char because int might match the return type of a gcc2
26718    builtin and then its argument prototype would still apply.  */
26719 char gethostbyname_r ();
26720 int
26721 main ()
26722 {
26723 gethostbyname_r ();
26724   ;
26725   return 0;
26726 }
26727 _ACEOF
26728 rm -f conftest.$ac_objext conftest$ac_exeext
26729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26730   (eval $ac_link) 2>conftest.er1
26731   ac_status=$?
26732   grep -v '^ *+' conftest.er1 >conftest.err
26733   rm -f conftest.er1
26734   cat conftest.err >&5
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); } &&
26737          { ac_try='test -z "$ac_c_werror_flag"
26738                          || test ! -s conftest.err'
26739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740   (eval $ac_try) 2>&5
26741   ac_status=$?
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); }; } &&
26744          { ac_try='test -s conftest$ac_exeext'
26745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746   (eval $ac_try) 2>&5
26747   ac_status=$?
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); }; }; then
26750   ac_cv_lib_resolv_gethostbyname_r=yes
26751 else
26752   echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26754
26755 ac_cv_lib_resolv_gethostbyname_r=no
26756 fi
26757 rm -f conftest.err conftest.$ac_objext \
26758       conftest$ac_exeext conftest.$ac_ext
26759 LIBS=$ac_check_lib_save_LIBS
26760 fi
26761 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26762 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26763 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26764   cat >>confdefs.h <<_ACEOF
26765 #define HAVE_LIBRESOLV 1
26766 _ACEOF
26767
26768   LIBS="-lresolv $LIBS"
26769
26770 fi
26771
26772 fi
26773
26774
26775
26776
26777
26778 for ac_func in inet_pton
26779 do
26780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26781 echo "$as_me:$LINENO: checking for $ac_func" >&5
26782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26783 if eval "test \"\${$as_ac_var+set}\" = set"; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786   cat >conftest.$ac_ext <<_ACEOF
26787 /* confdefs.h.  */
26788 _ACEOF
26789 cat confdefs.h >>conftest.$ac_ext
26790 cat >>conftest.$ac_ext <<_ACEOF
26791 /* end confdefs.h.  */
26792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26794 #define $ac_func innocuous_$ac_func
26795
26796 /* System header to define __stub macros and hopefully few prototypes,
26797     which can conflict with char $ac_func (); below.
26798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26799     <limits.h> exists even on freestanding compilers.  */
26800
26801 #ifdef __STDC__
26802 # include <limits.h>
26803 #else
26804 # include <assert.h>
26805 #endif
26806
26807 #undef $ac_func
26808
26809 /* Override any gcc2 internal prototype to avoid an error.  */
26810 #ifdef __cplusplus
26811 extern "C"
26812 {
26813 #endif
26814 /* We use char because int might match the return type of a gcc2
26815    builtin and then its argument prototype would still apply.  */
26816 char $ac_func ();
26817 /* The GNU C library defines this for functions which it implements
26818     to always fail with ENOSYS.  Some functions are actually named
26819     something starting with __ and the normal name is an alias.  */
26820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26821 choke me
26822 #else
26823 char (*f) () = $ac_func;
26824 #endif
26825 #ifdef __cplusplus
26826 }
26827 #endif
26828
26829 int
26830 main ()
26831 {
26832 return f != $ac_func;
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 rm -f conftest.$ac_objext conftest$ac_exeext
26838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26839   (eval $ac_link) 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } &&
26846          { ac_try='test -z "$ac_c_werror_flag"
26847                          || test ! -s conftest.err'
26848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849   (eval $ac_try) 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); }; } &&
26853          { ac_try='test -s conftest$ac_exeext'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; }; then
26859   eval "$as_ac_var=yes"
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864 eval "$as_ac_var=no"
26865 fi
26866 rm -f conftest.err conftest.$ac_objext \
26867       conftest$ac_exeext conftest.$ac_ext
26868 fi
26869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26871 if test `eval echo '${'$as_ac_var'}'` = yes; then
26872   cat >>confdefs.h <<_ACEOF
26873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26874 _ACEOF
26875  cat >>confdefs.h <<\_ACEOF
26876 #define HAVE_INET_PTON 1
26877 _ACEOF
26878
26879 fi
26880 done
26881
26882
26883 for ac_func in inet_ntop
26884 do
26885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26886 echo "$as_me:$LINENO: checking for $ac_func" >&5
26887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_var+set}\" = set"; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26899 #define $ac_func innocuous_$ac_func
26900
26901 /* System header to define __stub macros and hopefully few prototypes,
26902     which can conflict with char $ac_func (); below.
26903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26904     <limits.h> exists even on freestanding compilers.  */
26905
26906 #ifdef __STDC__
26907 # include <limits.h>
26908 #else
26909 # include <assert.h>
26910 #endif
26911
26912 #undef $ac_func
26913
26914 /* Override any gcc2 internal prototype to avoid an error.  */
26915 #ifdef __cplusplus
26916 extern "C"
26917 {
26918 #endif
26919 /* We use char because int might match the return type of a gcc2
26920    builtin and then its argument prototype would still apply.  */
26921 char $ac_func ();
26922 /* The GNU C library defines this for functions which it implements
26923     to always fail with ENOSYS.  Some functions are actually named
26924     something starting with __ and the normal name is an alias.  */
26925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26926 choke me
26927 #else
26928 char (*f) () = $ac_func;
26929 #endif
26930 #ifdef __cplusplus
26931 }
26932 #endif
26933
26934 int
26935 main ()
26936 {
26937 return f != $ac_func;
26938   ;
26939   return 0;
26940 }
26941 _ACEOF
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26944   (eval $ac_link) 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } &&
26951          { ac_try='test -z "$ac_c_werror_flag"
26952                          || test ! -s conftest.err'
26953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954   (eval $ac_try) 2>&5
26955   ac_status=$?
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); }; } &&
26958          { ac_try='test -s conftest$ac_exeext'
26959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960   (eval $ac_try) 2>&5
26961   ac_status=$?
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); }; }; then
26964   eval "$as_ac_var=yes"
26965 else
26966   echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26968
26969 eval "$as_ac_var=no"
26970 fi
26971 rm -f conftest.err conftest.$ac_objext \
26972       conftest$ac_exeext conftest.$ac_ext
26973 fi
26974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26976 if test `eval echo '${'$as_ac_var'}'` = yes; then
26977   cat >>confdefs.h <<_ACEOF
26978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26979 _ACEOF
26980  cat >>confdefs.h <<\_ACEOF
26981 #define HAVE_INET_NTOP 1
26982 _ACEOF
26983
26984 fi
26985 done
26986
26987
26988 for ac_func in gethostbyname2
26989 do
26990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26991 echo "$as_me:$LINENO: checking for $ac_func" >&5
26992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_var+set}\" = set"; then
26994   echo $ECHO_N "(cached) $ECHO_C" >&6
26995 else
26996   cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27004 #define $ac_func innocuous_$ac_func
27005
27006 /* System header to define __stub macros and hopefully few prototypes,
27007     which can conflict with char $ac_func (); below.
27008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27009     <limits.h> exists even on freestanding compilers.  */
27010
27011 #ifdef __STDC__
27012 # include <limits.h>
27013 #else
27014 # include <assert.h>
27015 #endif
27016
27017 #undef $ac_func
27018
27019 /* Override any gcc2 internal prototype to avoid an error.  */
27020 #ifdef __cplusplus
27021 extern "C"
27022 {
27023 #endif
27024 /* We use char because int might match the return type of a gcc2
27025    builtin and then its argument prototype would still apply.  */
27026 char $ac_func ();
27027 /* The GNU C library defines this for functions which it implements
27028     to always fail with ENOSYS.  Some functions are actually named
27029     something starting with __ and the normal name is an alias.  */
27030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27031 choke me
27032 #else
27033 char (*f) () = $ac_func;
27034 #endif
27035 #ifdef __cplusplus
27036 }
27037 #endif
27038
27039 int
27040 main ()
27041 {
27042 return f != $ac_func;
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049   (eval $ac_link) 2>conftest.er1
27050   ac_status=$?
27051   grep -v '^ *+' conftest.er1 >conftest.err
27052   rm -f conftest.er1
27053   cat conftest.err >&5
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); } &&
27056          { ac_try='test -z "$ac_c_werror_flag"
27057                          || test ! -s conftest.err'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; } &&
27063          { ac_try='test -s conftest$ac_exeext'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   eval "$as_ac_var=yes"
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074 eval "$as_ac_var=no"
27075 fi
27076 rm -f conftest.err conftest.$ac_objext \
27077       conftest$ac_exeext conftest.$ac_ext
27078 fi
27079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27081 if test `eval echo '${'$as_ac_var'}'` = yes; then
27082   cat >>confdefs.h <<_ACEOF
27083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27084 _ACEOF
27085  cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_GETHOSTBYNAME2 1
27087 _ACEOF
27088
27089 fi
27090 done
27091
27092
27093 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27094 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27095 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27096   echo $ECHO_N "(cached) $ECHO_C" >&6
27097 else
27098   cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h.  */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h.  */
27104 #include <sys/socket.h>
27105 int
27106 main ()
27107 {
27108 struct sockaddr s; s.sa_len;
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115   (eval $ac_compile) 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } &&
27122          { ac_try='test -z "$ac_c_werror_flag"
27123                          || test ! -s conftest.err'
27124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125   (eval $ac_try) 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; } &&
27129          { ac_try='test -s conftest.$ac_objext'
27130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131   (eval $ac_try) 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   ac_cv_struct_sockaddr_sa_len=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_cv_struct_sockaddr_sa_len=no
27141 fi
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27143 fi
27144 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27145 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27146
27147  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27148
27149 cat >>confdefs.h <<\_ACEOF
27150 #define HAVE_SA_LEN 1
27151 _ACEOF
27152
27153  fi
27154
27155
27156 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27157 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27158 if test "${ac_cv_ipv6_support+set}" = set; then
27159   echo $ECHO_N "(cached) $ECHO_C" >&6
27160 else
27161   cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167  #include <sys/types.h>
27168 #include <sys/socket.h>
27169 #include <netinet/in.h>
27170 int
27171 main ()
27172 {
27173 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27174  0;
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 rm -f conftest.$ac_objext conftest$ac_exeext
27180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27181   (eval $ac_link) 2>conftest.er1
27182   ac_status=$?
27183   grep -v '^ *+' conftest.er1 >conftest.err
27184   rm -f conftest.er1
27185   cat conftest.err >&5
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); } &&
27188          { ac_try='test -z "$ac_c_werror_flag"
27189                          || test ! -s conftest.err'
27190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191   (eval $ac_try) 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; } &&
27195          { ac_try='test -s conftest$ac_exeext'
27196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197   (eval $ac_try) 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); }; }; then
27201   ac_cv_ipv6_support=yes
27202 else
27203   echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27205
27206 ac_cv_ipv6_support=no
27207 fi
27208 rm -f conftest.err conftest.$ac_objext \
27209       conftest$ac_exeext conftest.$ac_ext
27210 fi
27211 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27212 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27213
27214 if test "$ac_cv_ipv6_support" = yes; then
27215
27216 cat >>confdefs.h <<\_ACEOF
27217 #define HAVE_IPV6 1
27218 _ACEOF
27219
27220 fi
27221
27222
27223
27224
27225 for ac_func in strftime
27226 do
27227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27228 echo "$as_me:$LINENO: checking for $ac_func" >&5
27229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27230 if eval "test \"\${$as_ac_var+set}\" = set"; then
27231   echo $ECHO_N "(cached) $ECHO_C" >&6
27232 else
27233   cat >conftest.$ac_ext <<_ACEOF
27234 /* confdefs.h.  */
27235 _ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h.  */
27239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27241 #define $ac_func innocuous_$ac_func
27242
27243 /* System header to define __stub macros and hopefully few prototypes,
27244     which can conflict with char $ac_func (); below.
27245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27246     <limits.h> exists even on freestanding compilers.  */
27247
27248 #ifdef __STDC__
27249 # include <limits.h>
27250 #else
27251 # include <assert.h>
27252 #endif
27253
27254 #undef $ac_func
27255
27256 /* Override any gcc2 internal prototype to avoid an error.  */
27257 #ifdef __cplusplus
27258 extern "C"
27259 {
27260 #endif
27261 /* We use char because int might match the return type of a gcc2
27262    builtin and then its argument prototype would still apply.  */
27263 char $ac_func ();
27264 /* The GNU C library defines this for functions which it implements
27265     to always fail with ENOSYS.  Some functions are actually named
27266     something starting with __ and the normal name is an alias.  */
27267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27268 choke me
27269 #else
27270 char (*f) () = $ac_func;
27271 #endif
27272 #ifdef __cplusplus
27273 }
27274 #endif
27275
27276 int
27277 main ()
27278 {
27279 return f != $ac_func;
27280   ;
27281   return 0;
27282 }
27283 _ACEOF
27284 rm -f conftest.$ac_objext conftest$ac_exeext
27285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27286   (eval $ac_link) 2>conftest.er1
27287   ac_status=$?
27288   grep -v '^ *+' conftest.er1 >conftest.err
27289   rm -f conftest.er1
27290   cat conftest.err >&5
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); } &&
27293          { ac_try='test -z "$ac_c_werror_flag"
27294                          || test ! -s conftest.err'
27295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296   (eval $ac_try) 2>&5
27297   ac_status=$?
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); }; } &&
27300          { ac_try='test -s conftest$ac_exeext'
27301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302   (eval $ac_try) 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; }; then
27306   eval "$as_ac_var=yes"
27307 else
27308   echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311 eval "$as_ac_var=no"
27312 fi
27313 rm -f conftest.err conftest.$ac_objext \
27314       conftest$ac_exeext conftest.$ac_ext
27315 fi
27316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27318 if test `eval echo '${'$as_ac_var'}'` = yes; then
27319   cat >>confdefs.h <<_ACEOF
27320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27321 _ACEOF
27322
27323 else
27324   # strftime is in -lintl on SCO UNIX.
27325 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27326 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27327 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27328   echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330   ac_check_lib_save_LIBS=$LIBS
27331 LIBS="-lintl  $LIBS"
27332 cat >conftest.$ac_ext <<_ACEOF
27333 /* confdefs.h.  */
27334 _ACEOF
27335 cat confdefs.h >>conftest.$ac_ext
27336 cat >>conftest.$ac_ext <<_ACEOF
27337 /* end confdefs.h.  */
27338
27339 /* Override any gcc2 internal prototype to avoid an error.  */
27340 #ifdef __cplusplus
27341 extern "C"
27342 #endif
27343 /* We use char because int might match the return type of a gcc2
27344    builtin and then its argument prototype would still apply.  */
27345 char strftime ();
27346 int
27347 main ()
27348 {
27349 strftime ();
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27356   (eval $ac_link) 2>conftest.er1
27357   ac_status=$?
27358   grep -v '^ *+' conftest.er1 >conftest.err
27359   rm -f conftest.er1
27360   cat conftest.err >&5
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } &&
27363          { ac_try='test -z "$ac_c_werror_flag"
27364                          || test ! -s conftest.err'
27365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366   (eval $ac_try) 2>&5
27367   ac_status=$?
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); }; } &&
27370          { ac_try='test -s conftest$ac_exeext'
27371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372   (eval $ac_try) 2>&5
27373   ac_status=$?
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); }; }; then
27376   ac_cv_lib_intl_strftime=yes
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381 ac_cv_lib_intl_strftime=no
27382 fi
27383 rm -f conftest.err conftest.$ac_objext \
27384       conftest$ac_exeext conftest.$ac_ext
27385 LIBS=$ac_check_lib_save_LIBS
27386 fi
27387 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27388 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27389 if test $ac_cv_lib_intl_strftime = yes; then
27390   cat >>confdefs.h <<\_ACEOF
27391 #define HAVE_STRFTIME 1
27392 _ACEOF
27393
27394 LIBS="-lintl $LIBS"
27395 fi
27396
27397 fi
27398 done
27399
27400
27401 for ac_func in vprintf
27402 do
27403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27404 echo "$as_me:$LINENO: checking for $ac_func" >&5
27405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27406 if eval "test \"\${$as_ac_var+set}\" = set"; then
27407   echo $ECHO_N "(cached) $ECHO_C" >&6
27408 else
27409   cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27417 #define $ac_func innocuous_$ac_func
27418
27419 /* System header to define __stub macros and hopefully few prototypes,
27420     which can conflict with char $ac_func (); below.
27421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27422     <limits.h> exists even on freestanding compilers.  */
27423
27424 #ifdef __STDC__
27425 # include <limits.h>
27426 #else
27427 # include <assert.h>
27428 #endif
27429
27430 #undef $ac_func
27431
27432 /* Override any gcc2 internal prototype to avoid an error.  */
27433 #ifdef __cplusplus
27434 extern "C"
27435 {
27436 #endif
27437 /* We use char because int might match the return type of a gcc2
27438    builtin and then its argument prototype would still apply.  */
27439 char $ac_func ();
27440 /* The GNU C library defines this for functions which it implements
27441     to always fail with ENOSYS.  Some functions are actually named
27442     something starting with __ and the normal name is an alias.  */
27443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27444 choke me
27445 #else
27446 char (*f) () = $ac_func;
27447 #endif
27448 #ifdef __cplusplus
27449 }
27450 #endif
27451
27452 int
27453 main ()
27454 {
27455 return f != $ac_func;
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27462   (eval $ac_link) 2>conftest.er1
27463   ac_status=$?
27464   grep -v '^ *+' conftest.er1 >conftest.err
27465   rm -f conftest.er1
27466   cat conftest.err >&5
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); } &&
27469          { ac_try='test -z "$ac_c_werror_flag"
27470                          || test ! -s conftest.err'
27471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472   (eval $ac_try) 2>&5
27473   ac_status=$?
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); }; } &&
27476          { ac_try='test -s conftest$ac_exeext'
27477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478   (eval $ac_try) 2>&5
27479   ac_status=$?
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); }; }; then
27482   eval "$as_ac_var=yes"
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487 eval "$as_ac_var=no"
27488 fi
27489 rm -f conftest.err conftest.$ac_objext \
27490       conftest$ac_exeext conftest.$ac_ext
27491 fi
27492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27494 if test `eval echo '${'$as_ac_var'}'` = yes; then
27495   cat >>confdefs.h <<_ACEOF
27496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27497 _ACEOF
27498
27499 echo "$as_me:$LINENO: checking for _doprnt" >&5
27500 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27501 if test "${ac_cv_func__doprnt+set}" = set; then
27502   echo $ECHO_N "(cached) $ECHO_C" >&6
27503 else
27504   cat >conftest.$ac_ext <<_ACEOF
27505 /* confdefs.h.  */
27506 _ACEOF
27507 cat confdefs.h >>conftest.$ac_ext
27508 cat >>conftest.$ac_ext <<_ACEOF
27509 /* end confdefs.h.  */
27510 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27512 #define _doprnt innocuous__doprnt
27513
27514 /* System header to define __stub macros and hopefully few prototypes,
27515     which can conflict with char _doprnt (); below.
27516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27517     <limits.h> exists even on freestanding compilers.  */
27518
27519 #ifdef __STDC__
27520 # include <limits.h>
27521 #else
27522 # include <assert.h>
27523 #endif
27524
27525 #undef _doprnt
27526
27527 /* Override any gcc2 internal prototype to avoid an error.  */
27528 #ifdef __cplusplus
27529 extern "C"
27530 {
27531 #endif
27532 /* We use char because int might match the return type of a gcc2
27533    builtin and then its argument prototype would still apply.  */
27534 char _doprnt ();
27535 /* The GNU C library defines this for functions which it implements
27536     to always fail with ENOSYS.  Some functions are actually named
27537     something starting with __ and the normal name is an alias.  */
27538 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27539 choke me
27540 #else
27541 char (*f) () = _doprnt;
27542 #endif
27543 #ifdef __cplusplus
27544 }
27545 #endif
27546
27547 int
27548 main ()
27549 {
27550 return f != _doprnt;
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 rm -f conftest.$ac_objext conftest$ac_exeext
27556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27557   (eval $ac_link) 2>conftest.er1
27558   ac_status=$?
27559   grep -v '^ *+' conftest.er1 >conftest.err
27560   rm -f conftest.er1
27561   cat conftest.err >&5
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); } &&
27564          { ac_try='test -z "$ac_c_werror_flag"
27565                          || test ! -s conftest.err'
27566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567   (eval $ac_try) 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); }; } &&
27571          { ac_try='test -s conftest$ac_exeext'
27572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573   (eval $ac_try) 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; }; then
27577   ac_cv_func__doprnt=yes
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582 ac_cv_func__doprnt=no
27583 fi
27584 rm -f conftest.err conftest.$ac_objext \
27585       conftest$ac_exeext conftest.$ac_ext
27586 fi
27587 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27588 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27589 if test $ac_cv_func__doprnt = yes; then
27590
27591 cat >>confdefs.h <<\_ACEOF
27592 #define HAVE_DOPRNT 1
27593 _ACEOF
27594
27595 fi
27596
27597 fi
27598 done
27599
27600
27601 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27602 # for constant arguments.  Useless!
27603 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27604 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27605 if test "${ac_cv_working_alloca_h+set}" = set; then
27606   echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608   cat >conftest.$ac_ext <<_ACEOF
27609 /* confdefs.h.  */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h.  */
27614 #include <alloca.h>
27615 int
27616 main ()
27617 {
27618 char *p = (char *) alloca (2 * sizeof (int));
27619   ;
27620   return 0;
27621 }
27622 _ACEOF
27623 rm -f conftest.$ac_objext conftest$ac_exeext
27624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27625   (eval $ac_link) 2>conftest.er1
27626   ac_status=$?
27627   grep -v '^ *+' conftest.er1 >conftest.err
27628   rm -f conftest.er1
27629   cat conftest.err >&5
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); } &&
27632          { ac_try='test -z "$ac_c_werror_flag"
27633                          || test ! -s conftest.err'
27634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635   (eval $ac_try) 2>&5
27636   ac_status=$?
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); }; } &&
27639          { ac_try='test -s conftest$ac_exeext'
27640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27641   (eval $ac_try) 2>&5
27642   ac_status=$?
27643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644   (exit $ac_status); }; }; then
27645   ac_cv_working_alloca_h=yes
27646 else
27647   echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650 ac_cv_working_alloca_h=no
27651 fi
27652 rm -f conftest.err conftest.$ac_objext \
27653       conftest$ac_exeext conftest.$ac_ext
27654 fi
27655 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27657 if test $ac_cv_working_alloca_h = yes; then
27658
27659 cat >>confdefs.h <<\_ACEOF
27660 #define HAVE_ALLOCA_H 1
27661 _ACEOF
27662
27663 fi
27664
27665 echo "$as_me:$LINENO: checking for alloca" >&5
27666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27667 if test "${ac_cv_func_alloca_works+set}" = set; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676 #ifdef __GNUC__
27677 # define alloca __builtin_alloca
27678 #else
27679 # ifdef _MSC_VER
27680 #  include <malloc.h>
27681 #  define alloca _alloca
27682 # else
27683 #  if HAVE_ALLOCA_H
27684 #   include <alloca.h>
27685 #  else
27686 #   ifdef _AIX
27687  #pragma alloca
27688 #   else
27689 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27690 char *alloca ();
27691 #    endif
27692 #   endif
27693 #  endif
27694 # endif
27695 #endif
27696
27697 int
27698 main ()
27699 {
27700 char *p = (char *) alloca (1);
27701   ;
27702   return 0;
27703 }
27704 _ACEOF
27705 rm -f conftest.$ac_objext conftest$ac_exeext
27706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27707   (eval $ac_link) 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } &&
27714          { ac_try='test -z "$ac_c_werror_flag"
27715                          || test ! -s conftest.err'
27716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717   (eval $ac_try) 2>&5
27718   ac_status=$?
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); }; } &&
27721          { ac_try='test -s conftest$ac_exeext'
27722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723   (eval $ac_try) 2>&5
27724   ac_status=$?
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); }; }; then
27727   ac_cv_func_alloca_works=yes
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732 ac_cv_func_alloca_works=no
27733 fi
27734 rm -f conftest.err conftest.$ac_objext \
27735       conftest$ac_exeext conftest.$ac_ext
27736 fi
27737 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27738 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27739
27740 if test $ac_cv_func_alloca_works = yes; then
27741
27742 cat >>confdefs.h <<\_ACEOF
27743 #define HAVE_ALLOCA 1
27744 _ACEOF
27745
27746 else
27747   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27748 # that cause trouble.  Some versions do not even contain alloca or
27749 # contain a buggy version.  If you still want to use their alloca,
27750 # use ar to extract alloca.o from them instead of compiling alloca.c.
27751
27752 ALLOCA=alloca.$ac_objext
27753
27754 cat >>confdefs.h <<\_ACEOF
27755 #define C_ALLOCA 1
27756 _ACEOF
27757
27758
27759 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27760 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27761 if test "${ac_cv_os_cray+set}" = set; then
27762   echo $ECHO_N "(cached) $ECHO_C" >&6
27763 else
27764   cat >conftest.$ac_ext <<_ACEOF
27765 /* confdefs.h.  */
27766 _ACEOF
27767 cat confdefs.h >>conftest.$ac_ext
27768 cat >>conftest.$ac_ext <<_ACEOF
27769 /* end confdefs.h.  */
27770 #if defined(CRAY) && ! defined(CRAY2)
27771 webecray
27772 #else
27773 wenotbecray
27774 #endif
27775
27776 _ACEOF
27777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27778   $EGREP "webecray" >/dev/null 2>&1; then
27779   ac_cv_os_cray=yes
27780 else
27781   ac_cv_os_cray=no
27782 fi
27783 rm -f conftest*
27784
27785 fi
27786 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27787 echo "${ECHO_T}$ac_cv_os_cray" >&6
27788 if test $ac_cv_os_cray = yes; then
27789   for ac_func in _getb67 GETB67 getb67; do
27790     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27791 echo "$as_me:$LINENO: checking for $ac_func" >&5
27792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27793 if eval "test \"\${$as_ac_var+set}\" = set"; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796   cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h.  */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h.  */
27802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27804 #define $ac_func innocuous_$ac_func
27805
27806 /* System header to define __stub macros and hopefully few prototypes,
27807     which can conflict with char $ac_func (); below.
27808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27809     <limits.h> exists even on freestanding compilers.  */
27810
27811 #ifdef __STDC__
27812 # include <limits.h>
27813 #else
27814 # include <assert.h>
27815 #endif
27816
27817 #undef $ac_func
27818
27819 /* Override any gcc2 internal prototype to avoid an error.  */
27820 #ifdef __cplusplus
27821 extern "C"
27822 {
27823 #endif
27824 /* We use char because int might match the return type of a gcc2
27825    builtin and then its argument prototype would still apply.  */
27826 char $ac_func ();
27827 /* The GNU C library defines this for functions which it implements
27828     to always fail with ENOSYS.  Some functions are actually named
27829     something starting with __ and the normal name is an alias.  */
27830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831 choke me
27832 #else
27833 char (*f) () = $ac_func;
27834 #endif
27835 #ifdef __cplusplus
27836 }
27837 #endif
27838
27839 int
27840 main ()
27841 {
27842 return f != $ac_func;
27843   ;
27844   return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext conftest$ac_exeext
27848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27849   (eval $ac_link) 2>conftest.er1
27850   ac_status=$?
27851   grep -v '^ *+' conftest.er1 >conftest.err
27852   rm -f conftest.er1
27853   cat conftest.err >&5
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); } &&
27856          { ac_try='test -z "$ac_c_werror_flag"
27857                          || test ! -s conftest.err'
27858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27859   (eval $ac_try) 2>&5
27860   ac_status=$?
27861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862   (exit $ac_status); }; } &&
27863          { ac_try='test -s conftest$ac_exeext'
27864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865   (eval $ac_try) 2>&5
27866   ac_status=$?
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); }; }; then
27869   eval "$as_ac_var=yes"
27870 else
27871   echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874 eval "$as_ac_var=no"
27875 fi
27876 rm -f conftest.err conftest.$ac_objext \
27877       conftest$ac_exeext conftest.$ac_ext
27878 fi
27879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27881 if test `eval echo '${'$as_ac_var'}'` = yes; then
27882
27883 cat >>confdefs.h <<_ACEOF
27884 #define CRAY_STACKSEG_END $ac_func
27885 _ACEOF
27886
27887     break
27888 fi
27889
27890   done
27891 fi
27892
27893 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27895 if test "${ac_cv_c_stack_direction+set}" = set; then
27896   echo $ECHO_N "(cached) $ECHO_C" >&6
27897 else
27898   if test "$cross_compiling" = yes; then
27899   ac_cv_c_stack_direction=0
27900 else
27901   cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h.  */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h.  */
27907 int
27908 find_stack_direction ()
27909 {
27910   static char *addr = 0;
27911   auto char dummy;
27912   if (addr == 0)
27913     {
27914       addr = &dummy;
27915       return find_stack_direction ();
27916     }
27917   else
27918     return (&dummy > addr) ? 1 : -1;
27919 }
27920
27921 int
27922 main ()
27923 {
27924   exit (find_stack_direction () < 0);
27925 }
27926 _ACEOF
27927 rm -f conftest$ac_exeext
27928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27929   (eval $ac_link) 2>&5
27930   ac_status=$?
27931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27934   (eval $ac_try) 2>&5
27935   ac_status=$?
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); }; }; then
27938   ac_cv_c_stack_direction=1
27939 else
27940   echo "$as_me: program exited with status $ac_status" >&5
27941 echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27943
27944 ( exit $ac_status )
27945 ac_cv_c_stack_direction=-1
27946 fi
27947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27948 fi
27949 fi
27950 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27951 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27952
27953 cat >>confdefs.h <<_ACEOF
27954 #define STACK_DIRECTION $ac_cv_c_stack_direction
27955 _ACEOF
27956
27957
27958 fi
27959
27960 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27961 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27962 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27963 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27964   echo $ECHO_N "(cached) $ECHO_C" >&6
27965 else
27966   ac_check_lib_save_LIBS=$LIBS
27967 LIBS="-lsun  $LIBS"
27968 cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h.  */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h.  */
27974
27975 /* Override any gcc2 internal prototype to avoid an error.  */
27976 #ifdef __cplusplus
27977 extern "C"
27978 #endif
27979 /* We use char because int might match the return type of a gcc2
27980    builtin and then its argument prototype would still apply.  */
27981 char getmntent ();
27982 int
27983 main ()
27984 {
27985 getmntent ();
27986   ;
27987   return 0;
27988 }
27989 _ACEOF
27990 rm -f conftest.$ac_objext conftest$ac_exeext
27991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27992   (eval $ac_link) 2>conftest.er1
27993   ac_status=$?
27994   grep -v '^ *+' conftest.er1 >conftest.err
27995   rm -f conftest.er1
27996   cat conftest.err >&5
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); } &&
27999          { ac_try='test -z "$ac_c_werror_flag"
28000                          || test ! -s conftest.err'
28001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002   (eval $ac_try) 2>&5
28003   ac_status=$?
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); }; } &&
28006          { ac_try='test -s conftest$ac_exeext'
28007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008   (eval $ac_try) 2>&5
28009   ac_status=$?
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); }; }; then
28012   ac_cv_lib_sun_getmntent=yes
28013 else
28014   echo "$as_me: failed program was:" >&5
28015 sed 's/^/| /' conftest.$ac_ext >&5
28016
28017 ac_cv_lib_sun_getmntent=no
28018 fi
28019 rm -f conftest.err conftest.$ac_objext \
28020       conftest$ac_exeext conftest.$ac_ext
28021 LIBS=$ac_check_lib_save_LIBS
28022 fi
28023 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28024 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28025 if test $ac_cv_lib_sun_getmntent = yes; then
28026   LIBS="-lsun $LIBS"
28027 else
28028   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28029 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28030 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033   ac_check_lib_save_LIBS=$LIBS
28034 LIBS="-lseq  $LIBS"
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041
28042 /* Override any gcc2 internal prototype to avoid an error.  */
28043 #ifdef __cplusplus
28044 extern "C"
28045 #endif
28046 /* We use char because int might match the return type of a gcc2
28047    builtin and then its argument prototype would still apply.  */
28048 char getmntent ();
28049 int
28050 main ()
28051 {
28052 getmntent ();
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059   (eval $ac_link) 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag"
28067                          || test ! -s conftest.err'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; } &&
28073          { ac_try='test -s conftest$ac_exeext'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   ac_cv_lib_seq_getmntent=yes
28080 else
28081   echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 ac_cv_lib_seq_getmntent=no
28085 fi
28086 rm -f conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28089 fi
28090 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28091 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28092 if test $ac_cv_lib_seq_getmntent = yes; then
28093   LIBS="-lseq $LIBS"
28094 else
28095   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28096 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28097 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28098   echo $ECHO_N "(cached) $ECHO_C" >&6
28099 else
28100   ac_check_lib_save_LIBS=$LIBS
28101 LIBS="-lgen  $LIBS"
28102 cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108
28109 /* Override any gcc2 internal prototype to avoid an error.  */
28110 #ifdef __cplusplus
28111 extern "C"
28112 #endif
28113 /* We use char because int might match the return type of a gcc2
28114    builtin and then its argument prototype would still apply.  */
28115 char getmntent ();
28116 int
28117 main ()
28118 {
28119 getmntent ();
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28126   (eval $ac_link) 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } &&
28133          { ac_try='test -z "$ac_c_werror_flag"
28134                          || test ! -s conftest.err'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; } &&
28140          { ac_try='test -s conftest$ac_exeext'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; }; then
28146   ac_cv_lib_gen_getmntent=yes
28147 else
28148   echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151 ac_cv_lib_gen_getmntent=no
28152 fi
28153 rm -f conftest.err conftest.$ac_objext \
28154       conftest$ac_exeext conftest.$ac_ext
28155 LIBS=$ac_check_lib_save_LIBS
28156 fi
28157 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28158 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28159 if test $ac_cv_lib_gen_getmntent = yes; then
28160   LIBS="-lgen $LIBS"
28161 fi
28162
28163 fi
28164
28165 fi
28166
28167
28168 for ac_func in getmntent
28169 do
28170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28171 echo "$as_me:$LINENO: checking for $ac_func" >&5
28172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28173 if eval "test \"\${$as_ac_var+set}\" = set"; then
28174   echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176   cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h.  */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h.  */
28182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28184 #define $ac_func innocuous_$ac_func
28185
28186 /* System header to define __stub macros and hopefully few prototypes,
28187     which can conflict with char $ac_func (); below.
28188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28189     <limits.h> exists even on freestanding compilers.  */
28190
28191 #ifdef __STDC__
28192 # include <limits.h>
28193 #else
28194 # include <assert.h>
28195 #endif
28196
28197 #undef $ac_func
28198
28199 /* Override any gcc2 internal prototype to avoid an error.  */
28200 #ifdef __cplusplus
28201 extern "C"
28202 {
28203 #endif
28204 /* We use char because int might match the return type of a gcc2
28205    builtin and then its argument prototype would still apply.  */
28206 char $ac_func ();
28207 /* The GNU C library defines this for functions which it implements
28208     to always fail with ENOSYS.  Some functions are actually named
28209     something starting with __ and the normal name is an alias.  */
28210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28211 choke me
28212 #else
28213 char (*f) () = $ac_func;
28214 #endif
28215 #ifdef __cplusplus
28216 }
28217 #endif
28218
28219 int
28220 main ()
28221 {
28222 return f != $ac_func;
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext conftest$ac_exeext
28228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28229   (eval $ac_link) 2>conftest.er1
28230   ac_status=$?
28231   grep -v '^ *+' conftest.er1 >conftest.err
28232   rm -f conftest.er1
28233   cat conftest.err >&5
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); } &&
28236          { ac_try='test -z "$ac_c_werror_flag"
28237                          || test ! -s conftest.err'
28238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239   (eval $ac_try) 2>&5
28240   ac_status=$?
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); }; } &&
28243          { ac_try='test -s conftest$ac_exeext'
28244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245   (eval $ac_try) 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; }; then
28249   eval "$as_ac_var=yes"
28250 else
28251   echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254 eval "$as_ac_var=no"
28255 fi
28256 rm -f conftest.err conftest.$ac_objext \
28257       conftest$ac_exeext conftest.$ac_ext
28258 fi
28259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28261 if test `eval echo '${'$as_ac_var'}'` = yes; then
28262   cat >>confdefs.h <<_ACEOF
28263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28264 _ACEOF
28265
28266 fi
28267 done
28268
28269
28270 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28271 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28272 if test "${ac_cv_func_closedir_void+set}" = set; then
28273   echo $ECHO_N "(cached) $ECHO_C" >&6
28274 else
28275   if test "$cross_compiling" = yes; then
28276   ac_cv_func_closedir_void=yes
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 $ac_includes_default
28285 #include <$ac_header_dirent>
28286 #ifndef __cplusplus
28287 int closedir ();
28288 #endif
28289
28290 int
28291 main ()
28292 {
28293 exit (closedir (opendir (".")) != 0);
28294   ;
28295   return 0;
28296 }
28297 _ACEOF
28298 rm -f conftest$ac_exeext
28299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28300   (eval $ac_link) 2>&5
28301   ac_status=$?
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; }; then
28309   ac_cv_func_closedir_void=no
28310 else
28311   echo "$as_me: program exited with status $ac_status" >&5
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 ( exit $ac_status )
28316 ac_cv_func_closedir_void=yes
28317 fi
28318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28319 fi
28320 fi
28321 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28322 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28323 if test $ac_cv_func_closedir_void = yes; then
28324
28325 cat >>confdefs.h <<\_ACEOF
28326 #define CLOSEDIR_VOID 1
28327 _ACEOF
28328
28329 fi
28330
28331 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28332 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28333 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28334   echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336   if test "$cross_compiling" = yes; then
28337   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28338 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28339    { (exit 1); exit 1; }; }
28340 else
28341   cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347 #if HAVE_UNISTD_H
28348 # include <unistd.h>
28349 #endif
28350
28351 int
28352 main ()
28353 {
28354 /* If this system has a BSD-style setpgrp which takes arguments,
28355   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28356   exit successfully. */
28357   exit (setpgrp (1,1) == -1 ? 0 : 1);
28358   ;
28359   return 0;
28360 }
28361 _ACEOF
28362 rm -f conftest$ac_exeext
28363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28364   (eval $ac_link) 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369   (eval $ac_try) 2>&5
28370   ac_status=$?
28371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372   (exit $ac_status); }; }; then
28373   ac_cv_func_setpgrp_void=no
28374 else
28375   echo "$as_me: program exited with status $ac_status" >&5
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379 ( exit $ac_status )
28380 ac_cv_func_setpgrp_void=yes
28381 fi
28382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28383 fi
28384 fi
28385 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28386 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28387 if test $ac_cv_func_setpgrp_void = yes; then
28388
28389 cat >>confdefs.h <<\_ACEOF
28390 #define SETPGRP_VOID 1
28391 _ACEOF
28392
28393 fi
28394                       # AC_FUNC_FNMATCH    dnl use local version
28395
28396
28397 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28398 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28399 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28400   echo $ECHO_N "(cached) $ECHO_C" >&6
28401 else
28402   ac_check_lib_save_LIBS=$LIBS
28403 LIBS="-lxpg4  $LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28405 /* confdefs.h.  */
28406 _ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h.  */
28410
28411 /* Override any gcc2 internal prototype to avoid an error.  */
28412 #ifdef __cplusplus
28413 extern "C"
28414 #endif
28415 /* We use char because int might match the return type of a gcc2
28416    builtin and then its argument prototype would still apply.  */
28417 char setlocale ();
28418 int
28419 main ()
28420 {
28421 setlocale ();
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28428   (eval $ac_link) 2>conftest.er1
28429   ac_status=$?
28430   grep -v '^ *+' conftest.er1 >conftest.err
28431   rm -f conftest.er1
28432   cat conftest.err >&5
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); } &&
28435          { ac_try='test -z "$ac_c_werror_flag"
28436                          || test ! -s conftest.err'
28437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438   (eval $ac_try) 2>&5
28439   ac_status=$?
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); }; } &&
28442          { ac_try='test -s conftest$ac_exeext'
28443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28444   (eval $ac_try) 2>&5
28445   ac_status=$?
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); }; }; then
28448   ac_cv_lib_xpg4_setlocale=yes
28449 else
28450   echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28452
28453 ac_cv_lib_xpg4_setlocale=no
28454 fi
28455 rm -f conftest.err conftest.$ac_objext \
28456       conftest$ac_exeext conftest.$ac_ext
28457 LIBS=$ac_check_lib_save_LIBS
28458 fi
28459 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28460 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28461 if test $ac_cv_lib_xpg4_setlocale = yes; then
28462   LIBS="$LIBS -lxpg4"
28463 fi
28464
28465 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28466 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28467 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28468   echo $ECHO_N "(cached) $ECHO_C" >&6
28469 else
28470   ac_check_lib_save_LIBS=$LIBS
28471 LIBS="-lintl  $LIBS"
28472 cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478
28479 /* Override any gcc2 internal prototype to avoid an error.  */
28480 #ifdef __cplusplus
28481 extern "C"
28482 #endif
28483 /* We use char because int might match the return type of a gcc2
28484    builtin and then its argument prototype would still apply.  */
28485 char gettext ();
28486 int
28487 main ()
28488 {
28489 gettext ();
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28496   (eval $ac_link) 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } &&
28503          { ac_try='test -z "$ac_c_werror_flag"
28504                          || test ! -s conftest.err'
28505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506   (eval $ac_try) 2>&5
28507   ac_status=$?
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); }; } &&
28510          { ac_try='test -s conftest$ac_exeext'
28511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512   (eval $ac_try) 2>&5
28513   ac_status=$?
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); }; }; then
28516   ac_cv_lib_intl_gettext=yes
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 ac_cv_lib_intl_gettext=no
28522 fi
28523 rm -f conftest.err conftest.$ac_objext \
28524       conftest$ac_exeext conftest.$ac_ext
28525 LIBS=$ac_check_lib_save_LIBS
28526 fi
28527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28528 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28529 if test $ac_cv_lib_intl_gettext = yes; then
28530   LIBS="$LIBS -lintl"
28531 fi
28532
28533
28534
28535
28536 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28537 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28538 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28539   echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28541   ac_check_lib_save_LIBS=$LIBS
28542 LIBS="-lsun  $LIBS"
28543 cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549
28550 /* Override any gcc2 internal prototype to avoid an error.  */
28551 #ifdef __cplusplus
28552 extern "C"
28553 #endif
28554 /* We use char because int might match the return type of a gcc2
28555    builtin and then its argument prototype would still apply.  */
28556 char getpwnam ();
28557 int
28558 main ()
28559 {
28560 getpwnam ();
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567   (eval $ac_link) 2>conftest.er1
28568   ac_status=$?
28569   grep -v '^ *+' conftest.er1 >conftest.err
28570   rm -f conftest.er1
28571   cat conftest.err >&5
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } &&
28574          { ac_try='test -z "$ac_c_werror_flag"
28575                          || test ! -s conftest.err'
28576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577   (eval $ac_try) 2>&5
28578   ac_status=$?
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); }; } &&
28581          { ac_try='test -s conftest$ac_exeext'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; }; then
28587   ac_cv_lib_sun_getpwnam=yes
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592 ac_cv_lib_sun_getpwnam=no
28593 fi
28594 rm -f conftest.err conftest.$ac_objext \
28595       conftest$ac_exeext conftest.$ac_ext
28596 LIBS=$ac_check_lib_save_LIBS
28597 fi
28598 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28599 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28600 if test $ac_cv_lib_sun_getpwnam = yes; then
28601   cat >>confdefs.h <<_ACEOF
28602 #define HAVE_LIBSUN 1
28603 _ACEOF
28604
28605   LIBS="-lsun $LIBS"
28606
28607 fi
28608
28609
28610
28611 for ac_header in zlib.h
28612 do
28613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28615   echo "$as_me:$LINENO: checking for $ac_header" >&5
28616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28618   echo $ECHO_N "(cached) $ECHO_C" >&6
28619 fi
28620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28622 else
28623   # Is the header compilable?
28624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28626 cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h.  */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h.  */
28632 $ac_includes_default
28633 #include <$ac_header>
28634 _ACEOF
28635 rm -f conftest.$ac_objext
28636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28637   (eval $ac_compile) 2>conftest.er1
28638   ac_status=$?
28639   grep -v '^ *+' conftest.er1 >conftest.err
28640   rm -f conftest.er1
28641   cat conftest.err >&5
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); } &&
28644          { ac_try='test -z "$ac_c_werror_flag"
28645                          || test ! -s conftest.err'
28646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647   (eval $ac_try) 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); }; } &&
28651          { ac_try='test -s conftest.$ac_objext'
28652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653   (eval $ac_try) 2>&5
28654   ac_status=$?
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); }; }; then
28657   ac_header_compiler=yes
28658 else
28659   echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662 ac_header_compiler=no
28663 fi
28664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28666 echo "${ECHO_T}$ac_header_compiler" >&6
28667
28668 # Is the header present?
28669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28671 cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677 #include <$ac_header>
28678 _ACEOF
28679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } >/dev/null; then
28687   if test -s conftest.err; then
28688     ac_cpp_err=$ac_c_preproc_warn_flag
28689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28690   else
28691     ac_cpp_err=
28692   fi
28693 else
28694   ac_cpp_err=yes
28695 fi
28696 if test -z "$ac_cpp_err"; then
28697   ac_header_preproc=yes
28698 else
28699   echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28701
28702   ac_header_preproc=no
28703 fi
28704 rm -f conftest.err conftest.$ac_ext
28705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28706 echo "${ECHO_T}$ac_header_preproc" >&6
28707
28708 # So?  What about this header?
28709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28710   yes:no: )
28711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28715     ac_header_preproc=yes
28716     ;;
28717   no:yes:* )
28718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28730     (
28731       cat <<\_ASBOX
28732 ## ------------------------------------------ ##
28733 ## Report this to the AC_PACKAGE_NAME lists.  ##
28734 ## ------------------------------------------ ##
28735 _ASBOX
28736     ) |
28737       sed "s/^/$as_me: WARNING:     /" >&2
28738     ;;
28739 esac
28740 echo "$as_me:$LINENO: checking for $ac_header" >&5
28741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28743   echo $ECHO_N "(cached) $ECHO_C" >&6
28744 else
28745   eval "$as_ac_Header=\$ac_header_preproc"
28746 fi
28747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28749
28750 fi
28751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28752   cat >>confdefs.h <<_ACEOF
28753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28754 _ACEOF
28755
28756 fi
28757
28758 done
28759
28760 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28761 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28762 if test "${ac_cv_lib_z_deflate+set}" = set; then
28763   echo $ECHO_N "(cached) $ECHO_C" >&6
28764 else
28765   ac_check_lib_save_LIBS=$LIBS
28766 LIBS="-lz  $LIBS"
28767 cat >conftest.$ac_ext <<_ACEOF
28768 /* confdefs.h.  */
28769 _ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h.  */
28773
28774 /* Override any gcc2 internal prototype to avoid an error.  */
28775 #ifdef __cplusplus
28776 extern "C"
28777 #endif
28778 /* We use char because int might match the return type of a gcc2
28779    builtin and then its argument prototype would still apply.  */
28780 char deflate ();
28781 int
28782 main ()
28783 {
28784 deflate ();
28785   ;
28786   return 0;
28787 }
28788 _ACEOF
28789 rm -f conftest.$ac_objext conftest$ac_exeext
28790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28791   (eval $ac_link) 2>conftest.er1
28792   ac_status=$?
28793   grep -v '^ *+' conftest.er1 >conftest.err
28794   rm -f conftest.er1
28795   cat conftest.err >&5
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); } &&
28798          { ac_try='test -z "$ac_c_werror_flag"
28799                          || test ! -s conftest.err'
28800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801   (eval $ac_try) 2>&5
28802   ac_status=$?
28803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804   (exit $ac_status); }; } &&
28805          { ac_try='test -s conftest$ac_exeext'
28806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807   (eval $ac_try) 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; }; then
28811   ac_cv_lib_z_deflate=yes
28812 else
28813   echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28815
28816 ac_cv_lib_z_deflate=no
28817 fi
28818 rm -f conftest.err conftest.$ac_objext \
28819       conftest$ac_exeext conftest.$ac_ext
28820 LIBS=$ac_check_lib_save_LIBS
28821 fi
28822 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28823 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28824 if test $ac_cv_lib_z_deflate = yes; then
28825   FDLIBS="-lz"
28826 fi
28827
28828 have_zlib=no
28829 if test x$FDLIBS = x-lz; then
28830   cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_LIBZ 1
28832 _ACEOF
28833
28834   have_zlib=yes
28835 fi
28836
28837 #
28838 # Check for ACL libraries
28839 #
28840 have_acl=no
28841 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28842   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28843 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28844 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28845   echo $ECHO_N "(cached) $ECHO_C" >&6
28846 fi
28847 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28848 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28849 else
28850   # Is the header compilable?
28851 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28852 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28853 cat >conftest.$ac_ext <<_ACEOF
28854 /* confdefs.h.  */
28855 _ACEOF
28856 cat confdefs.h >>conftest.$ac_ext
28857 cat >>conftest.$ac_ext <<_ACEOF
28858 /* end confdefs.h.  */
28859 $ac_includes_default
28860 #include <sys/acl.h>
28861 _ACEOF
28862 rm -f conftest.$ac_objext
28863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28864   (eval $ac_compile) 2>conftest.er1
28865   ac_status=$?
28866   grep -v '^ *+' conftest.er1 >conftest.err
28867   rm -f conftest.er1
28868   cat conftest.err >&5
28869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870   (exit $ac_status); } &&
28871          { ac_try='test -z "$ac_c_werror_flag"
28872                          || test ! -s conftest.err'
28873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874   (eval $ac_try) 2>&5
28875   ac_status=$?
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; } &&
28878          { ac_try='test -s conftest.$ac_objext'
28879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880   (eval $ac_try) 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; }; then
28884   ac_header_compiler=yes
28885 else
28886   echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28888
28889 ac_header_compiler=no
28890 fi
28891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28893 echo "${ECHO_T}$ac_header_compiler" >&6
28894
28895 # Is the header present?
28896 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28897 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28898 cat >conftest.$ac_ext <<_ACEOF
28899 /* confdefs.h.  */
28900 _ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h.  */
28904 #include <sys/acl.h>
28905 _ACEOF
28906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } >/dev/null; then
28914   if test -s conftest.err; then
28915     ac_cpp_err=$ac_c_preproc_warn_flag
28916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28917   else
28918     ac_cpp_err=
28919   fi
28920 else
28921   ac_cpp_err=yes
28922 fi
28923 if test -z "$ac_cpp_err"; then
28924   ac_header_preproc=yes
28925 else
28926   echo "$as_me: failed program was:" >&5
28927 sed 's/^/| /' conftest.$ac_ext >&5
28928
28929   ac_header_preproc=no
28930 fi
28931 rm -f conftest.err conftest.$ac_ext
28932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28933 echo "${ECHO_T}$ac_header_preproc" >&6
28934
28935 # So?  What about this header?
28936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28937   yes:no: )
28938     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28939 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28940     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28941 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28942     ac_header_preproc=yes
28943     ;;
28944   no:yes:* )
28945     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28946 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
28948 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
28949     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28950 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28951     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
28952 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28953     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28954 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28955     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28956 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28957     (
28958       cat <<\_ASBOX
28959 ## ------------------------------------------ ##
28960 ## Report this to the AC_PACKAGE_NAME lists.  ##
28961 ## ------------------------------------------ ##
28962 _ASBOX
28963     ) |
28964       sed "s/^/$as_me: WARNING:     /" >&2
28965     ;;
28966 esac
28967 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28968 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28969 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28970   echo $ECHO_N "(cached) $ECHO_C" >&6
28971 else
28972   ac_cv_header_sys_acl_h=$ac_header_preproc
28973 fi
28974 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28975 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28976
28977 fi
28978
28979
28980 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28981 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28982 if test "${ac_cv_func_acl_get_file+set}" = set; then
28983   echo $ECHO_N "(cached) $ECHO_C" >&6
28984 else
28985   cat >conftest.$ac_ext <<_ACEOF
28986 /* confdefs.h.  */
28987 _ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h.  */
28991 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28993 #define acl_get_file innocuous_acl_get_file
28994
28995 /* System header to define __stub macros and hopefully few prototypes,
28996     which can conflict with char acl_get_file (); below.
28997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28998     <limits.h> exists even on freestanding compilers.  */
28999
29000 #ifdef __STDC__
29001 # include <limits.h>
29002 #else
29003 # include <assert.h>
29004 #endif
29005
29006 #undef acl_get_file
29007
29008 /* Override any gcc2 internal prototype to avoid an error.  */
29009 #ifdef __cplusplus
29010 extern "C"
29011 {
29012 #endif
29013 /* We use char because int might match the return type of a gcc2
29014    builtin and then its argument prototype would still apply.  */
29015 char acl_get_file ();
29016 /* The GNU C library defines this for functions which it implements
29017     to always fail with ENOSYS.  Some functions are actually named
29018     something starting with __ and the normal name is an alias.  */
29019 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29020 choke me
29021 #else
29022 char (*f) () = acl_get_file;
29023 #endif
29024 #ifdef __cplusplus
29025 }
29026 #endif
29027
29028 int
29029 main ()
29030 {
29031 return f != acl_get_file;
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 rm -f conftest.$ac_objext conftest$ac_exeext
29037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29038   (eval $ac_link) 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } &&
29045          { ac_try='test -z "$ac_c_werror_flag"
29046                          || test ! -s conftest.err'
29047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048   (eval $ac_try) 2>&5
29049   ac_status=$?
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); }; } &&
29052          { ac_try='test -s conftest$ac_exeext'
29053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054   (eval $ac_try) 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; }; then
29058   ac_cv_func_acl_get_file=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063 ac_cv_func_acl_get_file=no
29064 fi
29065 rm -f conftest.err conftest.$ac_objext \
29066       conftest$ac_exeext conftest.$ac_ext
29067 fi
29068 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29069 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29070 if test $ac_cv_func_acl_get_file = yes; then
29071   have_acl=yes
29072 else
29073   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29074 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29075 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078   ac_check_lib_save_LIBS=$LIBS
29079 LIBS="-lacl  $LIBS"
29080 cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086
29087 /* Override any gcc2 internal prototype to avoid an error.  */
29088 #ifdef __cplusplus
29089 extern "C"
29090 #endif
29091 /* We use char because int might match the return type of a gcc2
29092    builtin and then its argument prototype would still apply.  */
29093 char acl_get_file ();
29094 int
29095 main ()
29096 {
29097 acl_get_file ();
29098   ;
29099   return 0;
29100 }
29101 _ACEOF
29102 rm -f conftest.$ac_objext conftest$ac_exeext
29103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29104   (eval $ac_link) 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } &&
29111          { ac_try='test -z "$ac_c_werror_flag"
29112                          || test ! -s conftest.err'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; } &&
29118          { ac_try='test -s conftest$ac_exeext'
29119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120   (eval $ac_try) 2>&5
29121   ac_status=$?
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); }; }; then
29124   ac_cv_lib_acl_acl_get_file=yes
29125 else
29126   echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29128
29129 ac_cv_lib_acl_acl_get_file=no
29130 fi
29131 rm -f conftest.err conftest.$ac_objext \
29132       conftest$ac_exeext conftest.$ac_ext
29133 LIBS=$ac_check_lib_save_LIBS
29134 fi
29135 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29136 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29137 if test $ac_cv_lib_acl_acl_get_file = yes; then
29138   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29139 else
29140   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29141 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29142 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145   ac_check_lib_save_LIBS=$LIBS
29146 LIBS="-lsec  $LIBS"
29147 cat >conftest.$ac_ext <<_ACEOF
29148 /* confdefs.h.  */
29149 _ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h.  */
29153
29154 /* Override any gcc2 internal prototype to avoid an error.  */
29155 #ifdef __cplusplus
29156 extern "C"
29157 #endif
29158 /* We use char because int might match the return type of a gcc2
29159    builtin and then its argument prototype would still apply.  */
29160 char acltotext ();
29161 int
29162 main ()
29163 {
29164 acltotext ();
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest.$ac_objext conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171   (eval $ac_link) 2>conftest.er1
29172   ac_status=$?
29173   grep -v '^ *+' conftest.er1 >conftest.err
29174   rm -f conftest.er1
29175   cat conftest.err >&5
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); } &&
29178          { ac_try='test -z "$ac_c_werror_flag"
29179                          || test ! -s conftest.err'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; } &&
29185          { ac_try='test -s conftest$ac_exeext'
29186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187   (eval $ac_try) 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; }; then
29191   ac_cv_lib_sec_acltotext=yes
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196 ac_cv_lib_sec_acltotext=no
29197 fi
29198 rm -f conftest.err conftest.$ac_objext \
29199       conftest$ac_exeext conftest.$ac_ext
29200 LIBS=$ac_check_lib_save_LIBS
29201 fi
29202 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29203 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29204 if test $ac_cv_lib_sec_acltotext = yes; then
29205   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29206 fi
29207
29208
29209 fi
29210
29211
29212 fi
29213
29214 if test $have_acl = yes; then
29215    cat >>confdefs.h <<\_ACEOF
29216 #define HAVE_ACL 1
29217 _ACEOF
29218
29219 fi
29220
29221 PTHREAD_LIB=""
29222 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29223 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29224 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 else
29227   ac_check_lib_save_LIBS=$LIBS
29228 LIBS="-lpthread  $LIBS"
29229 cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h.  */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h.  */
29235
29236 /* Override any gcc2 internal prototype to avoid an error.  */
29237 #ifdef __cplusplus
29238 extern "C"
29239 #endif
29240 /* We use char because int might match the return type of a gcc2
29241    builtin and then its argument prototype would still apply.  */
29242 char pthread_create ();
29243 int
29244 main ()
29245 {
29246 pthread_create ();
29247   ;
29248   return 0;
29249 }
29250 _ACEOF
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29253   (eval $ac_link) 2>conftest.er1
29254   ac_status=$?
29255   grep -v '^ *+' conftest.er1 >conftest.err
29256   rm -f conftest.er1
29257   cat conftest.err >&5
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); } &&
29260          { ac_try='test -z "$ac_c_werror_flag"
29261                          || test ! -s conftest.err'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; } &&
29267          { ac_try='test -s conftest$ac_exeext'
29268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); }; }; then
29273   ac_cv_lib_pthread_pthread_create=yes
29274 else
29275   echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29277
29278 ac_cv_lib_pthread_pthread_create=no
29279 fi
29280 rm -f conftest.err conftest.$ac_objext \
29281       conftest$ac_exeext conftest.$ac_ext
29282 LIBS=$ac_check_lib_save_LIBS
29283 fi
29284 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29285 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29286 if test $ac_cv_lib_pthread_pthread_create = yes; then
29287   PTHREAD_LIB="-lpthread"
29288 else
29289   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29290 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29291 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29292   echo $ECHO_N "(cached) $ECHO_C" >&6
29293 else
29294   ac_check_lib_save_LIBS=$LIBS
29295 LIBS="-lpthreads  $LIBS"
29296 cat >conftest.$ac_ext <<_ACEOF
29297 /* confdefs.h.  */
29298 _ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h.  */
29302
29303 /* Override any gcc2 internal prototype to avoid an error.  */
29304 #ifdef __cplusplus
29305 extern "C"
29306 #endif
29307 /* We use char because int might match the return type of a gcc2
29308    builtin and then its argument prototype would still apply.  */
29309 char pthread_create ();
29310 int
29311 main ()
29312 {
29313 pthread_create ();
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320   (eval $ac_link) 2>conftest.er1
29321   ac_status=$?
29322   grep -v '^ *+' conftest.er1 >conftest.err
29323   rm -f conftest.er1
29324   cat conftest.err >&5
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); } &&
29327          { ac_try='test -z "$ac_c_werror_flag"
29328                          || test ! -s conftest.err'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; } &&
29334          { ac_try='test -s conftest$ac_exeext'
29335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336   (eval $ac_try) 2>&5
29337   ac_status=$?
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); }; }; then
29340   ac_cv_lib_pthreads_pthread_create=yes
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 ac_cv_lib_pthreads_pthread_create=no
29346 fi
29347 rm -f conftest.err conftest.$ac_objext \
29348       conftest$ac_exeext conftest.$ac_ext
29349 LIBS=$ac_check_lib_save_LIBS
29350 fi
29351 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29352 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29353 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29354   PTHREAD_LIB="-lpthreads"
29355 else
29356   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29357 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29358 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29359   echo $ECHO_N "(cached) $ECHO_C" >&6
29360 else
29361   ac_check_lib_save_LIBS=$LIBS
29362 LIBS="-lc_r  $LIBS"
29363 cat >conftest.$ac_ext <<_ACEOF
29364 /* confdefs.h.  */
29365 _ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h.  */
29369
29370 /* Override any gcc2 internal prototype to avoid an error.  */
29371 #ifdef __cplusplus
29372 extern "C"
29373 #endif
29374 /* We use char because int might match the return type of a gcc2
29375    builtin and then its argument prototype would still apply.  */
29376 char pthread_create ();
29377 int
29378 main ()
29379 {
29380 pthread_create ();
29381   ;
29382   return 0;
29383 }
29384 _ACEOF
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387   (eval $ac_link) 2>conftest.er1
29388   ac_status=$?
29389   grep -v '^ *+' conftest.er1 >conftest.err
29390   rm -f conftest.er1
29391   cat conftest.err >&5
29392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393   (exit $ac_status); } &&
29394          { ac_try='test -z "$ac_c_werror_flag"
29395                          || test ! -s conftest.err'
29396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397   (eval $ac_try) 2>&5
29398   ac_status=$?
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; } &&
29401          { ac_try='test -s conftest$ac_exeext'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; }; then
29407   ac_cv_lib_c_r_pthread_create=yes
29408 else
29409   echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29411
29412 ac_cv_lib_c_r_pthread_create=no
29413 fi
29414 rm -f conftest.err conftest.$ac_objext \
29415       conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29417 fi
29418 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29419 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29420 if test $ac_cv_lib_c_r_pthread_create = yes; then
29421   PTHREAD_LIB="-lc_r"
29422 else
29423   echo "$as_me:$LINENO: checking for pthread_create" >&5
29424 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29425 if test "${ac_cv_func_pthread_create+set}" = set; then
29426   echo $ECHO_N "(cached) $ECHO_C" >&6
29427 else
29428   cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29436 #define pthread_create innocuous_pthread_create
29437
29438 /* System header to define __stub macros and hopefully few prototypes,
29439     which can conflict with char pthread_create (); below.
29440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29441     <limits.h> exists even on freestanding compilers.  */
29442
29443 #ifdef __STDC__
29444 # include <limits.h>
29445 #else
29446 # include <assert.h>
29447 #endif
29448
29449 #undef pthread_create
29450
29451 /* Override any gcc2 internal prototype to avoid an error.  */
29452 #ifdef __cplusplus
29453 extern "C"
29454 {
29455 #endif
29456 /* We use char because int might match the return type of a gcc2
29457    builtin and then its argument prototype would still apply.  */
29458 char pthread_create ();
29459 /* The GNU C library defines this for functions which it implements
29460     to always fail with ENOSYS.  Some functions are actually named
29461     something starting with __ and the normal name is an alias.  */
29462 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29463 choke me
29464 #else
29465 char (*f) () = pthread_create;
29466 #endif
29467 #ifdef __cplusplus
29468 }
29469 #endif
29470
29471 int
29472 main ()
29473 {
29474 return f != pthread_create;
29475   ;
29476   return 0;
29477 }
29478 _ACEOF
29479 rm -f conftest.$ac_objext conftest$ac_exeext
29480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29481   (eval $ac_link) 2>conftest.er1
29482   ac_status=$?
29483   grep -v '^ *+' conftest.er1 >conftest.err
29484   rm -f conftest.er1
29485   cat conftest.err >&5
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); } &&
29488          { ac_try='test -z "$ac_c_werror_flag"
29489                          || test ! -s conftest.err'
29490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491   (eval $ac_try) 2>&5
29492   ac_status=$?
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); }; } &&
29495          { ac_try='test -s conftest$ac_exeext'
29496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497   (eval $ac_try) 2>&5
29498   ac_status=$?
29499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500   (exit $ac_status); }; }; then
29501   ac_cv_func_pthread_create=yes
29502 else
29503   echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29505
29506 ac_cv_func_pthread_create=no
29507 fi
29508 rm -f conftest.err conftest.$ac_objext \
29509       conftest$ac_exeext conftest.$ac_ext
29510 fi
29511 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29512 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29513
29514
29515 fi
29516
29517
29518 fi
29519
29520
29521 fi
29522
29523
29524
29525 cat >>confdefs.h <<\_ACEOF
29526 #define FDLIBS 1
29527 _ACEOF
29528
29529
29530
29531 CFLAGS=${CFLAGS--O}
29532 LDFLAGS=${LDFLAGS--O}
29533 DB_LIBS="${SQL_LFLAGS}"
29534
29535 CPPFLAGS="$CPPFLAGS"
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552 OBJLIST=
29553
29554
29555 lld="lld"
29556 llu="llu"
29557
29558 WCFLAGS=
29559 WLDFLAGS=
29560
29561 #
29562 # Finally we set appropriate distribution specific
29563 #  variables and defaults
29564 #
29565 # PFILES are platform specific files
29566 PFILES="platforms/Makefile"
29567 PSCMD="ps -e"
29568 WIN32=
29569 MACOSX=
29570 hostname=`uname -n | cut -d '.' -f 1`
29571 if test x${hostname} = x ; then
29572   hostname="localhost"
29573 fi
29574 case "$DISTNAME" in
29575 aix)
29576         DISTVER=`uname -r`
29577         PSCMD="ps -e -o pid,comm"
29578         PFILES="${PFILES} \
29579            platforms/aix/Makefile"
29580         TAPEDRIVE="/dev/rmt0.1"
29581   ;;
29582 alpha)
29583         DISTVER=`uname -r`
29584         PTHREAD_LIB="-lpthread -lexc"
29585         if test "${CC}" = "gcc" ; then
29586            lld="lld"
29587            llu="llu"
29588         else
29589            lld="ld"
29590            llu="lu"
29591         fi
29592         TAPEDRIVE="/dev/nrmt0"
29593   ;;
29594 bsdi)
29595         DISTVER=`uname -a |awk '{print $3}'`
29596         TAPEDRIVE="/dev/nrmt0"
29597         PTHREAD_LIB="-pthread"
29598         CFLAGS="${CFLAGS} -pthread"
29599         PSCMD="ps -ax -o pid,command"
29600         lld="qd"
29601         llu="qu"
29602         PFILES="${PFILES} \
29603             platforms/bsdi/Makefile \
29604             platforms/bsdi/bacula-fd \
29605             platforms/bsdi/bacula-sd \
29606             platforms/bsdi/bacula-dir"
29607         largefile_support="yes"
29608   ;;
29609 cygwin)
29610         DISTVER=`uname -a |awk '{print $3}'`
29611         TAPEDRIVE="/dev/nrst0"
29612         WIN32=win32
29613         WCFLAGS="-mwindows"
29614         WLDFLAGS="-mwindows"
29615   ;;
29616 darwin)
29617         DISTVER=`uname -r`
29618         TAPEDRIVE="/dev/nst0"
29619         PSCMD="ps -e -o pid,command"
29620         MACOSX=macosx
29621         PFILES="${PFILES} \
29622            platforms/darwin/Makefile"
29623   ;;
29624 debian)
29625         DISTVER=`cat /etc/debian_version`
29626         TAPEDRIVE="/dev/nrst0"
29627         PSCMD="ps -e -o pid,command"
29628   ;;
29629 freebsd)
29630         DISTVER=`uname -a |awk '{print $3}'`
29631         VER=`echo $DISTVER | cut -c 1`
29632         if test x$VER = x4 ; then
29633            PTHREAD_LIB="-pthread"
29634            CFLAGS="${CFLAGS} -pthread"
29635         fi
29636         lld="qd"
29637         llu="qu"
29638         TAPEDRIVE="/dev/nrsa0"
29639         PSCMD="ps -ax -o pid,command"
29640         PFILES="${PFILES} \
29641             platforms/freebsd/Makefile \
29642             platforms/freebsd/bacula-fd \
29643             platforms/freebsd/bacula-sd \
29644             platforms/freebsd/bacula-dir"
29645         largefile_support="yes"
29646   ;;
29647 hpux)
29648         PSCMD="UNIX95=1 ps -e -o pid,comm"
29649         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29650         DISTVER=`uname -r`
29651         TAPEDRIVE="/dev/rmt/0hnb"
29652         PTHREAD_LIB="-lpthread"
29653         cat >>confdefs.h <<\_ACEOF
29654 #define _INCLUDE_LONGLONG 1
29655 _ACEOF
29656
29657   ;;
29658 irix)
29659         DISTVER=`uname -r`
29660         TAPEDRIVE="/dev/rmt/0cbn"
29661         PSCMD="ps -e -o pid,comm"
29662         PFILES="${PFILES} \
29663             platforms/irix/Makefile \
29664             platforms/irix/bacula-fd \
29665             platforms/irix/bacula-sd \
29666             platforms/irix/bacula-dir"
29667   ;;
29668 netbsd)
29669         DISTVER=`uname -a |awk '{print $3}'`
29670         lld="qd"
29671         llu="qu"
29672         TAPEDRIVE="/dev/nrst0"
29673         PSCMD="ps -ax -o pid,command"
29674         PTHREAD_LIB="-pthread"
29675         CFLAGS="${CFLAGS} -pthread"
29676   ;;
29677 openbsd)
29678         DISTVER=`uname -a |awk '{print $3}'`
29679         lld="qd"
29680         llu="qu"
29681         TAPEDRIVE="/dev/nrst0"
29682         PSCMD="ps -ax -o pid,command"
29683         PTHREAD_LIB="-pthread"
29684         CFLAGS="${CFLAGS} -pthread"
29685         PFILES="${PFILES} \
29686             platforms/openbsd/Makefile \
29687             platforms/openbsd/bacula-fd \
29688             platforms/openbsd/bacula-sd \
29689             platforms/openbsd/bacula-dir"
29690   ;;
29691 redhat)
29692         if test -f /etc/whitebox-release ; then
29693            f=/etc/whitebox-release
29694         else
29695            f=/etc/redhat-release
29696         fi
29697         if test `cat $f | grep release |\
29698                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29699            DISTVER="Enterprise "`cat $f | grep release |\
29700                     cut -f 6 -d ' '`
29701         else
29702             DISTVER=`cat /etc/redhat-release | grep release |\
29703                      cut -f 5 -d ' '`
29704         fi
29705         TAPEDRIVE="/dev/nst0"
29706         PSCMD="ps -e -o pid,command"
29707         PFILES="${PFILES} \
29708             platforms/redhat/Makefile \
29709             platforms/redhat/bacula-fd \
29710             platforms/redhat/bacula-sd \
29711             platforms/redhat/bacula-dir \
29712             platforms/redhat/bacula.spec \
29713             "
29714   ;;
29715 mandrake)
29716         DISTVER=`cat /etc/mandrake-release | grep release |\
29717            cut -f 5 -d ' '`
29718         TAPEDRIVE="/dev/nst0"
29719         PSCMD="ps -e -o pid,command"
29720         PFILES="${PFILES} \
29721             platforms/mandrake/Makefile \
29722             platforms/mandrake/bacula-fd \
29723             platforms/mandrake/bacula-sd \
29724             platforms/mandrake/bacula-dir \
29725             platforms/mandrake/bacula.spec \
29726             "
29727   ;;
29728 gentoo)
29729         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29730         TAPEDRIVE="/dev/nst0"
29731         PSCMD="ps -e -o pid,command"
29732         PFILES="${PFILES} \
29733             platforms/gentoo/Makefile \
29734          platforms/gentoo/bacula-init \
29735             platforms/gentoo/bacula-fd \
29736             platforms/gentoo/bacula-sd \
29737             platforms/gentoo/bacula-dir"
29738   ;;
29739 slackware)
29740         DISTVER=`cat /etc/slackware-version`
29741         TAPEDRIVE="/dev/nst0"
29742         PSCMD="ps -e -o pid,command"
29743         PFILES="${PFILES} \
29744             platforms/slackware/Makefile \
29745             platforms/slackware/rc.bacula-fd \
29746             platforms/slackware/rc.bacula-sd \
29747             platforms/slackware/rc.bacula-dir\
29748             platforms/slackware/functions.bacula"
29749   ;;
29750 solaris)
29751         DISTVER=`uname -r`
29752         TAPEDRIVE="/dev/rmt/0cbn"
29753         PSCMD="ps -e -o pid,comm"
29754         PFILES="${PFILES} \
29755             platforms/solaris/Makefile \
29756             platforms/solaris/bacula-fd \
29757             platforms/solaris/bacula-sd \
29758             platforms/solaris/bacula-dir"
29759         if test x$DISTVER = x5.6 ; then
29760             cat >>confdefs.h <<\_ACEOF
29761 #define HAVE_OLD_SOCKOPT 1
29762 _ACEOF
29763
29764         fi
29765         LIBS="$LIBS -lresolv"
29766   ;;
29767 suse)
29768         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29769             cut -f 3 -d ' '`
29770         TAPEDRIVE="/dev/nst0"
29771         PSCMD="ps -e -o pid,command"
29772         PFILES="${PFILES} \
29773             platforms/suse/Makefile \
29774             platforms/suse/bacula-fd \
29775             platforms/suse/bacula-sd \
29776             platforms/suse/bacula-dir \
29777             platforms/suse/bacula \
29778             platforms/suse/bacula.spec"
29779   ;;
29780 suse5)
29781         DISTNAME=suse
29782         DISTVER=5.x
29783         TAPEDRIVE="/dev/nst0"
29784         PSCMD="ps -e -o pid,command"
29785         PFILES="${PFILES} \
29786             platforms/suse/Makefile \
29787             platforms/suse/bacula-fd \
29788             platforms/suse/bacula-sd \
29789             platforms/suse/bacula-dir"
29790   ;;
29791 unknown)
29792         DISTVER=unknown
29793         TAPEDRIVE="/dev/nst0"
29794   ;;
29795 *)
29796   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29797   ;;
29798 esac
29799
29800
29801
29802 LIBS="$PTHREAD_LIB $LIBS"
29803
29804 cat >>confdefs.h <<_ACEOF
29805 #define lld "$lld"
29806 _ACEOF
29807
29808 cat >>confdefs.h <<_ACEOF
29809 #define llu "$llu"
29810 _ACEOF
29811
29812
29813
29814
29815
29816
29817
29818
29819 MCOMMON=./autoconf/Make.common
29820
29821
29822 if test "x${subsysdir}" = "x${sbindir}" ; then
29823    echo " "
29824    echo " "
29825    echo "You have set both --sbindir and --with-subsys-dir"
29826    echo "  equal to: ${subsysdir} "
29827    echo "This is not permitted. Please reconfigure."
29828    echo " "
29829    echo "Aborting configuration ..."
29830    echo " "
29831    echo " "
29832    exit 1
29833 fi
29834
29835                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd 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/disk-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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 po/Makefile.in $PFILES"
29836           ac_config_commands="$ac_config_commands default"
29837 cat >confcache <<\_ACEOF
29838 # This file is a shell script that caches the results of configure
29839 # tests run on this system so they can be shared between configure
29840 # scripts and configure runs, see configure's option --config-cache.
29841 # It is not useful on other systems.  If it contains results you don't
29842 # want to keep, you may remove or edit it.
29843 #
29844 # config.status only pays attention to the cache file if you give it
29845 # the --recheck option to rerun configure.
29846 #
29847 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29848 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29849 # following values.
29850
29851 _ACEOF
29852
29853 # The following way of writing the cache mishandles newlines in values,
29854 # but we know of no workaround that is simple, portable, and efficient.
29855 # So, don't put newlines in cache variables' values.
29856 # Ultrix sh set writes to stderr and can't be redirected directly,
29857 # and sets the high bit in the cache file unless we assign to the vars.
29858 {
29859   (set) 2>&1 |
29860     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29861     *ac_space=\ *)
29862       # `set' does not quote correctly, so add quotes (double-quote
29863       # substitution turns \\\\ into \\, and sed turns \\ into \).
29864       sed -n \
29865         "s/'/'\\\\''/g;
29866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29867       ;;
29868     *)
29869       # `set' quotes correctly as required by POSIX, so do not add quotes.
29870       sed -n \
29871         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29872       ;;
29873     esac;
29874 } |
29875   sed '
29876      t clear
29877      : clear
29878      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29879      t end
29880      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29881      : end' >>confcache
29882 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29883   if test -w $cache_file; then
29884     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29885     cat confcache >$cache_file
29886   else
29887     echo "not updating unwritable cache $cache_file"
29888   fi
29889 fi
29890 rm -f confcache
29891
29892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29893 # Let make expand exec_prefix.
29894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29895
29896 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29897 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29898 # trailing colons and then remove the whole line if VPATH becomes empty
29899 # (actually we leave an empty line to preserve line numbers).
29900 if test "x$srcdir" = x.; then
29901   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29902 s/:*\$(srcdir):*/:/;
29903 s/:*\${srcdir}:*/:/;
29904 s/:*@srcdir@:*/:/;
29905 s/^\([^=]*=[     ]*\):*/\1/;
29906 s/:*$//;
29907 s/^[^=]*=[       ]*$//;
29908 }'
29909 fi
29910
29911 DEFS=-DHAVE_CONFIG_H
29912
29913 ac_libobjs=
29914 ac_ltlibobjs=
29915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29916   # 1. Remove the extension, and $U if already installed.
29917   ac_i=`echo "$ac_i" |
29918          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29919   # 2. Add them.
29920   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29921   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29922 done
29923 LIBOBJS=$ac_libobjs
29924
29925 LTLIBOBJS=$ac_ltlibobjs
29926
29927
29928
29929 : ${CONFIG_STATUS=./config.status}
29930 ac_clean_files_save=$ac_clean_files
29931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29932 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29933 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29934 cat >$CONFIG_STATUS <<_ACEOF
29935 #! $SHELL
29936 # Generated by $as_me.
29937 # Run this file to recreate the current configuration.
29938 # Compiler output produced by configure, useful for debugging
29939 # configure, is in config.log if it exists.
29940
29941 debug=false
29942 ac_cs_recheck=false
29943 ac_cs_silent=false
29944 SHELL=\${CONFIG_SHELL-$SHELL}
29945 _ACEOF
29946
29947 cat >>$CONFIG_STATUS <<\_ACEOF
29948 ## --------------------- ##
29949 ## M4sh Initialization.  ##
29950 ## --------------------- ##
29951
29952 # Be Bourne compatible
29953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29954   emulate sh
29955   NULLCMD=:
29956   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29957   # is contrary to our usage.  Disable this feature.
29958   alias -g '${1+"$@"}'='"$@"'
29959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29960   set -o posix
29961 fi
29962 DUALCASE=1; export DUALCASE # for MKS sh
29963
29964 # Support unset when possible.
29965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29966   as_unset=unset
29967 else
29968   as_unset=false
29969 fi
29970
29971
29972 # Work around bugs in pre-3.0 UWIN ksh.
29973 $as_unset ENV MAIL MAILPATH
29974 PS1='$ '
29975 PS2='> '
29976 PS4='+ '
29977
29978 # NLS nuisances.
29979 for as_var in \
29980   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29981   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29982   LC_TELEPHONE LC_TIME
29983 do
29984   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29985     eval $as_var=C; export $as_var
29986   else
29987     $as_unset $as_var
29988   fi
29989 done
29990
29991 # Required to use basename.
29992 if expr a : '\(a\)' >/dev/null 2>&1; then
29993   as_expr=expr
29994 else
29995   as_expr=false
29996 fi
29997
29998 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29999   as_basename=basename
30000 else
30001   as_basename=false
30002 fi
30003
30004
30005 # Name of the executable.
30006 as_me=`$as_basename "$0" ||
30007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30008          X"$0" : 'X\(//\)$' \| \
30009          X"$0" : 'X\(/\)$' \| \
30010          .     : '\(.\)' 2>/dev/null ||
30011 echo X/"$0" |
30012     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30013           /^X\/\(\/\/\)$/{ s//\1/; q; }
30014           /^X\/\(\/\).*/{ s//\1/; q; }
30015           s/.*/./; q'`
30016
30017
30018 # PATH needs CR, and LINENO needs CR and PATH.
30019 # Avoid depending upon Character Ranges.
30020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30023 as_cr_digits='0123456789'
30024 as_cr_alnum=$as_cr_Letters$as_cr_digits
30025
30026 # The user is always right.
30027 if test "${PATH_SEPARATOR+set}" != set; then
30028   echo "#! /bin/sh" >conf$$.sh
30029   echo  "exit 0"   >>conf$$.sh
30030   chmod +x conf$$.sh
30031   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30032     PATH_SEPARATOR=';'
30033   else
30034     PATH_SEPARATOR=:
30035   fi
30036   rm -f conf$$.sh
30037 fi
30038
30039
30040   as_lineno_1=$LINENO
30041   as_lineno_2=$LINENO
30042   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30043   test "x$as_lineno_1" != "x$as_lineno_2" &&
30044   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30045   # Find who we are.  Look in the path if we contain no path at all
30046   # relative or not.
30047   case $0 in
30048     *[\\/]* ) as_myself=$0 ;;
30049     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30050 for as_dir in $PATH
30051 do
30052   IFS=$as_save_IFS
30053   test -z "$as_dir" && as_dir=.
30054   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30055 done
30056
30057        ;;
30058   esac
30059   # We did not find ourselves, most probably we were run as `sh COMMAND'
30060   # in which case we are not to be found in the path.
30061   if test "x$as_myself" = x; then
30062     as_myself=$0
30063   fi
30064   if test ! -f "$as_myself"; then
30065     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30066 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30067    { (exit 1); exit 1; }; }
30068   fi
30069   case $CONFIG_SHELL in
30070   '')
30071     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30072 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30073 do
30074   IFS=$as_save_IFS
30075   test -z "$as_dir" && as_dir=.
30076   for as_base in sh bash ksh sh5; do
30077          case $as_dir in
30078          /*)
30079            if ("$as_dir/$as_base" -c '
30080   as_lineno_1=$LINENO
30081   as_lineno_2=$LINENO
30082   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30083   test "x$as_lineno_1" != "x$as_lineno_2" &&
30084   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30085              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30086              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30087              CONFIG_SHELL=$as_dir/$as_base
30088              export CONFIG_SHELL
30089              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30090            fi;;
30091          esac
30092        done
30093 done
30094 ;;
30095   esac
30096
30097   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30098   # uniformly replaced by the line number.  The first 'sed' inserts a
30099   # line-number line before each line; the second 'sed' does the real
30100   # work.  The second script uses 'N' to pair each line-number line
30101   # with the numbered line, and appends trailing '-' during
30102   # substitution so that $LINENO is not a special case at line end.
30103   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30104   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30105   sed '=' <$as_myself |
30106     sed '
30107       N
30108       s,$,-,
30109       : loop
30110       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30111       t loop
30112       s,-$,,
30113       s,^['$as_cr_digits']*\n,,
30114     ' >$as_me.lineno &&
30115   chmod +x $as_me.lineno ||
30116     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30117 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30118    { (exit 1); exit 1; }; }
30119
30120   # Don't try to exec as it changes $[0], causing all sort of problems
30121   # (the dirname of $[0] is not the place where we might find the
30122   # original and so on.  Autoconf is especially sensible to this).
30123   . ./$as_me.lineno
30124   # Exit status is that of the last command.
30125   exit
30126 }
30127
30128
30129 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30130   *c*,-n*) ECHO_N= ECHO_C='
30131 ' ECHO_T='      ' ;;
30132   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30133   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30134 esac
30135
30136 if expr a : '\(a\)' >/dev/null 2>&1; then
30137   as_expr=expr
30138 else
30139   as_expr=false
30140 fi
30141
30142 rm -f conf$$ conf$$.exe conf$$.file
30143 echo >conf$$.file
30144 if ln -s conf$$.file conf$$ 2>/dev/null; then
30145   # We could just check for DJGPP; but this test a) works b) is more generic
30146   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30147   if test -f conf$$.exe; then
30148     # Don't use ln at all; we don't have any links
30149     as_ln_s='cp -p'
30150   else
30151     as_ln_s='ln -s'
30152   fi
30153 elif ln conf$$.file conf$$ 2>/dev/null; then
30154   as_ln_s=ln
30155 else
30156   as_ln_s='cp -p'
30157 fi
30158 rm -f conf$$ conf$$.exe conf$$.file
30159
30160 if mkdir -p . 2>/dev/null; then
30161   as_mkdir_p=:
30162 else
30163   test -d ./-p && rmdir ./-p
30164   as_mkdir_p=false
30165 fi
30166
30167 as_executable_p="test -f"
30168
30169 # Sed expression to map a string onto a valid CPP name.
30170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30171
30172 # Sed expression to map a string onto a valid variable name.
30173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30174
30175
30176 # IFS
30177 # We need space, tab and new line, in precisely that order.
30178 as_nl='
30179 '
30180 IFS="   $as_nl"
30181
30182 # CDPATH.
30183 $as_unset CDPATH
30184
30185 exec 6>&1
30186
30187 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30188 # report actual input values of CONFIG_FILES etc. instead of their
30189 # values after options handling.  Logging --version etc. is OK.
30190 exec 5>>config.log
30191 {
30192   echo
30193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30194 ## Running $as_me. ##
30195 _ASBOX
30196 } >&5
30197 cat >&5 <<_CSEOF
30198
30199 This file was extended by $as_me, which was
30200 generated by GNU Autoconf 2.59.  Invocation command line was
30201
30202   CONFIG_FILES    = $CONFIG_FILES
30203   CONFIG_HEADERS  = $CONFIG_HEADERS
30204   CONFIG_LINKS    = $CONFIG_LINKS
30205   CONFIG_COMMANDS = $CONFIG_COMMANDS
30206   $ $0 $@
30207
30208 _CSEOF
30209 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30210 echo >&5
30211 _ACEOF
30212
30213 # Files that config.status was made for.
30214 if test -n "$ac_config_files"; then
30215   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30216 fi
30217
30218 if test -n "$ac_config_headers"; then
30219   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30220 fi
30221
30222 if test -n "$ac_config_links"; then
30223   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30224 fi
30225
30226 if test -n "$ac_config_commands"; then
30227   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30228 fi
30229
30230 cat >>$CONFIG_STATUS <<\_ACEOF
30231
30232 ac_cs_usage="\
30233 \`$as_me' instantiates files from templates according to the
30234 current configuration.
30235
30236 Usage: $0 [OPTIONS] [FILE]...
30237
30238   -h, --help       print this help, then exit
30239   -V, --version    print version number, then exit
30240   -q, --quiet      do not print progress messages
30241   -d, --debug      don't remove temporary files
30242       --recheck    update $as_me by reconfiguring in the same conditions
30243   --file=FILE[:TEMPLATE]
30244                    instantiate the configuration file FILE
30245   --header=FILE[:TEMPLATE]
30246                    instantiate the configuration header FILE
30247
30248 Configuration files:
30249 $config_files
30250
30251 Configuration headers:
30252 $config_headers
30253
30254 Configuration commands:
30255 $config_commands
30256
30257 Report bugs to <bug-autoconf@gnu.org>."
30258 _ACEOF
30259
30260 cat >>$CONFIG_STATUS <<_ACEOF
30261 ac_cs_version="\\
30262 config.status
30263 configured by $0, generated by GNU Autoconf 2.59,
30264   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30265
30266 Copyright (C) 2003 Free Software Foundation, Inc.
30267 This config.status script is free software; the Free Software Foundation
30268 gives unlimited permission to copy, distribute and modify it."
30269 srcdir=$srcdir
30270 INSTALL="$INSTALL"
30271 _ACEOF
30272
30273 cat >>$CONFIG_STATUS <<\_ACEOF
30274 # If no file are specified by the user, then we need to provide default
30275 # value.  By we need to know if files were specified by the user.
30276 ac_need_defaults=:
30277 while test $# != 0
30278 do
30279   case $1 in
30280   --*=*)
30281     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30282     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30283     ac_shift=:
30284     ;;
30285   -*)
30286     ac_option=$1
30287     ac_optarg=$2
30288     ac_shift=shift
30289     ;;
30290   *) # This is not an option, so the user has probably given explicit
30291      # arguments.
30292      ac_option=$1
30293      ac_need_defaults=false;;
30294   esac
30295
30296   case $ac_option in
30297   # Handling of the options.
30298 _ACEOF
30299 cat >>$CONFIG_STATUS <<\_ACEOF
30300   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30301     ac_cs_recheck=: ;;
30302   --version | --vers* | -V )
30303     echo "$ac_cs_version"; exit 0 ;;
30304   --he | --h)
30305     # Conflict between --help and --header
30306     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30307 Try \`$0 --help' for more information." >&5
30308 echo "$as_me: error: ambiguous option: $1
30309 Try \`$0 --help' for more information." >&2;}
30310    { (exit 1); exit 1; }; };;
30311   --help | --hel | -h )
30312     echo "$ac_cs_usage"; exit 0 ;;
30313   --debug | --d* | -d )
30314     debug=: ;;
30315   --file | --fil | --fi | --f )
30316     $ac_shift
30317     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30318     ac_need_defaults=false;;
30319   --header | --heade | --head | --hea )
30320     $ac_shift
30321     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30322     ac_need_defaults=false;;
30323   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30324   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30325     ac_cs_silent=: ;;
30326
30327   # This is an error.
30328   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30329 Try \`$0 --help' for more information." >&5
30330 echo "$as_me: error: unrecognized option: $1
30331 Try \`$0 --help' for more information." >&2;}
30332    { (exit 1); exit 1; }; } ;;
30333
30334   *) ac_config_targets="$ac_config_targets $1" ;;
30335
30336   esac
30337   shift
30338 done
30339
30340 ac_configure_extra_args=
30341
30342 if $ac_cs_silent; then
30343   exec 6>/dev/null
30344   ac_configure_extra_args="$ac_configure_extra_args --silent"
30345 fi
30346
30347 _ACEOF
30348 cat >>$CONFIG_STATUS <<_ACEOF
30349 if \$ac_cs_recheck; then
30350   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30351   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30352 fi
30353
30354 _ACEOF
30355
30356 cat >>$CONFIG_STATUS <<_ACEOF
30357 #
30358 # INIT-COMMANDS section.
30359 #
30360
30361 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30362     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30363     # from automake.
30364     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30365     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30366     LINGUAS="${LINGUAS-%UNSET%}"
30367
30368
30369 _ACEOF
30370
30371
30372
30373 cat >>$CONFIG_STATUS <<\_ACEOF
30374 for ac_config_target in $ac_config_targets
30375 do
30376   case "$ac_config_target" in
30377   # Handling of arguments.
30378   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30379   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30380   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30381   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30382   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30383   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30384   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30385   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30386   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30387   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30388   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30389   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30390   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30391   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30392   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30393   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30394   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30395   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30396   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30397   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30398   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30399   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30400   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30401   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30402   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30403   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30404   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30405   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30406   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30407   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30408   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30409   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30410   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30411   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30412   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30413   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30414   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30415   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30416   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30417   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30418   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30419   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30420   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30421   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30422   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30423   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30424   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30425   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30426   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30427   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30428   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30429   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30430   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30431   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30432   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30433   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30434   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30435   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30436   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30437   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30438   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30439   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30440   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30441   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30442   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30443   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30444   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30445   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30446   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30447   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30448   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30449   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30450   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30451   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30452   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30453   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30454   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30455   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30456   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30457   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30458   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30459   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30460   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30461   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30462   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30463   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30464   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30465   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30466   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30467   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30468   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30469   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30470   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30471   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30472   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30473   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30474   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30475   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30476   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30477   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30478   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30479   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30480   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30481   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30482   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30483 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30484    { (exit 1); exit 1; }; };;
30485   esac
30486 done
30487
30488 # If the user did not use the arguments to specify the items to instantiate,
30489 # then the envvar interface is used.  Set only those that are not.
30490 # We use the long form for the default assignment because of an extremely
30491 # bizarre bug on SunOS 4.1.3.
30492 if $ac_need_defaults; then
30493   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30494   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30495   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30496 fi
30497
30498 # Have a temporary directory for convenience.  Make it in the build tree
30499 # simply because there is no reason to put it here, and in addition,
30500 # creating and moving files from /tmp can sometimes cause problems.
30501 # Create a temporary directory, and hook for its removal unless debugging.
30502 $debug ||
30503 {
30504   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30505   trap '{ (exit 1); exit 1; }' 1 2 13 15
30506 }
30507
30508 # Create a (secure) tmp directory for tmp files.
30509
30510 {
30511   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30512   test -n "$tmp" && test -d "$tmp"
30513 }  ||
30514 {
30515   tmp=./confstat$$-$RANDOM
30516   (umask 077 && mkdir $tmp)
30517 } ||
30518 {
30519    echo "$me: cannot create a temporary directory in ." >&2
30520    { (exit 1); exit 1; }
30521 }
30522
30523 _ACEOF
30524
30525 cat >>$CONFIG_STATUS <<_ACEOF
30526
30527 #
30528 # CONFIG_FILES section.
30529 #
30530
30531 # No need to generate the scripts if there are no CONFIG_FILES.
30532 # This happens for instance when ./config.status config.h
30533 if test -n "\$CONFIG_FILES"; then
30534   # Protect against being on the right side of a sed subst in config.status.
30535   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30536    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30537 s,@SHELL@,$SHELL,;t t
30538 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30539 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30540 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30541 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30542 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30543 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30544 s,@exec_prefix@,$exec_prefix,;t t
30545 s,@prefix@,$prefix,;t t
30546 s,@program_transform_name@,$program_transform_name,;t t
30547 s,@bindir@,$bindir,;t t
30548 s,@sbindir@,$sbindir,;t t
30549 s,@libexecdir@,$libexecdir,;t t
30550 s,@datadir@,$datadir,;t t
30551 s,@sysconfdir@,$sysconfdir,;t t
30552 s,@sharedstatedir@,$sharedstatedir,;t t
30553 s,@localstatedir@,$localstatedir,;t t
30554 s,@libdir@,$libdir,;t t
30555 s,@includedir@,$includedir,;t t
30556 s,@oldincludedir@,$oldincludedir,;t t
30557 s,@infodir@,$infodir,;t t
30558 s,@mandir@,$mandir,;t t
30559 s,@build_alias@,$build_alias,;t t
30560 s,@host_alias@,$host_alias,;t t
30561 s,@target_alias@,$target_alias,;t t
30562 s,@DEFS@,$DEFS,;t t
30563 s,@ECHO_C@,$ECHO_C,;t t
30564 s,@ECHO_N@,$ECHO_N,;t t
30565 s,@ECHO_T@,$ECHO_T,;t t
30566 s,@LIBS@,$LIBS,;t t
30567 s,@BUILD_DIR@,$BUILD_DIR,;t t
30568 s,@TRUEPRG@,$TRUEPRG,;t t
30569 s,@FALSEPRG@,$FALSEPRG,;t t
30570 s,@VERSION@,$VERSION,;t t
30571 s,@DATE@,$DATE,;t t
30572 s,@LSMDATE@,$LSMDATE,;t t
30573 s,@CC@,$CC,;t t
30574 s,@CFLAGS@,$CFLAGS,;t t
30575 s,@LDFLAGS@,$LDFLAGS,;t t
30576 s,@CPPFLAGS@,$CPPFLAGS,;t t
30577 s,@ac_ct_CC@,$ac_ct_CC,;t t
30578 s,@EXEEXT@,$EXEEXT,;t t
30579 s,@OBJEXT@,$OBJEXT,;t t
30580 s,@CXX@,$CXX,;t t
30581 s,@CXXFLAGS@,$CXXFLAGS,;t t
30582 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30583 s,@CPP@,$CPP,;t t
30584 s,@EGREP@,$EGREP,;t t
30585 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30586 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30587 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30588 s,@RANLIB@,$RANLIB,;t t
30589 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30590 s,@MV@,$MV,;t t
30591 s,@RM@,$RM,;t t
30592 s,@CP@,$CP,;t t
30593 s,@SED@,$SED,;t t
30594 s,@ECHO@,$ECHO,;t t
30595 s,@CMP@,$CMP,;t t
30596 s,@TBL@,$TBL,;t t
30597 s,@AR@,$AR,;t t
30598 s,@OPENSSL@,$OPENSSL,;t t
30599 s,@MTX@,$MTX,;t t
30600 s,@DD@,$DD,;t t
30601 s,@MKISOFS@,$MKISOFS,;t t
30602 s,@PYTHON@,$PYTHON,;t t
30603 s,@GROWISOFS@,$GROWISOFS,;t t
30604 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30605 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30606 s,@PKGCONFIG@,$PKGCONFIG,;t t
30607 s,@WXCONFIG@,$WXCONFIG,;t t
30608 s,@WXFLAGS@,$WXFLAGS,;t t
30609 s,@CDRECORD@,$CDRECORD,;t t
30610 s,@PIDOF@,$PIDOF,;t t
30611 s,@AWK@,$AWK,;t t
30612 s,@ARFLAGS@,$ARFLAGS,;t t
30613 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30614 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30615 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30616 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30617 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30618 s,@build@,$build,;t t
30619 s,@build_cpu@,$build_cpu,;t t
30620 s,@build_vendor@,$build_vendor,;t t
30621 s,@build_os@,$build_os,;t t
30622 s,@host@,$host,;t t
30623 s,@host_cpu@,$host_cpu,;t t
30624 s,@host_vendor@,$host_vendor,;t t
30625 s,@host_os@,$host_os,;t t
30626 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30627 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30628 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30629 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30630 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30631 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30632 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30633 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30634 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30635 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30636 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30637 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30638 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30639 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30640 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30641 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30642 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30643 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30644 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30645 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30646 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30647 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30648 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30649 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30650 s,@SET_MAKE@,$SET_MAKE,;t t
30651 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30652 s,@USE_NLS@,$USE_NLS,;t t
30653 s,@MSGFMT@,$MSGFMT,;t t
30654 s,@GMSGFMT@,$GMSGFMT,;t t
30655 s,@XGETTEXT@,$XGETTEXT,;t t
30656 s,@MSGMERGE@,$MSGMERGE,;t t
30657 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30658 s,@LIBICONV@,$LIBICONV,;t t
30659 s,@LTLIBICONV@,$LTLIBICONV,;t t
30660 s,@INTLLIBS@,$INTLLIBS,;t t
30661 s,@LIBINTL@,$LIBINTL,;t t
30662 s,@LTLIBINTL@,$LTLIBINTL,;t t
30663 s,@POSUB@,$POSUB,;t t
30664 s,@GLIBC2@,$GLIBC2,;t t
30665 s,@ALLOCA@,$ALLOCA,;t t
30666 s,@GLIBC21@,$GLIBC21,;t t
30667 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30668 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30669 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30670 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30671 s,@INTLBISON@,$INTLBISON,;t t
30672 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30673 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30674 s,@CATOBJEXT@,$CATOBJEXT,;t t
30675 s,@DATADIRNAME@,$DATADIRNAME,;t t
30676 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30677 s,@GENCAT@,$GENCAT,;t t
30678 s,@INTLOBJS@,$INTLOBJS,;t t
30679 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30680 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30681 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30682 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30683 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30684 s,@GNOME_DIR@,$GNOME_DIR,;t t
30685 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30686 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30687 s,@WX_DIR@,$WX_DIR,;t t
30688 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30689 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30690 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30691 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30692 s,@STATIC_FD@,$STATIC_FD,;t t
30693 s,@STATIC_SD@,$STATIC_SD,;t t
30694 s,@STATIC_DIR@,$STATIC_DIR,;t t
30695 s,@STATIC_CONS@,$STATIC_CONS,;t t
30696 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30697 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30698 s,@ALL_DIRS@,$ALL_DIRS,;t t
30699 s,@DIRD_DIR@,$DIRD_DIR,;t t
30700 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30701 s,@STORED_DIR@,$STORED_DIR,;t t
30702 s,@CONS_INC@,$CONS_INC,;t t
30703 s,@CONS_OBJ@,$CONS_OBJ,;t t
30704 s,@CONS_SRC@,$CONS_SRC,;t t
30705 s,@CONS_LIBS@,$CONS_LIBS,;t t
30706 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30707 s,@READLINE_SRC@,$READLINE_SRC,;t t
30708 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30709 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30710 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30711 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30712 s,@working_dir@,$working_dir,;t t
30713 s,@scriptdir@,$scriptdir,;t t
30714 s,@dump_email@,$dump_email,;t t
30715 s,@job_email@,$job_email,;t t
30716 s,@smtp_host@,$smtp_host,;t t
30717 s,@piddir@,$piddir,;t t
30718 s,@subsysdir@,$subsysdir,;t t
30719 s,@baseport@,$baseport,;t t
30720 s,@dir_port@,$dir_port,;t t
30721 s,@fd_port@,$fd_port,;t t
30722 s,@sd_port@,$sd_port,;t t
30723 s,@dir_password@,$dir_password,;t t
30724 s,@fd_password@,$fd_password,;t t
30725 s,@sd_password@,$sd_password,;t t
30726 s,@mon_dir_password@,$mon_dir_password,;t t
30727 s,@mon_fd_password@,$mon_fd_password,;t t
30728 s,@mon_sd_password@,$mon_sd_password,;t t
30729 s,@dir_user@,$dir_user,;t t
30730 s,@dir_group@,$dir_group,;t t
30731 s,@sd_user@,$sd_user,;t t
30732 s,@sd_group@,$sd_group,;t t
30733 s,@fd_user@,$fd_user,;t t
30734 s,@fd_group@,$fd_group,;t t
30735 s,@SBINPERM@,$SBINPERM,;t t
30736 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30737 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30738 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30739 s,@cats@,$cats,;t t
30740 s,@DB_NAME@,$DB_NAME,;t t
30741 s,@GETCONF@,$GETCONF,;t t
30742 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30743 s,@X_CFLAGS@,$X_CFLAGS,;t t
30744 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30745 s,@X_LIBS@,$X_LIBS,;t t
30746 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30747 s,@LIBOBJS@,$LIBOBJS,;t t
30748 s,@FDLIBS@,$FDLIBS,;t t
30749 s,@DEBUG@,$DEBUG,;t t
30750 s,@DINCLUDE@,$DINCLUDE,;t t
30751 s,@DLIB@,$DLIB,;t t
30752 s,@DB_LIBS@,$DB_LIBS,;t t
30753 s,@WCFLAGS@,$WCFLAGS,;t t
30754 s,@WLDFLAGS@,$WLDFLAGS,;t t
30755 s,@WRAPLIBS@,$WRAPLIBS,;t t
30756 s,@OBJLIST@,$OBJLIST,;t t
30757 s,@hostname@,$hostname,;t t
30758 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30759 s,@PSCMD@,$PSCMD,;t t
30760 s,@WIN32@,$WIN32,;t t
30761 s,@MACOSX@,$MACOSX,;t t
30762 s,@DISTNAME@,$DISTNAME,;t t
30763 s,@DISTVER@,$DISTVER,;t t
30764 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30765 /@MCOMMON@/r $MCOMMON
30766 s,@MCOMMON@,,;t t
30767 CEOF
30768
30769 _ACEOF
30770
30771   cat >>$CONFIG_STATUS <<\_ACEOF
30772   # Split the substitutions into bite-sized pieces for seds with
30773   # small command number limits, like on Digital OSF/1 and HP-UX.
30774   ac_max_sed_lines=48
30775   ac_sed_frag=1 # Number of current file.
30776   ac_beg=1 # First line for current file.
30777   ac_end=$ac_max_sed_lines # Line after last line for current file.
30778   ac_more_lines=:
30779   ac_sed_cmds=
30780   while $ac_more_lines; do
30781     if test $ac_beg -gt 1; then
30782       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30783     else
30784       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30785     fi
30786     if test ! -s $tmp/subs.frag; then
30787       ac_more_lines=false
30788     else
30789       # The purpose of the label and of the branching condition is to
30790       # speed up the sed processing (if there are no `@' at all, there
30791       # is no need to browse any of the substitutions).
30792       # These are the two extra sed commands mentioned above.
30793       (echo ':t
30794   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30795       if test -z "$ac_sed_cmds"; then
30796         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30797       else
30798         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30799       fi
30800       ac_sed_frag=`expr $ac_sed_frag + 1`
30801       ac_beg=$ac_end
30802       ac_end=`expr $ac_end + $ac_max_sed_lines`
30803     fi
30804   done
30805   if test -z "$ac_sed_cmds"; then
30806     ac_sed_cmds=cat
30807   fi
30808 fi # test -n "$CONFIG_FILES"
30809
30810 _ACEOF
30811 cat >>$CONFIG_STATUS <<\_ACEOF
30812 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30813   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30814   case $ac_file in
30815   - | *:- | *:-:* ) # input from stdin
30816         cat >$tmp/stdin
30817         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30818         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30819   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30820         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30821   * )   ac_file_in=$ac_file.in ;;
30822   esac
30823
30824   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30825   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30827          X"$ac_file" : 'X\(//\)[^/]' \| \
30828          X"$ac_file" : 'X\(//\)$' \| \
30829          X"$ac_file" : 'X\(/\)' \| \
30830          .     : '\(.\)' 2>/dev/null ||
30831 echo X"$ac_file" |
30832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30833           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30834           /^X\(\/\/\)$/{ s//\1/; q; }
30835           /^X\(\/\).*/{ s//\1/; q; }
30836           s/.*/./; q'`
30837   { if $as_mkdir_p; then
30838     mkdir -p "$ac_dir"
30839   else
30840     as_dir="$ac_dir"
30841     as_dirs=
30842     while test ! -d "$as_dir"; do
30843       as_dirs="$as_dir $as_dirs"
30844       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30846          X"$as_dir" : 'X\(//\)[^/]' \| \
30847          X"$as_dir" : 'X\(//\)$' \| \
30848          X"$as_dir" : 'X\(/\)' \| \
30849          .     : '\(.\)' 2>/dev/null ||
30850 echo X"$as_dir" |
30851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30852           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30853           /^X\(\/\/\)$/{ s//\1/; q; }
30854           /^X\(\/\).*/{ s//\1/; q; }
30855           s/.*/./; q'`
30856     done
30857     test ! -n "$as_dirs" || mkdir $as_dirs
30858   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30860    { (exit 1); exit 1; }; }; }
30861
30862   ac_builddir=.
30863
30864 if test "$ac_dir" != .; then
30865   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30866   # A "../" for each directory in $ac_dir_suffix.
30867   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30868 else
30869   ac_dir_suffix= ac_top_builddir=
30870 fi
30871
30872 case $srcdir in
30873   .)  # No --srcdir option.  We are building in place.
30874     ac_srcdir=.
30875     if test -z "$ac_top_builddir"; then
30876        ac_top_srcdir=.
30877     else
30878        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30879     fi ;;
30880   [\\/]* | ?:[\\/]* )  # Absolute path.
30881     ac_srcdir=$srcdir$ac_dir_suffix;
30882     ac_top_srcdir=$srcdir ;;
30883   *) # Relative path.
30884     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30885     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30886 esac
30887
30888 # Do not use `cd foo && pwd` to compute absolute paths, because
30889 # the directories may not exist.
30890 case `pwd` in
30891 .) ac_abs_builddir="$ac_dir";;
30892 *)
30893   case "$ac_dir" in
30894   .) ac_abs_builddir=`pwd`;;
30895   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30896   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30897   esac;;
30898 esac
30899 case $ac_abs_builddir in
30900 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30901 *)
30902   case ${ac_top_builddir}. in
30903   .) ac_abs_top_builddir=$ac_abs_builddir;;
30904   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30905   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30906   esac;;
30907 esac
30908 case $ac_abs_builddir in
30909 .) ac_abs_srcdir=$ac_srcdir;;
30910 *)
30911   case $ac_srcdir in
30912   .) ac_abs_srcdir=$ac_abs_builddir;;
30913   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30914   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30915   esac;;
30916 esac
30917 case $ac_abs_builddir in
30918 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30919 *)
30920   case $ac_top_srcdir in
30921   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30922   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30923   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30924   esac;;
30925 esac
30926
30927
30928   case $INSTALL in
30929   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30930   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30931   esac
30932
30933   if test x"$ac_file" != x-; then
30934     { echo "$as_me:$LINENO: creating $ac_file" >&5
30935 echo "$as_me: creating $ac_file" >&6;}
30936     rm -f "$ac_file"
30937   fi
30938   # Let's still pretend it is `configure' which instantiates (i.e., don't
30939   # use $as_me), people would be surprised to read:
30940   #    /* config.h.  Generated by config.status.  */
30941   if test x"$ac_file" = x-; then
30942     configure_input=
30943   else
30944     configure_input="$ac_file.  "
30945   fi
30946   configure_input=$configure_input"Generated from `echo $ac_file_in |
30947                                      sed 's,.*/,,'` by configure."
30948
30949   # First look for the input files in the build tree, otherwise in the
30950   # src tree.
30951   ac_file_inputs=`IFS=:
30952     for f in $ac_file_in; do
30953       case $f in
30954       -) echo $tmp/stdin ;;
30955       [\\/$]*)
30956          # Absolute (can't be DOS-style, as IFS=:)
30957          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30958 echo "$as_me: error: cannot find input file: $f" >&2;}
30959    { (exit 1); exit 1; }; }
30960          echo "$f";;
30961       *) # Relative
30962          if test -f "$f"; then
30963            # Build tree
30964            echo "$f"
30965          elif test -f "$srcdir/$f"; then
30966            # Source tree
30967            echo "$srcdir/$f"
30968          else
30969            # /dev/null tree
30970            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30971 echo "$as_me: error: cannot find input file: $f" >&2;}
30972    { (exit 1); exit 1; }; }
30973          fi;;
30974       esac
30975     done` || { (exit 1); exit 1; }
30976 _ACEOF
30977 cat >>$CONFIG_STATUS <<_ACEOF
30978   sed "$ac_vpsub
30979 $extrasub
30980 _ACEOF
30981 cat >>$CONFIG_STATUS <<\_ACEOF
30982 :t
30983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30984 s,@configure_input@,$configure_input,;t t
30985 s,@srcdir@,$ac_srcdir,;t t
30986 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30987 s,@top_srcdir@,$ac_top_srcdir,;t t
30988 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30989 s,@builddir@,$ac_builddir,;t t
30990 s,@abs_builddir@,$ac_abs_builddir,;t t
30991 s,@top_builddir@,$ac_top_builddir,;t t
30992 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30993 s,@INSTALL@,$ac_INSTALL,;t t
30994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30995   rm -f $tmp/stdin
30996   if test x"$ac_file" != x-; then
30997     mv $tmp/out $ac_file
30998   else
30999     cat $tmp/out
31000     rm -f $tmp/out
31001   fi
31002
31003 done
31004 _ACEOF
31005 cat >>$CONFIG_STATUS <<\_ACEOF
31006
31007 #
31008 # CONFIG_HEADER section.
31009 #
31010
31011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31013 #
31014 # ac_d sets the value in "#define NAME VALUE" lines.
31015 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31016 ac_dB='[         ].*$,\1#\2'
31017 ac_dC=' '
31018 ac_dD=',;t'
31019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31020 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31021 ac_uB='$,\1#\2define\3'
31022 ac_uC=' '
31023 ac_uD=',;t'
31024
31025 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31026   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31027   case $ac_file in
31028   - | *:- | *:-:* ) # input from stdin
31029         cat >$tmp/stdin
31030         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31031         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31032   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31033         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31034   * )   ac_file_in=$ac_file.in ;;
31035   esac
31036
31037   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31038 echo "$as_me: creating $ac_file" >&6;}
31039
31040   # First look for the input files in the build tree, otherwise in the
31041   # src tree.
31042   ac_file_inputs=`IFS=:
31043     for f in $ac_file_in; do
31044       case $f in
31045       -) echo $tmp/stdin ;;
31046       [\\/$]*)
31047          # Absolute (can't be DOS-style, as IFS=:)
31048          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31049 echo "$as_me: error: cannot find input file: $f" >&2;}
31050    { (exit 1); exit 1; }; }
31051          # Do quote $f, to prevent DOS paths from being IFS'd.
31052          echo "$f";;
31053       *) # Relative
31054          if test -f "$f"; then
31055            # Build tree
31056            echo "$f"
31057          elif test -f "$srcdir/$f"; then
31058            # Source tree
31059            echo "$srcdir/$f"
31060          else
31061            # /dev/null tree
31062            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31063 echo "$as_me: error: cannot find input file: $f" >&2;}
31064    { (exit 1); exit 1; }; }
31065          fi;;
31066       esac
31067     done` || { (exit 1); exit 1; }
31068   # Remove the trailing spaces.
31069   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31070
31071 _ACEOF
31072
31073 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31074 # `conftest.undefs', that substitutes the proper values into
31075 # config.h.in to produce config.h.  The first handles `#define'
31076 # templates, and the second `#undef' templates.
31077 # And first: Protect against being on the right side of a sed subst in
31078 # config.status.  Protect against being in an unquoted here document
31079 # in config.status.
31080 rm -f conftest.defines conftest.undefs
31081 # Using a here document instead of a string reduces the quoting nightmare.
31082 # Putting comments in sed scripts is not portable.
31083 #
31084 # `end' is used to avoid that the second main sed command (meant for
31085 # 0-ary CPP macros) applies to n-ary macro definitions.
31086 # See the Autoconf documentation for `clear'.
31087 cat >confdef2sed.sed <<\_ACEOF
31088 s/[\\&,]/\\&/g
31089 s,[\\$`],\\&,g
31090 t clear
31091 : clear
31092 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31093 t end
31094 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31095 : end
31096 _ACEOF
31097 # If some macros were called several times there might be several times
31098 # the same #defines, which is useless.  Nevertheless, we may not want to
31099 # sort them, since we want the *last* AC-DEFINE to be honored.
31100 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31101 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31102 rm -f confdef2sed.sed
31103
31104 # This sed command replaces #undef with comments.  This is necessary, for
31105 # example, in the case of _POSIX_SOURCE, which is predefined and required
31106 # on some systems where configure will not decide to define it.
31107 cat >>conftest.undefs <<\_ACEOF
31108 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31109 _ACEOF
31110
31111 # Break up conftest.defines because some shells have a limit on the size
31112 # of here documents, and old seds have small limits too (100 cmds).
31113 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31114 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31115 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31116 echo '  :' >>$CONFIG_STATUS
31117 rm -f conftest.tail
31118 while grep . conftest.defines >/dev/null
31119 do
31120   # Write a limited-size here document to $tmp/defines.sed.
31121   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31122   # Speed up: don't consider the non `#define' lines.
31123   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31124   # Work around the forget-to-reset-the-flag bug.
31125   echo 't clr' >>$CONFIG_STATUS
31126   echo ': clr' >>$CONFIG_STATUS
31127   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31128   echo 'CEOF
31129   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31130   rm -f $tmp/in
31131   mv $tmp/out $tmp/in
31132 ' >>$CONFIG_STATUS
31133   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31134   rm -f conftest.defines
31135   mv conftest.tail conftest.defines
31136 done
31137 rm -f conftest.defines
31138 echo '  fi # grep' >>$CONFIG_STATUS
31139 echo >>$CONFIG_STATUS
31140
31141 # Break up conftest.undefs because some shells have a limit on the size
31142 # of here documents, and old seds have small limits too (100 cmds).
31143 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31144 rm -f conftest.tail
31145 while grep . conftest.undefs >/dev/null
31146 do
31147   # Write a limited-size here document to $tmp/undefs.sed.
31148   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31149   # Speed up: don't consider the non `#undef'
31150   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31151   # Work around the forget-to-reset-the-flag bug.
31152   echo 't clr' >>$CONFIG_STATUS
31153   echo ': clr' >>$CONFIG_STATUS
31154   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31155   echo 'CEOF
31156   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31157   rm -f $tmp/in
31158   mv $tmp/out $tmp/in
31159 ' >>$CONFIG_STATUS
31160   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31161   rm -f conftest.undefs
31162   mv conftest.tail conftest.undefs
31163 done
31164 rm -f conftest.undefs
31165
31166 cat >>$CONFIG_STATUS <<\_ACEOF
31167   # Let's still pretend it is `configure' which instantiates (i.e., don't
31168   # use $as_me), people would be surprised to read:
31169   #    /* config.h.  Generated by config.status.  */
31170   if test x"$ac_file" = x-; then
31171     echo "/* Generated by configure.  */" >$tmp/config.h
31172   else
31173     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31174   fi
31175   cat $tmp/in >>$tmp/config.h
31176   rm -f $tmp/in
31177   if test x"$ac_file" != x-; then
31178     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31179       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31180 echo "$as_me: $ac_file is unchanged" >&6;}
31181     else
31182       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31184          X"$ac_file" : 'X\(//\)[^/]' \| \
31185          X"$ac_file" : 'X\(//\)$' \| \
31186          X"$ac_file" : 'X\(/\)' \| \
31187          .     : '\(.\)' 2>/dev/null ||
31188 echo X"$ac_file" |
31189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31191           /^X\(\/\/\)$/{ s//\1/; q; }
31192           /^X\(\/\).*/{ s//\1/; q; }
31193           s/.*/./; q'`
31194       { if $as_mkdir_p; then
31195     mkdir -p "$ac_dir"
31196   else
31197     as_dir="$ac_dir"
31198     as_dirs=
31199     while test ! -d "$as_dir"; do
31200       as_dirs="$as_dir $as_dirs"
31201       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31203          X"$as_dir" : 'X\(//\)[^/]' \| \
31204          X"$as_dir" : 'X\(//\)$' \| \
31205          X"$as_dir" : 'X\(/\)' \| \
31206          .     : '\(.\)' 2>/dev/null ||
31207 echo X"$as_dir" |
31208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31210           /^X\(\/\/\)$/{ s//\1/; q; }
31211           /^X\(\/\).*/{ s//\1/; q; }
31212           s/.*/./; q'`
31213     done
31214     test ! -n "$as_dirs" || mkdir $as_dirs
31215   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31217    { (exit 1); exit 1; }; }; }
31218
31219       rm -f $ac_file
31220       mv $tmp/config.h $ac_file
31221     fi
31222   else
31223     cat $tmp/config.h
31224     rm -f $tmp/config.h
31225   fi
31226 done
31227 _ACEOF
31228 cat >>$CONFIG_STATUS <<\_ACEOF
31229
31230 #
31231 # CONFIG_COMMANDS section.
31232 #
31233 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31234   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31235   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31236   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31238          X"$ac_dest" : 'X\(//\)[^/]' \| \
31239          X"$ac_dest" : 'X\(//\)$' \| \
31240          X"$ac_dest" : 'X\(/\)' \| \
31241          .     : '\(.\)' 2>/dev/null ||
31242 echo X"$ac_dest" |
31243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31244           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31245           /^X\(\/\/\)$/{ s//\1/; q; }
31246           /^X\(\/\).*/{ s//\1/; q; }
31247           s/.*/./; q'`
31248   { if $as_mkdir_p; then
31249     mkdir -p "$ac_dir"
31250   else
31251     as_dir="$ac_dir"
31252     as_dirs=
31253     while test ! -d "$as_dir"; do
31254       as_dirs="$as_dir $as_dirs"
31255       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31257          X"$as_dir" : 'X\(//\)[^/]' \| \
31258          X"$as_dir" : 'X\(//\)$' \| \
31259          X"$as_dir" : 'X\(/\)' \| \
31260          .     : '\(.\)' 2>/dev/null ||
31261 echo X"$as_dir" |
31262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31263           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31264           /^X\(\/\/\)$/{ s//\1/; q; }
31265           /^X\(\/\).*/{ s//\1/; q; }
31266           s/.*/./; q'`
31267     done
31268     test ! -n "$as_dirs" || mkdir $as_dirs
31269   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31271    { (exit 1); exit 1; }; }; }
31272
31273   ac_builddir=.
31274
31275 if test "$ac_dir" != .; then
31276   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31277   # A "../" for each directory in $ac_dir_suffix.
31278   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31279 else
31280   ac_dir_suffix= ac_top_builddir=
31281 fi
31282
31283 case $srcdir in
31284   .)  # No --srcdir option.  We are building in place.
31285     ac_srcdir=.
31286     if test -z "$ac_top_builddir"; then
31287        ac_top_srcdir=.
31288     else
31289        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31290     fi ;;
31291   [\\/]* | ?:[\\/]* )  # Absolute path.
31292     ac_srcdir=$srcdir$ac_dir_suffix;
31293     ac_top_srcdir=$srcdir ;;
31294   *) # Relative path.
31295     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31296     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31297 esac
31298
31299 # Do not use `cd foo && pwd` to compute absolute paths, because
31300 # the directories may not exist.
31301 case `pwd` in
31302 .) ac_abs_builddir="$ac_dir";;
31303 *)
31304   case "$ac_dir" in
31305   .) ac_abs_builddir=`pwd`;;
31306   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31307   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31308   esac;;
31309 esac
31310 case $ac_abs_builddir in
31311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31312 *)
31313   case ${ac_top_builddir}. in
31314   .) ac_abs_top_builddir=$ac_abs_builddir;;
31315   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31316   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31317   esac;;
31318 esac
31319 case $ac_abs_builddir in
31320 .) ac_abs_srcdir=$ac_srcdir;;
31321 *)
31322   case $ac_srcdir in
31323   .) ac_abs_srcdir=$ac_abs_builddir;;
31324   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31325   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31326   esac;;
31327 esac
31328 case $ac_abs_builddir in
31329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31330 *)
31331   case $ac_top_srcdir in
31332   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31333   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31334   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31335   esac;;
31336 esac
31337
31338
31339   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31340 echo "$as_me: executing $ac_dest commands" >&6;}
31341   case $ac_dest in
31342     default-1 )
31343     for ac_file in $CONFIG_FILES; do
31344       # Support "outfile[:infile[:infile...]]"
31345       case "$ac_file" in
31346         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31347       esac
31348       # PO directories have a Makefile.in generated from Makefile.in.in.
31349       case "$ac_file" in */Makefile.in)
31350         # Adjust a relative srcdir.
31351         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31352         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31353         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31354         # In autoconf-2.13 it is called $ac_given_srcdir.
31355         # In autoconf-2.50 it is called $srcdir.
31356         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31357         case "$ac_given_srcdir" in
31358           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31359           /*) top_srcdir="$ac_given_srcdir" ;;
31360           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31361         esac
31362         # Treat a directory as a PO directory if and only if it has a
31363         # POTFILES.in file. This allows packages to have multiple PO
31364         # directories under different names or in different locations.
31365         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31366           rm -f "$ac_dir/POTFILES"
31367           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31368           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31369           POMAKEFILEDEPS="POTFILES.in"
31370           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31371           # on $ac_dir but don't depend on user-specified configuration
31372           # parameters.
31373           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31374             # The LINGUAS file contains the set of available languages.
31375             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31376               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31377             fi
31378             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31379             # Hide the ALL_LINGUAS assigment from automake.
31380             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31381             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31382           else
31383             # The set of available languages was given in configure.in.
31384             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31385           fi
31386           # Compute POFILES
31387           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31388           # Compute UPDATEPOFILES
31389           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31390           # Compute DUMMYPOFILES
31391           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31392           # Compute GMOFILES
31393           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31394           case "$ac_given_srcdir" in
31395             .) srcdirpre= ;;
31396             *) srcdirpre='$(srcdir)/' ;;
31397           esac
31398           POFILES=
31399           UPDATEPOFILES=
31400           DUMMYPOFILES=
31401           GMOFILES=
31402           for lang in $ALL_LINGUAS; do
31403             POFILES="$POFILES $srcdirpre$lang.po"
31404             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31405             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31406             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31407           done
31408           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31409           # environment variable.
31410           INST_LINGUAS=
31411           if test -n "$ALL_LINGUAS"; then
31412             for presentlang in $ALL_LINGUAS; do
31413               useit=no
31414               if test "%UNSET%" != "$LINGUAS"; then
31415                 desiredlanguages="$LINGUAS"
31416               else
31417                 desiredlanguages="$ALL_LINGUAS"
31418               fi
31419               for desiredlang in $desiredlanguages; do
31420                 # Use the presentlang catalog if desiredlang is
31421                 #   a. equal to presentlang, or
31422                 #   b. a variant of presentlang (because in this case,
31423                 #      presentlang can be used as a fallback for messages
31424                 #      which are not translated in the desiredlang catalog).
31425                 case "$desiredlang" in
31426                   "$presentlang"*) useit=yes;;
31427                 esac
31428               done
31429               if test $useit = yes; then
31430                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31431               fi
31432             done
31433           fi
31434           CATALOGS=
31435           if test -n "$INST_LINGUAS"; then
31436             for lang in $INST_LINGUAS; do
31437               CATALOGS="$CATALOGS $lang.gmo"
31438             done
31439           fi
31440           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31441           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
31442           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31443             if test -f "$f"; then
31444               case "$f" in
31445                 *.orig | *.bak | *~) ;;
31446                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31447               esac
31448             fi
31449           done
31450         fi
31451         ;;
31452       esac
31453     done ;;
31454     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31455  ;;
31456   esac
31457 done
31458 _ACEOF
31459
31460 cat >>$CONFIG_STATUS <<\_ACEOF
31461
31462 { (exit 0); exit 0; }
31463 _ACEOF
31464 chmod +x $CONFIG_STATUS
31465 ac_clean_files=$ac_clean_files_save
31466
31467
31468 # configure is writing to config.log, and then calls config.status.
31469 # config.status does its own redirection, appending to config.log.
31470 # Unfortunately, on DOS this fails, as config.log is still kept open
31471 # by configure, so config.status won't be able to write to it; its
31472 # output is simply discarded.  So we exec the FD to /dev/null,
31473 # effectively closing config.log, so it can be properly (re)opened and
31474 # appended to by config.status.  When coming back to configure, we
31475 # need to make the FD available again.
31476 if test "$no_create" != yes; then
31477   ac_cs_success=:
31478   ac_config_status_args=
31479   test "$silent" = yes &&
31480     ac_config_status_args="$ac_config_status_args --quiet"
31481   exec 5>/dev/null
31482   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31483   exec 5>>config.log
31484   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31485   # would make configure fail if this is the last instruction.
31486   $ac_cs_success || { (exit 1); exit 1; }
31487 fi
31488
31489
31490 cd scripts
31491 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31492 chmod 755 dvd-handler
31493 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31494 cd ..
31495
31496 c=src/cats
31497
31498 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31499 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31500
31501 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31502 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31503
31504 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31505 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31506
31507 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31508 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31509
31510 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31511 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31512
31513 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31514 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31515
31516 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31517 chmod 755 $c/sqlite
31518 chmod 755 $c/mysql
31519
31520 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31521    largefile_support="yes"
31522 fi
31523
31524 #
31525 # A whole lot of hand springs to get the compiler version.
31526 #  This is because gcc changed the output in version 3.0
31527 #
31528 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31529 if test "x${CCVERSION}" = "x" ; then
31530   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31531 fi
31532 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31533 if test x"${CXXVERSION}" = x ; then
31534   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31535 fi
31536
31537 if test "x${subsysdir}" = "x${sbindir}" ; then
31538    echo " "
31539    echo " "
31540    echo "You have set --sbindir and --with-subsys-dir"
31541    echo "  both equal to: ${subsysdir} "
31542    echo "  This is not permitted. Please reconfigure."
31543    echo " "
31544    echo "Aborting configuration ..."
31545    echo " "
31546    echo " "
31547    exit 1
31548 fi
31549
31550 if test "x${db_name}" = "xInternal" ; then
31551    echo " "
31552    echo " "
31553    echo "You have not specified either --enable-client-only or one of the"
31554    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31555    echo "  This is not permitted. Please reconfigure."
31556    echo " "
31557    echo "Aborting the configuration ..."
31558    echo " "
31559    echo " "
31560    exit 1
31561 fi
31562
31563 echo "
31564 Configuration on `date`:
31565
31566   Host:                       $host -- ${DISTNAME} ${DISTVER}
31567   Bacula version:             ${VERSION} (${DATE})
31568   Source code location:       ${srcdir}
31569   Install binaries:           ${sbindir}
31570   Install config files:       ${sysconfdir}
31571   Scripts directory:          ${scriptdir}
31572   Working directory:          ${working_dir}
31573   PID directory:              ${piddir}
31574   Subsys directory:           ${subsysdir}
31575   Man directory:              ${mandir}
31576   Data directory:             ${datadir}
31577   C Compiler:                 ${CC} ${CCVERSION}
31578   C++ Compiler:               ${CXX} ${CXXVERSION}
31579   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31580   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31581   Libraries:                  ${LIBS}
31582   Statically Linked Tools:    ${support_static_tools}
31583   Statically Linked FD:       ${support_static_fd}
31584   Statically Linked SD:       ${support_static_sd}
31585   Statically Linked DIR:      ${support_static_dir}
31586   Statically Linked CONS:     ${support_static_cons}
31587   Database type:              ${db_name}
31588   Database lib:               ${DB_LIBS}
31589
31590   Job Output Email:           ${job_email}
31591   Traceback Email:            ${dump_email}
31592   SMTP Host Address:          ${smtp_host}
31593
31594   Director Port:              ${dir_port}
31595   File daemon Port:           ${fd_port}
31596   Storage daemon Port:        ${sd_port}
31597
31598   Director User:              ${dir_user}
31599   Director Group:             ${dir_group}
31600   Storage Daemon User:        ${sd_user}
31601   Storage DaemonGroup:        ${sd_group}
31602   File Daemon User:           ${fd_user}
31603   File Daemon Group:          ${fd_group}
31604
31605   SQL binaries Directory      ${SQL_BINDIR}
31606
31607   Large file support:         $largefile_support
31608   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31609   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31610   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31611   TLS support:                ${support_tls}
31612   ZLIB support:               ${have_zlib}
31613   enable-smartalloc:          ${support_smartalloc}
31614   enable-gnome:               ${support_gnome} ${gnome_version}
31615   enable-wx-console:          ${support_wx_console} ${wx_version}
31616   enable-tray-monitor:        ${support_tray_monitor}
31617   client-only:                ${build_client_only}
31618   build-dird:                 ${build_dird}
31619   build-stored:               ${build_stored}
31620   ACL support:                ${have_acl}
31621   Python support:             ${support_python} ${PYTHON_LIBS}
31622
31623   " > config.out
31624
31625 cat config.out